- 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
286 lines
5.4 KiB
Smali
286 lines
5.4 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzfoy;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public static zza(Ljava/io/File;Z)Ljava/io/File;
|
|
.locals 0
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/io/File;->exists()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Ljava/io/File;->isDirectory()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/io/File;->delete()Z
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/io/File;->exists()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Ljava/io/File;->mkdirs()Z
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static zzb(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
|
|
.locals 1
|
|
.param p2 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
.line 2
|
|
invoke-static {p0, p2}, Lcom/google/android/gms/internal/ads/zzfoy;->zzc(Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static zzc(Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
|
|
.locals 1
|
|
.param p1 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
.line 2
|
|
invoke-direct {v0, p1, p0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
invoke-static {v0, p0}, Lcom/google/android/gms/internal/ads/zzfoy;->zza(Ljava/io/File;Z)Ljava/io/File;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static zzd(Ljava/io/File;)Z
|
|
.locals 6
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
move v4, v1
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
array-length v5, v0
|
|
|
|
if-ge v3, v5, :cond_3
|
|
|
|
.line 3
|
|
aget-object v5, v0, v3
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 4
|
|
invoke-static {v5}, Lcom/google/android/gms/internal/ads/zzfoy;->zzd(Ljava/io/File;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
move v4, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v4, v2
|
|
|
|
:goto_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v4, v1
|
|
|
|
.line 5
|
|
:cond_3
|
|
invoke-virtual {p0}, Ljava/io/File;->delete()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
return v2
|
|
.end method
|
|
|
|
.method public static zze(Ljava/io/File;[B)Z
|
|
.locals 3
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # [B
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:try_start_0
|
|
new-instance v1, Ljava/io/FileOutputStream;
|
|
|
|
invoke-direct {v1, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x22
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/io/File;->setReadOnly()Z
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_0
|
|
:goto_0
|
|
invoke-virtual {v1, p1}, Ljava/io/FileOutputStream;->write([B)V
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Ljava/io/OutputStream;->flush()V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 5
|
|
invoke-static {v1}, Lcom/google/android/gms/common/util/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:goto_1
|
|
move-object v0, v1
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-object v0, v1
|
|
|
|
goto :goto_3
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
:goto_2
|
|
invoke-static {v0}, Lcom/google/android/gms/common/util/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 6
|
|
throw p0
|
|
|
|
.line 5
|
|
:catch_1
|
|
:goto_3
|
|
invoke-static {v0}, Lcom/google/android/gms/common/util/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|