soul-browser/app/smali_classes4/kotlinx/coroutines/BuildersKt.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

468 lines
12 KiB
Smali

.class public final Lkotlinx/coroutines/BuildersKt;
.super Ljava/lang/Object;
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"kotlinx/coroutines/BuildersKt__BuildersKt",
"kotlinx/coroutines/BuildersKt__Builders_commonKt"
}
k = 0x4
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method public static a(Lkotlinx/coroutines/internal/ContextScope;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Deferred;
.locals 3
.line 1
sget-object v0, Lkotlin/coroutines/EmptyCoroutineContext;->INSTANCE:Lkotlin/coroutines/EmptyCoroutineContext;
.line 2
.line 3
sget-object v1, Lkotlinx/coroutines/CoroutineStart;->c:Lkotlinx/coroutines/CoroutineStart;
.line 4
.line 5
invoke-static {p0, v0}, Lkotlinx/coroutines/CoroutineContextKt;->c(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
.line 6
.line 7
.line 8
move-result-object p0
.line 9
sget-object v0, Lkotlinx/coroutines/CoroutineStart;->c:Lkotlinx/coroutines/CoroutineStart;
.line 10
.line 11
new-instance v0, Lkotlinx/coroutines/DeferredCoroutine;
.line 12
.line 13
const/4 v2, 0x1
.line 14
invoke-direct {v0, p0, v2}, Lkotlinx/coroutines/AbstractCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Z)V
.line 15
.line 16
.line 17
invoke-virtual {v0, v1, v0, p1}, Lkotlinx/coroutines/AbstractCoroutine;->l0(Lkotlinx/coroutines/CoroutineStart;Lkotlinx/coroutines/AbstractCoroutine;Lkotlin/jvm/functions/Function2;)V
.line 18
.line 19
.line 20
return-object v0
.end method
.method public static b(Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
.locals 2
.line 1
sget-object v0, Lkotlinx/coroutines/CoroutineStart;->h:Lkotlinx/coroutines/CoroutineStart;
.line 2
.line 3
sget-object v1, Lkotlin/coroutines/EmptyCoroutineContext;->INSTANCE:Lkotlin/coroutines/EmptyCoroutineContext;
.line 4
.line 5
and-int/lit8 p2, p2, 0x2
.line 6
.line 7
if-eqz p2, :cond_0
.line 8
.line 9
sget-object v0, Lkotlinx/coroutines/CoroutineStart;->c:Lkotlinx/coroutines/CoroutineStart;
.line 10
.line 11
:cond_0
invoke-static {p0, v1}, Lkotlinx/coroutines/CoroutineContextKt;->c(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
.line 12
.line 13
.line 14
move-result-object p0
.line 15
sget-object p2, Lkotlinx/coroutines/CoroutineStart;->f:Lkotlinx/coroutines/CoroutineStart;
.line 16
.line 17
if-ne v0, p2, :cond_1
.line 18
.line 19
new-instance p2, Lkotlinx/coroutines/LazyStandaloneCoroutine;
.line 20
.line 21
invoke-direct {p2, p0, p1}, Lkotlinx/coroutines/LazyStandaloneCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;)V
.line 22
.line 23
.line 24
goto :goto_0
.line 25
:cond_1
new-instance p2, Lkotlinx/coroutines/StandaloneCoroutine;
.line 26
.line 27
const/4 v1, 0x1
.line 28
invoke-direct {p2, p0, v1}, Lkotlinx/coroutines/AbstractCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Z)V
.line 29
.line 30
.line 31
:goto_0
invoke-virtual {p2, v0, p2, p1}, Lkotlinx/coroutines/AbstractCoroutine;->l0(Lkotlinx/coroutines/CoroutineStart;Lkotlinx/coroutines/AbstractCoroutine;Lkotlin/jvm/functions/Function2;)V
.line 32
.line 33
.line 34
return-object p2
.end method
.method public static final c(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/jvm/internal/ContinuationImpl;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.locals 4
.line 1
invoke-interface {p1}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
.line 6
.line 7
sget-object v2, Lkotlinx/coroutines/CoroutineContextKt$hasCopyableElements$1;->c:Lkotlinx/coroutines/CoroutineContextKt$hasCopyableElements$1;
.line 8
.line 9
invoke-interface {p0, v1, v2}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.line 10
.line 11
.line 12
move-result-object v1
.line 13
check-cast v1, Ljava/lang/Boolean;
.line 14
.line 15
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
.line 16
.line 17
.line 18
move-result v1
.line 19
const/4 v2, 0x0
.line 20
if-nez v1, :cond_0
.line 21
.line 22
invoke-interface {v0, p0}, Lkotlin/coroutines/CoroutineContext;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
.line 23
.line 24
.line 25
move-result-object p0
.line 26
goto :goto_0
.line 27
:cond_0
invoke-static {v0, p0, v2}, Lkotlinx/coroutines/CoroutineContextKt;->a(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Z)Lkotlin/coroutines/CoroutineContext;
.line 28
.line 29
.line 30
move-result-object p0
.line 31
:goto_0
invoke-static {p0}, Lkotlinx/coroutines/JobKt;->b(Lkotlin/coroutines/CoroutineContext;)V
.line 32
.line 33
.line 34
if-ne p0, v0, :cond_1
.line 35
.line 36
new-instance v0, Lkotlinx/coroutines/internal/ScopeCoroutine;
.line 37
.line 38
invoke-direct {v0, p1, p0}, Lkotlinx/coroutines/internal/ScopeCoroutine;-><init>(Lkotlin/coroutines/Continuation;Lkotlin/coroutines/CoroutineContext;)V
.line 39
.line 40
.line 41
invoke-static {v0, v0, p2}, Lkotlinx/coroutines/intrinsics/UndispatchedKt;->a(Lkotlinx/coroutines/internal/ScopeCoroutine;Lkotlinx/coroutines/internal/ScopeCoroutine;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.line 42
.line 43
.line 44
move-result-object p0
.line 45
goto :goto_1
.line 46
:cond_1
sget-object v1, Lkotlin/coroutines/ContinuationInterceptor;->Key:Lkotlin/coroutines/ContinuationInterceptor$Key;
.line 47
.line 48
invoke-interface {p0, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
.line 49
.line 50
.line 51
move-result-object v3
.line 52
invoke-interface {v0, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
.line 53
.line 54
.line 55
move-result-object v0
.line 56
invoke-static {v3, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
.line 57
.line 58
.line 59
move-result v0
.line 60
if-eqz v0, :cond_2
.line 61
.line 62
new-instance v0, Lkotlinx/coroutines/UndispatchedCoroutine;
.line 63
.line 64
invoke-direct {v0, p0, p1}, Lkotlinx/coroutines/UndispatchedCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)V
.line 65
.line 66
.line 67
const/4 p0, 0x0
.line 68
iget-object v1, v0, Lkotlinx/coroutines/AbstractCoroutine;->g:Lkotlin/coroutines/CoroutineContext;
.line 69
.line 70
invoke-static {v1, p0}, Lkotlinx/coroutines/internal/ThreadContextKt;->c(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
.line 71
.line 72
.line 73
move-result-object p0
.line 74
:try_start_0
invoke-static {v0, v0, p2}, Lkotlinx/coroutines/intrinsics/UndispatchedKt;->a(Lkotlinx/coroutines/internal/ScopeCoroutine;Lkotlinx/coroutines/internal/ScopeCoroutine;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.line 75
.line 76
.line 77
move-result-object p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 78
invoke-static {v1, p0}, Lkotlinx/coroutines/internal/ThreadContextKt;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
.line 79
.line 80
.line 81
move-object p0, p2
.line 82
goto :goto_1
.line 83
:catchall_0
move-exception p1
.line 84
invoke-static {v1, p0}, Lkotlinx/coroutines/internal/ThreadContextKt;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
.line 85
.line 86
.line 87
throw p1
.line 88
:cond_2
new-instance v0, Lkotlinx/coroutines/DispatchedCoroutine;
.line 89
.line 90
invoke-direct {v0, p1, p0}, Lkotlinx/coroutines/internal/ScopeCoroutine;-><init>(Lkotlin/coroutines/Continuation;Lkotlin/coroutines/CoroutineContext;)V
.line 91
.line 92
.line 93
invoke-static {p2, v0, v0}, Lkotlinx/coroutines/intrinsics/CancellableKt;->b(Lkotlin/jvm/functions/Function2;Lkotlinx/coroutines/AbstractCoroutine;Lkotlinx/coroutines/AbstractCoroutine;)V
.line 94
.line 95
.line 96
sget-object p0, Lkotlinx/coroutines/DispatchedCoroutine;->i:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
.line 97
.line 98
:cond_3
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
.line 99
.line 100
.line 101
move-result p2
.line 102
if-eqz p2, :cond_6
.line 103
.line 104
const/4 p0, 0x2
.line 105
if-ne p2, p0, :cond_5
.line 106
.line 107
invoke-virtual {v0}, Lkotlinx/coroutines/JobSupport;->S()Ljava/lang/Object;
.line 108
.line 109
.line 110
move-result-object p0
.line 111
invoke-static {p0}, Lkotlinx/coroutines/JobSupportKt;->a(Ljava/lang/Object;)Ljava/lang/Object;
.line 112
.line 113
.line 114
move-result-object p0
.line 115
instance-of p2, p0, Lkotlinx/coroutines/CompletedExceptionally;
.line 116
.line 117
if-nez p2, :cond_4
.line 118
.line 119
goto :goto_1
.line 120
:cond_4
check-cast p0, Lkotlinx/coroutines/CompletedExceptionally;
.line 121
.line 122
iget-object p0, p0, Lkotlinx/coroutines/CompletedExceptionally;->a:Ljava/lang/Throwable;
.line 123
.line 124
throw p0
.line 125
:cond_5
new-instance p0, Ljava/lang/IllegalStateException;
.line 126
.line 127
const-string p1, "Already suspended"
.line 128
.line 129
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 130
.line 131
.line 132
throw p0
.line 133
:cond_6
const/4 p2, 0x1
.line 134
invoke-virtual {p0, v0, v2, p2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
.line 135
.line 136
.line 137
move-result p2
.line 138
if-eqz p2, :cond_3
.line 139
.line 140
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 141
.line 142
.line 143
move-result-object p0
.line 144
:goto_1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 145
.line 146
.line 147
move-result-object p2
.line 148
if-ne p0, p2, :cond_7
.line 149
.line 150
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
.line 151
.line 152
.line 153
:cond_7
return-object p0
.end method