apkfuckery/com.discord/smali/com/crashlytics/android/CrashlyticsInitProvider.smali

291 lines
7.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lcom/crashlytics/android/CrashlyticsInitProvider;
.super Landroid/content/ContentProvider;
2019-02-04 20:29:01 +00:00
.source "CrashlyticsInitProvider.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/crashlytics/android/CrashlyticsInitProvider$a;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroid/content/ContentProvider;-><init>()V
return-void
.end method
2019-05-04 02:59:52 +00:00
.method private static q(Landroid/content/Context;)[Lio/fabric/sdk/android/i;
.locals 6
const-string v0, "Fabric"
const/4 v1, 0x1
const/4 v2, 0x0
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v3
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/16 v4, 0x80
invoke-virtual {v3, p0, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p0
iget-object p0, p0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz p0, :cond_0
const-string v3, "firebase_crashlytics_ndk_enabled"
invoke-virtual {p0, v3, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result p0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:catch_0
move-exception p0
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-05-04 02:59:52 +00:00
move-result-object v3
const-string v4, "Unable to get PackageManager while determining if Crashlytics NDK should be initialized"
invoke-interface {v3, v0, v4, p0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_0
const/4 p0, 0x0
:goto_0
new-instance v3, Lcom/crashlytics/android/a;
invoke-direct {v3}, Lcom/crashlytics/android/a;-><init>()V
if-eqz p0, :cond_1
:try_start_1
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-05-04 02:59:52 +00:00
move-result-object p0
const-string v4, "Crashlytics is initializing NDK crash reporter."
2019-06-01 02:00:00 +00:00
invoke-interface {p0, v0, v4}, Lio/fabric/sdk/android/l;->ab(Ljava/lang/String;Ljava/lang/String;)V
2019-05-04 02:59:52 +00:00
const/4 p0, 0x2
new-array p0, p0, [Lio/fabric/sdk/android/i;
aput-object v3, p0, v2
new-instance v4, Lcom/crashlytics/android/ndk/c;
invoke-direct {v4}, Lcom/crashlytics/android/ndk/c;-><init>()V
aput-object v4, p0, v1
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
return-object p0
:catch_1
move-exception p0
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-05-04 02:59:52 +00:00
move-result-object v4
const-string v5, "Crashlytics failed to initialize NDK crash reporting. Attempting to intialize SDK..."
invoke-interface {v4, v0, v5, p0}, Lio/fabric/sdk/android/l;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_1
new-array p0, v1, [Lio/fabric/sdk/android/i;
aput-object v3, p0, v2
return-object p0
.end method
2019-02-04 20:08:30 +00:00
# virtual methods
.method public delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
.locals 0
const/4 p1, 0x0
return p1
.end method
.method public getType(Landroid/net/Uri;)Ljava/lang/String;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public onCreate()Z
2019-02-04 20:32:01 +00:00
.locals 6
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/crashlytics/android/CrashlyticsInitProvider;->getContext()Landroid/content/Context;
move-result-object v0
2019-05-03 18:53:54 +00:00
new-instance v1, Lio/fabric/sdk/android/a/b/r;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v1}, Lio/fabric/sdk/android/a/b/r;-><init>()V
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/crashlytics/android/b;
invoke-direct {v1}, Lcom/crashlytics/android/b;-><init>()V
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lio/fabric/sdk/android/a/b/r;->bd(Landroid/content/Context;)Z
2019-02-04 20:08:30 +00:00
move-result v2
2019-02-04 20:32:01 +00:00
const/4 v3, 0x0
2019-02-04 20:08:30 +00:00
if-eqz v2, :cond_0
2019-05-04 02:59:52 +00:00
invoke-interface {v1, v0}, Lcom/crashlytics/android/CrashlyticsInitProvider$a;->r(Landroid/content/Context;)Z
2019-02-04 20:08:30 +00:00
move-result v1
goto :goto_0
:cond_0
2019-02-04 20:32:01 +00:00
const-string v1, "io.fabric.auto_initialize"
const-string v2, "bool"
invoke-static {v0, v1, v2}, Lio/fabric/sdk/android/a/b/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
move-result v1
if-nez v1, :cond_1
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-02-04 20:32:01 +00:00
goto :goto_0
:cond_1
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getBoolean(I)Z
move-result v1
if-eqz v1, :cond_2
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-02-04 20:32:01 +00:00
move-result-object v2
const-string v4, "Fabric"
const-string v5, "Found Fabric auto-initialization flag for joint Firebase/Fabric customers"
invoke-interface {v2, v4, v5}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
:cond_2
2019-02-04 20:08:30 +00:00
:goto_0
2019-05-04 02:59:52 +00:00
const-string v2, "CrashlyticsInitProvider"
2019-05-03 18:53:54 +00:00
2019-02-04 20:32:01 +00:00
if-eqz v1, :cond_3
2019-02-04 20:08:30 +00:00
:try_start_0
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v1}, Lcom/crashlytics/android/CrashlyticsInitProvider;->q(Landroid/content/Context;)[Lio/fabric/sdk/android/i;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
invoke-static {v0, v1}, Lio/fabric/sdk/android/c;->a(Landroid/content/Context;[Lio/fabric/sdk/android/i;)Lio/fabric/sdk/android/c;
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
const-string v1, "CrashlyticsInitProvider initialization successful"
2019-02-04 20:08:30 +00:00
2019-06-01 02:00:00 +00:00
invoke-interface {v0, v2, v1}, Lio/fabric/sdk/android/l;->ab(Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
:try_end_0
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
const-string v1, "CrashlyticsInitProvider initialization unsuccessful"
2019-02-04 20:08:30 +00:00
2019-06-01 02:00:00 +00:00
invoke-interface {v0, v2, v1}, Lio/fabric/sdk/android/l;->ab(Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
return v3
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
:cond_3
2019-05-28 22:16:26 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->xZ()Lio/fabric/sdk/android/l;
2019-05-03 18:53:54 +00:00
move-result-object v0
const-string v1, "CrashlyticsInitProvider skipping initialization"
2019-06-01 02:00:00 +00:00
invoke-interface {v0, v2, v1}, Lio/fabric/sdk/android/l;->ab(Ljava/lang/String;Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
2019-02-04 20:08:30 +00:00
:goto_1
2019-05-04 02:59:52 +00:00
const/4 v0, 0x1
return v0
2019-02-04 20:08:30 +00:00
.end method
.method public query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
.locals 0
const/4 p1, 0x0
return p1
.end method