* 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>
438 lines
7.2 KiB
Smali
438 lines
7.2 KiB
Smali
.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010\u000c\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008\u0086\u0003\u0018\u00002\u00020\u0001R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0003\u0010\u0004R\u001a\u0010\u0007\u001a\u0008\u0012\u0004\u0012\u00020\u00060\u00058\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0007\u0010\u0008R\u0014\u0010\n\u001a\u00020\t8\u0002X\u0082T\u00a2\u0006\u0006\n\u0004\u0008\n\u0010\u000bR\u0016\u0010\r\u001a\u00020\u000c8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\r\u0010\u000e\u00a8\u0006\u000f"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;",
|
|
"",
|
|
"Lokio/ByteString;",
|
|
"WILDCARD_LABEL",
|
|
"Lokio/ByteString;",
|
|
"",
|
|
"",
|
|
"PREVAILING_RULE",
|
|
"Ljava/util/List;",
|
|
"",
|
|
"EXCEPTION_MARKER",
|
|
"C",
|
|
"Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;",
|
|
"instance",
|
|
"Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Lokio/ByteString;[Lokio/ByteString;I)Ljava/lang/String;
|
|
.locals 19
|
|
|
|
.line 1
|
|
move-object/from16 v0, p0
|
|
|
|
.line 2
|
|
.line 3
|
|
move-object/from16 v1, p1
|
|
|
|
.line 4
|
|
.line 5
|
|
sget-object v2, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Lokio/ByteString;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Lokio/ByteString;->d()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v2
|
|
|
|
.line 11
|
|
const/4 v4, 0x0
|
|
|
|
.line 12
|
|
:goto_0
|
|
if-ge v4, v2, :cond_b
|
|
|
|
.line 13
|
|
.line 14
|
|
add-int v5, v4, v2
|
|
|
|
.line 15
|
|
.line 16
|
|
div-int/lit8 v5, v5, 0x2
|
|
|
|
.line 17
|
|
.line 18
|
|
:goto_1
|
|
const/16 v6, 0xa
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v7, -0x1
|
|
|
|
.line 21
|
|
if-le v5, v7, :cond_0
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0, v5}, Lokio/ByteString;->i(I)B
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v8
|
|
|
|
.line 27
|
|
if-eq v8, v6, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:cond_0
|
|
add-int/lit8 v8, v5, 0x1
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v9, 0x1
|
|
|
|
.line 35
|
|
move v10, v9
|
|
|
|
.line 36
|
|
:goto_2
|
|
add-int v11, v8, v10
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v0, v11}, Lokio/ByteString;->i(I)B
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result v12
|
|
|
|
.line 42
|
|
if-eq v12, v6, :cond_1
|
|
|
|
.line 43
|
|
.line 44
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
.line 45
|
|
.line 46
|
|
goto :goto_2
|
|
|
|
.line 47
|
|
:cond_1
|
|
sub-int v6, v11, v8
|
|
|
|
.line 48
|
|
.line 49
|
|
move/from16 v12, p2
|
|
|
|
.line 50
|
|
.line 51
|
|
const/4 v10, 0x0
|
|
|
|
.line 52
|
|
const/4 v13, 0x0
|
|
|
|
.line 53
|
|
const/4 v14, 0x0
|
|
|
|
.line 54
|
|
:goto_3
|
|
if-eqz v10, :cond_2
|
|
|
|
.line 55
|
|
.line 56
|
|
const/16 v10, 0x2e
|
|
|
|
.line 57
|
|
.line 58
|
|
const/4 v15, 0x0
|
|
|
|
.line 59
|
|
goto :goto_4
|
|
|
|
.line 60
|
|
:cond_2
|
|
aget-object v15, v1, v12
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual {v15, v13}, Lokio/ByteString;->i(I)B
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result v15
|
|
|
|
.line 66
|
|
sget-object v16, Lokhttp3/internal/_UtilCommonKt;->a:[B
|
|
|
|
.line 67
|
|
.line 68
|
|
and-int/lit16 v15, v15, 0xff
|
|
|
|
.line 69
|
|
.line 70
|
|
move/from16 v18, v15
|
|
|
|
.line 71
|
|
.line 72
|
|
move v15, v10
|
|
|
|
.line 73
|
|
move/from16 v10, v18
|
|
|
|
.line 74
|
|
.line 75
|
|
:goto_4
|
|
add-int v3, v8, v14
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v0, v3}, Lokio/ByteString;->i(I)B
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result v3
|
|
|
|
.line 81
|
|
sget-object v17, Lokhttp3/internal/_UtilCommonKt;->a:[B
|
|
|
|
.line 82
|
|
.line 83
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
.line 84
|
|
.line 85
|
|
sub-int/2addr v10, v3
|
|
|
|
.line 86
|
|
if-nez v10, :cond_5
|
|
|
|
.line 87
|
|
.line 88
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
.line 89
|
|
.line 90
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
.line 91
|
|
.line 92
|
|
if-eq v14, v6, :cond_5
|
|
|
|
.line 93
|
|
.line 94
|
|
aget-object v3, v1, v12
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {v3}, Lokio/ByteString;->d()I
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result v3
|
|
|
|
.line 100
|
|
if-ne v3, v13, :cond_4
|
|
|
|
.line 101
|
|
.line 102
|
|
array-length v3, v1
|
|
|
|
.line 103
|
|
sub-int/2addr v3, v9
|
|
|
|
.line 104
|
|
if-ne v12, v3, :cond_3
|
|
|
|
.line 105
|
|
.line 106
|
|
goto :goto_5
|
|
|
|
.line 107
|
|
:cond_3
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
.line 108
|
|
.line 109
|
|
move v13, v7
|
|
|
|
.line 110
|
|
move v10, v9
|
|
|
|
.line 111
|
|
goto :goto_3
|
|
|
|
.line 112
|
|
:cond_4
|
|
move v10, v15
|
|
|
|
.line 113
|
|
goto :goto_3
|
|
|
|
.line 114
|
|
:cond_5
|
|
:goto_5
|
|
if-gez v10, :cond_6
|
|
|
|
.line 115
|
|
.line 116
|
|
:goto_6
|
|
move v2, v5
|
|
|
|
.line 117
|
|
goto :goto_0
|
|
|
|
.line 118
|
|
:cond_6
|
|
if-lez v10, :cond_7
|
|
|
|
.line 119
|
|
.line 120
|
|
:goto_7
|
|
add-int/lit8 v4, v11, 0x1
|
|
|
|
.line 121
|
|
.line 122
|
|
goto :goto_0
|
|
|
|
.line 123
|
|
:cond_7
|
|
sub-int v3, v6, v14
|
|
|
|
.line 124
|
|
.line 125
|
|
aget-object v7, v1, v12
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-virtual {v7}, Lokio/ByteString;->d()I
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
move-result v7
|
|
|
|
.line 131
|
|
sub-int/2addr v7, v13
|
|
|
|
.line 132
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
.line 133
|
|
.line 134
|
|
array-length v9, v1
|
|
|
|
.line 135
|
|
:goto_8
|
|
if-ge v12, v9, :cond_8
|
|
|
|
.line 136
|
|
.line 137
|
|
aget-object v10, v1, v12
|
|
|
|
.line 138
|
|
.line 139
|
|
invoke-virtual {v10}, Lokio/ByteString;->d()I
|
|
|
|
.line 140
|
|
.line 141
|
|
.line 142
|
|
move-result v10
|
|
|
|
.line 143
|
|
add-int/2addr v7, v10
|
|
|
|
.line 144
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
.line 145
|
|
.line 146
|
|
goto :goto_8
|
|
|
|
.line 147
|
|
:cond_8
|
|
if-ge v7, v3, :cond_9
|
|
|
|
.line 148
|
|
.line 149
|
|
goto :goto_6
|
|
|
|
.line 150
|
|
:cond_9
|
|
if-le v7, v3, :cond_a
|
|
|
|
.line 151
|
|
.line 152
|
|
goto :goto_7
|
|
|
|
.line 153
|
|
:cond_a
|
|
add-int/2addr v6, v8
|
|
|
|
.line 154
|
|
invoke-virtual {v0, v8, v6}, Lokio/ByteString;->p(II)Lokio/ByteString;
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
move-result-object v0
|
|
|
|
.line 158
|
|
sget-object v1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 159
|
|
.line 160
|
|
invoke-virtual {v0, v1}, Lokio/ByteString;->o(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
move-result-object v0
|
|
|
|
.line 164
|
|
return-object v0
|
|
|
|
.line 165
|
|
:cond_b
|
|
const/4 v0, 0x0
|
|
|
|
.line 166
|
|
return-object v0
|
|
.end method
|