* 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>
375 lines
9.8 KiB
Smali
375 lines
9.8 KiB
Smali
.class public Lnet/dankito/readability4j/util/RegExUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lnet/dankito/readability4j/util/RegExUtil$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u000c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\u0008\u0016\u0018\u00002\u00020\u0001:\u0001\u0002\u00a8\u0006\u0003"
|
|
}
|
|
d2 = {
|
|
"Lnet/dankito/readability4j/util/RegExUtil;",
|
|
"",
|
|
"Companion",
|
|
"Readability4J"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/regex/Pattern;
|
|
|
|
.field public final b:Ljava/util/regex/Pattern;
|
|
|
|
.field public final c:Ljava/util/regex/Pattern;
|
|
|
|
.field public final d:Ljava/util/regex/Pattern;
|
|
|
|
.field public final e:Ljava/util/regex/Pattern;
|
|
|
|
.field public final f:Ljava/util/regex/Pattern;
|
|
|
|
.field public final g:Ljava/util/regex/Pattern;
|
|
|
|
.field public final h:Ljava/util/regex/Pattern;
|
|
|
|
.field public final i:Ljava/util/regex/Pattern;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const-string v0, "banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|foot|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote"
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x2
|
|
|
|
.line 7
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
const-string v2, "Pattern.compile(unlikely\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->a:Ljava/util/regex/Pattern;
|
|
|
|
.line 17
|
|
.line 18
|
|
const-string v0, "and|article|body|column|main|shadow"
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
const-string v2, "Pattern.compile(okMaybeI\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->b:Ljava/util/regex/Pattern;
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string v0, "article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story"
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
const-string v2, "Pattern.compile(positive\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->c:Ljava/util/regex/Pattern;
|
|
|
|
.line 43
|
|
.line 44
|
|
const-string v0, "hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget"
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object v0
|
|
|
|
.line 50
|
|
const-string v2, "Pattern.compile(negative\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->d:Ljava/util/regex/Pattern;
|
|
|
|
.line 56
|
|
.line 57
|
|
const-string v0, "print|archive|comment|discuss|e[\\-]?mail|share|reply|all|login|sign|single|utility"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result-object v0
|
|
|
|
.line 63
|
|
const-string v2, "Pattern.compile(extraneo\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
const-string v0, "byline|author|dateline|writtenby|p-author"
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result-object v0
|
|
|
|
.line 74
|
|
const-string v2, "Pattern.compile(bylinePa\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->e:Ljava/util/regex/Pattern;
|
|
|
|
.line 80
|
|
.line 81
|
|
const-string v0, "<(/?)font[^>]*>"
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
move-result-object v0
|
|
|
|
.line 87
|
|
const-string v2, "Pattern.compile(replaceF\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 88
|
|
.line 89
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
const-string v0, "\\s{2,}"
|
|
|
|
.line 93
|
|
.line 94
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
move-result-object v0
|
|
|
|
.line 98
|
|
const-string v2, "Pattern.compile(normalizePattern)"
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->f:Ljava/util/regex/Pattern;
|
|
|
|
.line 104
|
|
.line 105
|
|
const-string v0, "//(www\\.)?(dailymotion|youtube|youtube-nocookie|player\\.vimeo)\\.com"
|
|
|
|
.line 106
|
|
.line 107
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result-object v0
|
|
|
|
.line 111
|
|
const-string v2, "Pattern.compile(videosPa\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->g:Ljava/util/regex/Pattern;
|
|
|
|
.line 117
|
|
.line 118
|
|
const-string v0, "(next|weiter|continue|>([^\\|]|$)|\u00bb([^\\|]|$))"
|
|
|
|
.line 119
|
|
.line 120
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 121
|
|
.line 122
|
|
.line 123
|
|
move-result-object v0
|
|
|
|
.line 124
|
|
const-string v2, "Pattern.compile(nextLink\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 125
|
|
.line 126
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 127
|
|
.line 128
|
|
.line 129
|
|
const-string v0, "(prev|earl|old|new|<|\u00ab)"
|
|
|
|
.line 130
|
|
.line 131
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
.line 132
|
|
.line 133
|
|
.line 134
|
|
move-result-object v0
|
|
|
|
.line 135
|
|
const-string v1, "Pattern.compile(prevLink\u2026Pattern.CASE_INSENSITIVE)"
|
|
|
|
.line 136
|
|
.line 137
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
const-string v0, "^\\s*$"
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
move-result-object v0
|
|
|
|
.line 146
|
|
const-string v1, "Pattern.compile(whitespacePattern)"
|
|
|
|
.line 147
|
|
.line 148
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 149
|
|
.line 150
|
|
.line 151
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->h:Ljava/util/regex/Pattern;
|
|
|
|
.line 152
|
|
.line 153
|
|
const-string v0, "\\S$"
|
|
|
|
.line 154
|
|
.line 155
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
.line 156
|
|
.line 157
|
|
.line 158
|
|
move-result-object v0
|
|
|
|
.line 159
|
|
const-string v1, "Pattern.compile(hasContentPattern)"
|
|
|
|
.line 160
|
|
.line 161
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 162
|
|
.line 163
|
|
.line 164
|
|
iput-object v0, p0, Lnet/dankito/readability4j/util/RegExUtil;->i:Ljava/util/regex/Pattern;
|
|
|
|
.line 165
|
|
.line 166
|
|
return-void
|
|
.end method
|