- 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
294 lines
6.8 KiB
Smali
294 lines
6.8 KiB
Smali
.class public Lcom/ea/nimble/NimbleApplicationConfiguration;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static final LOG_TITLE:Ljava/lang/String; = "AppConfig"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static configValueExists(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 16
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0x80
|
|
|
|
.line 17
|
|
invoke-static {v0}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 18
|
|
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 20
|
|
invoke-virtual {v0, p0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getConfigValueAsBoolean(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 93
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 94
|
|
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getConfigValueAsBoolean(Ljava/lang/String;Z)Z
|
|
.locals 2
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 99
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x80
|
|
|
|
.line 100
|
|
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 101
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 103
|
|
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string v1, "Config value of key \'%s\' cannot be retrieved."
|
|
|
|
filled-new-array {p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 107
|
|
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static getConfigValueAsDouble(Ljava/lang/String;)D
|
|
.locals 2
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 71
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 72
|
|
invoke-static {p0, v0, v1}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsDouble(Ljava/lang/String;D)D
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static getConfigValueAsDouble(Ljava/lang/String;D)D
|
|
.locals 2
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 77
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x80
|
|
|
|
.line 78
|
|
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 79
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 81
|
|
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getDouble(Ljava/lang/String;)D
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
|
|
:cond_0
|
|
const-string v1, "Config value of key \'%s\' cannot be retrieved."
|
|
|
|
filled-new-array {p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 85
|
|
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public static getConfigValueAsInt(Ljava/lang/String;)I
|
|
.locals 1
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 49
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 50
|
|
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsInt(Ljava/lang/String;I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getConfigValueAsInt(Ljava/lang/String;I)I
|
|
.locals 2
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 55
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x80
|
|
|
|
.line 56
|
|
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 57
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 59
|
|
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string v1, "Config value of key \'%s\' cannot be retrieved."
|
|
|
|
filled-new-array {p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 63
|
|
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static getConfigValueAsString(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 27
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const-string v0, ""
|
|
|
|
.line 28
|
|
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getConfigValueAsString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "AppConfig"
|
|
|
|
.line 33
|
|
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x80
|
|
|
|
.line 34
|
|
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 35
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 37
|
|
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v1, "Config value of key \'%s\' cannot be retrieved."
|
|
|
|
filled-new-array {p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 41
|
|
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object p1
|
|
.end method
|