- 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
322 lines
8.2 KiB
Smali
322 lines
8.2 KiB
Smali
.class public Lcsdk/gluads/EAAnzu;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static currentContext:Landroid/content/Context; = null
|
|
|
|
.field private static isAnzuAvailable:Z = false
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcsdk/gluads/EAAnzu;->currentContext:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static synthetic access$002(Landroid/content/Context;)Landroid/content/Context;
|
|
.locals 0
|
|
|
|
sput-object p0, Lcsdk/gluads/EAAnzu;->currentContext:Landroid/content/Context;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic access$102(Z)Z
|
|
.locals 0
|
|
|
|
sput-boolean p0, Lcsdk/gluads/EAAnzu;->isAnzuAvailable:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$200(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-static {p0}, Lcsdk/gluads/EAAnzu;->log(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$300()V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-static {}, Lcsdk/gluads/EAAnzu;->logNoImpl()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static createAnzu(Ljava/util/concurrent/Callable;Ljava/util/Map;Lcsdk/gluads/CustomSettings;ZLcsdk/gluads/PrivacyStatus;Lcsdk/gluads/impl/AdvertisingImpl;)Ljava/util/concurrent/Future;
|
|
.locals 0
|
|
.param p0 # Ljava/util/concurrent/Callable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcsdk/gluads/CustomSettings;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Lcsdk/gluads/impl/AdvertisingImpl;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Landroid/app/Activity;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;",
|
|
"Lcsdk/gluads/CustomSettings;",
|
|
"Z",
|
|
"Lcsdk/gluads/PrivacyStatus;",
|
|
"Lcsdk/gluads/impl/AdvertisingImpl;",
|
|
")",
|
|
"Ljava/util/concurrent/Future<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 46
|
|
invoke-static {p1}, Lcsdk/gluads/GluAdsFactory;->configDisabled(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object p2
|
|
|
|
.line 47
|
|
invoke-static {p1}, Lcsdk/gluads/util/ConfigUtil;->configSdk(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p4, "anzu.appKey"
|
|
|
|
invoke-static {p1, p4}, Lcsdk/gluads/util/ConfigUtil;->getString(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 48
|
|
invoke-static {p0}, Lcsdk/gluads/util/Common;->call(Ljava/util/concurrent/Callable;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/app/Activity;
|
|
|
|
const-string p4, "anzu"
|
|
|
|
.line 50
|
|
invoke-static {p2, p4}, Lcsdk/gluads/util/ConfigUtil;->getBoolean(Ljava/lang/Object;Ljava/lang/String;)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 56
|
|
:cond_0
|
|
new-instance p2, Lcsdk/gluads/EAAnzu$1;
|
|
|
|
invoke-direct {p2, p0, p1, p3}, Lcsdk/gluads/EAAnzu$1;-><init>(Landroid/app/Activity;Ljava/lang/String;Z)V
|
|
|
|
const-string p1, "added"
|
|
|
|
.line 84
|
|
invoke-static {p0, p4, p1, p2, p5}, Lcsdk/gluads/util/AdvertisingUtil;->updatePrivacyInfoAndBroadcast(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcsdk/gluads/util/IAction1;Lcsdk/gluads/impl/AdvertisingImpl;)V
|
|
|
|
.line 86
|
|
invoke-static {p4}, Lcsdk/gluads/util/Futures;->successful(Ljava/lang/Object;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const-string p1, "createAnzu failed: disabled or app key is missing"
|
|
|
|
.line 51
|
|
invoke-static {p1}, Lcsdk/gluads/EAAnzu;->log(Ljava/lang/String;)V
|
|
|
|
const-string p1, "disabled"
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 52
|
|
invoke-static {p0, p4, p1, p2, p5}, Lcsdk/gluads/util/AdvertisingUtil;->updatePrivacyInfoAndBroadcast(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcsdk/gluads/util/IAction1;Lcsdk/gluads/impl/AdvertisingImpl;)V
|
|
|
|
.line 53
|
|
invoke-static {}, Lcsdk/gluads/GluAdsFactory;->disabledFuture()Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static createNativeAdManager(Ljava/util/concurrent/Callable;Ljava/util/Map;Z)Lcsdk/gluads/IAdvertising;
|
|
.locals 2
|
|
.param p0 # Ljava/util/concurrent/Callable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Landroid/app/Activity;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;Z)",
|
|
"Lcsdk/gluads/IAdvertising;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 101
|
|
invoke-static {p1}, Lcsdk/gluads/util/ConfigUtil;->configDisabled(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "anzu"
|
|
|
|
.line 102
|
|
invoke-static {v0, v1}, Lcsdk/gluads/util/ConfigUtil;->getBoolean(Ljava/lang/Object;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p0, "createNativeAdManager failed: Anzu is disabled"
|
|
|
|
.line 103
|
|
invoke-static {p0}, Lcsdk/gluads/EAAnzu;->log(Ljava/lang/String;)V
|
|
|
|
.line 104
|
|
new-instance p0, Lcsdk/gluads/impl/DummyAdvertising;
|
|
|
|
invoke-direct {p0}, Lcsdk/gluads/impl/DummyAdvertising;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 108
|
|
:cond_0
|
|
invoke-static {p1}, Lcsdk/gluads/util/ConfigUtil;->configSdk(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "anzu.urlScheme"
|
|
|
|
const-string v1, "anzu.electronicarts"
|
|
|
|
.line 109
|
|
invoke-static {p1, v0, v1}, Lcsdk/gluads/util/ConfigUtil;->getString(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
const-string p2, "debug.anzu"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 111
|
|
invoke-static {p1, p2, v1}, Lcsdk/gluads/util/ConfigUtil;->getBoolean(Ljava/lang/Object;Ljava/lang/String;Z)Z
|
|
|
|
move-result p2
|
|
|
|
.line 115
|
|
:cond_1
|
|
:try_start_0
|
|
new-instance p1, Lcsdk/gluads/EAAnzuNativeAdManager;
|
|
|
|
invoke-direct {p1, p0, p2, v0}, Lcsdk/gluads/EAAnzuNativeAdManager;-><init>(Ljava/util/concurrent/Callable;ZLjava/lang/String;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static destroyAnzu()V
|
|
.locals 1
|
|
|
|
const-string v0, "destroy"
|
|
|
|
.line 90
|
|
invoke-static {v0}, Lcsdk/gluads/EAAnzu;->log(Ljava/lang/String;)V
|
|
|
|
sget-boolean v0, Lcsdk/gluads/EAAnzu;->isAnzuAvailable:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 93
|
|
invoke-static {}, Lcsdk/gluads/GluAdsNativeBridge;->destroyAnzuSDK()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 96
|
|
:cond_0
|
|
invoke-static {}, Lcsdk/gluads/EAAnzu;->logNoImpl()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static log(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static logNoImpl()V
|
|
.locals 1
|
|
|
|
const-string v0, "Can\'t find com.anzu.sdk.Anzu"
|
|
|
|
.line 36
|
|
invoke-static {v0}, Lcsdk/gluads/EAAnzu;->log(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|