- 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
270 lines
5.2 KiB
Smali
270 lines
5.2 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzfnd;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field protected static final zza:[B
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field protected static final zzb:[B
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final zzc:[B
|
|
|
|
.field private final zzd:[B
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const/16 v0, 0x20
|
|
|
|
new-array v1, v0, [B
|
|
|
|
fill-array-data v1, :array_0
|
|
|
|
sput-object v1, Lcom/google/android/gms/internal/ads/zzfnd;->zza:[B
|
|
|
|
new-array v0, v0, [B
|
|
|
|
fill-array-data v0, :array_1
|
|
|
|
sput-object v0, Lcom/google/android/gms/internal/ads/zzfnd;->zzb:[B
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 1
|
|
0x3dt
|
|
0x7at
|
|
0x12t
|
|
0x23t
|
|
0x1t
|
|
-0x66t
|
|
-0x5dt
|
|
-0x63t
|
|
-0x62t
|
|
-0x60t
|
|
-0x1dt
|
|
0x43t
|
|
0x6at
|
|
-0x49t
|
|
-0x40t
|
|
-0x77t
|
|
0x6bt
|
|
-0x5t
|
|
0x4ft
|
|
-0x4at
|
|
0x79t
|
|
-0xct
|
|
-0x22t
|
|
0x5ft
|
|
-0x19t
|
|
-0x3et
|
|
0x3ft
|
|
0x32t
|
|
0x6ct
|
|
-0x71t
|
|
-0x67t
|
|
0x4at
|
|
.end array-data
|
|
|
|
:array_1
|
|
.array-data 1
|
|
-0x6et
|
|
-0xdt
|
|
-0x22t
|
|
0x46t
|
|
-0x53t
|
|
0x2bt
|
|
0x61t
|
|
0x15t
|
|
-0x2ct
|
|
0x10t
|
|
-0x36t
|
|
-0x7dt
|
|
-0x1ct
|
|
-0x39t
|
|
-0x7dt
|
|
-0x7ft
|
|
-0x7t
|
|
0x11t
|
|
0x66t
|
|
-0x45t
|
|
0x74t
|
|
-0x79t
|
|
-0x4ft
|
|
0x2bt
|
|
-0xdt
|
|
0x78t
|
|
0x3at
|
|
0x37t
|
|
-0x1dt
|
|
-0x6ct
|
|
0x5ft
|
|
0x53t
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sget-object v0, Lcom/google/android/gms/internal/ads/zzfnd;->zzb:[B
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzfnd;->zzc:[B
|
|
|
|
sget-object v0, Lcom/google/android/gms/internal/ads/zzfnd;->zza:[B
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzfnd;->zzd:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zza(Ljava/io/File;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/GeneralSecurityException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {p1}, Lcom/google/android/gms/internal/ads/zzaos;->zza(Ljava/lang/String;)[[Ljava/security/cert/X509Certificate;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Lcom/google/android/gms/internal/ads/zzaoo; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 5
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 7
|
|
aget-object p1, p1, v0
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
const-string v2, "SHA-256"
|
|
|
|
.line 8
|
|
invoke-static {v2}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Ljava/security/cert/Certificate;->getEncoded()[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v2, p1}, Ljava/security/MessageDigest;->digest([B)[B
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/internal/ads/zzfnd;->zzd:[B
|
|
|
|
.line 9
|
|
invoke-static {v2, p1}, Ljava/util/Arrays;->equals([B[B)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
const-string v2, "user"
|
|
|
|
sget-object v3, Landroid/os/Build;->TYPE:Ljava/lang/String;
|
|
|
|
.line 10
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/internal/ads/zzfnd;->zzc:[B
|
|
|
|
.line 11
|
|
invoke-static {v2, p1}, Ljava/util/Arrays;->equals([B[B)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
|
|
:cond_1
|
|
move v1, v0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 6
|
|
:cond_3
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v0, "APK has more than one signature."
|
|
|
|
invoke-direct {p1, v0}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 3
|
|
:goto_1
|
|
new-instance v0, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v1, "Failed to verify signatures"
|
|
|
|
invoke-direct {v0, v1, p1}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
.line 4
|
|
new-instance v0, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v1, "Package is not signed"
|
|
|
|
invoke-direct {v0, v1, p1}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|