CrashApi.smali
.class public Lcom/uc/crashsdk/export/CrashApi;
.super Ljava/lang/Object;
.source "ProGuard"
# static fields
.field private static a:Lcom/uc/crashsdk/export/CrashApi;
.field private static c:Z
.field private static d:Z
# instance fields
.field private b:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 23
const/4 v0, 0x0
sput-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
.line 855
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->c:Z
.line 876
const/4 v0, 0x0
sput-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->d:Z
return-void
.end method
.method private constructor <init>(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;ZZZ)V
.registers 11
.prologue
const/4 v2, 0x1
.line 673
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 668
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/uc/crashsdk/export/CrashApi;->b:Z
.line 674
invoke-static {p1}, Lcom/uc/crashsdk/export/CrashApi;->a(Landroid/content/Context;)Landroid/content/Context;
move-result-object v1
.line 675
invoke-static {v1}, Lcom/uc/crashsdk/export/CrashApi;->b(Landroid/content/Context;)V
.line 677
sput-boolean p6, Lcom/uc/crashsdk/b;->g:Z
.line 678
sput-boolean p7, Lcom/uc/crashsdk/b;->h:Z
.line 680
invoke-static {}, Lcom/uc/crashsdk/b;->I()Z
move-result v0
if-eqz v0, :cond_35
.line 681
invoke-static {v1}, Lcom/uc/crashsdk/export/CrashApi;->b(Landroid/content/Context;)V
invoke-static {v1, p2, p3, p4}, Lcom/uc/crashsdk/export/CrashApi;->a(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;)V
if-eqz p5, :cond_23
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->a()V
:cond_23
sget-boolean v0, Lcom/uc/crashsdk/b;->g:Z
if-eqz v0, :cond_34
const-string v0, "libcrashsdk.so"
invoke-static {v0}, Lcom/uc/crashsdk/e;->d(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_34
sput-boolean v2, Lcom/uc/crashsdk/b;->f:Z
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->b()V
.line 743
:cond_34
:goto_34
return-void
.line 687
:cond_35
if-eqz p2, :cond_39
if-nez p3, :cond_46
.line 688
:cond_39
const-string v0, "crashsdk"
const-string v1, "VersionInfo and CustomInfo can not be null!"
invoke-static {v0, v1}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 689
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 691
:cond_46
invoke-static {p2}, Lcom/uc/crashsdk/g;->a(Lcom/uc/crashsdk/export/CustomInfo;)V
.line 694
:try_start_49
invoke-static {}, Lcom/uc/crashsdk/e;->z()Ljava/lang/String;
move-result-object v0
.line 695
const/4 v2, 0x1
invoke-static {v0, v2}, Lcom/uc/crashsdk/e;->a(Ljava/lang/String;Z)V
.line 696
invoke-static {v1, p2, p3, p4}, Lcom/uc/crashsdk/export/CrashApi;->a(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;)V
:try_end_54
.catch Ljava/lang/Throwable; {:try_start_49 .. :try_end_54} :catch_97
.line 704
:goto_54
if-eqz p5, :cond_59
.line 705
:try_start_56
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->a()V
:try_end_59
.catch Ljava/lang/Throwable; {:try_start_56 .. :try_end_59} :catch_9c
.line 714
:cond_59
:goto_59
:try_start_59
invoke-static {}, Lcom/uc/crashsdk/b;->J()V
invoke-static {}, Lcom/uc/crashsdk/a/h;->a()V
invoke-static {}, Lcom/uc/crashsdk/a/d;->a()V
invoke-static {}, Lcom/uc/crashsdk/a/g;->j()V
:try_end_65
.catch Ljava/lang/Throwable; {:try_start_59 .. :try_end_65} :catch_a1
.line 720
:goto_65
:try_start_65
invoke-static {v1}, Lcom/uc/crashsdk/b;->a(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_72
.line 721
const-string v0, "crashsdk"
const-string v1, "registerLifecycleCallbacks failed!"
invoke-static {v0, v1}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
:try_end_72
.catch Ljava/lang/Throwable; {:try_start_65 .. :try_end_72} :catch_a6
.line 728
:cond_72
:goto_72
:try_start_72
invoke-static {}, Lcom/uc/crashsdk/a;->n()V
:try_end_75
.catch Ljava/lang/Throwable; {:try_start_72 .. :try_end_75} :catch_b0
:try_start_75
invoke-static {}, Lcom/uc/crashsdk/e;->A()V
:try_end_78
.catch Ljava/lang/Throwable; {:try_start_75 .. :try_end_78} :catch_ab
:goto_78
:try_start_78
invoke-static {}, Lcom/uc/crashsdk/e;->B()V
:try_end_7b
.catch Ljava/lang/Throwable; {:try_start_78 .. :try_end_7b} :catch_b0
.line 736
:goto_7b
:try_start_7b
invoke-static {}, Lcom/uc/crashsdk/g;->r()Z
move-result v0
if-eqz v0, :cond_34
.line 737
invoke-static {}, Lcom/uc/crashsdk/b;->C()Z
move-result v0
if-eqz v0, :cond_34
.line 738
iget-boolean v0, p0, Lcom/uc/crashsdk/export/CrashApi;->b:Z
if-nez v0, :cond_34
invoke-static {}, Lcom/uc/crashsdk/e;->G()V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/uc/crashsdk/export/CrashApi;->b:Z
:try_end_91
.catch Ljava/lang/Throwable; {:try_start_7b .. :try_end_91} :catch_92
goto :goto_34
.line 740
:catch_92
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/a/g;->b(Ljava/lang/Throwable;)V
goto :goto_34
.line 697
:catch_97
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/Throwable;)V
goto :goto_54
.line 707
:catch_9c
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/Throwable;)V
goto :goto_59
.line 715
:catch_a1
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/a/g;->a(Ljava/lang/Throwable;)V
goto :goto_65
.line 723
:catch_a6
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/a/g;->a(Ljava/lang/Throwable;)V
goto :goto_72
.line 728
:catch_ab
move-exception v0
:try_start_ac
invoke-static {v0}, Lcom/uc/crashsdk/a/g;->b(Ljava/lang/Throwable;)V
:try_end_af
.catch Ljava/lang/Throwable; {:try_start_ac .. :try_end_af} :catch_b0
goto :goto_78
.line 729
:catch_b0
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/a/g;->a(Ljava/lang/Throwable;)V
goto :goto_7b
.end method
.method private static a(Landroid/content/Context;)Landroid/content/Context;
.registers 3
.prologue
.line 858
if-nez p0, :cond_f
.line 859
const-string v0, "crashsdk"
const-string v1, "context can not be null!"
invoke-static {v0, v1}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 860
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 863
:cond_f
sget-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->c:Z
if-eqz v0, :cond_30
instance-of v0, p0, Landroid/app/Application;
if-nez v0, :cond_30
.line 864
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
.line 865
if-eqz p0, :cond_21
instance-of v0, p0, Landroid/app/Application;
if-nez v0, :cond_30
.line 868
:cond_21
const-string v0, "crashsdk"
const-string v1, "Can not get Application context from given context!"
invoke-static {v0, v1}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 869
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Can not get Application context from given context!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 873
:cond_30
return-object p0
.end method
.method private static a()V
.registers 1
.prologue
.line 781
sget-boolean v0, Lcom/uc/crashsdk/b;->a:Z
if-eqz v0, :cond_a
.line 782
const-string v0, "Has enabled java log!"
invoke-static {v0}, Lcom/uc/crashsdk/a/a;->b(Ljava/lang/String;)V
.line 789
:goto_9
return-void
.line 786
:cond_a
invoke-static {}, Lcom/uc/crashsdk/e;->r()V
.line 787
invoke-static {}, Lcom/uc/crashsdk/e;->n()V
.line 788
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/b;->a:Z
goto :goto_9
.end method
.method private static a(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;)V
.registers 5
.prologue
.line 845
invoke-static {p3}, Lcom/uc/crashsdk/d;->a(Lcom/uc/crashsdk/export/ICrashClient;)V
.line 846
invoke-static {p1, p2}, Lcom/uc/crashsdk/g;->a(Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;)V
.line 848
invoke-static {}, Lcom/uc/crashsdk/b;->I()Z
move-result v0
if-nez v0, :cond_15
.line 849
invoke-static {}, Lcom/uc/crashsdk/e;->o()V
.line 850
invoke-static {p0}, Lcom/uc/crashsdk/e;->a(Landroid/content/Context;)V
.line 851
invoke-static {p0}, Lcom/uc/crashsdk/e;->b(Landroid/content/Context;)V
.line 853
:cond_15
return-void
.end method
.method private static a(Ljava/lang/Throwable;)V
.registers 4
.prologue
.line 904
new-instance v0, Lcom/uc/crashsdk/e;
invoke-direct {v0}, Lcom/uc/crashsdk/e;-><init>()V
.line 905
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v0, v1, p0, v2}, Lcom/uc/crashsdk/e;->a(Ljava/lang/Thread;Ljava/lang/Throwable;Z)V
.line 906
return-void
.end method
.method private static a(Ljava/lang/String;)Z
.registers 4
.prologue
.line 916
invoke-static {}, Lcom/uc/crashsdk/b;->I()Z
move-result v0
if-eqz v0, :cond_22
.line 917
const-string v0, "crashsdk"
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Can not call \'"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "\' in isolated process!"
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}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 919
const/4 v0, 0x1
.line 921
:goto_21
return v0
:cond_22
const/4 v0, 0x0
goto :goto_21
.end method
.method private static b()V
.registers 2
.prologue
.line 799
sget-object v1, Lcom/uc/crashsdk/b;->e:Ljava/lang/Object;
monitor-enter v1
.line 800
:try_start_3
sget-boolean v0, Lcom/uc/crashsdk/b;->g:Z
if-eqz v0, :cond_b
sget-boolean v0, Lcom/uc/crashsdk/b;->f:Z
if-nez v0, :cond_d
.line 801
:cond_b
monitor-exit v1
.line 819
:goto_c
return-void
.line 804
:cond_d
sget-boolean v0, Lcom/uc/crashsdk/b;->b:Z
if-eqz v0, :cond_1b
.line 805
const-string v0, "Has enabled native log!"
invoke-static {v0}, Lcom/uc/crashsdk/a/a;->b(Ljava/lang/String;)V
.line 806
monitor-exit v1
goto :goto_c
.line 819
:catchall_18
move-exception v0
monitor-exit v1
:try_end_1a
.catchall {:try_start_3 .. :try_end_1a} :catchall_18
throw v0
.line 809
:cond_1b
:try_start_1b
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->c()V
.line 812
invoke-static {}, Lcom/uc/crashsdk/e;->D()V
.line 814
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/b;->b:Z
.line 817
const/4 v0, 0x6
invoke-static {v0}, Lcom/uc/crashsdk/JNIBridge;->cmd(I)J
.line 818
invoke-static {}, Lcom/uc/crashsdk/g;->d()V
.line 819
monitor-exit v1
:try_end_2c
.catchall {:try_start_1b .. :try_end_2c} :catchall_18
goto :goto_c
.end method
.method private static b(Landroid/content/Context;)V
.registers 2
.prologue
.line 880
:try_start_0
sget-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->d:Z
if-nez v0, :cond_10
.line 881
invoke-static {p0}, Lcom/uc/crashsdk/a/g;->a(Landroid/content/Context;)V
.line 882
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/uc/crashsdk/a;->a:Ljava/lang/String;
.line 884
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->d:Z
:try_end_10
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_10} :catch_11
.line 889
:cond_10
:goto_10
return-void
.line 886
:catch_11
move-exception v0
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/Throwable;)V
goto :goto_10
.end method
.method private static c()V
.registers 1
.prologue
.line 892
sget-boolean v0, Lcom/uc/crashsdk/b;->d:Z
if-eqz v0, :cond_5
.line 901
:goto_4
return-void
.line 896
:cond_5
invoke-static {}, Lcom/uc/crashsdk/g;->b()V
.line 897
const/4 v0, 0x5
invoke-static {v0}, Lcom/uc/crashsdk/JNIBridge;->cmd(I)J
.line 898
invoke-static {}, Lcom/uc/crashsdk/g;->c()V
.line 900
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/b;->d:Z
goto :goto_4
.end method
.method public static declared-synchronized createInstance(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;ZZZ)Lcom/uc/crashsdk/export/CrashApi;
.registers 16
.prologue
.line 29
const-class v8, Lcom/uc/crashsdk/export/CrashApi;
monitor-enter v8
:try_start_3
sget-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
if-nez v0, :cond_15
.line 30
new-instance v0, Lcom/uc/crashsdk/export/CrashApi;
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v4, p3
move v5, p4
move v6, p5
move v7, p6
invoke-direct/range {v0 .. v7}, Lcom/uc/crashsdk/export/CrashApi;-><init>(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;ZZZ)V
sput-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
.line 33
:cond_15
sget-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
:try_end_17
.catchall {:try_start_3 .. :try_end_17} :catchall_19
monitor-exit v8
return-object v0
.line 29
:catchall_19
move-exception v0
monitor-exit v8
throw v0
.end method
.method public static createInstanceEx(Landroid/content/Context;Ljava/lang/String;Z)Lcom/uc/crashsdk/export/CrashApi;
.registers 4
.prologue
.line 38
const/4 v0, 0x0
invoke-static {p0, p1, p2, v0}, Lcom/uc/crashsdk/export/CrashApi;->createInstanceEx(Landroid/content/Context;Ljava/lang/String;ZLandroid/os/Bundle;)Lcom/uc/crashsdk/export/CrashApi;
move-result-object v0
return-object v0
.end method
.method public static createInstanceEx(Landroid/content/Context;Ljava/lang/String;ZLandroid/os/Bundle;)Lcom/uc/crashsdk/export/CrashApi;
.registers 5
.prologue
.line 44
const/4 v0, 0x0
invoke-static {p0, p1, p2, p3, v0}, Lcom/uc/crashsdk/export/CrashApi;->createInstanceEx(Landroid/content/Context;Ljava/lang/String;ZLandroid/os/Bundle;Lcom/uc/crashsdk/export/ICrashClient;)Lcom/uc/crashsdk/export/CrashApi;
move-result-object v0
return-object v0
.end method
.method public static createInstanceEx(Landroid/content/Context;Ljava/lang/String;ZLandroid/os/Bundle;Lcom/uc/crashsdk/export/ICrashClient;)Lcom/uc/crashsdk/export/CrashApi;
.registers 13
.prologue
const/4 v7, 0x1
.line 49
sget-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
if-eqz v0, :cond_8
.line 50
sget-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
.line 96
:cond_7
:goto_7
return-object v0
.line 53
:cond_8
if-nez p3, :cond_f
.line 54
new-instance p3, Landroid/os/Bundle;
invoke-direct {p3}, Landroid/os/Bundle;-><init>()V
.line 57
:cond_f
const-string v0, "useApplicationContext"
invoke-virtual {p3, v0, v7}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
sput-boolean v0, Lcom/uc/crashsdk/export/CrashApi;->c:Z
.line 59
invoke-static {p0}, Lcom/uc/crashsdk/export/CrashApi;->a(Landroid/content/Context;)Landroid/content/Context;
move-result-object v0
.line 60
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->b(Landroid/content/Context;)V
.line 63
new-instance v1, Lcom/uc/crashsdk/export/CustomInfo;
invoke-direct {v1, p1}, Lcom/uc/crashsdk/export/CustomInfo;-><init>(Ljava/lang/String;)V
.line 64
iput-boolean v7, v1, Lcom/uc/crashsdk/export/CustomInfo;->mEnableStatReport:Z
.line 65
iput-boolean v7, v1, Lcom/uc/crashsdk/export/CustomInfo;->mZipLog:Z
.line 66
iput-boolean p2, v1, Lcom/uc/crashsdk/export/CustomInfo;->mPrintStackInfos:Z
.line 69
invoke-static {v1, p3}, Lcom/uc/crashsdk/g;->a(Lcom/uc/crashsdk/export/CustomInfo;Landroid/os/Bundle;)Lcom/uc/crashsdk/export/CustomInfo;
move-result-object v1
.line 70
invoke-static {p3}, Lcom/uc/crashsdk/g;->a(Landroid/os/Bundle;)Lcom/uc/crashsdk/export/VersionInfo;
move-result-object v2
.line 73
const-string v3, "enableJavaLog"
invoke-virtual {p3, v3, v7}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v4
.line 74
const-string v3, "enableNativeLog"
invoke-virtual {p3, v3, v7}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v5
.line 75
const-string v3, "enableUnexpLog"
invoke-static {}, Lcom/uc/crashsdk/b;->C()Z
move-result v6
invoke-virtual {p3, v3, v6}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v6
.line 76
const-string v3, "enableANRLog"
invoke-virtual {p3, v3, v7}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v7
move-object v3, p4
.line 77
invoke-static/range {v0 .. v6}, Lcom/uc/crashsdk/export/CrashApi;->createInstance(Landroid/content/Context;Lcom/uc/crashsdk/export/CustomInfo;Lcom/uc/crashsdk/export/VersionInfo;Lcom/uc/crashsdk/export/ICrashClient;ZZZ)Lcom/uc/crashsdk/export/CrashApi;
move-result-object v0
.line 79
invoke-static {v7}, Lcom/uc/crashsdk/b;->a(Z)V
.line 82
if-nez v5, :cond_59
if-eqz v6, :cond_64
.line 83
:cond_59
const-string v1, "libcrashsdk.so"
invoke-static {v1}, Lcom/uc/crashsdk/e;->d(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_78
.line 84
invoke-virtual {v0}, Lcom/uc/crashsdk/export/CrashApi;->crashSoLoaded()V
.line 91
:cond_64
:goto_64
const-string v1, "uploadLogDelaySeconds"
const/16 v2, 0xf
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v1
.line 92
if-ltz v1, :cond_7
invoke-static {}, Lcom/uc/crashsdk/b;->C()Z
move-result v2
if-eqz v2, :cond_7
.line 93
invoke-static {v1}, Lcom/uc/crashsdk/e;->b(I)V
goto :goto_7
.line 86
:cond_78
const-string v1, "crashsdk"
const-string v2, "load libcrashsdk.so failed!"
invoke-static {v1, v2}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_64
.end method
.method public static getInstance()Lcom/uc/crashsdk/export/CrashApi;
.registers 1
.prologue
.line 155
sget-object v0, Lcom/uc/crashsdk/export/CrashApi;->a:Lcom/uc/crashsdk/export/CrashApi;
return-object v0
.end method
# virtual methods
.method public addCachedInfo(Ljava/lang/String;Ljava/lang/String;)I
.registers 4
.prologue
.line 524
if-eqz p1, :cond_4
if-nez p2, :cond_a
.line 525
:cond_4
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 527
:cond_a
invoke-static {p1, p2}, Lcom/uc/crashsdk/a;->b(Ljava/lang/String;Ljava/lang/String;)I
move-result v0
return v0
.end method
.method public addDumpFile(Lcom/uc/crashsdk/export/DumpFileInfo;)I
.registers 8
.prologue
.line 581
if-nez p1, :cond_8
.line 582
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 584
:cond_8
iget-object v0, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mCategory:Ljava/lang/String;
if-eqz v0, :cond_10
iget-object v0, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mFileTobeDump:Ljava/lang/String;
if-nez v0, :cond_16
.line 585
:cond_10
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 587
:cond_16
iget v0, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mLogType:I
const v1, 0x100111
and-int/2addr v0, v1
if-nez v0, :cond_20
.line 588
const/4 v0, 0x0
.line 590
:goto_1f
return v0
:cond_20
iget-object v0, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mCategory:Ljava/lang/String;
iget-object v1, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mFileTobeDump:Ljava/lang/String;
iget-boolean v2, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mIsEncrypted:Z
iget-boolean v3, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mWriteCategory:Z
iget v4, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mLogType:I
iget-boolean v5, p1, Lcom/uc/crashsdk/export/DumpFileInfo;->mDeleteAfterDump:Z
invoke-static/range {v0 .. v5}, Lcom/uc/crashsdk/a;->a(Ljava/lang/String;Ljava/lang/String;ZZIZ)I
move-result v0
goto :goto_1f
.end method
.method public addDumpFile(Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)I
.registers 8
.prologue
.line 597
new-instance v0, Lcom/uc/crashsdk/export/DumpFileInfo;
invoke-direct {v0, p1, p2, p3}, Lcom/uc/crashsdk/export/DumpFileInfo;-><init>(Ljava/lang/String;Ljava/lang/String;I)V
.line 598
if-eqz p4, :cond_25
.line 599
const-string v1, "mIsEncrypted"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mIsEncrypted:Z
invoke-virtual {p4, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mIsEncrypted:Z
.line 600
const-string v1, "mWriteCategory"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mWriteCategory:Z
invoke-virtual {p4, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mWriteCategory:Z
.line 601
const-string v1, "mDeleteAfterDump"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mDeleteAfterDump:Z
invoke-virtual {p4, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/DumpFileInfo;->mDeleteAfterDump:Z
.line 603
:cond_25
invoke-virtual {p0, v0}, Lcom/uc/crashsdk/export/CrashApi;->addDumpFile(Lcom/uc/crashsdk/export/DumpFileInfo;)I
move-result v0
return v0
.end method
.method public addHeaderInfo(Ljava/lang/String;Ljava/lang/String;)V
.registers 4
.prologue
.line 474
if-nez p1, :cond_8
.line 475
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 477
:cond_8
invoke-static {p1, p2}, Lcom/uc/crashsdk/a;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 478
return-void
.end method
.method public addStatInfo(Ljava/lang/String;Ljava/lang/String;)Z
.registers 7
.prologue
const/16 v3, 0x200
const/4 v0, 0x0
.line 254
const-string v1, "addStatInfo"
invoke-static {v1}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_c
.line 267
:goto_b
return v0
.line 258
:cond_c
invoke-static {p1}, Lcom/uc/crashsdk/a/g;->a(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_18
.line 259
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 261
:cond_18
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
const/16 v2, 0x18
if-le v1, v2, :cond_28
.line 262
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "key is too long!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 264
:cond_28
if-eqz p2, :cond_34
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result v1
if-le v1, v3, :cond_34
.line 265
invoke-virtual {p2, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p2
.line 267
:cond_34
invoke-static {p1, p2}, Lcom/uc/crashsdk/a/h;->a(Ljava/lang/String;Ljava/lang/String;)Z
move-result v0
goto :goto_b
.end method
.method public crashSoLoaded()V
.registers 3
.prologue
const/4 v1, 0x1
.line 162
const-string v0, "crashSoLoaded"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 174
:goto_9
return-void
.line 166
:cond_a
sput-boolean v1, Lcom/uc/crashsdk/b;->f:Z
.line 169
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->b()V
.line 170
sget-object v1, Lcom/uc/crashsdk/b;->e:Ljava/lang/Object;
monitor-enter v1
:try_start_12
sget-boolean v0, Lcom/uc/crashsdk/b;->h:Z
if-eqz v0, :cond_1a
sget-boolean v0, Lcom/uc/crashsdk/b;->f:Z
if-nez v0, :cond_22
:cond_1a
monitor-exit v1
:try_end_1b
.catchall {:try_start_12 .. :try_end_1b} :catchall_38
.line 172
:goto_1b
invoke-static {}, Lcom/uc/crashsdk/a;->n()V
.line 173
invoke-static {}, Lcom/uc/crashsdk/e;->l()V
goto :goto_9
.line 170
:cond_22
:try_start_22
sget-boolean v0, Lcom/uc/crashsdk/b;->c:Z
if-nez v0, :cond_36
sget-boolean v0, Lcom/uc/crashsdk/b;->d:Z
if-nez v0, :cond_30
invoke-static {}, Lcom/uc/crashsdk/export/CrashApi;->c()V
invoke-static {}, Lcom/uc/crashsdk/g;->d()V
:cond_30
invoke-static {}, Lcom/uc/crashsdk/e;->w()V
const/4 v0, 0x1
sput-boolean v0, Lcom/uc/crashsdk/b;->c:Z
:cond_36
monitor-exit v1
goto :goto_1b
:catchall_38
move-exception v0
monitor-exit v1
:try_end_3a
.catchall {:try_start_22 .. :try_end_3a} :catchall_38
throw v0
.end method
.method public createCachedInfo(Ljava/lang/String;II)I
.registers 6
.prologue
.line 497
if-nez p1, :cond_8
.line 498
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 501
:cond_8
if-gtz p2, :cond_12
.line 502
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "capacity must > 0!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 505
:cond_12
const v0, 0x100111
and-int/2addr v0, p3
if-nez v0, :cond_1a
.line 506
const/4 v0, 0x0
.line 509
:goto_19
return v0
:cond_1a
invoke-static {p1, p2, p3}, Lcom/uc/crashsdk/a;->a(Ljava/lang/String;II)I
move-result v0
goto :goto_19
.end method
.method public disableLog(I)V
.registers 4
.prologue
.line 210
sget-object v1, Lcom/uc/crashsdk/b;->e:Ljava/lang/Object;
monitor-enter v1
.line 211
:try_start_3
invoke-static {p1}, Lcom/uc/crashsdk/b;->b(I)V
.line 213
invoke-static {p1}, Lcom/uc/crashsdk/export/LogType;->isForJava(I)Z
move-result v0
if-eqz v0, :cond_16
.line 214
sget-boolean v0, Lcom/uc/crashsdk/b;->a:Z
if-eqz v0, :cond_16
.line 215
invoke-static {}, Lcom/uc/crashsdk/e;->s()V
.line 216
const/4 v0, 0x0
sput-boolean v0, Lcom/uc/crashsdk/b;->a:Z
.line 220
:cond_16
invoke-static {p1}, Lcom/uc/crashsdk/export/LogType;->isForNative(I)Z
move-result v0
if-eqz v0, :cond_28
.line 221
sget-boolean v0, Lcom/uc/crashsdk/b;->b:Z
if-eqz v0, :cond_47
.line 222
const/16 v0, 0x9
invoke-static {v0}, Lcom/uc/crashsdk/JNIBridge;->cmd(I)J
.line 223
const/4 v0, 0x0
sput-boolean v0, Lcom/uc/crashsdk/b;->b:Z
.line 229
:cond_28
:goto_28
invoke-static {p1}, Lcom/uc/crashsdk/export/LogType;->isForANR(I)Z
move-result v0
if-eqz v0, :cond_32
.line 230
const/4 v0, 0x0
invoke-static {v0}, Lcom/uc/crashsdk/b;->a(Z)V
.line 233
:cond_32
invoke-static {p1}, Lcom/uc/crashsdk/export/LogType;->isForUnexp(I)Z
move-result v0
if-eqz v0, :cond_45
.line 234
sget-boolean v0, Lcom/uc/crashsdk/b;->c:Z
if-eqz v0, :cond_4e
.line 235
invoke-static {}, Lcom/uc/crashsdk/e;->y()Z
move-result v0
if-eqz v0, :cond_45
.line 236
const/4 v0, 0x0
sput-boolean v0, Lcom/uc/crashsdk/b;->c:Z
.line 242
:cond_45
:goto_45
monitor-exit v1
return-void
.line 225
:cond_47
const/4 v0, 0x0
sput-boolean v0, Lcom/uc/crashsdk/b;->g:Z
goto :goto_28
.line 242
:catchall_4b
move-exception v0
monitor-exit v1
:try_end_4d
.catchall {:try_start_3 .. :try_end_4d} :catchall_4b
throw v0
.line 239
:cond_4e
const/4 v0, 0x0
:try_start_4f
sput-boolean v0, Lcom/uc/crashsdk/b;->h:Z
:try_end_51
.catchall {:try_start_4f .. :try_end_51} :catchall_4b
goto :goto_45
.end method
.method public generateCustomLog(Lcom/uc/crashsdk/export/CustomLogInfo;)Z
.registers 11
.prologue
const/4 v8, 0x0
.line 413
if-nez p1, :cond_9
.line 414
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 416
:cond_9
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mData:Ljava/lang/StringBuffer;
if-eqz v0, :cond_11
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mLogType:Ljava/lang/String;
if-nez v0, :cond_19
.line 417
:cond_11
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "mData or mLogType is null!"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
.line 419
:cond_19
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mLogType:Ljava/lang/String;
const-string v1, "_"
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_2d
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mLogType:Ljava/lang/String;
const-string v1, " "
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_35
.line 420
:cond_2d
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "mLogType can not contain char \'_\' and \' \'"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 424
:cond_35
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpTids:Ljava/util/ArrayList;
if-eqz v0, :cond_aa
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpTids:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_aa
.line 425
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
.line 426
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpTids:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_4c
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_65
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 427
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 428
const-string v0, " "
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_4c
:cond_65
move-object v7, v1
.line 431
:goto_66
const-wide/16 v0, 0x0
.line 432
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddHeader:Z
if-eqz v2, :cond_6e
const-wide/16 v0, 0x1
.line 433
:cond_6e
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddFooter:Z
if-eqz v2, :cond_75
const-wide/16 v2, 0x2
or-long/2addr v0, v2
.line 434
:cond_75
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddLogcat:Z
if-eqz v2, :cond_7c
const-wide/16 v2, 0x4
or-long/2addr v0, v2
.line 435
:cond_7c
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddThreadsDump:Z
if-eqz v2, :cond_83
const-wide/16 v2, 0x8
or-long/2addr v0, v2
.line 436
:cond_83
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddBuildId:Z
if-eqz v2, :cond_8a
const-wide/16 v2, 0x10
or-long/2addr v0, v2
.line 437
:cond_8a
iget-boolean v2, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mUploadNow:Z
if-eqz v2, :cond_a8
const-wide/16 v2, 0x20
or-long/2addr v2, v0
.line 439
:goto_91
iget-object v0, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mData:Ljava/lang/StringBuffer;
iget-object v1, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mLogType:Ljava/lang/String;
iget-object v4, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpFiles:Ljava/util/ArrayList;
iget-object v5, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mCallbacks:Ljava/util/ArrayList;
iget-object v6, p1, Lcom/uc/crashsdk/export/CustomLogInfo;->mCachedInfos:Ljava/util/ArrayList;
if-eqz v7, :cond_a6
.line 441
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
.line 439
:goto_a1
invoke-static/range {v0 .. v7}, Lcom/uc/crashsdk/e;->a(Ljava/lang/StringBuffer;Ljava/lang/String;JLjava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;)Z
move-result v0
return v0
:cond_a6
move-object v7, v8
.line 441
goto :goto_a1
:cond_a8
move-wide v2, v0
goto :goto_91
:cond_aa
move-object v7, v8
goto :goto_66
.end method
.method public generateCustomLog(Ljava/lang/StringBuffer;Ljava/lang/String;Landroid/os/Bundle;)Z
.registers 7
.prologue
.line 446
new-instance v0, Lcom/uc/crashsdk/export/CustomLogInfo;
invoke-direct {v0, p1, p2}, Lcom/uc/crashsdk/export/CustomLogInfo;-><init>(Ljava/lang/StringBuffer;Ljava/lang/String;)V
.line 447
if-eqz p3, :cond_63
.line 448
const-string v1, "mAddHeader"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddHeader:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddHeader:Z
.line 449
const-string v1, "mAddFooter"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddFooter:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddFooter:Z
.line 450
const-string v1, "mAddLogcat"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddLogcat:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddLogcat:Z
.line 451
const-string v1, "mUploadNow"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mUploadNow:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mUploadNow:Z
.line 453
const-string v1, "mAddThreadsDump"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddThreadsDump:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddThreadsDump:Z
.line 454
const-string v1, "mAddBuildId"
iget-boolean v2, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddBuildId:Z
invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mAddBuildId:Z
.line 456
const-string v1, "mDumpFiles"
invoke-virtual {p3, v1}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
move-result-object v1
iput-object v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpFiles:Ljava/util/ArrayList;
.line 457
const-string v1, "mCallbacks"
invoke-virtual {p3, v1}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
move-result-object v1
iput-object v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mCallbacks:Ljava/util/ArrayList;
.line 458
const-string v1, "mCachedInfos"
invoke-virtual {p3, v1}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
move-result-object v1
iput-object v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mCachedInfos:Ljava/util/ArrayList;
.line 460
const-string v1, "mDumpTids"
invoke-virtual {p3, v1}, Landroid/os/Bundle;->getIntegerArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
move-result-object v1
iput-object v1, v0, Lcom/uc/crashsdk/export/CustomLogInfo;->mDumpTids:Ljava/util/ArrayList;
.line 462
:cond_63
invoke-virtual {p0, v0}, Lcom/uc/crashsdk/export/CrashApi;->generateCustomLog(Lcom/uc/crashsdk/export/CustomLogInfo;)Z
move-result v0
return v0
.end method
.method public generateTraces(Ljava/lang/String;J)Z
.registers 10
.prologue
const/4 v0, 0x0
.line 652
const-string v1, "generateTraces"
invoke-static {v1}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_a
.line 661
:cond_9
:goto_9
return v0
.line 656
:cond_a
sget-boolean v1, Lcom/uc/crashsdk/b;->d:Z
if-nez v1, :cond_16
.line 657
const-string v1, "crashsdk"
const-string v2, "Crash so is not loaded!"
invoke-static {v1, v2}, Lcom/uc/crashsdk/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_9
.line 661
:cond_16
const/16 v1, 0xc
const/4 v2, 0x0
invoke-static {v1, p2, p3, p1, v2}, Lcom/uc/crashsdk/JNIBridge;->nativeCmd(IJLjava/lang/String;[Ljava/lang/Object;)J
move-result-wide v2
const-wide/16 v4, 0x1
cmp-long v1, v2, v4
if-nez v1, :cond_9
const/4 v0, 0x1
goto :goto_9
.end method
.method public getCrashLogUploadUrl()Ljava/lang/String;
.registers 2
.prologue
.line 278
const-string v0, "getCrashLogUploadUrl"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 279
const/4 v0, 0x0
.line 281
:goto_9
return-object v0
:cond_a
invoke-static {}, Lcom/uc/crashsdk/e;->k()Ljava/lang/String;
move-result-object v0
goto :goto_9
.end method
.method public getHostFd()Landroid/os/ParcelFileDescriptor;
.registers 2
.prologue
.line 628
invoke-static {}, Lcom/uc/crashsdk/e;->E()Landroid/os/ParcelFileDescriptor;
move-result-object v0
return-object v0
.end method
.method public getIsolatedHostFd()Landroid/os/ParcelFileDescriptor;
.registers 2
.prologue
.line 640
invoke-static {}, Lcom/uc/crashsdk/e;->E()Landroid/os/ParcelFileDescriptor;
move-result-object v0
return-object v0
.end method
.method public getLastExitType()I
.registers 2
.prologue
.line 290
const-string v0, "getLastExitType"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 291
const/4 v0, 0x1
.line 293
:goto_9
return v0
:cond_a
invoke-static {}, Lcom/uc/crashsdk/b;->F()I
move-result v0
goto :goto_9
.end method
.method public getLastExitTypeEx()I
.registers 2
.prologue
.line 302
const-string v0, "getLastExitTypeEx"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 303
const/4 v0, 0x1
.line 305
:goto_9
return v0
:cond_a
invoke-static {}, Lcom/uc/crashsdk/b;->G()I
move-result v0
goto :goto_9
.end method
.method public getUncaughtException()Ljava/lang/Throwable;
.registers 2
.prologue
.line 614
invoke-static {}, Lcom/uc/crashsdk/e;->u()Ljava/lang/Throwable;
move-result-object v0
return-object v0
.end method
.method public getUnexpReason()I
.registers 2
.prologue
.line 313
const-string v0, "getUnexpReason"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_b
.line 314
const/16 v0, 0x64
.line 316
:goto_a
return v0
:cond_b
invoke-static {}, Lcom/uc/crashsdk/e;->v()I
move-result v0
goto :goto_a
.end method
.method public onExit()V
.registers 1
.prologue
.line 355
invoke-static {}, Lcom/uc/crashsdk/b;->t()V
.line 356
return-void
.end method
.method public registerCallback(ILandroid/webkit/ValueCallback;)Z
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Landroid/webkit/ValueCallback",
"<",
"Landroid/os/Bundle;",
">;)Z"
}
.end annotation
.prologue
.line 104
if-nez p2, :cond_8
.line 105
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 108
:cond_8
packed-switch p1, :pswitch_data_34
.line 122
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Unknown event type: "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 110
:pswitch_20
invoke-static {p2}, Lcom/uc/crashsdk/d;->a(Landroid/webkit/ValueCallback;)Z
move-result v0
.line 119
:goto_24
return v0
.line 113
:pswitch_25
invoke-static {p2}, Lcom/uc/crashsdk/d;->c(Landroid/webkit/ValueCallback;)Z
move-result v0
goto :goto_24
.line 116
:pswitch_2a
invoke-static {p2}, Lcom/uc/crashsdk/d;->d(Landroid/webkit/ValueCallback;)Z
move-result v0
goto :goto_24
.line 119
:pswitch_2f
invoke-static {p2}, Lcom/uc/crashsdk/d;->b(Landroid/webkit/ValueCallback;)Z
move-result v0
goto :goto_24
.line 108
:pswitch_data_34
.packed-switch 0x1
:pswitch_20
:pswitch_25
:pswitch_2a
:pswitch_2f
.end packed-switch
.end method
.method public registerInfoCallback(Ljava/lang/String;I)I
.registers 10
.prologue
const/4 v6, 0x0
.line 545
if-nez p1, :cond_9
.line 546
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 548
:cond_9
const v0, 0x100111
and-int/2addr v0, p2
if-nez v0, :cond_10
.line 551
:goto_f
return v6
:cond_10
const/4 v3, 0x0
const-wide/16 v4, 0x0
move-object v1, p1
move v2, p2
invoke-static/range {v1 .. v6}, Lcom/uc/crashsdk/a;->a(Ljava/lang/String;ILjava/util/concurrent/Callable;JI)I
move-result v6
goto :goto_f
.end method
.method public registerInfoCallback(Ljava/lang/String;ILjava/util/concurrent/Callable;)I
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I",
"Ljava/util/concurrent/Callable",
"<",
"Ljava/lang/String;",
">;)I"
}
.end annotation
.prologue
const/4 v6, 0x0
.line 571
if-eqz p1, :cond_5
if-nez p3, :cond_b
.line 572
:cond_5
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 574
:cond_b
const v0, 0x100111
and-int/2addr v0, p2
if-nez v0, :cond_12
.line 577
:goto_11
return v6
:cond_12
const-wide/16 v4, 0x0
move-object v1, p1
move v2, p2
move-object v3, p3
invoke-static/range {v1 .. v6}, Lcom/uc/crashsdk/a;->a(Ljava/lang/String;ILjava/util/concurrent/Callable;JI)I
move-result v6
goto :goto_11
.end method
.method public registerThread(ILjava/lang/String;)I
.registers 4
.prologue
.line 409
invoke-static {p1, p2}, Lcom/uc/crashsdk/a;->a(ILjava/lang/String;)I
move-result v0
return v0
.end method
.method public reportCrashStats(Z)I
.registers 3
.prologue
.line 330
const-string v0, "reportCrashStats"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 331
const/4 v0, 0x0
.line 333
:goto_9
return v0
:cond_a
const/4 v0, 0x1
invoke-static {p1, v0}, Lcom/uc/crashsdk/e;->b(ZZ)I
move-result v0
goto :goto_9
.end method
.method public resetCrashStats(Z)I
.registers 3
.prologue
.line 345
const-string v0, "resetCrashStats"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 346
const/4 v0, 0x0
.line 348
:goto_9
return v0
:cond_a
invoke-static {p1}, Lcom/uc/crashsdk/e;->d(Z)I
move-result v0
goto :goto_9
.end method
.method public setForeground(Z)V
.registers 2
.prologue
.line 382
invoke-static {p1}, Lcom/uc/crashsdk/b;->b(Z)V
.line 383
return-void
.end method
.method public setHostFd(Landroid/os/ParcelFileDescriptor;)Z
.registers 3
.prologue
.line 632
invoke-static {p1}, Lcom/uc/crashsdk/e;->a(Landroid/os/ParcelFileDescriptor;)Z
move-result v0
return v0
.end method
.method public setIsolatedHostFd(Landroid/os/ParcelFileDescriptor;)Z
.registers 3
.prologue
.line 648
invoke-static {p1}, Lcom/uc/crashsdk/e;->a(Landroid/os/ParcelFileDescriptor;)Z
move-result v0
return v0
.end method
.method public setNewInstall()V
.registers 2
.prologue
.line 366
const-string v0, "setNewInstall"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_9
.line 371
:goto_8
return-void
.line 370
:cond_9
invoke-static {}, Lcom/uc/crashsdk/b;->s()V
goto :goto_8
.end method
.method public updateCustomInfo(Landroid/os/Bundle;)I
.registers 3
.prologue
.line 147
if-nez p1, :cond_8
.line 148
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 150
:cond_8
const/4 v0, 0x0
invoke-static {v0, p1}, Lcom/uc/crashsdk/g;->a(Lcom/uc/crashsdk/export/CustomInfo;Landroid/os/Bundle;)Lcom/uc/crashsdk/export/CustomInfo;
move-result-object v0
.line 151
invoke-virtual {p0, v0}, Lcom/uc/crashsdk/export/CrashApi;->updateCustomInfo(Lcom/uc/crashsdk/export/CustomInfo;)I
move-result v0
return v0
.end method
.method public updateCustomInfo(Lcom/uc/crashsdk/export/CustomInfo;)I
.registers 3
.prologue
.line 133
if-nez p1, :cond_8
.line 134
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 136
:cond_8
invoke-static {p1}, Lcom/uc/crashsdk/g;->b(Lcom/uc/crashsdk/export/CustomInfo;)I
move-result v0
return v0
.end method
.method public updateUnexpInfo()Z
.registers 2
.prologue
.line 621
const-string v0, "updateUnexpInfo"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_a
.line 622
const/4 v0, 0x0
.line 624
:goto_9
return v0
:cond_a
const/4 v0, 0x1
invoke-static {v0}, Lcom/uc/crashsdk/a;->a(Z)Z
move-result v0
goto :goto_9
.end method
.method public updateVersionInfo(Landroid/os/Bundle;)V
.registers 3
.prologue
.line 196
if-nez p1, :cond_8
.line 197
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 199
:cond_8
invoke-static {p1}, Lcom/uc/crashsdk/g;->a(Landroid/os/Bundle;)Lcom/uc/crashsdk/export/VersionInfo;
move-result-object v0
.line 200
invoke-virtual {p0, v0}, Lcom/uc/crashsdk/export/CrashApi;->updateVersionInfo(Lcom/uc/crashsdk/export/VersionInfo;)V
.line 201
return-void
.end method
.method public updateVersionInfo(Lcom/uc/crashsdk/export/VersionInfo;)V
.registers 3
.prologue
.line 182
if-nez p1, :cond_8
.line 183
new-instance v0, Ljava/lang/NullPointerException;
invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V
throw v0
.line 185
:cond_8
invoke-static {p1}, Lcom/uc/crashsdk/g;->a(Lcom/uc/crashsdk/export/VersionInfo;)V
.line 186
return-void
.end method
.method public uploadCrashLogs()V
.registers 3
.prologue
.line 389
const-string v0, "uploadCrashLogs"
invoke-static {v0}, Lcom/uc/crashsdk/export/CrashApi;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_9
.line 394
:goto_8
return-void
.line 393
:cond_9
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/uc/crashsdk/e;->a(ZZ)Z
goto :goto_8
.end method