83 lines
2.4 KiB
Smali
83 lines
2.4 KiB
Smali
|
|
.class final Lcom/blankj/utilcode/util/ShellUtils$1;
|
||
|
|
.super Lcom/blankj/utilcode/util/Utils$Task;
|
||
|
|
.source "ShellUtils.java"
|
||
|
|
|
||
|
|
|
||
|
|
# annotations
|
||
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
|
value = Lcom/blankj/utilcode/util/ShellUtils;->execCmdAsync([Ljava/lang/String;ZZLcom/blankj/utilcode/util/Utils$Consumer;)Lcom/blankj/utilcode/util/Utils$Task;
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
|
accessFlags = 0x8
|
||
|
|
name = null
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
|
value = {
|
||
|
|
"Lcom/blankj/utilcode/util/Utils$Task<",
|
||
|
|
"Lcom/blankj/utilcode/util/ShellUtils$CommandResult;",
|
||
|
|
">;"
|
||
|
|
}
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
|
||
|
|
# instance fields
|
||
|
|
.field final synthetic val$commands:[Ljava/lang/String;
|
||
|
|
|
||
|
|
.field final synthetic val$isNeedResultMsg:Z
|
||
|
|
|
||
|
|
.field final synthetic val$isRooted:Z
|
||
|
|
|
||
|
|
|
||
|
|
# direct methods
|
||
|
|
.method constructor <init>(Lcom/blankj/utilcode/util/Utils$Consumer;[Ljava/lang/String;ZZ)V
|
||
|
|
.locals 0
|
||
|
|
|
||
|
|
.line 117
|
||
|
|
iput-object p2, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$commands:[Ljava/lang/String;
|
||
|
|
|
||
|
|
iput-boolean p3, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$isRooted:Z
|
||
|
|
|
||
|
|
iput-boolean p4, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$isNeedResultMsg:Z
|
||
|
|
|
||
|
|
invoke-direct {p0, p1}, Lcom/blankj/utilcode/util/Utils$Task;-><init>(Lcom/blankj/utilcode/util/Utils$Consumer;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
|
||
|
|
# virtual methods
|
||
|
|
.method public doInBackground()Lcom/blankj/utilcode/util/ShellUtils$CommandResult;
|
||
|
|
.locals 3
|
||
|
|
|
||
|
|
.line 120
|
||
|
|
iget-object v0, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$commands:[Ljava/lang/String;
|
||
|
|
|
||
|
|
iget-boolean v1, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$isRooted:Z
|
||
|
|
|
||
|
|
iget-boolean v2, p0, Lcom/blankj/utilcode/util/ShellUtils$1;->val$isNeedResultMsg:Z
|
||
|
|
|
||
|
|
invoke-static {v0, v1, v2}, Lcom/blankj/utilcode/util/ShellUtils;->execCmd([Ljava/lang/String;ZZ)Lcom/blankj/utilcode/util/ShellUtils$CommandResult;
|
||
|
|
|
||
|
|
move-result-object v0
|
||
|
|
|
||
|
|
return-object v0
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public bridge synthetic doInBackground()Ljava/lang/Object;
|
||
|
|
.locals 1
|
||
|
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
|
value = {
|
||
|
|
Ljava/lang/Throwable;
|
||
|
|
}
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
.line 117
|
||
|
|
invoke-virtual {p0}, Lcom/blankj/utilcode/util/ShellUtils$1;->doInBackground()Lcom/blankj/utilcode/util/ShellUtils$CommandResult;
|
||
|
|
|
||
|
|
move-result-object v0
|
||
|
|
|
||
|
|
return-object v0
|
||
|
|
.end method
|