- 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
218 lines
5.6 KiB
Smali
218 lines
5.6 KiB
Smali
.class public Lcom/singular/sdk/internal/SingularLifecycleCallbacks;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/reflect/InvocationHandler;
|
|
|
|
|
|
# static fields
|
|
.field public static final logger:Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
|
|
# instance fields
|
|
.field public final sessionManager:Lcom/singular/sdk/internal/SessionManager;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;
|
|
|
|
.line 29
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/singular/sdk/internal/SingularLog;->getLogger(Ljava/lang/String;)Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->logger:Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/singular/sdk/internal/SessionManager;)V
|
|
.locals 0
|
|
|
|
.line 34
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->sessionManager:Lcom/singular/sdk/internal/SessionManager;
|
|
|
|
.line 38
|
|
invoke-virtual {p1}, Lcom/singular/sdk/internal/SessionManager;->useForegroundTracking()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 67
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p3, "onActivityResumed"
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->sessionManager:Lcom/singular/sdk/internal/SessionManager;
|
|
|
|
.line 69
|
|
invoke-static {}, Lcom/singular/sdk/internal/Utils;->getCurrentTimeMillis()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {p1, p2, p3}, Lcom/singular/sdk/internal/SessionManager;->onEnterForeground(J)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "onActivityPaused"
|
|
|
|
.line 70
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->sessionManager:Lcom/singular/sdk/internal/SessionManager;
|
|
|
|
.line 72
|
|
invoke-static {}, Lcom/singular/sdk/internal/Utils;->getCurrentTimeMillis()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {p1, p2, p3}, Lcom/singular/sdk/internal/SessionManager;->onExitForeground(J)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public registerSelf(Landroid/app/Application;)V
|
|
.locals 7
|
|
|
|
const-class v0, Landroid/app/Application;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Class;
|
|
|
|
const-class v2, Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
.line 44
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v1, p0}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
.line 47
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
.line 48
|
|
array-length v2, v0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
.line 49
|
|
invoke-virtual {v4}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "registerActivityLifecycleCallbacks"
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const/4 v4, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v4, :cond_2
|
|
|
|
filled-new-array {v1}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 55
|
|
invoke-virtual {v4, p1, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
sget-object p1, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->logger:Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
const-string v0, "ActivityLifecycleCallbacks registration successful, Automatic session management will work."
|
|
|
|
.line 56
|
|
invoke-virtual {p1, v0}, Lcom/singular/sdk/internal/SingularLog;->debug(Ljava/lang/String;)I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
sget-object p1, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->logger:Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
const-string v0, "ActivityLifecycleCallbacks registration not available, Automatic session management will not work"
|
|
|
|
.line 58
|
|
invoke-virtual {p1, v0}, Lcom/singular/sdk/internal/SingularLog;->error(Ljava/lang/String;)I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
sget-object v0, Lcom/singular/sdk/internal/SingularLifecycleCallbacks;->logger:Lcom/singular/sdk/internal/SingularLog;
|
|
|
|
const-string v1, "ActivityLifecycleCallbacks registration failed, Automatic session management will not work"
|
|
|
|
.line 61
|
|
invoke-virtual {v0, v1, p1}, Lcom/singular/sdk/internal/SingularLog;->error(Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:goto_3
|
|
return-void
|
|
.end method
|