soul-browser/app/smali/androidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$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

445 lines
10 KiB
Smali

.class final Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;
.super Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlin/sequences/SequenceScope<",
"-",
"Ljava/lang/Integer;",
">;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0008\u0010\u0000\u001a\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002\"\u0004\u0008\u0001\u0010\u0003*\u0008\u0012\u0004\u0012\u00020\u00050\u0004H\u008a@"
}
d2 = {
"<anonymous>",
"",
"K",
"V",
"Lkotlin/sequences/SequenceScope;",
""
}
k = 0x3
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.collection.MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1"
f = "ScatterMap.kt"
i = {
0x0,
0x0,
0x0,
0x0,
0x0,
0x0,
0x0
}
l = {
0x5e7
}
m = "invokeSuspend"
n = {
"$this$iterator",
"m$iv",
"lastIndex$iv",
"i$iv",
"slot$iv",
"bitCount$iv",
"j$iv"
}
s = {
"L$0",
"L$1",
"I$0",
"I$1",
"J$0",
"I$2",
"I$3"
}
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1\n+ 2 ScatterMap.kt\nandroidx/collection/ScatterMap\n+ 3 ScatterMap.kt\nandroidx/collection/ScatterMapKt\n*L\n1#1,1850:1\n363#2,6:1851\n373#2,3:1858\n376#2,9:1862\n1826#3:1857\n1688#3:1861\n*S KotlinDebug\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1\n*L\n1510#1:1851,6\n1510#1:1858,3\n1510#1:1862,9\n1510#1:1857\n1510#1:1861\n*E\n"
}
.end annotation
# instance fields
.field public c:[J
.field public f:I
.field public g:I
.field public h:I
.field public i:I
.field public j:J
.field public k:I
.field public synthetic l:Ljava/lang/Object;
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.line 1
new-instance v0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;
.line 2
.line 3
const/4 v1, 0x2
.line 4
invoke-direct {v0, v1, p2}, Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
.line 5
.line 6
.line 7
iput-object p1, v0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->l:Ljava/lang/Object;
.line 8
.line 9
return-object v0
.end method
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, Lkotlin/sequences/SequenceScope;
.line 2
.line 3
check-cast p2, Lkotlin/coroutines/Continuation;
.line 4
.line 5
invoke-virtual {p0, p1, p2}, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.line 6
.line 7
.line 8
move-result-object p1
.line 9
check-cast p1, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;
.line 10
.line 11
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 12
.line 13
invoke-virtual {p1, p2}, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.line 14
.line 15
.line 16
move-result-object p1
.line 17
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 14
.line 1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
iget v1, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->k:I
.line 6
.line 7
if-eqz v1, :cond_5
.line 8
.line 9
const/4 v2, 0x1
.line 10
if-ne v1, v2, :cond_4
.line 11
.line 12
iget v1, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->i:I
.line 13
.line 14
iget v3, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->h:I
.line 15
.line 16
iget-wide v4, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->j:J
.line 17
.line 18
iget v6, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->g:I
.line 19
.line 20
iget v7, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->f:I
.line 21
.line 22
iget-object v8, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->c:[J
.line 23
.line 24
iget-object v9, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->l:Ljava/lang/Object;
.line 25
.line 26
check-cast v9, Lkotlin/sequences/SequenceScope;
.line 27
.line 28
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 29
.line 30
.line 31
:cond_0
const/16 p1, 0x8
.line 32
.line 33
shr-long/2addr v4, p1
.line 34
add-int/2addr v1, v2
.line 35
:goto_0
if-ge v1, v3, :cond_1
.line 36
.line 37
const-wide/16 v10, 0xff
.line 38
.line 39
and-long/2addr v10, v4
.line 40
const-wide/16 v12, 0x80
.line 41
.line 42
cmp-long p1, v10, v12
.line 43
.line 44
if-gez p1, :cond_0
.line 45
.line 46
shl-int/lit8 p1, v6, 0x3
.line 47
.line 48
add-int/2addr p1, v1
.line 49
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;
.line 50
.line 51
.line 52
move-result-object p1
.line 53
iput-object v9, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->l:Ljava/lang/Object;
.line 54
.line 55
iput-object v8, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->c:[J
.line 56
.line 57
iput v7, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->f:I
.line 58
.line 59
iput v6, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->g:I
.line 60
.line 61
iput-wide v4, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->j:J
.line 62
.line 63
iput v3, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->h:I
.line 64
.line 65
iput v1, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->i:I
.line 66
.line 67
iput v2, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->k:I
.line 68
.line 69
invoke-virtual {v9, p1, p0}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.line 70
.line 71
.line 72
move-result-object p1
.line 73
if-ne p1, v0, :cond_0
.line 74
.line 75
return-object v0
.line 76
:cond_1
if-ne v3, p1, :cond_3
.line 77
.line 78
:cond_2
if-eq v6, v7, :cond_3
.line 79
.line 80
add-int/lit8 v6, v6, 0x1
.line 81
.line 82
aget-wide v4, v8, v6
.line 83
.line 84
not-long v10, v4
.line 85
const/4 v1, 0x7
.line 86
shl-long/2addr v10, v1
.line 87
and-long/2addr v10, v4
.line 88
const-wide v12, -0x7f7f7f7f7f7f7f80L # -2.937446524422997E-306
.line 89
.line 90
.line 91
.line 92
.line 93
and-long/2addr v10, v12
.line 94
cmp-long v1, v10, v12
.line 95
.line 96
if-eqz v1, :cond_2
.line 97
.line 98
sub-int v1, v6, v7
.line 99
.line 100
not-int v1, v1
.line 101
ushr-int/lit8 v1, v1, 0x1f
.line 102
.line 103
rsub-int/lit8 v3, v1, 0x8
.line 104
.line 105
const/4 v1, 0x0
.line 106
goto :goto_0
.line 107
:cond_3
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 108
.line 109
return-object p1
.line 110
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
.line 111
.line 112
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
.line 113
.line 114
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 115
.line 116
.line 117
throw p1
.line 118
:cond_5
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 119
.line 120
.line 121
iget-object p1, p0, Landroidx/collection/MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1;->l:Ljava/lang/Object;
.line 122
.line 123
check-cast p1, Lkotlin/sequences/SequenceScope;
.line 124
.line 125
const/4 p1, 0x0
.line 126
throw p1
.end method