f.smali
.class public Lcom/live/share64/proto/b/f;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Serializable;
# static fields
.field public static volatile r:Lcom/live/share64/proto/b/f;
# instance fields
.field public a:I
.field public b:J
.field public c:J
.field public d:Ljava/lang/String;
.field public e:B
.field public f:[B
.field public g:[B
.field public h:I
.field public i:I
.field public j:I
.field public k:J
.field public l:Ljava/lang/String;
.field public m:I
.field public n:J
.field public o:Z
.field public p:[B
.field public transient q:Z
.field private transient s:Landroid/content/Context;
.field private transient t:Ljava/lang/Long;
# direct methods
.method private constructor <init>(Landroid/content/Context;)V
.registers 4
.line 94
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
.line 39
iput v0, p0, Lcom/live/share64/proto/b/f;->a:I
const/4 v1, -0x1
.line 46
iput-byte v1, p0, Lcom/live/share64/proto/b/f;->e:B
.line 50
iput v1, p0, Lcom/live/share64/proto/b/f;->i:I
.line 79
iput-boolean v0, p0, Lcom/live/share64/proto/b/f;->q:Z
.line 95
iput-object p1, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
.line 96
invoke-direct {p0}, Lcom/live/share64/proto/b/f;->d()V
return-void
.end method
.method public static a(Landroid/content/Context;)Lcom/live/share64/proto/b/f;
.registers 3
.line 84
sget-object v0, Lcom/live/share64/proto/b/f;->r:Lcom/live/share64/proto/b/f;
if-nez v0, :cond_1b
.line 85
const-class v0, Lcom/live/share64/proto/b/f;
monitor-enter v0
.line 86
:try_start_7
sget-object v1, Lcom/live/share64/proto/b/f;->r:Lcom/live/share64/proto/b/f;
if-nez v1, :cond_16
.line 87
new-instance v1, Lcom/live/share64/proto/b/f;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
invoke-direct {v1, p0}, Lcom/live/share64/proto/b/f;-><init>(Landroid/content/Context;)V
sput-object v1, Lcom/live/share64/proto/b/f;->r:Lcom/live/share64/proto/b/f;
.line 89
:cond_16
monitor-exit v0
goto :goto_1b
:catchall_18
move-exception p0
monitor-exit v0
:try_end_1a
.catchall {:try_start_7 .. :try_end_1a} :catchall_18
throw p0
.line 91
:cond_1b
:goto_1b
sget-object p0, Lcom/live/share64/proto/b/f;->r:Lcom/live/share64/proto/b/f;
return-object p0
.end method
.method private a(Ljava/lang/String;)V
.registers 3
.line 191
iget-object v0, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
invoke-static {v0, p1}, Llive/sg/bigo/sdk/network/j/a;->b(Landroid/content/Context;Ljava/lang/String;)Z
return-void
.end method
.method private static a(Ljava/util/Map;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 196
invoke-static {}, Lcom/live/share64/c/d;->c()Lcom/live/share64/c/e;
move-result-object v0
const/4 v1, 0x1
const-string v2, "050101009"
invoke-interface {v0, v1, v2, p0}, Lcom/live/share64/c/e;->a(ZLjava/lang/String;Ljava/util/Map;)V
return-void
.end method
.method private declared-synchronized d()V
.registers 10
monitor-enter p0
:try_start_1
const-string v0, "yysdk-cookie"
const-string v1, "SDKUserData.load"
.line 121
invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I
:try_end_8
.catchall {:try_start_1 .. :try_end_8} :catchall_1a6
const/4 v0, 0x0
const/4 v1, 0x0
const/4 v2, 0x1
.line 133
:try_start_b
new-instance v3, Ljava/io/File;
iget-object v4, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
invoke-static {v4}, Llive/sg/bigo/sdk/network/j/a;->a(Landroid/content/Context;)Ljava/io/File;
move-result-object v4
const-string v5, "yyuser.dat"
invoke-direct {v3, v4, v5}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 134
invoke-static {v3}, Lcom/live/share64/utils/f;->a(Ljava/io/File;)[B
move-result-object v3
:try_end_1c
.catch Ljava/lang/Exception; {:try_start_b .. :try_end_1c} :catch_121
.catchall {:try_start_b .. :try_end_1c} :catchall_11e
if-eqz v3, :cond_5e
.line 139
:try_start_1e
iget-object v4, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
invoke-static {v4, v3}, Lcom/live/share64/utils/l;->a(Landroid/content/Context;[B)[B
move-result-object v4
:try_end_24
.catch Ljava/lang/Exception; {:try_start_1e .. :try_end_24} :catch_59
.catchall {:try_start_1e .. :try_end_24} :catchall_11e
if-eqz v4, :cond_2c
.line 140
:try_start_26
array-length v5, v4
if-nez v5, :cond_2a
goto :goto_2c
:cond_2a
:goto_2a
const/4 v3, 0x1
goto :goto_60
:cond_2c
:goto_2c
const-string v5, "yyuser.dat"
.line 141
invoke-direct {p0, v5}, Lcom/live/share64/proto/b/f;->a(Ljava/lang/String;)V
const-string v5, "yysdk-svc"
.line 142
new-instance v6, Ljava/lang/StringBuilder;
const-string v7, "old file decrypt failed, raw is "
invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {v3}, Lcom/live/share64/utils/c;->a([B)Ljava/lang/String;
move-result-object v3
invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, ", null decrypt? "
invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-nez v4, :cond_49
const/4 v0, 0x1
:cond_49
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v5, v0}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;)I
:try_end_53
.catch Ljava/lang/Exception; {:try_start_26 .. :try_end_53} :catch_55
.catchall {:try_start_26 .. :try_end_53} :catchall_11e
const/4 v0, 0x1
goto :goto_2a
:catch_55
move-exception v0
move-object v5, v1
move-object v1, v4
goto :goto_5b
:catch_59
move-exception v0
move-object v5, v1
:goto_5b
const/4 v3, 0x1
goto/16 :goto_125
:cond_5e
move-object v4, v1
const/4 v3, 0x0
:goto_60
if-eqz v4, :cond_f7
.line 150
:try_start_62
array-length v5, v4
if-nez v5, :cond_67
goto/16 :goto_f7
.line 163
:cond_67
new-instance v0, Ljava/io/ByteArrayInputStream;
invoke-direct {v0, v4}, Ljava/io/ByteArrayInputStream;-><init>([B)V
.line 164
new-instance v5, Ljava/io/ObjectInputStream;
invoke-direct {v5, v0}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_71
.catch Ljava/lang/Exception; {:try_start_62 .. :try_end_71} :catch_f3
.catchall {:try_start_62 .. :try_end_71} :catchall_11e
.line 165
:try_start_71
invoke-virtual {v5}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/live/share64/proto/b/f;
const-string v6, "yysdk-cookie"
.line 1100
new-instance v7, Ljava/lang/StringBuilder;
const-string v8, "SDKUserData.copy:"
invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v8, v0, Lcom/live/share64/proto/b/f;->f:[B
if-nez v8, :cond_87
const-string v8, "null"
goto :goto_8e
:cond_87
iget-object v8, v0, Lcom/live/share64/proto/b/f;->f:[B
array-length v8, v8
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v8
:goto_8e
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
invoke-static {v6, v7}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 1101
iget-wide v6, v0, Lcom/live/share64/proto/b/f;->b:J
iput-wide v6, p0, Lcom/live/share64/proto/b/f;->b:J
.line 1102
iget-wide v6, v0, Lcom/live/share64/proto/b/f;->c:J
iput-wide v6, p0, Lcom/live/share64/proto/b/f;->c:J
.line 1103
iget-object v6, v0, Lcom/live/share64/proto/b/f;->d:Ljava/lang/String;
iput-object v6, p0, Lcom/live/share64/proto/b/f;->d:Ljava/lang/String;
.line 1104
iget-byte v6, v0, Lcom/live/share64/proto/b/f;->e:B
iput-byte v6, p0, Lcom/live/share64/proto/b/f;->e:B
.line 1105
iget-object v6, v0, Lcom/live/share64/proto/b/f;->f:[B
iput-object v6, p0, Lcom/live/share64/proto/b/f;->f:[B
.line 1106
iget-object v6, v0, Lcom/live/share64/proto/b/f;->g:[B
iput-object v6, p0, Lcom/live/share64/proto/b/f;->g:[B
.line 1107
iget v6, v0, Lcom/live/share64/proto/b/f;->h:I
iput v6, p0, Lcom/live/share64/proto/b/f;->h:I
.line 1108
iget v6, v0, Lcom/live/share64/proto/b/f;->m:I
iput v6, p0, Lcom/live/share64/proto/b/f;->m:I
.line 1109
iget-wide v6, v0, Lcom/live/share64/proto/b/f;->n:J
iput-wide v6, p0, Lcom/live/share64/proto/b/f;->n:J
.line 1110
iget v6, v0, Lcom/live/share64/proto/b/f;->i:I
iput v6, p0, Lcom/live/share64/proto/b/f;->i:I
.line 1111
iget v6, v0, Lcom/live/share64/proto/b/f;->j:I
iput v6, p0, Lcom/live/share64/proto/b/f;->j:I
.line 1112
iget-wide v6, v0, Lcom/live/share64/proto/b/f;->k:J
iput-wide v6, p0, Lcom/live/share64/proto/b/f;->k:J
.line 1113
iget-object v6, v0, Lcom/live/share64/proto/b/f;->l:Ljava/lang/String;
iput-object v6, p0, Lcom/live/share64/proto/b/f;->l:Ljava/lang/String;
.line 1114
iget-boolean v6, v0, Lcom/live/share64/proto/b/f;->o:Z
iput-boolean v6, p0, Lcom/live/share64/proto/b/f;->o:Z
.line 1115
iget-object v6, v0, Lcom/live/share64/proto/b/f;->p:[B
iput-object v6, p0, Lcom/live/share64/proto/b/f;->p:[B
if-eqz v0, :cond_e2
.line 168
iget v0, v0, Lcom/live/share64/proto/b/f;->a:I
if-eq v0, v2, :cond_e2
if-nez v0, :cond_e0
.line 1204
iput-object v1, p0, Lcom/live/share64/proto/b/f;->f:[B
.line 1205
iput-object v1, p0, Lcom/live/share64/proto/b/f;->g:[B
.line 1207
:cond_e0
iput v2, p0, Lcom/live/share64/proto/b/f;->a:I
:try_end_e2
.catch Ljava/lang/Exception; {:try_start_71 .. :try_end_e2} :catch_f1
.catchall {:try_start_71 .. :try_end_e2} :catchall_195
.line 182
:cond_e2
:try_start_e2
invoke-virtual {v5}, Ljava/io/ObjectInputStream;->close()V
:try_end_e5
.catch Ljava/io/IOException; {:try_start_e2 .. :try_end_e5} :catch_e7
.catchall {:try_start_e2 .. :try_end_e5} :catchall_1a6
.line 185
monitor-exit p0
return-void
:catch_e7
move-exception v0
:try_start_e8
const-string v1, "yysdk-svc"
const-string v2, "close SdkUserData input stream failed"
.line 184
invoke-static {v1, v2, v0}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_ef
.catchall {:try_start_e8 .. :try_end_ef} :catchall_1a6
.line 185
monitor-exit p0
return-void
:catch_f1
move-exception v0
goto :goto_f5
:catch_f3
move-exception v0
move-object v5, v1
:goto_f5
move-object v1, v4
goto :goto_125
:cond_f7
:goto_f7
if-eqz v0, :cond_115
.line 153
:try_start_f9
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v2, "ver"
const-string v5, "1"
.line 154
invoke-interface {v0, v2, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "firstInstallTime"
.line 155
iget-object v5, p0, Lcom/live/share64/proto/b/f;->t:Ljava/lang/Long;
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v5
invoke-interface {v0, v2, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 156
invoke-static {v0}, Lcom/live/share64/proto/b/f;->a(Ljava/util/Map;)V
:try_end_113
.catch Ljava/lang/Exception; {:try_start_f9 .. :try_end_113} :catch_f3
.catchall {:try_start_f9 .. :try_end_113} :catchall_11e
.line 157
monitor-exit p0
return-void
:cond_115
:try_start_115
const-string v0, "yysdk-svc"
const-string v2, "SdkUserData: no data file exists"
.line 158
invoke-static {v0, v2}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;)I
:try_end_11c
.catch Ljava/lang/Exception; {:try_start_115 .. :try_end_11c} :catch_f3
.catchall {:try_start_115 .. :try_end_11c} :catchall_11e
.line 160
monitor-exit p0
return-void
:catchall_11e
move-exception v0
goto/16 :goto_197
:catch_121
move-exception v2
move-object v5, v1
move-object v0, v2
const/4 v3, 0x0
:goto_125
:try_start_125
const-string v2, "yysdk-svc"
.line 171
new-instance v4, Ljava/lang/StringBuilder;
const-string v6, "SdkUserData load failed step: "
invoke-direct {v4, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v6, ", decryptedData is "
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-nez v1, :cond_13b
const-string v6, "null"
goto :goto_13f
:cond_13b
invoke-static {v1}, Lcom/live/share64/utils/c;->a([B)Ljava/lang/String;
move-result-object v6
:goto_13f
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v6, ", firstInstallTime: "
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v6, p0, Lcom/live/share64/proto/b/f;->t:Ljava/lang/Long;
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v2, v4, v0}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const-string v0, "yyuser.dat"
.line 172
invoke-direct {p0, v0}, Lcom/live/share64/proto/b/f;->a(Ljava/lang/String;)V
.line 174
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v2, "ver"
.line 175
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "firstInstallTime"
.line 176
iget-object v3, p0, Lcom/live/share64/proto/b/f;->t:Ljava/lang/Long;
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "data"
if-nez v1, :cond_178
const-string v1, "null"
goto :goto_17c
.line 177
:cond_178
invoke-static {v1}, Lcom/live/share64/utils/c;->a([B)Ljava/lang/String;
move-result-object v1
:goto_17c
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 178
invoke-static {v0}, Lcom/live/share64/proto/b/f;->a(Ljava/util/Map;)V
:try_end_182
.catchall {:try_start_125 .. :try_end_182} :catchall_195
if-eqz v5, :cond_193
.line 182
:try_start_184
invoke-virtual {v5}, Ljava/io/ObjectInputStream;->close()V
:try_end_187
.catch Ljava/io/IOException; {:try_start_184 .. :try_end_187} :catch_189
.catchall {:try_start_184 .. :try_end_187} :catchall_1a6
.line 185
monitor-exit p0
return-void
:catch_189
move-exception v0
:try_start_18a
const-string v1, "yysdk-svc"
const-string v2, "close SdkUserData input stream failed"
.line 184
invoke-static {v1, v2, v0}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_191
.catchall {:try_start_18a .. :try_end_191} :catchall_1a6
.line 185
monitor-exit p0
return-void
.line 188
:cond_193
monitor-exit p0
return-void
:catchall_195
move-exception v0
move-object v1, v5
:goto_197
if-eqz v1, :cond_1a5
.line 182
:try_start_199
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->close()V
:try_end_19c
.catch Ljava/io/IOException; {:try_start_199 .. :try_end_19c} :catch_19d
.catchall {:try_start_199 .. :try_end_19c} :catchall_1a6
goto :goto_1a5
:catch_19d
move-exception v1
:try_start_19e
const-string v2, "yysdk-svc"
const-string v3, "close SdkUserData input stream failed"
.line 184
invoke-static {v2, v3, v1}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 185
:cond_1a5
:goto_1a5
throw v0
:try_end_1a6
.catchall {:try_start_19e .. :try_end_1a6} :catchall_1a6
:catchall_1a6
move-exception v0
monitor-exit p0
goto :goto_1aa
:goto_1a9
throw v0
:goto_1aa
goto :goto_1a9
.end method
# virtual methods
.method public final declared-synchronized a()V
.registers 7
monitor-enter p0
const/4 v0, 0x0
.line 213
:try_start_2
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
.line 214
new-instance v2, Ljava/io/ObjectOutputStream;
invoke-direct {v2, v1}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_c
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_c} :catch_6d
.catchall {:try_start_2 .. :try_end_c} :catchall_69
.line 215
:try_start_c
invoke-virtual {v2, p0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
.line 216
invoke-virtual {v2}, Ljava/io/ObjectOutputStream;->flush()V
.line 217
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
.line 219
invoke-static {v0}, Lcom/live/share64/utils/l;->a([B)[B
move-result-object v0
if-eqz v0, :cond_51
.line 220
array-length v1, v0
if-lez v1, :cond_51
.line 221
iget-object v1, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
invoke-static {v0}, Lcom/live/share64/utils/c;->a([B)Ljava/lang/String;
move-result-object v3
const-string v4, "live_service_pref_data"
const/4 v5, 0x0
.line 2012
invoke-virtual {v1, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v1
.line 2013
invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v1
const-string v4, "live_bak_sdk_user_data"
invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v1
invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->apply()V
.line 222
new-instance v1, Ljava/io/File;
iget-object v3, p0, Lcom/live/share64/proto/b/f;->s:Landroid/content/Context;
invoke-static {v3}, Llive/sg/bigo/sdk/network/j/a;->a(Landroid/content/Context;)Ljava/io/File;
move-result-object v3
const-string v4, "yyuser.dat"
invoke-direct {v1, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 223
invoke-static {v1, v0}, Lcom/live/share64/utils/f;->a(Ljava/io/File;[B)V
const-str