Files
rr3-apk/smali_classes3/com/google/protobuf/Android.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

143 lines
2.9 KiB
Smali

.class public final Lcom/google/protobuf/Android;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static ASSUME_ANDROID:Z
.field private static final IS_ROBOLECTRIC:Z
.field private static final MEMORY_CLASS:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, "libcore.io.Memory"
.line 41
invoke-static {v0}, Lcom/google/protobuf/Android;->getClassForName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
sput-object v0, Lcom/google/protobuf/Android;->MEMORY_CLASS:Ljava/lang/Class;
sget-boolean v0, Lcom/google/protobuf/Android;->ASSUME_ANDROID:Z
if-nez v0, :cond_0
const-string v0, "org.robolectric.Robolectric"
.line 44
invoke-static {v0}, Lcom/google/protobuf/Android;->getClassForName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
sput-boolean v0, Lcom/google/protobuf/Android;->IS_ROBOLECTRIC:Z
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 34
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static getClassForName(Ljava/lang/String;)Ljava/lang/Class;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
")",
"Ljava/lang/Class<",
"TT;>;"
}
.end annotation
.line 59
:try_start_0
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
const/4 p0, 0x0
return-object p0
.end method
.method public static getMemoryClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
sget-object v0, Lcom/google/protobuf/Android;->MEMORY_CLASS:Ljava/lang/Class;
return-object v0
.end method
.method public static isOnAndroidDevice()Z
.locals 1
sget-boolean v0, Lcom/google/protobuf/Android;->ASSUME_ANDROID:Z
if-nez v0, :cond_1
sget-object v0, Lcom/google/protobuf/Android;->MEMORY_CLASS:Ljava/lang/Class;
if-eqz v0, :cond_0
sget-boolean v0, Lcom/google/protobuf/Android;->IS_ROBOLECTRIC:Z
if-nez v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
return v0
.end method