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

205 lines
3.9 KiB
Smali

.class public final Lcom/google/android/gms/internal/auth/zzcc;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static zza:Landroid/os/UserManager;
.annotation build Landroidx/annotation/GuardedBy;
value = "DirectBootUtils.class"
.end annotation
.end field
.field private static volatile zzb:Z
# direct methods
.method static constructor <clinit>()V
.locals 1
invoke-static {}, Lcom/google/android/gms/internal/auth/zzcc;->zzb()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
sput-boolean v0, Lcom/google/android/gms/internal/auth/zzcc;->zzb:Z
return-void
.end method
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static zza(Landroid/content/Context;)Z
.locals 8
.line 6
invoke-static {}, Lcom/google/android/gms/internal/auth/zzcc;->zzb()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
sget-boolean v0, Lcom/google/android/gms/internal/auth/zzcc;->zzb:Z
if-eqz v0, :cond_0
goto :goto_4
:cond_0
const-class v0, Lcom/google/android/gms/internal/auth/zzcc;
monitor-enter v0
:try_start_0
sget-boolean v2, Lcom/google/android/gms/internal/auth/zzcc;->zzb:Z
if-eqz v2, :cond_1
monitor-exit v0
goto :goto_4
:catchall_0
move-exception p0
goto :goto_3
:cond_1
const/4 v2, 0x1
move v3, v2
:goto_0
const/4 v4, 0x2
const/4 v5, 0x0
if-gt v3, v4, :cond_5
sget-object v4, Lcom/google/android/gms/internal/auth/zzcc;->zza:Landroid/os/UserManager;
if-nez v4, :cond_2
const-class v4, Landroid/os/UserManager;
.line 1
invoke-virtual {p0, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/os/UserManager;
sput-object v4, Lcom/google/android/gms/internal/auth/zzcc;->zza:Landroid/os/UserManager;
:cond_2
sget-object v4, Lcom/google/android/gms/internal/auth/zzcc;->zza:Landroid/os/UserManager;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v4, :cond_3
move p0, v2
goto :goto_2
.line 2
:cond_3
:try_start_1
invoke-virtual {v4}, Landroid/os/UserManager;->isUserUnlocked()Z
move-result v6
if-nez v6, :cond_4
.line 3
invoke-static {}, Landroid/os/Process;->myUserHandle()Landroid/os/UserHandle;
move-result-object v6
invoke-virtual {v4, v6}, Landroid/os/UserManager;->isUserRunning(Landroid/os/UserHandle;)Z
move-result p0
:try_end_1
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-nez p0, :cond_5
:cond_4
move p0, v2
goto :goto_1
:cond_5
move p0, v1
goto :goto_1
:catch_0
move-exception v4
:try_start_2
const-string v6, "DirectBootUtils"
const-string v7, "Failed to check if user is unlocked."
.line 4
invoke-static {v6, v7, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
sput-object v5, Lcom/google/android/gms/internal/auth/zzcc;->zza:Landroid/os/UserManager;
add-int/lit8 v3, v3, 0x1
goto :goto_0
:goto_1
if-eqz p0, :cond_6
sput-object v5, Lcom/google/android/gms/internal/auth/zzcc;->zza:Landroid/os/UserManager;
:cond_6
:goto_2
if-eqz p0, :cond_7
sput-boolean v2, Lcom/google/android/gms/internal/auth/zzcc;->zzb:Z
.line 5
:cond_7
monitor-exit v0
if-nez p0, :cond_8
return v2
:goto_3
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p0
:cond_8
:goto_4
return v1
.end method
.method public static zzb()Z
.locals 1
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
api = 0x18
.end annotation
const/4 v0, 0x1
return v0
.end method