soul-browser/app/smali_classes4/kotlinx/coroutines/EventLoopImplBase$DelayedTask.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

626 lines
13 KiB
Smali

.class public abstract Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
.implements Ljava/lang/Comparable;
.implements Lkotlinx/coroutines/DisposableHandle;
.implements Lkotlinx/coroutines/internal/ThreadSafeHeapNode;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/EventLoopImplBase;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "DelayedTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Runnable;",
"Ljava/lang/Comparable<",
"Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;",
">;",
"Lkotlinx/coroutines/DisposableHandle;",
"Lkotlinx/coroutines/internal/ThreadSafeHeapNode;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008 \u0018\u00002\u00060\u0001j\u0002`\u00022\u0008\u0012\u0004\u0012\u00020\u00000\u00032\u00020\u00042\u00020\u00052\u00060\u0006j\u0002`\u0007R\u0018\u0010\u0008\u001a\u0004\u0018\u00010\u00068\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u0008\u0010\t\u00a8\u0006\n"
}
d2 = {
"Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;",
"Ljava/lang/Runnable;",
"Lkotlinx/coroutines/Runnable;",
"",
"Lkotlinx/coroutines/DisposableHandle;",
"Lkotlinx/coroutines/internal/ThreadSafeHeapNode;",
"",
"Lkotlinx/coroutines/internal/SynchronizedObject;",
"_heap",
"Ljava/lang/Object;",
"kotlinx-coroutines-core"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nEventLoop.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EventLoop.common.kt\nkotlinx/coroutines/EventLoopImplBase$DelayedTask\n+ 2 Synchronized.common.kt\nkotlinx/coroutines/internal/Synchronized_commonKt\n+ 3 Synchronized.kt\nkotlinx/coroutines/internal/SynchronizedKt\n+ 4 ThreadSafeHeap.kt\nkotlinx/coroutines/internal/ThreadSafeHeap\n*L\n1#1,540:1\n24#2,4:541\n24#2,4:547\n24#2,4:559\n16#3:545\n16#3:551\n16#3:563\n63#4:546\n64#4,7:552\n*S KotlinDebug\n*F\n+ 1 EventLoop.common.kt\nkotlinx/coroutines/EventLoopImplBase$DelayedTask\n*L\n434#1:541,4\n436#1:547,4\n476#1:559,4\n434#1:545\n436#1:551\n476#1:563\n436#1:546\n436#1:552,7\n*E\n"
}
.end annotation
# instance fields
.field private volatile _heap:Ljava/lang/Object;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end field
.field public c:J
.field public f:I
# direct methods
.method public constructor <init>(J)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
iput-wide p1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 5
.line 6
const/4 p1, -0x1
.line 7
iput p1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->f:I
.line 8
.line 9
return-void
.end method
# virtual methods
.method public final b(Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;)V
.locals 2
.line 1
iget-object v0, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 2
.line 3
sget-object v1, Lkotlinx/coroutines/EventLoop_commonKt;->a:Lkotlinx/coroutines/internal/Symbol;
.line 4
.line 5
if-eq v0, v1, :cond_0
.line 6
.line 7
iput-object p1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 8
.line 9
return-void
.line 10
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 11
.line 12
const-string v0, "Failed requirement."
.line 13
.line 14
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 15
.line 16
.line 17
throw p1
.end method
.method public final c()V
.locals 3
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-object v0, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 3
.line 4
sget-object v1, Lkotlinx/coroutines/EventLoop_commonKt;->a:Lkotlinx/coroutines/internal/Symbol;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
.line 6
if-ne v0, v1, :cond_0
.line 7
.line 8
monitor-exit p0
.line 9
return-void
.line 10
:cond_0
:try_start_1
instance-of v2, v0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;
.line 11
.line 12
if-eqz v2, :cond_1
.line 13
.line 14
check-cast v0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;
.line 15
.line 16
goto :goto_0
.line 17
:catchall_0
move-exception v0
.line 18
goto :goto_1
.line 19
:cond_1
const/4 v0, 0x0
.line 20
:goto_0
if-eqz v0, :cond_2
.line 21
.line 22
invoke-virtual {v0, p0}, Lkotlinx/coroutines/internal/ThreadSafeHeap;->c(Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;)V
.line 23
.line 24
.line 25
:cond_2
iput-object v1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 26
.line 27
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 28
.line 29
monitor-exit p0
.line 30
return-void
.line 31
:goto_1
monitor-exit p0
.line 32
throw v0
.end method
.method public final compareTo(Ljava/lang/Object;)I
.locals 4
.line 1
check-cast p1, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;
.line 2
.line 3
iget-wide v0, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 4
.line 5
iget-wide v2, p1, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 6
.line 7
sub-long/2addr v0, v2
.line 8
const-wide/16 v2, 0x0
.line 9
.line 10
cmp-long p1, v0, v2
.line 11
.line 12
if-lez p1, :cond_0
.line 13
.line 14
const/4 p1, 0x1
.line 15
return p1
.line 16
:cond_0
if-gez p1, :cond_1
.line 17
.line 18
const/4 p1, -0x1
.line 19
return p1
.line 20
:cond_1
const/4 p1, 0x0
.line 21
return p1
.end method
.method public final d()Lkotlinx/coroutines/internal/ThreadSafeHeap;
.locals 2
.line 1
iget-object v0, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 2
.line 3
instance-of v1, v0, Lkotlinx/coroutines/internal/ThreadSafeHeap;
.line 4
.line 5
if-eqz v1, :cond_0
.line 6
.line 7
check-cast v0, Lkotlinx/coroutines/internal/ThreadSafeHeap;
.line 8
.line 9
return-object v0
.line 10
:cond_0
const/4 v0, 0x0
.line 11
return-object v0
.end method
.method public final e(JLkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;Lkotlinx/coroutines/EventLoopImplBase;)I
.locals 8
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-object v0, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->_heap:Ljava/lang/Object;
.line 3
.line 4
sget-object v1, Lkotlinx/coroutines/EventLoop_commonKt;->a:Lkotlinx/coroutines/internal/Symbol;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
.line 6
if-ne v0, v1, :cond_0
.line 7
.line 8
monitor-exit p0
.line 9
const/4 p1, 0x2
.line 10
return p1
.line 11
:cond_0
:try_start_1
monitor-enter p3
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 12
:try_start_2
iget-object v0, p3, Lkotlinx/coroutines/internal/ThreadSafeHeap;->a:[Lkotlinx/coroutines/internal/ThreadSafeHeapNode;
.line 13
.line 14
const/4 v1, 0x0
.line 15
if-eqz v0, :cond_1
.line 16
.line 17
aget-object v0, v0, v1
.line 18
.line 19
goto :goto_0
.line 20
:cond_1
const/4 v0, 0x0
.line 21
:goto_0
check-cast v0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;
.line 22
.line 23
sget-object v2, Lkotlinx/coroutines/EventLoopImplBase;->k:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
.line 24
.line 25
invoke-virtual {v2, p4}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
.line 26
.line 27
.line 28
move-result p4
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
.line 29
const/4 v2, 0x1
.line 30
if-eqz p4, :cond_2
.line 31
.line 32
move p4, v2
.line 33
goto :goto_1
.line 34
:cond_2
move p4, v1
.line 35
:goto_1
if-eqz p4, :cond_3
.line 36
.line 37
:try_start_3
monitor-exit p3
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
.line 38
monitor-exit p0
.line 39
return v2
.line 40
:catchall_0
move-exception p1
.line 41
goto :goto_5
.line 42
:cond_3
const-wide/16 v2, 0x0
.line 43
.line 44
if-nez v0, :cond_4
.line 45
.line 46
:try_start_4
iput-wide p1, p3, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;->c:J
.line 47
.line 48
goto :goto_3
.line 49
:catchall_1
move-exception p1
.line 50
goto :goto_4
.line 51
:cond_4
iget-wide v4, v0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 52
.line 53
sub-long v6, v4, p1
.line 54
.line 55
cmp-long p4, v6, v2
.line 56
.line 57
if-ltz p4, :cond_5
.line 58
.line 59
goto :goto_2
.line 60
:cond_5
move-wide p1, v4
.line 61
:goto_2
iget-wide v4, p3, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;->c:J
.line 62
.line 63
sub-long v4, p1, v4
.line 64
.line 65
cmp-long p4, v4, v2
.line 66
.line 67
if-lez p4, :cond_6
.line 68
.line 69
iput-wide p1, p3, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;->c:J
.line 70
.line 71
:cond_6
:goto_3
iget-wide p1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 72
.line 73
iget-wide v4, p3, Lkotlinx/coroutines/EventLoopImplBase$DelayedTaskQueue;->c:J
.line 74
.line 75
sub-long/2addr p1, v4
.line 76
cmp-long p1, p1, v2
.line 77
.line 78
if-gez p1, :cond_7
.line 79
.line 80
iput-wide v4, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 81
.line 82
:cond_7
invoke-virtual {p3, p0}, Lkotlinx/coroutines/internal/ThreadSafeHeap;->a(Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;)V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
.line 83
.line 84
.line 85
:try_start_5
monitor-exit p3
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
.line 86
monitor-exit p0
.line 87
return v1
.line 88
:goto_4
:try_start_6
monitor-exit p3
.line 89
throw p1
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
.line 90
:goto_5
monitor-exit p0
.line 91
throw p1
.end method
.method public final setIndex(I)V
.locals 0
.line 1
iput p1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->f:I
.line 2
.line 3
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 1
new-instance v0, Ljava/lang/StringBuilder;
.line 2
.line 3
const-string v1, "Delayed[nanos="
.line 4
.line 5
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 6
.line 7
.line 8
iget-wide v1, p0, Lkotlinx/coroutines/EventLoopImplBase$DelayedTask;->c:J
.line 9
.line 10
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
.line 11
.line 12
.line 13
const/16 v1, 0x5d
.line 14
.line 15
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 16
.line 17
.line 18
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 19
.line 20
.line 21
move-result-object v0
.line 22
return-object v0
.end method