- 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
89 lines
1.8 KiB
Smali
89 lines
1.8 KiB
Smali
.class public Lcom/tapjoy/TJDataFetcher;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lorg/json/JSONObject;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 6
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/TJDataFetcher;->a:Lorg/json/JSONObject;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lorg/json/JSONArray;)Lorg/json/JSONObject;
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_3
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "USER_ID"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 3
|
|
sget-object v1, Lcom/tapjoy/TJUser;->INSTANCE:Lcom/tapjoy/TJUser;
|
|
|
|
invoke-virtual {v1}, Lcom/tapjoy/TJUser;->getUserID()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v3, p0, Lcom/tapjoy/TJDataFetcher;->a:Lorg/json/JSONObject;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
:cond_0
|
|
sget-object v1, Lorg/json/JSONObject;->NULL:Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
invoke-virtual {v3, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/tapjoy/TJDataFetcher;->a:Lorg/json/JSONObject;
|
|
|
|
return-object p1
|
|
.end method
|