Files
rr3-apk/smali_classes2/com/google/android/gms/common/wrappers/InstantApps.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

158 lines
3.9 KiB
Smali

.class public Lcom/google/android/gms/common/wrappers/InstantApps;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
# static fields
.field private static zza:Landroid/content/Context;
.field private static zzb:Ljava/lang/Boolean;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static declared-synchronized isInstantApp(Landroid/content/Context;)Z
.locals 4
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const-class v0, Lcom/google/android/gms/common/wrappers/InstantApps;
monitor-enter v0
.line 1
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Lcom/google/android/gms/common/wrappers/InstantApps;->zza:Landroid/content/Context;
if-eqz v2, :cond_1
sget-object v3, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
if-eqz v3, :cond_1
if-eq v2, v1, :cond_0
goto :goto_0
.line 8
:cond_0
invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
return p0
:catchall_0
move-exception p0
goto :goto_2
:cond_1
:goto_0
const/4 v2, 0x0
:try_start_1
sput-object v2, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
.line 1
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastO()Z
move-result v2
if-eqz v2, :cond_2
.line 2
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
invoke-virtual {p0}, Landroid/content/pm/PackageManager;->isInstantApp()Z
move-result p0
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p0
sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
.line 3
:cond_2
:try_start_2
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object p0
const-string v2, "com.google.android.instantapps.supervisor.InstantAppsRuntime"
.line 4
invoke-virtual {p0, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
sget-object p0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
:try_end_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_1
:catch_0
:try_start_3
sget-object p0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
:goto_1
sput-object v1, Lcom/google/android/gms/common/wrappers/InstantApps;->zza:Landroid/content/Context;
sget-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean;
.line 7
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
monitor-exit v0
return p0
:goto_2
monitor-exit v0
throw p0
.end method