- 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
491 lines
13 KiB
Smali
491 lines
13 KiB
Smali
.class public final Lcom/google/android/gms/games/internal/zzap;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnAttachStateChangeListener;
|
|
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
.implements Lcom/google/android/gms/games/internal/zzd;
|
|
|
|
|
|
# instance fields
|
|
.field private final zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
.field private final zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
.field private zzc:Ljava/lang/ref/WeakReference;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzd:Z
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/google/android/gms/games/internal/zzaj;I)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzd:Z
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
new-instance p1, Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p1, p2, v0}, Lcom/google/android/gms/internal/games_v2/zzae;-><init>(ILandroid/os/IBinder;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zzd(Lcom/google/android/gms/games/internal/zzaj;I)Lcom/google/android/gms/games/internal/zzap;
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/google/android/gms/games/internal/zzap;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/gms/games/internal/zzap;-><init>(Lcom/google/android/gms/games/internal/zzaj;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final zzh(Landroid/view/View;)V
|
|
.locals 5
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x11
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBeanMR1()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/view/View;->getDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/Display;->getDisplayId()I
|
|
|
|
move-result v1
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [I
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->getLocationInWindow([I)V
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v3
|
|
|
|
.line 7
|
|
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
iget-object v4, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
iput v1, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zzc:I
|
|
|
|
iput-object v0, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zza:Landroid/os/IBinder;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aget v0, v2, v0
|
|
|
|
iput v0, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zzd:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aget v1, v2, v1
|
|
|
|
iput v1, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zze:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iput v0, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zzf:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, v4, Lcom/google/android/gms/internal/games_v2/zzae;->zzg:I
|
|
|
|
iget-boolean p1, p0, Lcom/google/android/gms/games/internal/zzap;->zzd:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Lcom/google/android/gms/games/internal/zzap;->zzg()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onGlobalLayout()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzc:Ljava/lang/ref/WeakReference;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0}, Lcom/google/android/gms/games/internal/zzap;->zzh(Landroid/view/View;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onViewAttachedToWindow(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/games/internal/zzap;->zzh(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onViewDetachedFromWindow(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
.line 1
|
|
invoke-virtual {v0}, Lcom/google/android/gms/games/internal/zzaj;->zzs()V
|
|
|
|
.line 2
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->removeOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zza(Landroid/app/Activity;)V
|
|
.locals 3
|
|
|
|
const v0, 0x1020002
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p1, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "PopupManager"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "Failed to bind to: "
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v1, p1}, Lcom/google/android/gms/internal/games_v2/zzfg;->zzg(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "Binding to: "
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v1, p1}, Lcom/google/android/gms/internal/games_v2/zzfg;->zzf(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Lcom/google/android/gms/games/internal/zzap;->zzf(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zzb()Landroid/os/Bundle;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
.line 1
|
|
invoke-virtual {v0}, Lcom/google/android/gms/internal/games_v2/zzae;->zza()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zzc()Landroid/os/IBinder;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
iget-object v0, v0, Lcom/google/android/gms/internal/games_v2/zzae;->zza:Landroid/os/IBinder;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zze()Lcom/google/android/gms/internal/games_v2/zzae;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final zzf(Landroid/view/View;)V
|
|
.locals 3
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x10
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
.line 1
|
|
invoke-virtual {v0}, Lcom/google/android/gms/games/internal/zzaj;->zzs()V
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzc:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
.line 3
|
|
invoke-virtual {v1}, Lcom/google/android/gms/common/internal/BaseGmsClient;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
instance-of v2, v1, Landroid/app/Activity;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 5
|
|
check-cast v1, Landroid/app/Activity;
|
|
|
|
invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 6
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->removeOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
|
|
|
|
.line 7
|
|
invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBean()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 9
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_1
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzc:Ljava/lang/ref/WeakReference;
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
.line 11
|
|
invoke-virtual {v0}, Lcom/google/android/gms/common/internal/BaseGmsClient;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "PopupManager"
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
.line 12
|
|
instance-of v2, v0, Landroid/app/Activity;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 13
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
const v2, 0x1020002
|
|
|
|
.line 14
|
|
:try_start_0
|
|
invoke-virtual {v0, v2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
if-nez p1, :cond_3
|
|
|
|
.line 15
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_3
|
|
const-string v0, "You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments"
|
|
|
|
.line 16
|
|
invoke-static {v1, v0}, Lcom/google/android/gms/internal/games_v2/zzfg;->zzg(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 17
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/games/internal/zzap;->zzh(Landroid/view/View;)V
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 18
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzc:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 19
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
|
|
|
|
.line 20
|
|
invoke-virtual {p1}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
invoke-virtual {p1, p0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string p1, "No content view usable to display popups. Popups will not be displayed in response to this client\'s calls. Use setViewForPopups() to set your content view."
|
|
|
|
.line 22
|
|
invoke-static {v1, p1}, Lcom/google/android/gms/internal/games_v2/zzfg;->zzc(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zzg()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzb:Lcom/google/android/gms/internal/games_v2/zzae;
|
|
|
|
.line 1
|
|
iget-object v1, v0, Lcom/google/android/gms/internal/games_v2/zzae;->zza:Landroid/os/IBinder;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/games/internal/zzap;->zza:Lcom/google/android/gms/games/internal/zzaj;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/internal/games_v2/zzae;->zza()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {v2, v1, v0}, Lcom/google/android/gms/games/internal/zzaj;->zzQ(Landroid/os/IBinder;Landroid/os/Bundle;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/google/android/gms/games/internal/zzap;->zzd:Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|