You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1811 lines
34 KiB
1811 lines
34 KiB
.class public Lcom/a/f; |
|
.super Ljava/lang/Object; |
|
|
|
# interfaces |
|
.implements Lcom/a/c$d; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/a/f$a;, |
|
Lcom/a/f$b; |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static c:Lcom/a/f; |
|
|
|
|
|
# instance fields |
|
.field a:[Ljava/lang/String; |
|
|
|
.field private b:Lcom/a/c$e; |
|
|
|
.field private d:Landroid/content/Context; |
|
|
|
.field private e:[B |
|
|
|
.field private f:[B |
|
|
|
.field private g:[B |
|
|
|
.field private h:Z |
|
|
|
.field private i:S |
|
|
|
.field private j:S |
|
|
|
.field private k:S |
|
|
|
.field private l:S |
|
|
|
.field private m:B |
|
|
|
.field private n:Ljava/io/File; |
|
|
|
.field private o:Ljava/io/File; |
|
|
|
.field private p:I |
|
|
|
.field private q:I |
|
|
|
.field private r:Z |
|
|
|
.field private s:Lcom/a/f$a; |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>()V |
|
.locals 5 |
|
|
|
const/4 v4, 0x1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
const/4 v3, -0x1 |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
const/16 v0, 0x2710 |
|
|
|
new-array v0, v0, [B |
|
|
|
iput-object v0, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v0, 0x26fc |
|
|
|
new-array v0, v0, [B |
|
|
|
iput-object v0, p0, Lcom/a/f;->f:[B |
|
|
|
const/16 v0, 0x2000 |
|
|
|
new-array v0, v0, [B |
|
|
|
iput-object v0, p0, Lcom/a/f;->g:[B |
|
|
|
iput-boolean v2, p0, Lcom/a/f;->h:Z |
|
|
|
iput-short v3, p0, Lcom/a/f;->i:S |
|
|
|
iput-short v3, p0, Lcom/a/f;->j:S |
|
|
|
const/4 v0, 0x6 |
|
|
|
new-array v0, v0, [Ljava/lang/String; |
|
|
|
const-string v1, "system1addr" |
|
|
|
aput-object v1, v0, v2 |
|
|
|
const-string v1, "system2addr" |
|
|
|
aput-object v1, v0, v4 |
|
|
|
const/4 v1, 0x2 |
|
|
|
const-string v2, "systemflag" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
const/4 v1, 0x3 |
|
|
|
const-string v2, "via.module" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
const/4 v1, 0x4 |
|
|
|
const-string v2, "ethaddr" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
const/4 v1, 0x5 |
|
|
|
const-string v2, "via.deviceid" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
iput-object v0, p0, Lcom/a/f;->a:[Ljava/lang/String; |
|
|
|
iput v3, p0, Lcom/a/f;->p:I |
|
|
|
iput v3, p0, Lcom/a/f;->q:I |
|
|
|
iput-boolean v4, p0, Lcom/a/f;->r:Z |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic a(Lcom/a/f;)Lcom/a/f$a; |
|
.locals 1 |
|
|
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static a()Lcom/a/f; |
|
.locals 1 |
|
|
|
sget-object v0, Lcom/a/f;->c:Lcom/a/f; |
|
|
|
if-nez v0, :cond_0 |
|
|
|
new-instance v0, Lcom/a/f; |
|
|
|
invoke-direct {v0}, Lcom/a/f;-><init>()V |
|
|
|
sput-object v0, Lcom/a/f;->c:Lcom/a/f; |
|
|
|
:cond_0 |
|
sget-object v0, Lcom/a/f;->c:Lcom/a/f; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private a(I)Z |
|
.locals 5 |
|
|
|
const/4 v0, 0x0 |
|
|
|
sparse-switch p1, :sswitch_data_0 |
|
|
|
:goto_0 |
|
move v1, v0 |
|
|
|
:goto_1 |
|
if-lez v1, :cond_0 |
|
|
|
:try_start_0 |
|
iget-object v2, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v3, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v2, v3, v1}, Lcom/a/c$e;->a([BI)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:cond_0 |
|
:goto_2 |
|
return v0 |
|
|
|
:sswitch_0 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procGetSysInfo" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->a([B)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_1 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetReboot" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1, v0}, Lcom/a/d;->a([BB)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_2 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetStartStreaming" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->b([B)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_3 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetStopStreaming" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->c([B)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_4 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSnapshot" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->d([B)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_5 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procGetVideoEnc" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->e([B)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_6 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetVideoEnc" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
iget-short v2, p0, Lcom/a/f;->k:S |
|
|
|
iget-short v3, p0, Lcom/a/f;->l:S |
|
|
|
iget-byte v4, p0, Lcom/a/f;->m:B |
|
|
|
invoke-static {v1, v2, v3, v4}, Lcom/a/d;->a([BSSB)I |
|
|
|
move-result v1 |
|
|
|
goto :goto_1 |
|
|
|
:sswitch_7 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetOTASetup" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
iget-object v2, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1, v2}, Lcom/a/d;->a(Ljava/io/File;[B)I |
|
|
|
move-result v1 |
|
|
|
goto/16 :goto_1 |
|
|
|
:sswitch_8 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetSuspend" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->f([B)I |
|
|
|
move-result v1 |
|
|
|
goto/16 :goto_1 |
|
|
|
:sswitch_9 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procSetResume" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v1}, Lcom/a/d;->g([B)I |
|
|
|
move-result v1 |
|
|
|
goto/16 :goto_1 |
|
|
|
:sswitch_a |
|
const-string v0, "VTPProxy" |
|
|
|
const-string v1, "procReadUboot" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
invoke-direct {p0}, Lcom/a/f;->k()Z |
|
|
|
move-result v0 |
|
|
|
goto/16 :goto_2 |
|
|
|
:sswitch_b |
|
iget-object v1, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
const-string v0, "VTPProxy" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "mIsOnUpdating\uff1amUpdateFWFile:" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v2, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
invoke-direct {p0}, Lcom/a/f;->l()Z |
|
|
|
move-result v0 |
|
|
|
goto/16 :goto_2 |
|
|
|
:sswitch_c |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procWriteStorage" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-object v1, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
invoke-direct {p0}, Lcom/a/f;->m()Z |
|
|
|
move-result v0 |
|
|
|
goto/16 :goto_2 |
|
|
|
:sswitch_d |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v2, "procHandleFile" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
goto/16 :goto_0 |
|
|
|
:catch_0 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto/16 :goto_2 |
|
|
|
:sswitch_data_0 |
|
.sparse-switch |
|
0x1 -> :sswitch_0 |
|
0x2 -> :sswitch_1 |
|
0x10 -> :sswitch_7 |
|
0x11 -> :sswitch_b |
|
0x12 -> :sswitch_c |
|
0x14 -> :sswitch_d |
|
0x21 -> :sswitch_2 |
|
0x22 -> :sswitch_4 |
|
0x24 -> :sswitch_3 |
|
0x30 -> :sswitch_5 |
|
0x36 -> :sswitch_6 |
|
0x70 -> :sswitch_a |
|
0x72 -> :sswitch_8 |
|
0x73 -> :sswitch_9 |
|
.end sparse-switch |
|
.end method |
|
|
|
.method static synthetic a(Lcom/a/f;I)Z |
|
.locals 1 |
|
|
|
invoke-direct {p0, p1}, Lcom/a/f;->a(I)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method private k()Z |
|
.locals 4 |
|
|
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
iget-object v1, p0, Lcom/a/f;->a:[Ljava/lang/String; |
|
|
|
array-length v1, v1 |
|
|
|
if-ge v0, v1, :cond_0 |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
iget-object v2, p0, Lcom/a/f;->a:[Ljava/lang/String; |
|
|
|
aget-object v2, v2, v0 |
|
|
|
invoke-static {v1, v2}, Lcom/a/d;->a([BLjava/lang/String;)I |
|
|
|
move-result v1 |
|
|
|
:try_start_0 |
|
iget-object v2, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v3, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v2, v3, v1}, Lcom/a/c$e;->a([BI)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
:goto_1 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
:catch_0 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_1 |
|
|
|
:cond_0 |
|
const/4 v0, 0x1 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method private l()Z |
|
.locals 10 |
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
const/4 v0, 0x1 |
|
|
|
const/4 v9, -0x1 |
|
|
|
const/4 v3, 0x0 |
|
|
|
const/4 v1, 0x0 |
|
|
|
:try_start_0 |
|
new-instance v2, Ljava/io/FileInputStream; |
|
|
|
iget-object v4, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
invoke-direct {v2, v4}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1 |
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0 |
|
|
|
:try_start_1 |
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->available()I |
|
|
|
move v3, v1 |
|
|
|
move v5, v1 |
|
|
|
:goto_0 |
|
if-eq v3, v9, :cond_2 |
|
|
|
iget-object v3, p0, Lcom/a/f;->f:[B |
|
|
|
invoke-virtual {v2, v3}, Ljava/io/FileInputStream;->read([B)I |
|
|
|
move-result v4 |
|
|
|
if-lez v4, :cond_3 |
|
|
|
add-int/2addr v5, v4 |
|
|
|
iget-object v3, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v3, v4}, Lcom/a/d;->b([BI)I |
|
|
|
iget-object v3, p0, Lcom/a/f;->f:[B |
|
|
|
const/4 v6, 0x0 |
|
|
|
iget-object v7, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v8, 0x14 |
|
|
|
invoke-static {v3, v6, v7, v8, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V |
|
|
|
iget-object v3, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v6, 0x10 |
|
|
|
invoke-static {v3, v6}, Lcom/a/e;->a([BI)S |
|
|
|
move-result v3 |
|
|
|
iput-short v3, p0, Lcom/a/f;->j:S |
|
|
|
iget-object v3, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v6, p0, Lcom/a/f;->e:[B |
|
|
|
add-int/lit8 v7, v4, 0x14 |
|
|
|
invoke-interface {v3, v6, v7}, Lcom/a/c$e;->a([BI)V |
|
|
|
move v3, v0 |
|
|
|
:cond_0 |
|
:goto_1 |
|
if-eqz v3, :cond_1 |
|
|
|
iget-short v6, p0, Lcom/a/f;->i:S |
|
|
|
iget-short v7, p0, Lcom/a/f;->j:S |
|
|
|
if-ne v6, v7, :cond_0 |
|
|
|
iget-short v6, p0, Lcom/a/f;->i:S |
|
:try_end_1 |
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4 |
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1 |
|
|
|
if-eq v6, v9, :cond_0 |
|
|
|
move v3, v1 |
|
|
|
goto :goto_1 |
|
|
|
:cond_1 |
|
move v3, v4 |
|
|
|
goto :goto_0 |
|
|
|
:cond_2 |
|
:try_start_2 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v3, "mIsOnUpdating end" |
|
|
|
invoke-static {v1, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-object v1, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_2 |
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0 |
|
|
|
:goto_2 |
|
return v0 |
|
|
|
:catch_0 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V |
|
|
|
goto :goto_2 |
|
|
|
:catch_1 |
|
move-exception v0 |
|
|
|
move-object v2, v3 |
|
|
|
:goto_3 |
|
:try_start_3 |
|
const-string v3, "VTPProxy" |
|
|
|
new-instance v4, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v5, "mIsOnUpdating e" |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V |
|
:try_end_3 |
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1 |
|
|
|
:try_start_4 |
|
const-string v0, "VTPProxy" |
|
|
|
const-string v3, "mIsOnUpdating end" |
|
|
|
invoke-static {v0, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_4 |
|
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2 |
|
|
|
:goto_4 |
|
move v0, v1 |
|
|
|
goto :goto_2 |
|
|
|
:catch_2 |
|
move-exception v0 |
|
|
|
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V |
|
|
|
goto :goto_4 |
|
|
|
:catchall_0 |
|
move-exception v0 |
|
|
|
move-object v2, v3 |
|
|
|
:goto_5 |
|
:try_start_5 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v3, "mIsOnUpdating end" |
|
|
|
invoke-static {v1, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-object v1, p0, Lcom/a/f;->n:Ljava/io/File; |
|
|
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_5 |
|
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3 |
|
|
|
:goto_6 |
|
throw v0 |
|
|
|
:catch_3 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V |
|
|
|
goto :goto_6 |
|
|
|
:catchall_1 |
|
move-exception v0 |
|
|
|
goto :goto_5 |
|
|
|
:catch_4 |
|
move-exception v0 |
|
|
|
goto :goto_3 |
|
|
|
:cond_3 |
|
move v3, v4 |
|
|
|
goto/16 :goto_0 |
|
.end method |
|
|
|
.method private m()Z |
|
.locals 13 |
|
|
|
const/4 v3, 0x0 |
|
|
|
const/4 v12, -0x1 |
|
|
|
const/4 v0, 0x1 |
|
|
|
const/4 v1, 0x0 |
|
|
|
iget-object v2, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
if-eqz v2, :cond_0 |
|
|
|
iget v2, p0, Lcom/a/f;->p:I |
|
|
|
if-ne v2, v12, :cond_1 |
|
|
|
:cond_0 |
|
move v0, v1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_1 |
|
iget-object v2, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-static {v2}, Lcom/a/d;->c([B)I |
|
|
|
move-result v2 |
|
|
|
:try_start_0 |
|
iget-object v4, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v5, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v4, v5, v2}, Lcom/a/c$e;->a([BI)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1 |
|
|
|
:goto_1 |
|
iput-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
const-string v2, "VTPProxy" |
|
|
|
new-instance v4, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v5, "updateKernelMethod\uff1amUpdateKernelFile:" |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
iget-object v5, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v2, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
:try_start_1 |
|
new-instance v2, Ljava/io/FileInputStream; |
|
|
|
iget-object v4, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
invoke-direct {v2, v4}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V |
|
:try_end_1 |
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3 |
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0 |
|
|
|
:try_start_2 |
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->available()I |
|
|
|
move-result v7 |
|
|
|
invoke-static {}, Ljava/text/NumberFormat;->getInstance()Ljava/text/NumberFormat; |
|
|
|
move-result-object v8 |
|
|
|
move v3, v1 |
|
|
|
move v4, v1 |
|
|
|
move v6, v1 |
|
|
|
:goto_2 |
|
if-eq v4, v12, :cond_2 |
|
|
|
iget-boolean v4, p0, Lcom/a/f;->h:Z |
|
:try_end_2 |
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_6 |
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1 |
|
|
|
if-nez v4, :cond_4 |
|
|
|
:cond_2 |
|
:try_start_3 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v3, "updateKernelMethod end" |
|
|
|
invoke-static {v1, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-object v1, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
const/4 v1, -0x1 |
|
|
|
iput v1, p0, Lcom/a/f;->p:I |
|
|
|
iget-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
if-eqz v1, :cond_3 |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
const/16 v3, 0x64 |
|
|
|
const/4 v4, 0x1 |
|
|
|
invoke-interface {v1, v3, v4}, Lcom/a/f$a;->onUpdateProgressListen(IZ)V |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-static {v1, v3}, Lcom/a/d;->a([BB)I |
|
|
|
move-result v1 |
|
|
|
iget-object v3, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v3, v4, v1}, Lcom/a/c$e;->a([BI)V |
|
|
|
:cond_3 |
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_3 |
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0 |
|
|
|
goto :goto_0 |
|
|
|
:catch_0 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_0 |
|
|
|
:catch_1 |
|
move-exception v2 |
|
|
|
invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_1 |
|
|
|
:cond_4 |
|
:try_start_4 |
|
iget-object v4, p0, Lcom/a/f;->g:[B |
|
|
|
invoke-virtual {v2, v4}, Ljava/io/FileInputStream;->read([B)I |
|
|
|
move-result v5 |
|
|
|
if-lez v5, :cond_a |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
iget-object v9, p0, Lcom/a/f;->g:[B |
|
|
|
iget v10, p0, Lcom/a/f;->p:I |
|
|
|
invoke-static {v4, v9, v5, v10}, Lcom/a/d;->a([B[BII)I |
|
|
|
iget-object v4, p0, Lcom/a/f;->g:[B |
|
|
|
const/4 v9, 0x0 |
|
|
|
iget-object v10, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v11, 0x20 |
|
|
|
invoke-static {v4, v9, v10, v11, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v9, 0x14 |
|
|
|
invoke-static {v4, v9}, Lcom/a/e;->b([BI)I |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
const/16 v9, 0x10 |
|
|
|
invoke-static {v4, v9}, Lcom/a/e;->a([BI)S |
|
|
|
move-result v4 |
|
|
|
iput-short v4, p0, Lcom/a/f;->j:S |
|
:try_end_4 |
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_6 |
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1 |
|
|
|
const/4 v4, 0x2 |
|
|
|
:try_start_5 |
|
invoke-virtual {v8, v4}, Ljava/text/NumberFormat;->setMaximumFractionDigits(I)V |
|
|
|
int-to-float v4, v6 |
|
|
|
int-to-float v9, v7 |
|
|
|
div-float/2addr v4, v9 |
|
|
|
float-to-double v10, v4 |
|
|
|
invoke-virtual {v8, v10, v11}, Ljava/text/NumberFormat;->format(D)Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v4}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F |
|
:try_end_5 |
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2 |
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1 |
|
|
|
move-result v3 |
|
|
|
const/high16 v4, 0x42c80000 # 100.0f |
|
|
|
mul-float/2addr v3, v4 |
|
|
|
float-to-int v3, v3 |
|
|
|
move v4, v3 |
|
|
|
:goto_3 |
|
:try_start_6 |
|
iget-object v3, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
const/4 v9, 0x0 |
|
|
|
invoke-interface {v3, v4, v9}, Lcom/a/f$a;->onUpdateProgressListen(IZ)V |
|
|
|
add-int/2addr v6, v5 |
|
|
|
iget v3, p0, Lcom/a/f;->p:I |
|
|
|
add-int/2addr v3, v5 |
|
|
|
iput v3, p0, Lcom/a/f;->p:I |
|
|
|
iget-object v3, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v9, p0, Lcom/a/f;->e:[B |
|
|
|
add-int/lit8 v10, v5, 0x20 |
|
|
|
invoke-interface {v3, v9, v10}, Lcom/a/c$e;->a([BI)V |
|
|
|
move v3, v0 |
|
|
|
:cond_5 |
|
:goto_4 |
|
if-eqz v3, :cond_7 |
|
|
|
iget-short v9, p0, Lcom/a/f;->i:S |
|
|
|
iget-short v10, p0, Lcom/a/f;->j:S |
|
|
|
if-eq v9, v10, :cond_6 |
|
|
|
iget-boolean v9, p0, Lcom/a/f;->h:Z |
|
:try_end_6 |
|
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6 |
|
.catchall {:try_start_6 .. :try_end_6} :catchall_1 |
|
|
|
if-nez v9, :cond_5 |
|
|
|
:cond_6 |
|
move v3, v1 |
|
|
|
goto :goto_4 |
|
|
|
:catch_2 |
|
move-exception v4 |
|
|
|
move v4, v3 |
|
|
|
goto :goto_3 |
|
|
|
:cond_7 |
|
move v3, v4 |
|
|
|
move v4, v5 |
|
|
|
goto/16 :goto_2 |
|
|
|
:catch_3 |
|
move-exception v0 |
|
|
|
move-object v2, v3 |
|
|
|
:goto_5 |
|
:try_start_7 |
|
const-string v3, "VTPProxy" |
|
|
|
new-instance v4, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v5, "updateKernelMethod e" |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V |
|
:try_end_7 |
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1 |
|
|
|
:try_start_8 |
|
const-string v0, "VTPProxy" |
|
|
|
const-string v3, "updateKernelMethod end" |
|
|
|
invoke-static {v0, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
const/4 v0, -0x1 |
|
|
|
iput v0, p0, Lcom/a/f;->p:I |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-eqz v0, :cond_8 |
|
|
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
const/16 v3, 0x64 |
|
|
|
const/4 v4, 0x1 |
|
|
|
invoke-interface {v0, v3, v4}, Lcom/a/f$a;->onUpdateProgressListen(IZ)V |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
iget-object v0, p0, Lcom/a/f;->e:[B |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-static {v0, v3}, Lcom/a/d;->a([BB)I |
|
|
|
move-result v0 |
|
|
|
iget-object v3, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v3, v4, v0}, Lcom/a/c$e;->a([BI)V |
|
|
|
:cond_8 |
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_8 |
|
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4 |
|
|
|
:goto_6 |
|
move v0, v1 |
|
|
|
goto/16 :goto_0 |
|
|
|
:catch_4 |
|
move-exception v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_6 |
|
|
|
:catchall_0 |
|
move-exception v0 |
|
|
|
move-object v2, v3 |
|
|
|
:goto_7 |
|
:try_start_9 |
|
const-string v1, "VTPProxy" |
|
|
|
const-string v3, "updateKernelMethod end" |
|
|
|
invoke-static {v1, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-object v1, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
const/4 v1, -0x1 |
|
|
|
iput v1, p0, Lcom/a/f;->p:I |
|
|
|
iget-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
if-eqz v1, :cond_9 |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
const/16 v3, 0x64 |
|
|
|
const/4 v4, 0x1 |
|
|
|
invoke-interface {v1, v3, v4}, Lcom/a/f$a;->onUpdateProgressListen(IZ)V |
|
|
|
const/4 v1, 0x0 |
|
|
|
iput-boolean v1, p0, Lcom/a/f;->h:Z |
|
|
|
iget-object v1, p0, Lcom/a/f;->e:[B |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-static {v1, v3}, Lcom/a/d;->a([BB)I |
|
|
|
move-result v1 |
|
|
|
iget-object v3, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iget-object v4, p0, Lcom/a/f;->e:[B |
|
|
|
invoke-interface {v3, v4, v1}, Lcom/a/c$e;->a([BI)V |
|
|
|
:cond_9 |
|
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V |
|
:try_end_9 |
|
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_5 |
|
|
|
:goto_8 |
|
throw v0 |
|
|
|
:catch_5 |
|
move-exception v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_8 |
|
|
|
:catchall_1 |
|
move-exception v0 |
|
|
|
goto :goto_7 |
|
|
|
:catch_6 |
|
move-exception v0 |
|
|
|
goto/16 :goto_5 |
|
|
|
:cond_a |
|
move v4, v5 |
|
|
|
goto/16 :goto_2 |
|
.end method |
|
|
|
.method private n()V |
|
.locals 3 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x11 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public a(III)V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
int-to-short v0, p2 |
|
|
|
iput-short v0, p0, Lcom/a/f;->l:S |
|
|
|
int-to-short v0, p1 |
|
|
|
iput-short v0, p0, Lcom/a/f;->k:S |
|
|
|
int-to-byte v0, p3 |
|
|
|
iput-byte v0, p0, Lcom/a/f;->m:B |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x36 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public a(Landroid/content/Context;Lcom/a/c$e;)V |
|
.locals 0 |
|
|
|
iput-object p2, p0, Lcom/a/f;->b:Lcom/a/c$e; |
|
|
|
iput-object p1, p0, Lcom/a/f;->d:Landroid/content/Context; |
|
|
|
return-void |
|
.end method |
|
|
|
.method public a(Lcom/a/f$a;)V |
|
.locals 0 |
|
|
|
iput-object p1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
return-void |
|
.end method |
|
|
|
.method public a(Lcom/a/l;)V |
|
.locals 0 |
|
|
|
return-void |
|
.end method |
|
|
|
.method public a(Lcom/a/o;)V |
|
.locals 6 |
|
|
|
const/16 v1, 0x20 |
|
|
|
const/4 v5, 0x0 |
|
|
|
iget-byte v0, p1, Lcom/a/o;->c:B |
|
|
|
if-ne v0, v1, :cond_1 |
|
|
|
iget-byte v0, p1, Lcom/a/o;->g:B |
|
|
|
const/4 v1, 0x2 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
iget v0, p1, Lcom/a/o;->e:I |
|
|
|
add-int/lit8 v0, v0, -0xc |
|
|
|
new-array v0, v0, [B |
|
|
|
:try_start_0 |
|
iget-object v1, p1, Lcom/a/o;->b:[B |
|
|
|
const/16 v2, 0x20 |
|
|
|
const/4 v3, 0x0 |
|
|
|
array-length v4, v0 |
|
|
|
invoke-static {v1, v2, v0, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
invoke-interface {v1, v0, v5}, Lcom/a/f$a;->onVtpStreamListen([BI)V |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->r:Z |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
iput-boolean v5, p0, Lcom/a/f;->r:Z |
|
|
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
:catch_0 |
|
move-exception v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
goto :goto_0 |
|
|
|
:cond_1 |
|
iget-byte v0, p1, Lcom/a/o;->c:B |
|
|
|
const/16 v1, 0x22 |
|
|
|
if-ne v0, v1, :cond_3 |
|
|
|
const-string v0, "VTPProxy" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "cmd packet : " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {p1}, Lcom/a/o;->toString()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-byte v0, p1, Lcom/a/o;->g:B |
|
|
|
if-nez v0, :cond_2 |
|
|
|
iget v0, p1, Lcom/a/o;->e:I |
|
|
|
new-array v0, v0, [B |
|
|
|
iget-object v1, p1, Lcom/a/o;->b:[B |
|
|
|
const/16 v2, 0x14 |
|
|
|
array-length v3, v0 |
|
|
|
invoke-static {v1, v2, v0, v5, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
iget-object v1, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
iget-byte v2, p1, Lcom/a/o;->c:B |
|
|
|
iget-byte v3, p1, Lcom/a/o;->g:B |
|
|
|
invoke-interface {v1, v2, v3, v0}, Lcom/a/f$a;->onCommandReplyListen(II[B)V |
|
|
|
goto :goto_0 |
|
|
|
:cond_2 |
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
iget-byte v1, p1, Lcom/a/o;->c:B |
|
|
|
iget-byte v2, p1, Lcom/a/o;->g:B |
|
|
|
iget-object v3, p1, Lcom/a/o;->b:[B |
|
|
|
invoke-interface {v0, v1, v2, v3}, Lcom/a/f$a;->onCommandReplyListen(II[B)V |
|
|
|
goto :goto_0 |
|
|
|
:cond_3 |
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
const-string v0, "VTPProxy" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "cmd packet : " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {p1}, Lcom/a/o;->toString()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
iget-short v0, p1, Lcom/a/o;->f:S |
|
|
|
iput-short v0, p0, Lcom/a/f;->i:S |
|
|
|
iget-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
iget-byte v1, p1, Lcom/a/o;->c:B |
|
|
|
iget-byte v2, p1, Lcom/a/o;->g:B |
|
|
|
iget-object v3, p1, Lcom/a/o;->b:[B |
|
|
|
invoke-interface {v0, v1, v2, v3}, Lcom/a/f$a;->onCommandReplyListen(II[B)V |
|
|
|
iget-byte v0, p1, Lcom/a/o;->c:B |
|
|
|
const/16 v1, 0x10 |
|
|
|
if-ne v0, v1, :cond_4 |
|
|
|
iget-byte v0, p1, Lcom/a/o;->g:B |
|
|
|
if-nez v0, :cond_4 |
|
|
|
const/4 v0, 0x1 |
|
|
|
iput-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
invoke-direct {p0}, Lcom/a/f;->n()V |
|
|
|
:cond_4 |
|
iget-byte v0, p1, Lcom/a/o;->c:B |
|
|
|
const/16 v1, 0x11 |
|
|
|
if-eq v0, v1, :cond_5 |
|
|
|
iget-byte v0, p1, Lcom/a/o;->c:B |
|
|
|
const/16 v1, 0x12 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
:cond_5 |
|
iget-short v0, p1, Lcom/a/o;->f:S |
|
|
|
iput-short v0, p0, Lcom/a/f;->i:S |
|
|
|
goto/16 :goto_0 |
|
.end method |
|
|
|
.method public a(Ljava/io/File;I)V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
iput-object p1, p0, Lcom/a/f;->o:Ljava/io/File; |
|
|
|
iput p2, p0, Lcom/a/f;->p:I |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x12 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public b()V |
|
.locals 2 |
|
|
|
const-string v0, "VTPProxy" |
|
|
|
const-string v1, "onUSBReset" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/a/g$a;->a()V |
|
|
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/a/f;->s:Lcom/a/f$a; |
|
|
|
const/4 v0, 0x1 |
|
|
|
iput-boolean v0, p0, Lcom/a/f;->r:Z |
|
|
|
return-void |
|
.end method |
|
|
|
.method public c()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public d()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x70 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public e()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x21 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public f()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x24 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public g()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x22 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public h()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x30 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public i()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x72 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public j()V |
|
.locals 3 |
|
|
|
iget-boolean v0, p0, Lcom/a/f;->h:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
invoke-static {}, Lcom/a/g;->a()Lcom/a/g$a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/a/f$b; |
|
|
|
const/16 v2, 0x73 |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/a/f$b;-><init>(Lcom/a/f;I)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/a/g$a;->a(Ljava/lang/Runnable;)V |
|
|
|
:cond_0 |
|
return-void |
|
.end method
|
|
|