Files
rr3-apk/smali_classes5/kotlinx/coroutines/android/AndroidExceptionPreHandler.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
3.3 KiB
Smali

.class public final Lkotlinx/coroutines/android/AndroidExceptionPreHandler;
.super Lkotlin/coroutines/AbstractCoroutineContextElement;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/CoroutineExceptionHandler;
# instance fields
.field private volatile _preHandler:Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 1
sget-object v0, Lkotlinx/coroutines/CoroutineExceptionHandler;->Key:Lkotlinx/coroutines/CoroutineExceptionHandler$Key;
.line 13
invoke-direct {p0, v0}, Lkotlin/coroutines/AbstractCoroutineContextElement;-><init>(Lkotlin/coroutines/CoroutineContext$Key;)V
iput-object p0, p0, Lkotlinx/coroutines/android/AndroidExceptionPreHandler;->_preHandler:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public handleException(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
.locals 2
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x1c
if-ge p1, v0, :cond_2
.line 48
invoke-virtual {p0}, Lkotlinx/coroutines/android/AndroidExceptionPreHandler;->preHandler()Ljava/lang/reflect/Method;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p1, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
goto :goto_0
:cond_0
move-object p1, v0
:goto_0
instance-of v1, p1, Ljava/lang/Thread$UncaughtExceptionHandler;
if-eqz v1, :cond_1
move-object v0, p1
check-cast v0, Ljava/lang/Thread$UncaughtExceptionHandler;
:cond_1
if-eqz v0, :cond_2
.line 49
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
invoke-interface {v0, p1, p2}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
:cond_2
return-void
.end method
.method public final preHandler()Ljava/lang/reflect/Method;
.locals 4
iget-object v0, p0, Lkotlinx/coroutines/android/AndroidExceptionPreHandler;->_preHandler:Ljava/lang/Object;
if-eq v0, p0, :cond_0
.line 21
check-cast v0, Ljava/lang/reflect/Method;
return-object v0
:cond_0
const/4 v0, 0x0
:try_start_0
const-class v1, Ljava/lang/Thread;
const-string v2, "getUncaughtExceptionPreHandler"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Class;
.line 23
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
.line 24
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getModifiers()I
move-result v2
invoke-static {v2}, Ljava/lang/reflect/Modifier;->isPublic(I)Z
move-result v2
if-eqz v2, :cond_1
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getModifiers()I
move-result v2
invoke-static {v2}, Ljava/lang/reflect/Modifier;->isStatic(I)Z
move-result v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v2, :cond_1
move-object v0, v1
:catchall_0
:cond_1
iput-object v0, p0, Lkotlinx/coroutines/android/AndroidExceptionPreHandler;->_preHandler:Ljava/lang/Object;
return-object v0
.end method