soul-browser/app/smali_classes4/kotlin/text/Regex$splitToSequence$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

694 lines
15 KiB
Smali

.class final Lkotlin/text/Regex$splitToSequence$1;
.super Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlin/text/Regex;->splitToSequence(Ljava/lang/CharSequence;I)Lkotlin/sequences/Sequence;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlin/sequences/SequenceScope<",
"-",
"Ljava/lang/String;",
">;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\u00030\u0002H\n"
}
d2 = {
"<anonymous>",
"",
"Lkotlin/sequences/SequenceScope;",
""
}
k = 0x3
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "kotlin.text.Regex$splitToSequence$1"
f = "Regex.kt"
i = {
0x0,
0x0,
0x1,
0x1,
0x1,
0x1,
0x2,
0x2,
0x2,
0x2
}
l = {
0x118,
0x120,
0x124
}
m = "invokeSuspend"
n = {
"$this$sequence",
"matcher",
"$this$sequence",
"matcher",
"nextStart",
"splitCount",
"$this$sequence",
"matcher",
"nextStart",
"splitCount"
}
nl = {
0x119,
0x121,
0x125
}
s = {
"L$0",
"L$1",
"L$0",
"L$1",
"I$0",
"I$1",
"L$0",
"L$1",
"I$0",
"I$1"
}
v = 0x2
.end annotation
# instance fields
.field final synthetic $input:Ljava/lang/CharSequence;
.field final synthetic $limit:I
.field I$0:I
.field I$1:I
.field private synthetic L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field label:I
.field final synthetic this$0:Lkotlin/text/Regex;
# direct methods
.method public constructor <init>(Lkotlin/text/Regex;Ljava/lang/CharSequence;ILkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/text/Regex;",
"Ljava/lang/CharSequence;",
"I",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/text/Regex$splitToSequence$1;",
">;)V"
}
.end annotation
iput-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
iput-object p2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
iput p3, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
const/4 p1, 0x2
invoke-direct {p0, p1, p4}, Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"*>;)",
"Lkotlin/coroutines/Continuation<",
"Lkotlin/Unit;",
">;"
}
.end annotation
new-instance v0, Lkotlin/text/Regex$splitToSequence$1;
iget-object v1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
iget-object v2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
iget v3, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
invoke-direct {v0, v1, v2, v3, p2}, Lkotlin/text/Regex$splitToSequence$1;-><init>(Lkotlin/text/Regex;Ljava/lang/CharSequence;ILkotlin/coroutines/Continuation;)V
iput-object p1, v0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, Lkotlin/sequences/SequenceScope;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Lkotlin/text/Regex$splitToSequence$1;->invoke(Lkotlin/sequences/SequenceScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlin/sequences/SequenceScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/SequenceScope<",
"-",
"Ljava/lang/String;",
">;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
.line 2
invoke-virtual {p0, p1, p2}, Lkotlin/text/Regex$splitToSequence$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Lkotlin/text/Regex$splitToSequence$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lkotlin/text/Regex$splitToSequence$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 10
.line 1
iget-object v0, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
.line 2
.line 3
check-cast v0, Lkotlin/sequences/SequenceScope;
.line 4
.line 5
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
.line 6
.line 7
.line 8
move-result-object v1
.line 9
iget v2, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
.line 10
.line 11
const/4 v3, 0x3
.line 12
const/4 v4, 0x2
.line 13
const/4 v5, 0x1
.line 14
if-eqz v2, :cond_3
.line 15
.line 16
if-eq v2, v5, :cond_2
.line 17
.line 18
if-eq v2, v4, :cond_1
.line 19
.line 20
if-ne v2, v3, :cond_0
.line 21
.line 22
iget-object v0, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 23
.line 24
check-cast v0, Ljava/util/regex/Matcher;
.line 25
.line 26
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 27
.line 28
.line 29
goto/16 :goto_3
.line 30
.line 31
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
.line 32
.line 33
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
.line 34
.line 35
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 36
.line 37
.line 38
throw p1
.line 39
:cond_1
iget v2, p0, Lkotlin/text/Regex$splitToSequence$1;->I$1:I
.line 40
.line 41
iget-object v6, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 42
.line 43
check-cast v6, Ljava/util/regex/Matcher;
.line 44
.line 45
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 46
.line 47
.line 48
goto :goto_1
.line 49
:cond_2
iget-object v0, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 50
.line 51
check-cast v0, Ljava/util/regex/Matcher;
.line 52
.line 53
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 54
.line 55
.line 56
goto/16 :goto_6
.line 57
.line 58
:cond_3
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 59
.line 60
.line 61
iget-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
.line 62
.line 63
invoke-static {p1}, Lkotlin/text/Regex;->access$getNativePattern$p(Lkotlin/text/Regex;)Ljava/util/regex/Pattern;
.line 64
.line 65
.line 66
move-result-object p1
.line 67
iget-object v2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
.line 68
.line 69
invoke-virtual {p1, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
.line 70
.line 71
.line 72
move-result-object p1
.line 73
iget v2, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
.line 74
.line 75
if-eq v2, v5, :cond_9
.line 76
.line 77
invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z
.line 78
.line 79
.line 80
move-result v2
.line 81
if-nez v2, :cond_4
.line 82
.line 83
goto :goto_4
.line 84
:cond_4
const/4 v2, 0x0
.line 85
move-object v6, p1
.line 86
move p1, v2
.line 87
:goto_0
iget-object v7, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
.line 88
.line 89
invoke-virtual {v6}, Ljava/util/regex/Matcher;->start()I
.line 90
.line 91
.line 92
move-result v8
.line 93
invoke-interface {v7, v2, v8}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
.line 94
.line 95
.line 96
move-result-object v7
.line 97
invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 98
.line 99
.line 100
move-result-object v7
.line 101
iput-object v0, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
.line 102
.line 103
iput-object v6, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 104
.line 105
iput v2, p0, Lkotlin/text/Regex$splitToSequence$1;->I$0:I
.line 106
.line 107
iput p1, p0, Lkotlin/text/Regex$splitToSequence$1;->I$1:I
.line 108
.line 109
iput v4, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
.line 110
.line 111
invoke-virtual {v0, v7, p0}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.line 112
.line 113
.line 114
move-result-object v2
.line 115
if-ne v2, v1, :cond_5
.line 116
.line 117
goto :goto_5
.line 118
:cond_5
move v2, p1
.line 119
:goto_1
invoke-virtual {v6}, Ljava/util/regex/Matcher;->end()I
.line 120
.line 121
.line 122
move-result p1
.line 123
add-int/2addr v2, v5
.line 124
iget v7, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
.line 125
.line 126
sub-int/2addr v7, v5
.line 127
if-eq v2, v7, :cond_7
.line 128
.line 129
invoke-virtual {v6}, Ljava/util/regex/Matcher;->find()Z
.line 130
.line 131
.line 132
move-result v7
.line 133
if-nez v7, :cond_6
.line 134
.line 135
goto :goto_2
.line 136
:cond_6
move v9, v2
.line 137
move v2, p1
.line 138
move p1, v9
.line 139
goto :goto_0
.line 140
:cond_7
:goto_2
iget-object v4, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
.line 141
.line 142
invoke-interface {v4}, Ljava/lang/CharSequence;->length()I
.line 143
.line 144
.line 145
move-result v5
.line 146
invoke-interface {v4, p1, v5}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
.line 147
.line 148
.line 149
move-result-object v4
.line 150
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 151
.line 152
.line 153
move-result-object v4
.line 154
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/SpillingKt;->nullOutSpilledVariable(Ljava/lang/Object;)Ljava/lang/Object;
.line 155
.line 156
.line 157
move-result-object v5
.line 158
iput-object v5, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
.line 159
.line 160
invoke-static {v6}, Lkotlin/coroutines/jvm/internal/SpillingKt;->nullOutSpilledVariable(Ljava/lang/Object;)Ljava/lang/Object;
.line 161
.line 162
.line 163
move-result-object v5
.line 164
iput-object v5, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 165
.line 166
iput p1, p0, Lkotlin/text/Regex$splitToSequence$1;->I$0:I
.line 167
.line 168
iput v2, p0, Lkotlin/text/Regex$splitToSequence$1;->I$1:I
.line 169
.line 170
iput v3, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
.line 171
.line 172
invoke-virtual {v0, v4, p0}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.line 173
.line 174
.line 175
move-result-object p1
.line 176
if-ne p1, v1, :cond_8
.line 177
.line 178
goto :goto_5
.line 179
:cond_8
:goto_3
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 180
.line 181
return-object p1
.line 182
:cond_9
:goto_4
iget-object v2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
.line 183
.line 184
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 185
.line 186
.line 187
move-result-object v2
.line 188
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/SpillingKt;->nullOutSpilledVariable(Ljava/lang/Object;)Ljava/lang/Object;
.line 189
.line 190
.line 191
move-result-object v3
.line 192
iput-object v3, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
.line 193
.line 194
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/SpillingKt;->nullOutSpilledVariable(Ljava/lang/Object;)Ljava/lang/Object;
.line 195
.line 196
.line 197
move-result-object p1
.line 198
iput-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
.line 199
.line 200
iput v5, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
.line 201
.line 202
invoke-virtual {v0, v2, p0}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.line 203
.line 204
.line 205
move-result-object p1
.line 206
if-ne p1, v1, :cond_a
.line 207
.line 208
:goto_5
return-object v1
.line 209
:cond_a
:goto_6
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 210
.line 211
return-object p1
.end method