- 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
190 lines
5.4 KiB
Smali
190 lines
5.4 KiB
Smali
.class public Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingServiceConnection;,
|
|
Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingInfo;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final ADVERTISING_ID_SERVICE_NAME:Ljava/lang/String; = "com.google.android.gms.ads.identifier.internal.IAdvertisingIdService"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static getAdvertisingIDByBackupMethod(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
.locals 0
|
|
|
|
.line 39
|
|
:try_start_0
|
|
invoke-static {p0}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil;->queryAdvertisingIDFromService(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getAdvertisingIdInfo(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
.locals 2
|
|
|
|
.line 24
|
|
invoke-static {p0}, Lcom/glu/plugins/gluanalytics/AnalyticsData;->getAdvertisingIdInfo(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 26
|
|
invoke-static {v0}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil;->isAdvertisingIDEmpty(Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 27
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil;->getAdvertisingIDByBackupMethod(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static isAdvertisingIDEmpty(Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 34
|
|
iget-object p0, p0, Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;->advertisingId:Ljava/lang/String;
|
|
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method private static queryAdvertisingIDFromService(Landroid/content/Context;)Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
.locals 6
|
|
|
|
.line 46
|
|
new-instance v0, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingServiceConnection;
|
|
|
|
invoke-direct {v0}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingServiceConnection;-><init>()V
|
|
|
|
.line 47
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
const-string v2, "com.google.android.gms.ads.identifier.service.START"
|
|
|
|
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v2, "com.google.android.gms"
|
|
|
|
.line 48
|
|
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 51
|
|
:try_start_0
|
|
invoke-virtual {p0, v1, v0, v2}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
|
|
|
|
move-result v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 57
|
|
:try_start_1
|
|
invoke-virtual {v0}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingServiceConnection;->getBinder()Landroid/os/IBinder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingInfo$GoogleAdvertisingInfoBinder;->create(Landroid/os/IBinder;)Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingInfo;
|
|
|
|
move-result-object v3
|
|
|
|
.line 58
|
|
new-instance v4, Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;
|
|
|
|
invoke-interface {v3}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingInfo;->getId()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v3, v2}, Lcom/glu/plugins/gluanalytics/util/GoogleAdvertisingIDUtil$GoogleAdvertisingInfo;->getEnabled(Z)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v4, v5, v2}, Lcom/glu/plugins/gluanalytics/AnalyticsData$AdvertisingIdInfo;-><init>(Ljava/lang/String;Z)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 64
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
:cond_0
|
|
return-object v4
|
|
|
|
:catchall_1
|
|
if-eqz v1, :cond_2
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|