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

109 lines
2.1 KiB
Smali

.class public Lcom/google/protobuf/UnsafeUtil$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/security/PrivilegedExceptionAction;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/protobuf/UnsafeUtil;->getUnsafe()Lsun/misc/Unsafe;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 294
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic run()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 294
invoke-virtual {p0}, Lcom/google/protobuf/UnsafeUtil$1;->run()Lsun/misc/Unsafe;
move-result-object v0
return-object v0
.end method
.method public run()Lsun/misc/Unsafe;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 297
const-class v0, Lsun/misc/Unsafe;
.line 299
invoke-virtual {v0}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
const/4 v4, 0x0
if-ge v3, v2, :cond_1
aget-object v5, v1, v3
const/4 v6, 0x1
.line 300
invoke-virtual {v5, v6}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
.line 301
invoke-virtual {v5, v4}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
.line 302
invoke-virtual {v0, v4}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_0
.line 303
invoke-virtual {v0, v4}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
return-object v0
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-object v4
.end method