- 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
142 lines
3.6 KiB
Smali
142 lines
3.6 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzgnk;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static final zza:Ljava/lang/ThreadLocal;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/gms/internal/ads/zzgnj;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/ads/zzgnj;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/internal/ads/zzgnk;->zza:Ljava/lang/ThreadLocal;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic zza()Ljava/security/SecureRandom;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/internal/ads/zzgnk;->zzc()Ljava/security/SecureRandom;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/util/Random;->nextLong()J
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static zzb(I)[B
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-array p0, p0, [B
|
|
|
|
sget-object v0, Lcom/google/android/gms/internal/ads/zzgnk;->zza:Ljava/lang/ThreadLocal;
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/security/SecureRandom;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/security/SecureRandom;->nextBytes([B)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static zzc()Ljava/security/SecureRandom;
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/internal/ads/zzgku;->zza()Ljava/security/Provider;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "SHA1PRNG"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {v1, v0}, Ljava/security/SecureRandom;->getInstance(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_1
|
|
const-string v2, "org.conscrypt.Conscrypt"
|
|
|
|
.line 3
|
|
invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "newProvider"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
new-array v5, v4, [Ljava/lang/Class;
|
|
|
|
.line 4
|
|
invoke-virtual {v2, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v3, v4, [Ljava/lang/Object;
|
|
|
|
.line 5
|
|
invoke-virtual {v2, v0, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/security/Provider;
|
|
:try_end_1
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
move-object v0, v2
|
|
|
|
:catch_1
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
:try_start_2
|
|
invoke-static {v1, v0}, Ljava/security/SecureRandom;->getInstance(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;
|
|
|
|
move-result-object v0
|
|
:try_end_2
|
|
.catch Ljava/security/GeneralSecurityException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
return-object v0
|
|
|
|
:catch_2
|
|
:cond_1
|
|
new-instance v0, Ljava/security/SecureRandom;
|
|
|
|
.line 7
|
|
invoke-direct {v0}, Ljava/security/SecureRandom;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|