- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
880 lines
23 KiB
Smali
880 lines
23 KiB
Smali
.class public final Lcom/facebook/internal/AttributionIdentifiers$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/facebook/internal/AttributionIdentifiers;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 59
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
invoke-direct {p0}, Lcom/facebook/internal/AttributionIdentifiers$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final cacheAndReturnIdentifiers(Lcom/facebook/internal/AttributionIdentifiers;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
.locals 2
|
|
|
|
.line 236
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/facebook/internal/AttributionIdentifiers;->access$setFetchTime$p(Lcom/facebook/internal/AttributionIdentifiers;J)V
|
|
|
|
.line 237
|
|
sput-object p1, Lcom/facebook/internal/AttributionIdentifiers;->cachedIdentifiers:Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic getATTRIBUTION_ID_CONTENT_PROVIDER$facebook_core_release$annotations()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
otherwise = 0x2
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getAndroidId(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
.locals 1
|
|
|
|
.line 79
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->getAndroidIdViaReflection(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 81
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->getAndroidIdViaService(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 83
|
|
new-instance v0, Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/internal/AttributionIdentifiers;-><init>()V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getAndroidIdViaReflection(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
.locals 6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 91
|
|
:try_start_0
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->isGooglePlayServicesAvailable(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v1, "com.google.android.gms.ads.identifier.AdvertisingIdClient"
|
|
|
|
const-string v2, "getAdvertisingIdInfo"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v3, v3, [Ljava/lang/Class;
|
|
|
|
const-class v4, Landroid/content/Context;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
.line 95
|
|
invoke-static {v1, v2, v3}, Lcom/facebook/internal/Utility;->getMethodQuietly(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 101
|
|
invoke-static {v0, v1, p1}, Lcom/facebook/internal/Utility;->invokeMethodQuietly(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
return-object v0
|
|
|
|
.line 102
|
|
:cond_2
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "getId"
|
|
|
|
new-array v3, v5, [Ljava/lang/Class;
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/facebook/internal/Utility;->getMethodQuietly(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
.line 104
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "isLimitAdTrackingEnabled"
|
|
|
|
new-array v4, v5, [Ljava/lang/Class;
|
|
|
|
invoke-static {v2, v3, v4}, Lcom/facebook/internal/Utility;->getMethodQuietly(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
.line 108
|
|
:cond_3
|
|
new-instance v3, Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
invoke-direct {v3}, Lcom/facebook/internal/AttributionIdentifiers;-><init>()V
|
|
|
|
new-array v4, v5, [Ljava/lang/Object;
|
|
|
|
.line 110
|
|
invoke-static {p1, v1, v4}, Lcom/facebook/internal/Utility;->invokeMethodQuietly(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
.line 109
|
|
invoke-static {v3, v1}, Lcom/facebook/internal/AttributionIdentifiers;->access$setAndroidAdvertiserIdValue$p(Lcom/facebook/internal/AttributionIdentifiers;Ljava/lang/String;)V
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
.line 112
|
|
invoke-static {p1, v2, v1}, Lcom/facebook/internal/Utility;->invokeMethodQuietly(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v5
|
|
|
|
.line 111
|
|
:goto_0
|
|
invoke-static {v3, v5}, Lcom/facebook/internal/AttributionIdentifiers;->access$setTrackingLimited$p(Lcom/facebook/internal/AttributionIdentifiers;Z)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
:goto_1
|
|
return-object v0
|
|
|
|
:goto_2
|
|
const-string v1, "android_id"
|
|
|
|
.line 115
|
|
invoke-static {v1, p1}, Lcom/facebook/internal/Utility;->logd(Ljava/lang/String;Ljava/lang/Exception;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getAndroidIdViaService(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
.locals 5
|
|
|
|
.line 139
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->isGooglePlayServicesAvailable(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 143
|
|
:cond_0
|
|
new-instance v0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;-><init>()V
|
|
|
|
.line 144
|
|
new-instance v2, Landroid/content/Intent;
|
|
|
|
const-string v3, "com.google.android.gms.ads.identifier.service.START"
|
|
|
|
invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v3, "com.google.android.gms"
|
|
|
|
.line 145
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
.line 148
|
|
:try_start_0
|
|
invoke-virtual {p1, v2, v0, v3}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
|
|
|
|
move-result v2
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 154
|
|
:try_start_1
|
|
new-instance v2, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdInfo;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->getBinder()Landroid/os/IBinder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdInfo;-><init>(Landroid/os/IBinder;)V
|
|
|
|
.line 155
|
|
new-instance v3, Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
invoke-direct {v3}, Lcom/facebook/internal/AttributionIdentifiers;-><init>()V
|
|
|
|
.line 156
|
|
invoke-virtual {v2}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdInfo;->getAdvertiserId()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v3, v4}, Lcom/facebook/internal/AttributionIdentifiers;->access$setAndroidAdvertiserIdValue$p(Lcom/facebook/internal/AttributionIdentifiers;Ljava/lang/String;)V
|
|
|
|
.line 157
|
|
invoke-virtual {v2}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdInfo;->isTrackingLimited()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v3, v2}, Lcom/facebook/internal/AttributionIdentifiers;->access$setTrackingLimited$p(Lcom/facebook/internal/AttributionIdentifiers;Z)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 162
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
return-object v3
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
:try_start_2
|
|
const-string v3, "android_id"
|
|
|
|
.line 160
|
|
invoke-static {v3, v2}, Lcom/facebook/internal/Utility;->logd(Ljava/lang/String;Ljava/lang/Exception;)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 162
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
goto :goto_1
|
|
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
throw v1
|
|
|
|
:catch_1
|
|
:cond_1
|
|
:goto_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public static synthetic getCachedIdentifiers$facebook_core_release$annotations()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
otherwise = 0x2
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getInstallerPackageName(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 242
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 243
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/pm/PackageManager;->getInstallerPackageName(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private final isGooglePlayServicesAvailable(Landroid/content/Context;)Z
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v1, v0, [Ljava/lang/Class;
|
|
|
|
const-class v2, Landroid/content/Context;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const-string v2, "com.google.android.gms.common.GooglePlayServicesUtil"
|
|
|
|
const-string v4, "isGooglePlayServicesAvailable"
|
|
|
|
.line 129
|
|
invoke-static {v2, v4, v1}, Lcom/facebook/internal/Utility;->getMethodQuietly(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return v3
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 134
|
|
invoke-static {v2, v1, p1}, Lcom/facebook/internal/Utility;->invokeMethodQuietly(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 135
|
|
instance-of v1, p1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v3
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getAttributionIdentifiers(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
.locals 13
|
|
|
|
const-string v0, "limit_tracking"
|
|
|
|
const-string v1, "androidid"
|
|
|
|
const-string v2, "aid"
|
|
|
|
const-string v3, "context"
|
|
|
|
invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 170
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->getAndroidId(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 175
|
|
:try_start_0
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_9
|
|
|
|
.line 178
|
|
sget-object v5, Lcom/facebook/internal/AttributionIdentifiers;->cachedIdentifiers:Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
.line 180
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v5}, Lcom/facebook/internal/AttributionIdentifiers;->access$getFetchTime$p(Lcom/facebook/internal/AttributionIdentifiers;)J
|
|
|
|
move-result-wide v8
|
|
|
|
sub-long/2addr v6, v8
|
|
|
|
const-wide/32 v8, 0x36ee80
|
|
|
|
cmp-long v6, v6, v8
|
|
|
|
if-gez v6, :cond_0
|
|
|
|
return-object v5
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto/16 :goto_7
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
move-object v0, v4
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_0
|
|
const/4 v5, 0x3
|
|
|
|
new-array v8, v5, [Ljava/lang/String;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v2, v8, v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
aput-object v1, v8, v6
|
|
|
|
const/4 v6, 0x2
|
|
|
|
aput-object v0, v8, v6
|
|
|
|
.line 188
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "com.facebook.katana.provider.AttributionIdProvider"
|
|
|
|
invoke-virtual {v6, v7, v5}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
|
|
|
|
move-result-object v6
|
|
|
|
.line 190
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v9, "com.facebook.wakizashi.provider.AttributionIdProvider"
|
|
|
|
invoke-virtual {v7, v9, v5}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 193
|
|
sget-object v7, Lcom/facebook/internal/FacebookSignatureValidator;->INSTANCE:Lcom/facebook/internal/FacebookSignatureValidator;
|
|
|
|
iget-object v6, v6, Landroid/content/pm/ProviderInfo;->packageName:Ljava/lang/String;
|
|
|
|
const-string v7, "contentProviderInfo.packageName"
|
|
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1, v6}, Lcom/facebook/internal/FacebookSignatureValidator;->validateSignature(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
const-string v5, "content://com.facebook.katana.provider.AttributionIdProvider"
|
|
|
|
.line 194
|
|
invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v5
|
|
|
|
:goto_0
|
|
move-object v7, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 196
|
|
sget-object v6, Lcom/facebook/internal/FacebookSignatureValidator;->INSTANCE:Lcom/facebook/internal/FacebookSignatureValidator;
|
|
|
|
iget-object v5, v5, Landroid/content/pm/ProviderInfo;->packageName:Ljava/lang/String;
|
|
|
|
const-string v6, "wakizashiProviderInfo.packageName"
|
|
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1, v5}, Lcom/facebook/internal/FacebookSignatureValidator;->validateSignature(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const-string v5, "content://com.facebook.wakizashi.provider.AttributionIdProvider"
|
|
|
|
.line 197
|
|
invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v7, v4
|
|
|
|
.line 199
|
|
:goto_1
|
|
invoke-direct {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->getInstallerPackageName(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 201
|
|
invoke-static {v3, v5}, Lcom/facebook/internal/AttributionIdentifiers;->access$setAndroidInstallerPackage$p(Lcom/facebook/internal/AttributionIdentifiers;Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
if-nez v7, :cond_4
|
|
|
|
.line 204
|
|
invoke-direct {p0, v3}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->cacheAndReturnIdentifiers(Lcom/facebook/internal/AttributionIdentifiers;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 206
|
|
:cond_4
|
|
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v6
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-virtual/range {v6 .. v11}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
.line 207
|
|
:try_start_1
|
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
.line 210
|
|
:cond_5
|
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
.line 211
|
|
invoke-interface {p1, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
.line 212
|
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
.line 213
|
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v3, v2}, Lcom/facebook/internal/AttributionIdentifiers;->access$setAttributionId$p(Lcom/facebook/internal/AttributionIdentifiers;Ljava/lang/String;)V
|
|
|
|
if-lez v1, :cond_6
|
|
|
|
if-lez v0, :cond_6
|
|
|
|
.line 219
|
|
invoke-virtual {v3}, Lcom/facebook/internal/AttributionIdentifiers;->getAndroidAdvertiserId()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_6
|
|
|
|
.line 220
|
|
invoke-interface {p1, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v3, v1}, Lcom/facebook/internal/AttributionIdentifiers;->access$setAndroidAdvertiserIdValue$p(Lcom/facebook/internal/AttributionIdentifiers;Ljava/lang/String;)V
|
|
|
|
.line 222
|
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
.line 221
|
|
invoke-static {v3, v0}, Lcom/facebook/internal/AttributionIdentifiers;->access$setTrackingLimited$p(Lcom/facebook/internal/AttributionIdentifiers;Z)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
move-object v4, p1
|
|
|
|
move-object p1, v0
|
|
|
|
goto :goto_7
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
move-object v12, v0
|
|
|
|
move-object v0, p1
|
|
|
|
move-object p1, v12
|
|
|
|
goto :goto_5
|
|
|
|
.line 228
|
|
:cond_6
|
|
:goto_2
|
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
|
|
|
.line 230
|
|
invoke-direct {p0, v3}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->cacheAndReturnIdentifiers(Lcom/facebook/internal/AttributionIdentifiers;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 208
|
|
:cond_7
|
|
:goto_3
|
|
:try_start_2
|
|
invoke-direct {p0, v3}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->cacheAndReturnIdentifiers(Lcom/facebook/internal/AttributionIdentifiers;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object v0
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
goto :goto_4
|
|
|
|
.line 228
|
|
:cond_8
|
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
|
|
|
:goto_4
|
|
return-object v0
|
|
|
|
.line 176
|
|
:cond_9
|
|
:try_start_3
|
|
new-instance p1, Lcom/facebook/FacebookException;
|
|
|
|
const-string v0, "getAttributionIdentifiers cannot be called on the main thread."
|
|
|
|
invoke-direct {p1, v0}, Lcom/facebook/FacebookException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 225
|
|
:goto_5
|
|
:try_start_4
|
|
sget-object v1, Lcom/facebook/internal/Utility;->INSTANCE:Lcom/facebook/internal/Utility;
|
|
|
|
invoke-static {}, Lcom/facebook/internal/AttributionIdentifiers;->access$getTAG$cp()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Caught unexpected exception in getAttributionId(): "
|
|
|
|
invoke-static {v2, p1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v1, p1}, Lcom/facebook/internal/Utility;->logd(Ljava/lang/String;Ljava/lang/String;)V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
goto :goto_6
|
|
|
|
.line 228
|
|
:cond_a
|
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
|
|
|
:goto_6
|
|
return-object v4
|
|
|
|
:catchall_2
|
|
move-exception p1
|
|
|
|
move-object v4, v0
|
|
|
|
:goto_7
|
|
if-nez v4, :cond_b
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
invoke-interface {v4}, Landroid/database/Cursor;->close()V
|
|
|
|
:goto_8
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final isTrackingLimited(Landroid/content/Context;)Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 123
|
|
invoke-virtual {p0, p1}, Lcom/facebook/internal/AttributionIdentifiers$Companion;->getAttributionIdentifiers(Landroid/content/Context;)Lcom/facebook/internal/AttributionIdentifiers;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 124
|
|
invoke-virtual {p1}, Lcom/facebook/internal/AttributionIdentifiers;->isTrackingLimited()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|