- 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
547 lines
13 KiB
Smali
547 lines
13 KiB
Smali
.class public Lcom/ironsource/dj;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static final b:Ljava/lang/String; = "dj"
|
|
|
|
.field private static final c:Ljava/lang/String; = "supersonic_shared_preferen"
|
|
|
|
.field private static final d:Ljava/lang/String; = "version"
|
|
|
|
.field private static final e:Ljava/lang/String; = "back_button_state"
|
|
|
|
.field private static final f:Ljava/lang/String; = "search_keys"
|
|
|
|
.field private static final g:Ljava/lang/String; = "^\\d+_\\d+$"
|
|
|
|
.field private static h:Lcom/ironsource/dj;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/content/SharedPreferences;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-string v0, "supersonic_shared_preferen"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static declared-synchronized a(Landroid/content/Context;)Lcom/ironsource/dj;
|
|
.locals 2
|
|
|
|
.line 0
|
|
const-class v0, Lcom/ironsource/dj;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/ironsource/dj;->h:Lcom/ironsource/dj;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Lcom/ironsource/dj;
|
|
|
|
invoke-direct {v1, p0}, Lcom/ironsource/dj;-><init>(Landroid/content/Context;)V
|
|
|
|
sput-object v1, Lcom/ironsource/dj;->h:Lcom/ironsource/dj;
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
sget-object p0, Lcom/ironsource/dj;->h:Lcom/ironsource/dj;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private b(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
.line 0
|
|
const-string v0, "^\\d+_\\d+$"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->matches(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static declared-synchronized e()Lcom/ironsource/dj;
|
|
.locals 2
|
|
|
|
.line 0
|
|
const-class v0, Lcom/ironsource/dj;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/ironsource/dj;->h:Lcom/ironsource/dj;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, p1, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "{}"
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a()Ljava/util/ArrayList;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v3, v2, [Ljava/lang/String;
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/String;
|
|
|
|
iget-object v3, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v3
|
|
|
|
array-length v4, v1
|
|
|
|
:goto_0
|
|
if-ge v2, v4, :cond_1
|
|
|
|
aget-object v5, v1, v2
|
|
|
|
invoke-direct {p0, v5}, Lcom/ironsource/dj;->b(Ljava/lang/String;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {v3, v5}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 3
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "ssaUserData"
|
|
|
|
invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
:try_start_0
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {v1, p2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p2, p3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "timestamp"
|
|
|
|
invoke-virtual {p2, p3, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object p1, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, v2, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
|
|
sget-object p2, Lcom/ironsource/mediationsdk/logger/IronLog;->INTERNAL:Lcom/ironsource/mediationsdk/logger/IronLog;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/ironsource/mediationsdk/logger/IronLog;->error(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public b()Lcom/ironsource/qf$a;
|
|
.locals 3
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
const-string v1, "back_button_state"
|
|
|
|
const-string v2, "2"
|
|
|
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Lcom/ironsource/qf$a;->a:Lcom/ironsource/qf$a;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
sget-object v0, Lcom/ironsource/qf$a;->b:Lcom/ironsource/qf$a;
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
sget-object v0, Lcom/ironsource/qf$a;->c:Lcom/ironsource/qf$a;
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
sget-object v0, Lcom/ironsource/qf$a;->c:Lcom/ironsource/qf$a;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
const-string v1, "version"
|
|
|
|
const-string v2, "-1"
|
|
|
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c(Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "back_button_state"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()Ljava/util/List;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
const-string v1, "search_keys"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v2, Lcom/ironsource/wp;
|
|
|
|
invoke-direct {v2, v0}, Lcom/ironsource/wp;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "searchKeys"
|
|
|
|
invoke-virtual {v2, v0}, Lcom/ironsource/wp;->a(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v2, v0}, Lcom/ironsource/wp;->b(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lorg/json/JSONArray;
|
|
|
|
:try_start_0
|
|
invoke-virtual {v2, v0}, Lcom/ironsource/wp;->a(Lorg/json/JSONArray;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
|
|
sget-object v2, Lcom/ironsource/mediationsdk/logger/IronLog;->INTERNAL:Lcom/ironsource/mediationsdk/logger/IronLog;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v0}, Lcom/ironsource/mediationsdk/logger/IronLog;->error(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 0
|
|
invoke-virtual {p0}, Lcom/ironsource/dj;->c()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "version"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 0
|
|
iget-object v0, p0, Lcom/ironsource/dj;->a:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "search_keys"
|
|
|
|
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
return-void
|
|
.end method
|