apkfuckery/com.discord/smali/com/crashlytics/android/b.smali
2019-02-04 21:29:01 +01:00

67 lines
1.5 KiB
Smali

.class final Lcom/crashlytics/android/b;
.super Ljava/lang/Object;
.source "ManifestEnabledCheckStrategy.java"
# interfaces
.implements Lcom/crashlytics/android/CrashlyticsInitProvider$a;
# direct methods
.method constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final q(Landroid/content/Context;)Z
.locals 3
const/4 v0, 0x1
:try_start_0
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
const/16 v2, 0x80
invoke-virtual {p1, v1, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p1
iget-object p1, p1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz p1, :cond_1
const-string v1, "firebase_crashlytics_collection_enabled"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result p1
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
return v0
:catch_0
return v0
.end method