* 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>
374 lines
9 KiB
Smali
374 lines
9 KiB
Smali
.class public final Lkotlin/text/RegexKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000>\n\u0000\n\u0002\u0010\u0008\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\"\n\u0000\n\u0002\u0010\u0010\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\r\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\u0012\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\u00030\u0002H\u0002\u001a-\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u0002H\u00060\u0005\"\u0014\u0008\u0000\u0010\u0006\u0018\u0001*\u00020\u0003*\u0008\u0012\u0004\u0012\u0002H\u00060\u00072\u0006\u0010\u0008\u001a\u00020\u0001H\u0082\u0008\u001a\u001e\u0010\t\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u0006\u0010\u000c\u001a\u00020\u00012\u0006\u0010\r\u001a\u00020\u000eH\u0002\u001a\u0016\u0010\u000f\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000eH\u0002\u001a\u000c\u0010\u0010\u001a\u00020\u0011*\u00020\u0012H\u0002\u001a\u0014\u0010\u0010\u001a\u00020\u0011*\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0001H\u0002\u00a8\u0006\u0014"
|
|
}
|
|
d2 = {
|
|
"toInt",
|
|
"",
|
|
"",
|
|
"Lkotlin/text/FlagEnum;",
|
|
"fromInt",
|
|
"",
|
|
"T",
|
|
"",
|
|
"value",
|
|
"findNext",
|
|
"Lkotlin/text/MatchResult;",
|
|
"Ljava/util/regex/Matcher;",
|
|
"from",
|
|
"input",
|
|
"",
|
|
"matchEntire",
|
|
"range",
|
|
"Lkotlin/ranges/IntRange;",
|
|
"Ljava/util/regex/MatchResult;",
|
|
"groupIndex",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nRegex.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,404:1\n1803#2,3:405\n*S KotlinDebug\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n*L\n21#1:405,3\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final synthetic access$findNext(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2}, Lkotlin/text/RegexKt;->findNext(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$matchEntire(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lkotlin/text/RegexKt;->matchEntire(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$range(Ljava/util/regex/MatchResult;)Lkotlin/ranges/IntRange;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/RegexKt;->range(Ljava/util/regex/MatchResult;)Lkotlin/ranges/IntRange;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$range(Ljava/util/regex/MatchResult;I)Lkotlin/ranges/IntRange;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/RegexKt;->range(Ljava/util/regex/MatchResult;I)Lkotlin/ranges/IntRange;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$toInt(Ljava/lang/Iterable;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/RegexKt;->toInt(Ljava/lang/Iterable;)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method private static final findNext(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Ljava/util/regex/Matcher;->find(I)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
if-nez p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p0, 0x0
|
|
|
|
.line 8
|
|
return-object p0
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance p1, Lkotlin/text/MatcherMatchResult;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {p1, p0, p2}, Lkotlin/text/MatcherMatchResult;-><init>(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private static final synthetic fromInt(I)Ljava/util/Set;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Enum<",
|
|
"TT;>;:",
|
|
"Lkotlin/text/FlagEnum;",
|
|
">(I)",
|
|
"Ljava/util/Set<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x4
|
|
|
|
.line 2
|
|
const-string v1, "T"
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->reifiedOperationMarker(ILjava/lang/String;)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
const-class v0, Ljava/lang/Enum;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-static {v0}, Ljava/util/EnumSet;->allOf(Ljava/lang/Class;)Ljava/util/EnumSet;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->needClassReification()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
new-instance v1, Lkotlin/text/RegexKt$fromInt$1$1;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v1, p0}, Lkotlin/text/RegexKt$fromInt$1$1;-><init>(I)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
invoke-static {v0, v1}, Lkotlin/collections/CollectionsKt;->s(Ljava/util/AbstractSet;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
invoke-static {v0}, Lj$/util/DesugarCollections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object p0
|
|
|
|
.line 31
|
|
const-string v0, "unmodifiableSet(...)"
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static final matchEntire(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p0, 0x0
|
|
|
|
.line 8
|
|
return-object p0
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance v0, Lkotlin/text/MatcherMatchResult;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {v0, p0, p1}, Lkotlin/text/MatcherMatchResult;-><init>(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static final range(Ljava/util/regex/MatchResult;)Lkotlin/ranges/IntRange;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ljava/util/regex/MatchResult;->start()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {p0}, Ljava/util/regex/MatchResult;->end()I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {v0, p0}, Lkotlin/ranges/RangesKt;->until(II)Lkotlin/ranges/IntRange;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static final range(Ljava/util/regex/MatchResult;I)Lkotlin/ranges/IntRange;
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-interface {p0, p1}, Ljava/util/regex/MatchResult;->start(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {p0, p1}, Ljava/util/regex/MatchResult;->end(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {v0, p0}, Lkotlin/ranges/RangesKt;->until(II)Lkotlin/ranges/IntRange;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static final toInt(Ljava/lang/Iterable;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Iterable<",
|
|
"+",
|
|
"Lkotlin/text/FlagEnum;",
|
|
">;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v1
|
|
|
|
.line 10
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v1
|
|
|
|
.line 16
|
|
check-cast v1, Lkotlin/text/FlagEnum;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-interface {v1}, Lkotlin/text/FlagEnum;->getValue()I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v1
|
|
|
|
.line 22
|
|
or-int/2addr v0, v1
|
|
|
|
.line 23
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:cond_0
|
|
return v0
|
|
.end method
|