Files
rr3-apk/smali_classes3/com/google/android/gms/internal/ads/zzdpa.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

218 lines
4.8 KiB
Smali

.class public final Lcom/google/android/gms/internal/ads/zzdpa;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private zza:Landroid/content/Context;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private zzb:Landroid/widget/PopupWindow;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final zza(Landroid/content/Context;Landroid/view/View;)V
.locals 6
.line 1
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastKitKat()Z
move-result v0
if-eqz v0, :cond_6
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastLollipop()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_3
.line 2
:cond_0
instance-of v0, p1, Landroid/app/Activity;
const/4 v1, 0x0
if-eqz v0, :cond_1
.line 3
move-object v0, p1
check-cast v0, Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v0
goto :goto_0
:cond_1
move-object v0, v1
:goto_0
if-eqz v0, :cond_2
.line 4
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v2
if-nez v2, :cond_3
:catch_0
:cond_2
:goto_1
move-object p2, v1
goto :goto_2
.line 5
:cond_3
move-object v2, p1
check-cast v2, Landroid/app/Activity;
invoke-virtual {v2}, Landroid/app/Activity;->isDestroyed()Z
move-result v2
if-eqz v2, :cond_4
goto :goto_1
:cond_4
new-instance v2, Landroid/widget/FrameLayout;
.line 6
invoke-direct {v2, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
new-instance v3, Landroid/view/ViewGroup$LayoutParams;
const/4 v4, -0x1
.line 7
invoke-direct {v3, v4, v4}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
invoke-virtual {v2, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 8
invoke-virtual {v2, p2, v4, v4}, Landroid/view/ViewGroup;->addView(Landroid/view/View;II)V
new-instance p2, Landroid/widget/PopupWindow;
const/4 v3, 0x1
const/4 v5, 0x0
.line 9
invoke-direct {p2, v2, v3, v3, v5}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V
.line 10
invoke-virtual {p2, v3}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V
.line 11
invoke-virtual {p2, v5}, Landroid/widget/PopupWindow;->setClippingEnabled(Z)V
const-string v2, "Displaying the 1x1 popup off the screen."
.line 12
invoke-static {v2}, Lcom/google/android/gms/ads/internal/util/client/zzo;->zze(Ljava/lang/String;)V
.line 13
:try_start_0
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v0
invoke-virtual {p2, v0, v5, v4, v4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:goto_2
iput-object p2, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zzb:Landroid/widget/PopupWindow;
if-nez p2, :cond_5
move-object p1, v1
:cond_5
iput-object p1, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zza:Landroid/content/Context;
:cond_6
:goto_3
return-void
.end method
.method public final zzb()V
.locals 2
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zza:Landroid/content/Context;
if-eqz v0, :cond_3
iget-object v1, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zzb:Landroid/widget/PopupWindow;
if-nez v1, :cond_0
goto :goto_0
.line 1
:cond_0
instance-of v1, v0, Landroid/app/Activity;
if-eqz v1, :cond_1
check-cast v0, Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->isDestroyed()Z
move-result v0
if-nez v0, :cond_2
:cond_1
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zzb:Landroid/widget/PopupWindow;
if-eqz v0, :cond_2
.line 2
invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zzb:Landroid/widget/PopupWindow;
.line 3
invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V
:cond_2
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zza:Landroid/content/Context;
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzdpa;->zzb:Landroid/widget/PopupWindow;
:cond_3
:goto_0
return-void
.end method