- 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
463 lines
11 KiB
Smali
463 lines
11 KiB
Smali
.class public final Lcom/google/android/gms/games/internal/zzg;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic zza:I
|
|
|
|
.field private static final zzb:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
|
|
# instance fields
|
|
.field private final zzc:Landroid/app/Application;
|
|
|
|
.field private final zzd:Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
.field private final zze:Ljava/lang/Object;
|
|
|
|
.field private final zzf:Ljava/util/Set;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "lock"
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzg:Ljava/lang/ref/WeakReference;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "lock"
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzh:Z
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "lock"
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/games/internal/zzg;->zzb:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/app/Application;)V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
otherwise = 0x2
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Lcom/google/android/gms/games/internal/zzf;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/gms/games/internal/zzf;-><init>(Lcom/google/android/gms/games/internal/zzg;Lcom/google/android/gms/games/internal/zze;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zzd:Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
new-instance v0, Ljava/util/WeakHashMap;
|
|
|
|
.line 2
|
|
invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
|
|
|
|
.line 3
|
|
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zzf:Ljava/util/Set;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/google/android/gms/games/internal/zzg;->zzh:Z
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/games/internal/zzg;->zzc:Landroid/app/Application;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zzb(Landroid/app/Application;)Lcom/google/android/gms/games/internal/zzg;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
sget-object v0, Lcom/google/android/gms/games/internal/zzg;->zzb:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/gms/games/internal/zzg;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
new-instance v1, Lcom/google/android/gms/games/internal/zzg;
|
|
|
|
.line 3
|
|
invoke-direct {v1, p0}, Lcom/google/android/gms/games/internal/zzg;-><init>(Landroid/app/Application;)V
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
.line 4
|
|
invoke-static {v0, p0, v1}, Landroidx/lifecycle/LifecycleKt$$ExternalSyntheticBackportWithForwarding0;->m(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
:goto_0
|
|
sget-object p0, Lcom/google/android/gms/games/internal/zzg;->zzb:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/android/gms/games/internal/zzg;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static bridge synthetic zzc(Lcom/google/android/gms/games/internal/zzg;Landroid/app/Activity;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzg:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 4
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v1, p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/games/internal/zzg;->zzg:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 3
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:goto_0
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static bridge synthetic zzd(Lcom/google/android/gms/games/internal/zzg;Landroid/app/Activity;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
monitor-enter v0
|
|
|
|
.line 3
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/android/gms/games/internal/zzg;->zza()Landroid/app/Activity;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
.line 4
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 5
|
|
invoke-direct {v1, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzg:Ljava/lang/ref/WeakReference;
|
|
|
|
iget-object p0, p0, Lcom/google/android/gms/games/internal/zzg;->zzf:Ljava/util/Set;
|
|
|
|
.line 6
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/gms/games/internal/zzd;
|
|
|
|
.line 7
|
|
invoke-interface {v1, p1}, Lcom/google/android/gms/games/internal/zzd;->zza(Landroid/app/Activity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private final zzh(Lcom/google/android/gms/games/internal/zzd;)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/gms/games/internal/zzg;->zza()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-interface {p1, v0}, Lcom/google/android/gms/games/internal/zzd;->zza(Landroid/app/Activity;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zza()Landroid/app/Activity;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
.line 1
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzg:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/app/Activity;
|
|
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 3
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final zze(Lcom/google/android/gms/games/internal/zzd;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzf:Ljava/util/Set;
|
|
|
|
.line 3
|
|
invoke-interface {v1, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 5
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 7
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/games/internal/zzg;->zzh(Lcom/google/android/gms/games/internal/zzd;)V
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
sget-object v0, Lcom/google/android/gms/tasks/TaskExecutors;->MAIN_THREAD:Ljava/util/concurrent/Executor;
|
|
|
|
new-instance v1, Lcom/google/android/gms/games/internal/zzc;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/google/android/gms/games/internal/zzc;-><init>(Lcom/google/android/gms/games/internal/zzg;Lcom/google/android/gms/games/internal/zzd;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 4
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final synthetic zzf(Lcom/google/android/gms/games/internal/zzd;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/games/internal/zzg;->zzh(Lcom/google/android/gms/games/internal/zzd;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zzg()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzg;->zze:Ljava/lang/Object;
|
|
|
|
.line 1
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-boolean v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzh:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzc:Landroid/app/Application;
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/games/internal/zzg;->zzd:Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
.line 2
|
|
invoke-virtual {v1, v2}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, p0, Lcom/google/android/gms/games/internal/zzg;->zzh:Z
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_0
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|