Files
rr3-apk/smali_classes2/com/fyber/inneractive/sdk/config/global/g.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

272 lines
6.2 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/config/global/g;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static a(Ljava/util/HashMap;Z)Lorg/json/JSONArray;
.locals 9
.line 1
new-instance v0, Lorg/json/JSONArray;
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
const/4 v1, 0x0
.line 4
:try_start_0
invoke-virtual {p0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_8
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/fyber/inneractive/sdk/config/global/features/g;
.line 5
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 6
new-instance v3, Ljava/util/ArrayList;
iget-object v4, v2, Lcom/fyber/inneractive/sdk/config/global/features/g;->c:Ljava/util/HashMap;
invoke-virtual {v4}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v4
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 7
iget-object v2, v2, Lcom/fyber/inneractive/sdk/config/global/features/g;->d:Ljava/util/HashMap;
.line 8
invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_1
:goto_0
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_0
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/fyber/inneractive/sdk/config/global/b;
.line 9
new-instance v5, Lorg/json/JSONObject;
invoke-direct {v5}, Lorg/json/JSONObject;-><init>()V
if-eqz v4, :cond_2
.line 10
iget-object v6, v4, Lcom/fyber/inneractive/sdk/config/global/b;->a:Ljava/lang/String;
goto :goto_1
:catch_0
move-exception p0
goto/16 :goto_5
:cond_2
move-object v6, v1
.line 11
:goto_1
invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v7
if-nez v7, :cond_1
.line 12
invoke-virtual {v2, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lcom/fyber/inneractive/sdk/config/global/k;
const-string v8, "id"
.line 14
invoke-virtual {v5, v8, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
const-string v6, "v"
if-eqz v7, :cond_3
.line 17
:try_start_1
iget-object v7, v7, Lcom/fyber/inneractive/sdk/config/global/k;->b:Ljava/lang/String;
.line 18
invoke-virtual {v5, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
goto :goto_2
:cond_3
const-string v7, "control"
.line 20
invoke-virtual {v5, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:goto_2
if-eqz p1, :cond_7
const-class v6, Lcom/fyber/inneractive/sdk/config/global/c;
.line 25
iget-object v4, v4, Lcom/fyber/inneractive/sdk/config/global/b;->d:Ljava/util/ArrayList;
.line 26
invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_4
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v7
if-eqz v7, :cond_5
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v7
check-cast v7, Lcom/fyber/inneractive/sdk/config/global/d;
.line 27
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v8
invoke-virtual {v6, v8}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v8
if-eqz v8, :cond_4
goto :goto_3
:cond_5
move-object v7, v1
:goto_3
if-eqz v7, :cond_7
.line 28
move-object v4, v7
check-cast v4, Lcom/fyber/inneractive/sdk/config/global/c;
iget-boolean v4, v4, Lcom/fyber/inneractive/sdk/config/global/c;->b:Z
if-eqz v4, :cond_7
.line 29
check-cast v7, Lcom/fyber/inneractive/sdk/config/global/c;
.line 30
iget-object v4, v7, Lcom/fyber/inneractive/sdk/config/global/c;->a:Ljava/util/HashSet;
.line 31
new-instance v6, Lorg/json/JSONArray;
invoke-direct {v6}, Lorg/json/JSONArray;-><init>()V
.line 32
invoke-virtual {v4}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
move-result-object v4
:goto_4
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v7
if-eqz v7, :cond_6
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/Long;
.line 33
invoke-virtual {v6, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
goto :goto_4
.line 35
:cond_6
invoke-virtual {v6}, Lorg/json/JSONArray;->length()I
move-result v4
if-lez v4, :cond_7
const-string v4, "d"
.line 36
invoke-virtual {v5, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 41
:cond_7
invoke-virtual {v0, v5}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
:try_end_1
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
goto/16 :goto_0
:cond_8
return-object v0
:goto_5
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "ExperimentParamBuilder: Json exception during experiments Json build!"
.line 46
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
.line 47
sget p1, Lcom/fyber/inneractive/sdk/util/IAlog;->a:I
const/4 v0, 0x3
if-gt p1, v0, :cond_9
.line 48
invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V
:cond_9
return-object v1
.end method