- 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
317 lines
6.5 KiB
Smali
317 lines
6.5 KiB
Smali
.class public Lcsdk/glucustomersupport/util/GluUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static mainHandler:Landroid/os/Handler;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 14
|
|
new-instance v0, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
sput-object v0, Lcsdk/glucustomersupport/util/GluUtil;->mainHandler:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static call(Ljava/util/concurrent/Callable;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 44
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 46
|
|
invoke-static {p0}, Lcsdk/glucustomersupport/util/GluUtil;->propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static createMap()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">()",
|
|
"Ljava/util/Map<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 51
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static emptyToNull(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static varargs log(ZLjava/lang/String;[Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 77
|
|
invoke-static {p1, p2}, Lcsdk/glucustomersupport/util/log/YLogger;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
invoke-static {p2}, Lcsdk/glucustomersupport/util/log/YLogger;->findThrowable([Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
.locals 1
|
|
|
|
.line 30
|
|
instance-of v0, p0, Ljava/lang/Error;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 32
|
|
instance-of v0, p0, Ljava/lang/RuntimeException;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 33
|
|
check-cast p0, Ljava/lang/RuntimeException;
|
|
|
|
throw p0
|
|
|
|
.line 35
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
.line 31
|
|
:cond_1
|
|
check-cast p0, Ljava/lang/Error;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static require(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 18
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static require(ZLjava/lang/String;)V
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 24
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 25
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
:goto_0
|
|
throw p0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static runOnUIThread(Ljava/lang/Runnable;)V
|
|
.locals 2
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "runnable == null"
|
|
|
|
.line 64
|
|
invoke-static {v0, v1}, Lcsdk/glucustomersupport/util/GluUtil;->require(ZLjava/lang/String;)V
|
|
|
|
sget-object v0, Lcsdk/glucustomersupport/util/GluUtil;->mainHandler:Landroid/os/Handler;
|
|
|
|
.line 65
|
|
invoke-virtual {v0, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 66
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Failed to post runnable"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static runOnUIThreadDelayed(Ljava/lang/Runnable;J)V
|
|
.locals 2
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "runnable == null"
|
|
|
|
.line 70
|
|
invoke-static {v0, v1}, Lcsdk/glucustomersupport/util/GluUtil;->require(ZLjava/lang/String;)V
|
|
|
|
sget-object v0, Lcsdk/glucustomersupport/util/GluUtil;->mainHandler:Landroid/os/Handler;
|
|
|
|
.line 71
|
|
invoke-virtual {v0, p0, p1, p2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 72
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Failed to post runnable"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static shallowClone(Ljava/util/Map;)Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/Map<",
|
|
"TK;TV;>;)",
|
|
"Ljava/util/Map<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 58
|
|
:cond_0
|
|
invoke-static {}, Lcsdk/glucustomersupport/util/GluUtil;->createMap()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
.line 59
|
|
invoke-interface {v0, p0}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
|
|
|
|
return-object v0
|
|
.end method
|