- 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
264 lines
6.0 KiB
Smali
264 lines
6.0 KiB
Smali
.class public final Lcom/google/vr/dynamite/client/ObjectWrapper;
|
|
.super Lcom/google/vr/dynamite/client/c;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/vr/dynamite/client/UsedByReflection;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lcom/google/vr/dynamite/client/c;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final wrappedObject:Ljava/lang/Object;
|
|
.annotation build Lcom/google/vr/dynamite/client/UsedByReflection;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/vr/dynamite/client/c;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/vr/dynamite/client/ObjectWrapper;->wrappedObject:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/Object;)Lcom/google/vr/dynamite/client/IObjectWrapper;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/vr/dynamite/client/ObjectWrapper;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/vr/dynamite/client/ObjectWrapper;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static unwrap(Lcom/google/vr/dynamite/client/IObjectWrapper;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 8
|
|
.annotation build Lcom/google/vr/dynamite/client/UsedByReflection;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/vr/dynamite/client/IObjectWrapper;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "remoteBinder is the wrong class."
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 1
|
|
:cond_0
|
|
instance-of v2, p0, Lcom/google/vr/dynamite/client/ObjectWrapper;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 2
|
|
check-cast p0, Lcom/google/vr/dynamite/client/ObjectWrapper;
|
|
|
|
iget-object p0, p0, Lcom/google/vr/dynamite/client/ObjectWrapper;->wrappedObject:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
invoke-interface {p0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
.line 3
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move-object v5, v1
|
|
|
|
:goto_0
|
|
if-ge v4, v3, :cond_4
|
|
|
|
aget-object v6, v2, v4
|
|
|
|
.line 4
|
|
invoke-virtual {v6}, Ljava/lang/reflect/Field;->isSynthetic()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz v5, :cond_3
|
|
|
|
move-object v5, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move-object v5, v6
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
:goto_2
|
|
if-eqz v5, :cond_8
|
|
|
|
.line 5
|
|
invoke-virtual {v5}, Ljava/lang/reflect/AccessibleObject;->isAccessible()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_7
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 6
|
|
invoke-virtual {v5, v2}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
|
|
.line 7
|
|
:try_start_0
|
|
invoke-virtual {v5, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_5
|
|
|
|
return-object v1
|
|
|
|
.line 8
|
|
:cond_5
|
|
invoke-virtual {p1, p0}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 10
|
|
invoke-virtual {p1, p0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
goto :goto_4
|
|
|
|
:catch_2
|
|
move-exception p0
|
|
|
|
goto :goto_5
|
|
|
|
.line 8
|
|
:cond_6
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 9
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
:try_end_0
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 10
|
|
:goto_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Could not access the field in remoteBinder."
|
|
|
|
.line 11
|
|
invoke-direct {p1, v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
|
|
.line 13
|
|
:goto_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 12
|
|
invoke-direct {p1, v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
|
|
.line 14
|
|
:goto_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Binder object is null."
|
|
|
|
.line 13
|
|
invoke-direct {p1, v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
|
|
.line 15
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "The concrete class implementing IObjectWrapper must have exactly one declared *private* field for the wrapped object. Preferably, this is an instance of the ObjectWrapper<T> class."
|
|
|
|
.line 14
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 11
|
|
:cond_8
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "The concrete class implementing IObjectWrapper must have exactly *one* declared private field for the wrapped object. Preferably, this is an instance of the ObjectWrapper<T> class."
|
|
|
|
.line 15
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|