Files
rr3-apk/smali_classes4/com/mbridge/msdk/newreward/function/h/c.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

367 lines
7.0 KiB
Smali

.class public final Lcom/mbridge/msdk/newreward/function/h/c;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static a(Ljava/io/File;)Ljava/lang/String;
.locals 5
.line 70
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const/4 v1, 0x0
const/4 v2, 0x0
.line 73
:try_start_0
new-instance v3, Ljava/io/FileInputStream;
invoke-direct {v3, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_1
const/16 p0, 0x400
:try_start_1
new-array p0, p0, [B
.line 75
invoke-virtual {v3, p0}, Ljava/io/FileInputStream;->read([B)I
move-result v2
:goto_0
if-lez v2, :cond_0
.line 77
new-instance v4, Ljava/lang/String;
invoke-direct {v4, p0, v1, v2}, Ljava/lang/String;-><init>([BII)V
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 78
invoke-virtual {v3, p0}, Ljava/io/FileInputStream;->read([B)I
move-result v2
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
move-exception p0
move-object v2, v3
goto :goto_3
:catch_0
move-object v2, v3
goto :goto_1
.line 85
:cond_0
:try_start_2
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
goto :goto_2
:catchall_1
move-exception p0
goto :goto_3
.line 81
:catch_1
:goto_1
:try_start_3
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->setLength(I)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
if-eqz v2, :cond_1
.line 85
:try_start_4
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
.line 91
:catch_2
:cond_1
:goto_2
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
:goto_3
if-eqz v2, :cond_2
.line 85
:try_start_5
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3
.line 90
:catch_3
:cond_2
throw p0
.end method
.method public static a(Ljava/lang/String;)Ljava/lang/String;
.locals 2
.line 25
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
const-string p0, ""
return-object p0
.line 29
:cond_0
:try_start_0
new-instance v0, Ljava/net/URL;
invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/net/URL;->getPath()Ljava/lang/String;
move-result-object v0
const/16 v1, 0x2f
.line 30
invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(I)I
move-result v1
add-int/lit8 v1, v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-object p0
.end method
.method public static a(Ljava/lang/String;III)V
.locals 1
.line 119
new-instance v0, Lcom/mbridge/msdk/newreward/function/h/c$1;
invoke-direct {v0, p1, p2, p3, p0}, Lcom/mbridge/msdk/newreward/function/h/c$1;-><init>(IIILjava/lang/String;)V
.line 133
invoke-static {v0}, Lcom/mbridge/msdk/newreward/function/common/MBridgeTaskManager;->commonExecute(Ljava/lang/Runnable;)V
return-void
.end method
.method public static b(Ljava/lang/String;)Z
.locals 1
.line 38
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p0, 0x0
return p0
.line 41
:cond_0
invoke-static {p0}, Lcom/mbridge/msdk/foundation/tools/ak;->i(Ljava/lang/String;)Z
move-result p0
return p0
.end method
.method public static c(Ljava/lang/String;)Z
.locals 3
.line 45
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
:cond_0
:try_start_0
const-string v0, "_"
.line 49
invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p0
.line 50
array-length v0, p0
const/4 v2, 0x4
if-ge v0, v2, :cond_1
return v1
:cond_1
const/4 v0, 0x3
.line 53
aget-object p0, p0, v0
.line 54
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_2
return v1
.line 57
:cond_2
invoke-static {p0}, Lcom/mbridge/msdk/foundation/tools/z;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
const-string v0, "\\|"
.line 58
invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_3
.line 59
array-length p0, p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
if-nez p0, :cond_4
:cond_3
return v1
:catch_0
:cond_4
const/4 p0, 0x1
return p0
.end method
.method public static d(Ljava/lang/String;)D
.locals 4
.line 95
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
const-wide/16 v1, 0x0
if-eqz v0, :cond_0
return-wide v1
:cond_0
:try_start_0
const-string v0, "_"
.line 99
invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p0
.line 100
array-length v0, p0
const/4 v3, 0x4
if-ge v0, v3, :cond_1
return-wide v1
:cond_1
const/4 v0, 0x3
.line 103
aget-object p0, p0, v0
.line 104
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_2
return-wide v1
.line 107
:cond_2
invoke-static {p0}, Lcom/mbridge/msdk/foundation/tools/z;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
const-string v0, "\\|"
.line 108
invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p0
.line 109
array-length v0, p0
if-lez v0, :cond_3
const/4 v0, 0x0
.line 110
aget-object p0, p0, v0
invoke-static {p0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
move-result-wide v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-wide v0
:catch_0
:cond_3
return-wide v1
.end method