Files
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

247 lines
5.9 KiB
Smali

.class public final Lcom/mbridge/msdk/foundation/controller/b;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/foundation/controller/b$a;
}
.end annotation
# instance fields
.field private a:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Lcom/mbridge/msdk/foundation/b/d;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>()V
.locals 1
.line 20
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 18
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
return-void
.end method
.method public synthetic constructor <init>(Lcom/mbridge/msdk/foundation/controller/b$1;)V
.locals 0
.line 15
invoke-direct {p0}, Lcom/mbridge/msdk/foundation/controller/b;-><init>()V
return-void
.end method
.method public static a()Lcom/mbridge/msdk/foundation/controller/b;
.locals 1
.line 24
sget-object v0, Lcom/mbridge/msdk/foundation/controller/b$a;->a:Lcom/mbridge/msdk/foundation/controller/b;
return-object v0
.end method
# virtual methods
.method public final a(Ljava/lang/String;Lorg/json/JSONArray;)Lcom/mbridge/msdk/foundation/b/d;
.locals 6
iget-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
if-nez v0, :cond_0
.line 41
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
.line 43
invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_4
if-nez p2, :cond_1
.line 46
:try_start_0
new-instance v0, Lorg/json/JSONArray;
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.line 47
:try_start_1
new-instance p2, Lorg/json/JSONObject;
invoke-direct {p2}, Lorg/json/JSONObject;-><init>()V
const-string v1, "c_cb"
const/4 v2, 0x0
.line 48
invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
const-string v1, "t_disc"
const-wide v3, 0x3fee666666666666L # 0.95
.line 49
invoke-virtual {p2, v1, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
const-string v1, "u_disc"
.line 50
invoke-virtual {p2, v1, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
const-string v1, "max_ecppv_diff"
.line 51
invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
const-string v1, "max_cache_num"
const/16 v2, 0x14
.line 52
invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
const-string v1, "max_usage_limit"
const/16 v2, 0xa
.line 53
invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
const-string v1, "time_interval"
const/16 v2, 0x1c20
.line 54
invoke-virtual {p2, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
.line 55
invoke-virtual {v0, p2}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
:goto_0
move-object p2, v0
goto :goto_2
:catch_0
move-exception p2
goto :goto_1
:catch_1
move-exception v0
move-object v5, v0
move-object v0, p2
move-object p2, v5
:goto_1
const-string v1, "CandidateController"
.line 57
invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p2
invoke-static {v1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:cond_1
:goto_2
iget-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
if-nez v0, :cond_2
.line 1067
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
:cond_2
iget-object v0, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
.line 1069
invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_3
iget-object p2, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
.line 1070
invoke-virtual {p2, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/mbridge/msdk/foundation/b/d;
goto :goto_3
.line 1072
:cond_3
new-instance v0, Lcom/mbridge/msdk/foundation/b/d;
invoke-direct {v0, p1, p2}, Lcom/mbridge/msdk/foundation/b/d;-><init>(Ljava/lang/String;Lorg/json/JSONArray;)V
iget-object p2, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
.line 1073
invoke-virtual {p2, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-object p1, v0
:goto_3
return-object p1
:cond_4
iget-object p2, p0, Lcom/mbridge/msdk/foundation/controller/b;->a:Ljava/util/HashMap;
.line 62
invoke-virtual {p2, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/mbridge/msdk/foundation/b/d;
return-object p1
.end method