soul-browser/app/smali_classes4/org/jsoup/parser/HtmlTreeBuilderState$12.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

552 lines
10 KiB
Smali

.class final enum Lorg/jsoup/parser/HtmlTreeBuilderState$12;
.super Lorg/jsoup/parser/HtmlTreeBuilderState;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/jsoup/parser/HtmlTreeBuilderState;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
const-string v0, "InColumnGroup"
.line 2
.line 3
const/16 v1, 0xb
.line 4
.line 5
invoke-direct {p0, v0, v1}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 6
.line 7
.line 8
return-void
.end method
# virtual methods
.method public final d(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.locals 10
.line 1
invoke-static {p1}, Lorg/jsoup/parser/HtmlTreeBuilderState;->a(Lorg/jsoup/parser/Token;)Z
.line 2
.line 3
.line 4
move-result v0
.line 5
const/4 v1, 0x1
.line 6
if-eqz v0, :cond_0
.line 7
.line 8
check-cast p1, Lorg/jsoup/parser/Token$Character;
.line 9
.line 10
invoke-virtual {p2, p1}, Lorg/jsoup/parser/HtmlTreeBuilder;->K(Lorg/jsoup/parser/Token$Character;)V
.line 11
.line 12
.line 13
return v1
.line 14
:cond_0
sget-object v0, Lorg/jsoup/parser/HtmlTreeBuilderState$25;->a:[I
.line 15
.line 16
iget-object v2, p1, Lorg/jsoup/parser/Token;->a:Lorg/jsoup/parser/Token$TokenType;
.line 17
.line 18
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
.line 19
.line 20
.line 21
move-result v2
.line 22
aget v0, v0, v2
.line 23
.line 24
if-eq v0, v1, :cond_c
.line 25
.line 26
const/4 v2, 0x2
.line 27
if-eq v0, v2, :cond_b
.line 28
.line 29
const/4 v3, 0x3
.line 30
const/4 v4, 0x0
.line 31
const-string v5, "template"
.line 32
.line 33
const-string v6, "html"
.line 34
.line 35
sget-object v7, Lorg/jsoup/parser/HtmlTreeBuilderState;->h:Lorg/jsoup/parser/HtmlTreeBuilderState$4;
.line 36
.line 37
if-eq v0, v3, :cond_7
.line 38
.line 39
const/4 v2, 0x4
.line 40
if-eq v0, v2, :cond_3
.line 41
.line 42
const/4 v2, 0x6
.line 43
if-eq v0, v2, :cond_1
.line 44
.line 45
invoke-virtual {p0, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$12;->e(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 46
.line 47
.line 48
move-result p1
.line 49
return p1
.line 50
:cond_1
invoke-virtual {p2, v6}, Lorg/jsoup/parser/TreeBuilder;->c(Ljava/lang/String;)Z
.line 51
.line 52
.line 53
move-result v0
.line 54
if-eqz v0, :cond_2
.line 55
.line 56
return v1
.line 57
:cond_2
invoke-virtual {p0, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$12;->e(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 58
.line 59
.line 60
move-result p1
.line 61
return p1
.line 62
:cond_3
move-object v0, p1
.line 63
check-cast v0, Lorg/jsoup/parser/Token$EndTag;
.line 64
.line 65
invoke-virtual {v0}, Lorg/jsoup/parser/Token$Tag;->m()Ljava/lang/String;
.line 66
.line 67
.line 68
move-result-object v0
.line 69
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 70
.line 71
.line 72
invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 73
.line 74
.line 75
move-result v2
.line 76
if-nez v2, :cond_6
.line 77
.line 78
const-string v2, "colgroup"
.line 79
.line 80
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 81
.line 82
.line 83
move-result v2
.line 84
if-nez v2, :cond_4
.line 85
.line 86
invoke-virtual {p0, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$12;->e(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 87
.line 88
.line 89
move-result p1
.line 90
return p1
.line 91
:cond_4
invoke-virtual {p2, v0}, Lorg/jsoup/parser/TreeBuilder;->c(Ljava/lang/String;)Z
.line 92
.line 93
.line 94
move-result p1
.line 95
if-nez p1, :cond_5
.line 96
.line 97
invoke-virtual {p2, p0}, Lorg/jsoup/parser/HtmlTreeBuilder;->B(Lorg/jsoup/parser/HtmlTreeBuilderState;)V
.line 98
.line 99
.line 100
return v4
.line 101
:cond_5
invoke-virtual {p2}, Lorg/jsoup/parser/TreeBuilder;->l()Lorg/jsoup/nodes/Element;
.line 102
.line 103
.line 104
sget-object p1, Lorg/jsoup/parser/HtmlTreeBuilderState;->m:Lorg/jsoup/parser/HtmlTreeBuilderState$9;
.line 105
.line 106
iput-object p1, p2, Lorg/jsoup/parser/HtmlTreeBuilder;->n:Lorg/jsoup/parser/HtmlTreeBuilderState;
.line 107
.line 108
return v1
.line 109
:cond_6
invoke-virtual {v7, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$4;->d(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 110
.line 111
.line 112
return v1
.line 113
:cond_7
move-object v0, p1
.line 114
check-cast v0, Lorg/jsoup/parser/Token$StartTag;
.line 115
.line 116
invoke-virtual {v0}, Lorg/jsoup/parser/Token$Tag;->m()Ljava/lang/String;
.line 117
.line 118
.line 119
move-result-object v3
.line 120
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 121
.line 122
.line 123
invoke-virtual {v3}, Ljava/lang/String;->hashCode()I
.line 124
.line 125
.line 126
move-result v8
.line 127
const/4 v9, -0x1
.line 128
sparse-switch v8, :sswitch_data_0
.line 129
.line 130
.line 131
:goto_0
move v2, v9
.line 132
goto :goto_1
.line 133
:sswitch_0
invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 134
.line 135
.line 136
move-result v3
.line 137
if-nez v3, :cond_a
.line 138
.line 139
goto :goto_0
.line 140
:sswitch_1
const-string v2, "col"
.line 141
.line 142
invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 143
.line 144
.line 145
move-result v2
.line 146
if-nez v2, :cond_8
.line 147
.line 148
goto :goto_0
.line 149
:cond_8
move v2, v1
.line 150
goto :goto_1
.line 151
:sswitch_2
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 152
.line 153
.line 154
move-result v2
.line 155
if-nez v2, :cond_9
.line 156
.line 157
goto :goto_0
.line 158
:cond_9
move v2, v4
.line 159
:cond_a
:goto_1
packed-switch v2, :pswitch_data_0
.line 160
.line 161
.line 162
invoke-virtual {p0, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$12;->e(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 163
.line 164
.line 165
move-result p1
.line 166
return p1
.line 167
:pswitch_0
sget-object v0, Lorg/jsoup/parser/HtmlTreeBuilderState;->k:Lorg/jsoup/parser/HtmlTreeBuilderState$7;
.line 168
.line 169
invoke-virtual {v0, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$7;->d(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 170
.line 171
.line 172
move-result p1
.line 173
return p1
.line 174
:pswitch_1
invoke-virtual {p2, v0}, Lorg/jsoup/parser/HtmlTreeBuilder;->O(Lorg/jsoup/parser/Token$StartTag;)Lorg/jsoup/nodes/Element;
.line 175
.line 176
.line 177
return v1
.line 178
:pswitch_2
invoke-virtual {v7, p1, p2}, Lorg/jsoup/parser/HtmlTreeBuilderState$4;->d(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.line 179
.line 180
.line 181
return v1
.line 182
:cond_b
invoke-virtual {p2, p0}, Lorg/jsoup/parser/HtmlTreeBuilder;->B(Lorg/jsoup/parser/HtmlTreeBuilderState;)V
.line 183
.line 184
.line 185
return v1
.line 186
:cond_c
check-cast p1, Lorg/jsoup/parser/Token$Comment;
.line 187
.line 188
invoke-virtual {p2, p1}, Lorg/jsoup/parser/HtmlTreeBuilder;->M(Lorg/jsoup/parser/Token$Comment;)V
.line 189
.line 190
.line 191
return v1
.line 192
nop
.line 193
:sswitch_data_0
.sparse-switch
-0x4ec53386 -> :sswitch_2
0x18180 -> :sswitch_1
0x3107ab -> :sswitch_0
.end sparse-switch
.line 194
.line 195
.line 196
.line 197
.line 198
.line 199
.line 200
.line 201
.line 202
.line 203
.line 204
.line 205
.line 206
.line 207
:pswitch_data_0
.packed-switch 0x0
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public final e(Lorg/jsoup/parser/Token;Lorg/jsoup/parser/HtmlTreeBuilder;)Z
.locals 1
.line 1
const-string v0, "colgroup"
.line 2
.line 3
invoke-virtual {p2, v0}, Lorg/jsoup/parser/TreeBuilder;->c(Ljava/lang/String;)Z
.line 4
.line 5
.line 6
move-result v0
.line 7
if-nez v0, :cond_0
.line 8
.line 9
invoke-virtual {p2, p0}, Lorg/jsoup/parser/HtmlTreeBuilder;->B(Lorg/jsoup/parser/HtmlTreeBuilderState;)V
.line 10
.line 11
.line 12
const/4 p1, 0x0
.line 13
return p1
.line 14
:cond_0
invoke-virtual {p2}, Lorg/jsoup/parser/TreeBuilder;->l()Lorg/jsoup/nodes/Element;
.line 15
.line 16
.line 17
sget-object v0, Lorg/jsoup/parser/HtmlTreeBuilderState;->m:Lorg/jsoup/parser/HtmlTreeBuilderState$9;
.line 18
.line 19
iput-object v0, p2, Lorg/jsoup/parser/HtmlTreeBuilder;->n:Lorg/jsoup/parser/HtmlTreeBuilderState;
.line 20
.line 21
invoke-virtual {p2, p1}, Lorg/jsoup/parser/HtmlTreeBuilder;->m(Lorg/jsoup/parser/Token;)Z
.line 22
.line 23
.line 24
const/4 p1, 0x1
.line 25
return p1
.end method