Files
rr3-apk/smali_classes4/com/mbridge/msdk/dycreator/bus/HandlerPoster.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

237 lines
5.6 KiB
Smali

.class final Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;
.super Landroid/os/Handler;
.source "SourceFile"
# instance fields
.field private final a:Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
.field private final b:I
.field private final c:Lcom/mbridge/msdk/dycreator/bus/EventBus;
.field private d:Z
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/dycreator/bus/EventBus;Landroid/os/Looper;I)V
.locals 0
.line 16
invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->c:Lcom/mbridge/msdk/dycreator/bus/EventBus;
iput p3, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->b:I
.line 19
new-instance p1, Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
invoke-direct {p1}, Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->a:Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
return-void
.end method
# virtual methods
.method public final a(Lcom/mbridge/msdk/dycreator/bus/Subscription;Ljava/lang/Object;)V
.locals 0
.line 23
invoke-static {p1, p2}, Lcom/mbridge/msdk/dycreator/bus/PendingPost;->a(Lcom/mbridge/msdk/dycreator/bus/Subscription;Ljava/lang/Object;)Lcom/mbridge/msdk/dycreator/bus/PendingPost;
move-result-object p1
.line 24
monitor-enter p0
:try_start_0
iget-object p2, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->a:Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
.line 25
invoke-virtual {p2, p1}, Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;->a(Lcom/mbridge/msdk/dycreator/bus/PendingPost;)V
iget-boolean p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->d:Z
if-nez p1, :cond_1
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->d:Z
.line 28
invoke-virtual {p0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;
move-result-object p1
invoke-virtual {p0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
.line 29
:cond_0
new-instance p1, Lcom/mbridge/msdk/dycreator/bus/EventBusException;
const-string p2, "Could not send handler message"
invoke-direct {p1, p2}, Lcom/mbridge/msdk/dycreator/bus/EventBusException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_0
move-exception p1
goto :goto_1
.line 33
:cond_1
:goto_0
monitor-exit p0
return-void
:goto_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public final handleMessage(Landroid/os/Message;)V
.locals 6
const/4 p1, 0x0
.line 40
:try_start_0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
:cond_0
iget-object v2, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->a:Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
.line 44
invoke-virtual {v2}, Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;->a()Lcom/mbridge/msdk/dycreator/bus/PendingPost;
move-result-object v2
if-nez v2, :cond_2
.line 46
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-object v2, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->a:Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;
.line 47
invoke-virtual {v2}, Lcom/mbridge/msdk/dycreator/bus/PendingPostQueue;->a()Lcom/mbridge/msdk/dycreator/bus/PendingPost;
move-result-object v2
if-nez v2, :cond_1
.line 50
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iput-boolean p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->d:Z
return-void
:catchall_0
move-exception v0
goto :goto_0
.line 52
:cond_1
:try_start_2
monitor-exit p0
goto :goto_1
:goto_0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:try_start_3
throw v0
:catchall_1
move-exception v0
goto :goto_2
:cond_2
:goto_1
iget-object v3, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->c:Lcom/mbridge/msdk/dycreator/bus/EventBus;
.line 55
invoke-virtual {v3, v2}, Lcom/mbridge/msdk/dycreator/bus/EventBus;->a(Lcom/mbridge/msdk/dycreator/bus/PendingPost;)V
.line 56
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
sub-long/2addr v2, v0
iget v4, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->b:I
int-to-long v4, v4
cmp-long v2, v2, v4
if-ltz v2, :cond_0
.line 59
invoke-virtual {p0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;
move-result-object v0
invoke-virtual {p0, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
move-result v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
if-eqz v0, :cond_3
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->d:Z
return-void
.line 60
:cond_3
:try_start_4
new-instance v0, Lcom/mbridge/msdk/dycreator/bus/EventBusException;
const-string v1, "Could not send handler message"
invoke-direct {v0, v1}, Lcom/mbridge/msdk/dycreator/bus/EventBusException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
:goto_2
iput-boolean p1, p0, Lcom/mbridge/msdk/dycreator/bus/HandlerPoster;->d:Z
.line 66
throw v0
.end method