- 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
194 lines
4.5 KiB
Smali
194 lines
4.5 KiB
Smali
.class public final Lcom/mbridge/msdk/newreward/function/g/a;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public static a()Lcom/mbridge/msdk/newreward/function/g/c;
|
|
.locals 11
|
|
|
|
.line 16
|
|
new-instance v0, Lcom/mbridge/msdk/newreward/function/g/c;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/newreward/function/g/c;-><init>()V
|
|
|
|
.line 17
|
|
invoke-static {}, Lcom/mbridge/msdk/newreward/function/common/MBridgeSharedPreferenceModel;->getInstance()Lcom/mbridge/msdk/newreward/function/common/MBridgeSharedPreferenceModel;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "dynamic_metrics_report"
|
|
|
|
const-string v3, ""
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/mbridge/msdk/newreward/function/common/MBridgeSharedPreferenceModel;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 18
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 22
|
|
:cond_0
|
|
:try_start_0
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v1, "version"
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 23
|
|
invoke-virtual {v2, v1, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
|
|
|
|
move-result v1
|
|
|
|
if-ne v1, v4, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const-string v4, "name"
|
|
|
|
.line 27
|
|
invoke-virtual {v2, v4, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "report"
|
|
|
|
.line 28
|
|
invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object v2
|
|
|
|
.line 29
|
|
invoke-virtual {v2}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v5
|
|
|
|
new-array v5, v5, [Lcom/mbridge/msdk/newreward/function/g/d;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 31
|
|
:goto_0
|
|
invoke-virtual {v2}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v7
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
if-ge v6, v7, :cond_4
|
|
|
|
.line 33
|
|
:try_start_1
|
|
invoke-virtual {v2, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
const-string v8, "key"
|
|
|
|
.line 35
|
|
invoke-virtual {v7, v8, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v9, "classname"
|
|
|
|
.line 36
|
|
invoke-virtual {v7, v9, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v10, "method"
|
|
|
|
.line 37
|
|
invoke-virtual {v7, v10, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
.line 38
|
|
invoke-static {v8}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
.line 41
|
|
:cond_2
|
|
new-instance v10, Lcom/mbridge/msdk/newreward/function/g/d;
|
|
|
|
invoke-direct {v10, v9, v7, v8}, Lcom/mbridge/msdk/newreward/function/g/d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 42
|
|
aput-object v10, v5, v6
|
|
:try_end_1
|
|
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v7
|
|
|
|
.line 45
|
|
:try_start_2
|
|
sget-boolean v8, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
.line 46
|
|
invoke-virtual {v7}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_4
|
|
invoke-virtual {v0, v4}, Lcom/mbridge/msdk/newreward/function/g/c;->a(Ljava/lang/String;)V
|
|
|
|
.line 51
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/function/g/c;->a(I)V
|
|
|
|
.line 52
|
|
invoke-virtual {v0, v5}, Lcom/mbridge/msdk/newreward/function/g/c;->a([Lcom/mbridge/msdk/newreward/function/g/d;)V
|
|
:try_end_2
|
|
.catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
goto :goto_3
|
|
|
|
.line 54
|
|
:goto_2
|
|
sget-boolean v2, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 55
|
|
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
:cond_5
|
|
:goto_3
|
|
return-object v0
|
|
.end method
|