- 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
427 lines
8.9 KiB
Smali
427 lines
8.9 KiB
Smali
.class public Lcom/glu/plugins/gluanalytics/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 15
|
|
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, Lcom/glu/plugins/gluanalytics/util/Common;->mainHandler:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 14
|
|
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 76
|
|
: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 78
|
|
invoke-static {p0}, Lcom/glu/plugins/gluanalytics/util/Common;->propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static createLooper()Landroid/os/Looper;
|
|
.locals 1
|
|
|
|
const-string v0, "looper"
|
|
|
|
.line 65
|
|
invoke-static {v0}, Lcom/glu/plugins/gluanalytics/util/Common;->createLooper(Ljava/lang/String;)Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static createLooper(Ljava/lang/String;)Landroid/os/Looper;
|
|
.locals 1
|
|
|
|
.line 69
|
|
new-instance v0, Landroid/os/HandlerThread;
|
|
|
|
invoke-direct {v0, p0}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 70
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
|
|
|
|
.line 71
|
|
invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static emptyToNull(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 48
|
|
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 or(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p0, p1
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static packageVersionCode(Landroid/content/Context;)J
|
|
.locals 2
|
|
|
|
.line 86
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 92
|
|
invoke-static {p0}, Landroidx/credentials/playservices/controllers/CreatePublicKeyCredential/PublicKeyCredentialControllerUtility$GetGMSVersion$$ExternalSyntheticApiModelOutline0;->m(Landroid/content/pm/PackageInfo;)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
.line 94
|
|
:cond_0
|
|
iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
int-to-long v0, p0
|
|
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 88
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static printBytes([BII)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 52
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
:goto_0
|
|
if-ge p1, p2, :cond_0
|
|
|
|
.line 54
|
|
aget-byte v1, p0, p1
|
|
|
|
invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
move-result-object v1
|
|
|
|
filled-new-array {v1}, [Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "%02x"
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 55
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
.locals 1
|
|
|
|
.line 31
|
|
instance-of v0, p0, Ljava/lang/Error;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 33
|
|
instance-of v0, p0, Ljava/lang/RuntimeException;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 34
|
|
check-cast p0, Ljava/lang/RuntimeException;
|
|
|
|
throw p0
|
|
|
|
.line 36
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
.line 32
|
|
: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 19
|
|
: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 25
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 26
|
|
: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 98
|
|
invoke-static {v0, v1}, Lcom/glu/plugins/gluanalytics/util/Common;->require(ZLjava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/glu/plugins/gluanalytics/util/Common;->mainHandler:Landroid/os/Handler;
|
|
|
|
.line 99
|
|
invoke-virtual {v0, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 100
|
|
: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 104
|
|
invoke-static {v0, v1}, Lcom/glu/plugins/gluanalytics/util/Common;->require(ZLjava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/glu/plugins/gluanalytics/util/Common;->mainHandler:Landroid/os/Handler;
|
|
|
|
.line 105
|
|
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 106
|
|
: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 unknownHostCause(Ljava/lang/Throwable;)Ljava/net/UnknownHostException;
|
|
.locals 1
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 41
|
|
instance-of v0, p0, Ljava/net/UnknownHostException;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 42
|
|
check-cast p0, Ljava/net/UnknownHostException;
|
|
|
|
return-object p0
|
|
|
|
.line 40
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|