- 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
152 lines
2.9 KiB
Smali
152 lines
2.9 KiB
Smali
.class public Lcsdk/glucentralservices/util/Common;
|
|
.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 7
|
|
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/glucentralservices/util/Common;->mainHandler:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
.locals 1
|
|
|
|
.line 23
|
|
instance-of v0, p0, Ljava/lang/Error;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 25
|
|
instance-of v0, p0, Ljava/lang/RuntimeException;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 26
|
|
check-cast p0, Ljava/lang/RuntimeException;
|
|
|
|
throw p0
|
|
|
|
.line 28
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
.line 24
|
|
: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 11
|
|
: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 17
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
: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 32
|
|
invoke-static {v0, v1}, Lcsdk/glucentralservices/util/Common;->require(ZLjava/lang/String;)V
|
|
|
|
sget-object v0, Lcsdk/glucentralservices/util/Common;->mainHandler:Landroid/os/Handler;
|
|
|
|
.line 33
|
|
invoke-virtual {v0, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 34
|
|
: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
|