soul-browser/app/smali_classes4/kotlinx/coroutines/DelayKt$awaitCancellation$1.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

221 lines
4.4 KiB
Smali

.class final Lkotlinx/coroutines/DelayKt$awaitCancellation$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
k = 0x3
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "kotlinx.coroutines.DelayKt"
f = "Delay.kt"
i = {}
l = {
0xa0
}
m = "awaitCancellation"
n = {}
s = {}
.end annotation
# instance fields
.field public synthetic c:Ljava/lang/Object;
.field public f:I
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
.line 1
iput-object p1, p0, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->c:Ljava/lang/Object;
.line 2
.line 3
iget p1, p0, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->f:I
.line 4
.line 5
const/high16 v0, -0x80000000
.line 6
.line 7
or-int/2addr p1, v0
.line 8
iput p1, p0, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->f:I
.line 9
.line 10
and-int v1, p1, v0
.line 11
.line 12
if-eqz v1, :cond_0
.line 13
.line 14
sub-int/2addr p1, v0
.line 15
iput p1, p0, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->f:I
.line 16
.line 17
move-object p1, p0
.line 18
goto :goto_0
.line 19
:cond_0
new-instance p1, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;
.line 20
.line 21
invoke-direct {p1, p0}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
.line 22
.line 23
.line 24
:goto_0
iget-object v0, p1, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->c:Ljava/lang/Object;
.line 25
.line 26
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 27
.line 28
.line 29
move-result-object v1
.line 30
iget v2, p1, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->f:I
.line 31
.line 32
const/4 v3, 0x1
.line 33
if-eqz v2, :cond_2
.line 34
.line 35
if-eq v2, v3, :cond_1
.line 36
.line 37
new-instance p1, Ljava/lang/IllegalStateException;
.line 38
.line 39
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
.line 40
.line 41
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 42
.line 43
.line 44
throw p1
.line 45
:cond_1
invoke-static {v0}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 46
.line 47
.line 48
goto :goto_1
.line 49
:cond_2
invoke-static {v0}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 50
.line 51
.line 52
iput v3, p1, Lkotlinx/coroutines/DelayKt$awaitCancellation$1;->f:I
.line 53
.line 54
new-instance v0, Lkotlinx/coroutines/CancellableContinuationImpl;
.line 55
.line 56
invoke-static {p1}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.line 57
.line 58
.line 59
move-result-object v2
.line 60
invoke-direct {v0, v3, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;-><init>(ILkotlin/coroutines/Continuation;)V
.line 61
.line 62
.line 63
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->r()V
.line 64
.line 65
.line 66
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->q()Ljava/lang/Object;
.line 67
.line 68
.line 69
move-result-object v0
.line 70
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 71
.line 72
.line 73
move-result-object v2
.line 74
if-ne v0, v2, :cond_3
.line 75
.line 76
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
.line 77
.line 78
.line 79
:cond_3
if-ne v0, v1, :cond_4
.line 80
.line 81
return-object v1
.line 82
:cond_4
:goto_1
new-instance p1, Lkotlin/KotlinNothingValueException;
.line 83
.line 84
invoke-direct {p1}, Lkotlin/KotlinNothingValueException;-><init>()V
.line 85
.line 86
.line 87
throw p1
.end method