Files
rr3-apk/smali_classes3/com/google/android/gms/internal/ads/zzrv.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

255 lines
6.3 KiB
Smali

.class public final Lcom/google/android/gms/internal/ads/zzrv;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/gms/internal/ads/zzsb;
# instance fields
.field private final zza:Landroid/content/Context;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzrv;->zza:Landroid/content/Context;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/internal/ads/zzrv;->zza:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public final zzd(Lcom/google/android/gms/internal/ads/zzsa;)Lcom/google/android/gms/internal/ads/zzsd;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
sget v0, Lcom/google/android/gms/internal/ads/zzei;->zza:I
const/16 v1, 0x17
if-lt v0, v1, :cond_2
const/16 v1, 0x1f
if-lt v0, v1, :cond_0
goto :goto_0
:cond_0
iget-object v1, p0, Lcom/google/android/gms/internal/ads/zzrv;->zza:Landroid/content/Context;
if-eqz v1, :cond_2
const/16 v2, 0x1c
if-lt v0, v2, :cond_2
.line 2
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
const-string v2, "com.amazon.hardware.tv_screen"
invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_1
goto :goto_1
.line 1
:cond_1
:goto_0
iget-object v0, p1, Lcom/google/android/gms/internal/ads/zzsa;->zzc:Lcom/google/android/gms/internal/ads/zzab;
iget-object v0, v0, Lcom/google/android/gms/internal/ads/zzab;->zzo:Ljava/lang/String;
.line 15
invoke-static {v0}, Lcom/google/android/gms/internal/ads/zzbb;->zzb(Ljava/lang/String;)I
move-result v0
invoke-static {v0}, Lcom/google/android/gms/internal/ads/zzei;->zzD(I)Ljava/lang/String;
move-result-object v1
const-string v2, "DMCodecAdapterFactory"
const-string v3, "Creating an asynchronous MediaCodec adapter for track type "
invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 16
invoke-static {v2, v1}, Lcom/google/android/gms/internal/ads/zzdo;->zze(Ljava/lang/String;Ljava/lang/String;)V
new-instance v1, Lcom/google/android/gms/internal/ads/zzrl;
invoke-direct {v1, v0}, Lcom/google/android/gms/internal/ads/zzrl;-><init>(I)V
const/4 v0, 0x1
.line 17
invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/zzrl;->zze(Z)V
.line 18
invoke-virtual {v1, p1}, Lcom/google/android/gms/internal/ads/zzrl;->zzc(Lcom/google/android/gms/internal/ads/zzsa;)Lcom/google/android/gms/internal/ads/zzrn;
move-result-object p1
return-object p1
:cond_2
:goto_1
const/4 v1, 0x0
.line 2
:try_start_0
iget-object v2, p1, Lcom/google/android/gms/internal/ads/zzsa;->zza:Lcom/google/android/gms/internal/ads/zzsg;
iget-object v2, v2, Lcom/google/android/gms/internal/ads/zzsg;->zza:Ljava/lang/String;
const-string v3, "createCodec:"
invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
.line 3
invoke-static {v3}, Landroid/os/Trace;->beginSection(Ljava/lang/String;)V
.line 4
invoke-static {v2}, Landroid/media/MediaCodec;->createByCodecName(Ljava/lang/String;)Landroid/media/MediaCodec;
move-result-object v2
.line 5
invoke-static {}, Landroid/os/Trace;->endSection()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_2
:try_start_1
const-string v3, "configureCodec"
.line 6
invoke-static {v3}, Landroid/os/Trace;->beginSection(Ljava/lang/String;)V
iget-object v3, p1, Lcom/google/android/gms/internal/ads/zzsa;->zzd:Landroid/view/Surface;
const/4 v4, 0x0
if-nez v3, :cond_3
iget-object v5, p1, Lcom/google/android/gms/internal/ads/zzsa;->zza:Lcom/google/android/gms/internal/ads/zzsg;
iget-boolean v5, v5, Lcom/google/android/gms/internal/ads/zzsg;->zzh:Z
if-eqz v5, :cond_3
const/16 v5, 0x23
if-lt v0, v5, :cond_3
const/16 v4, 0x8
goto :goto_2
:catch_0
move-exception p1
goto :goto_3
:catch_1
move-exception p1
goto :goto_3
:cond_3
:goto_2
iget-object v0, p1, Lcom/google/android/gms/internal/ads/zzsa;->zzb:Landroid/media/MediaFormat;
.line 7
invoke-virtual {v2, v0, v3, v1, v4}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V
.line 8
invoke-static {}, Landroid/os/Trace;->endSection()V
const-string v0, "startCodec"
.line 9
invoke-static {v0}, Landroid/os/Trace;->beginSection(Ljava/lang/String;)V
.line 10
invoke-virtual {v2}, Landroid/media/MediaCodec;->start()V
.line 11
invoke-static {}, Landroid/os/Trace;->endSection()V
new-instance v0, Lcom/google/android/gms/internal/ads/zztc;
iget-object p1, p1, Lcom/google/android/gms/internal/ads/zzsa;->zzf:Lcom/google/android/gms/internal/ads/zzrz;
.line 12
invoke-direct {v0, v2, p1, v1}, Lcom/google/android/gms/internal/ads/zztc;-><init>(Landroid/media/MediaCodec;Lcom/google/android/gms/internal/ads/zzrz;Lcom/google/android/gms/internal/ads/zztb;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
return-object v0
:goto_3
move-object v1, v2
goto :goto_4
:catch_2
move-exception p1
goto :goto_4
:catch_3
move-exception p1
:goto_4
if-eqz v1, :cond_4
.line 13
invoke-virtual {v1}, Landroid/media/MediaCodec;->release()V
.line 14
:cond_4
throw p1
.end method