Files
rr3-apk/smali/androidx/lifecycle/ClassesInfoCache$MethodReference.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

217 lines
5.1 KiB
Smali

.class final Landroidx/lifecycle/ClassesInfoCache$MethodReference;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/lifecycle/ClassesInfoCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MethodReference"
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# instance fields
.field final mCallType:I
.field final mMethod:Ljava/lang/reflect/Method;
# direct methods
.method public constructor <init>(ILjava/lang/reflect/Method;)V
.locals 0
.line 211
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
iput-object p2, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
const/4 p1, 0x1
.line 214
invoke-virtual {p2, p1}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
.line 243
:cond_0
instance-of v1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
.line 247
:cond_1
check-cast p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;
iget v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
.line 248
iget v3, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
if-ne v1, v3, :cond_2
iget-object v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v1
iget-object p1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2
goto :goto_0
:cond_2
move v0, v2
:goto_0
return v0
.end method
.method public hashCode()I
.locals 2
iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
.line 253
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method
.method public invokeCallback(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;Ljava/lang/Object;)V
.locals 2
:try_start_0
iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I
if-eqz v0, :cond_2
const/4 v1, 0x1
if-eq v0, v1, :cond_1
const/4 v1, 0x2
if-eq v0, v1, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
.line 228
invoke-virtual {v0, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:catch_0
move-exception p1
goto :goto_1
:catch_1
move-exception p1
goto :goto_2
:cond_1
iget-object p2, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 225
invoke-virtual {p2, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method;
const/4 p2, 0x0
new-array p2, p2, [Ljava/lang/Object;
.line 222
invoke-virtual {p1, p3, p2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
return-void
.line 234
:goto_1
new-instance p2, Ljava/lang/RuntimeException;
invoke-direct {p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p2
.line 232
:goto_2
new-instance p2, Ljava/lang/RuntimeException;
const-string p3, "Failed to call observer method"
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p1
invoke-direct {p2, p3, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method