* 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>
305 lines
5.6 KiB
Smali
305 lines
5.6 KiB
Smali
.class public final Lj$/sun/nio/cs/a;
|
|
.super Ljava/nio/charset/CharsetDecoder;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 65
|
|
const-class v0, Lj$/sun/nio/cs/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/sun/nio/cs/c;)V
|
|
.locals 1
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
.line 68
|
|
invoke-direct {p0, p1, v0, v0}, Ljava/nio/charset/CharsetDecoder;-><init>(Ljava/nio/charset/Charset;FF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final decodeLoop(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
|
|
.locals 8
|
|
|
|
.line 121
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->hasArray()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 74
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object v0
|
|
|
|
.line 75
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
.line 76
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
if-gt v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v3
|
|
|
|
.line 79
|
|
:goto_0
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->array()[C
|
|
|
|
move-result-object v1
|
|
|
|
.line 80
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->arrayOffset()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->position()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v5, v4
|
|
|
|
.line 81
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->arrayOffset()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->limit()I
|
|
|
|
move-result v6
|
|
|
|
add-int/2addr v6, v4
|
|
|
|
if-gt v5, v6, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v5, v6
|
|
|
|
:goto_1
|
|
if-ge v2, v3, :cond_3
|
|
|
|
.line 87
|
|
:try_start_0
|
|
aget-byte v4, v0, v2
|
|
|
|
if-lt v5, v6, :cond_2
|
|
|
|
.line 89
|
|
sget-object v0, Ljava/nio/charset/CoderResult;->OVERFLOW:Ljava/nio/charset/CoderResult;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 95
|
|
:goto_2
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/ByteBuffer;
|
|
|
|
.line 96
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->arrayOffset()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v5, p1
|
|
|
|
invoke-virtual {p2, v5}, Ljava/nio/CharBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/CharBuffer;
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
add-int/lit8 v7, v5, 0x1
|
|
|
|
and-int/lit16 v4, v4, 0xff
|
|
|
|
int-to-char v4, v4
|
|
|
|
.line 90
|
|
:try_start_1
|
|
aput-char v4, v1, v5
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
move v5, v7
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
move v5, v7
|
|
|
|
goto :goto_3
|
|
|
|
.line 93
|
|
:cond_3
|
|
:try_start_2
|
|
sget-object v0, Ljava/nio/charset/CoderResult;->UNDERFLOW:Ljava/nio/charset/CoderResult;
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 95
|
|
:goto_3
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/ByteBuffer;
|
|
|
|
.line 96
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->arrayOffset()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v5, p1
|
|
|
|
invoke-virtual {p2, v5}, Ljava/nio/CharBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/CharBuffer;
|
|
|
|
.line 97
|
|
throw v0
|
|
|
|
.line 103
|
|
:cond_4
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result v0
|
|
|
|
.line 105
|
|
:goto_4
|
|
:try_start_3
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 106
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
|
|
|
|
move-result v1
|
|
|
|
.line 107
|
|
invoke-virtual {p2}, Ljava/nio/CharBuffer;->hasRemaining()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
.line 108
|
|
sget-object p2, Ljava/nio/charset/CoderResult;->OVERFLOW:Ljava/nio/charset/CoderResult;
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
.line 114
|
|
:goto_5
|
|
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/ByteBuffer;
|
|
|
|
return-object p2
|
|
|
|
:catchall_2
|
|
move-exception p2
|
|
|
|
goto :goto_6
|
|
|
|
:cond_5
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
int-to-char v1, v1
|
|
|
|
.line 109
|
|
:try_start_4
|
|
invoke-virtual {p2, v1}, Ljava/nio/CharBuffer;->put(C)Ljava/nio/CharBuffer;
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
.line 112
|
|
:cond_6
|
|
sget-object p2, Ljava/nio/charset/CoderResult;->UNDERFLOW:Ljava/nio/charset/CoderResult;
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
goto :goto_5
|
|
|
|
.line 114
|
|
:goto_6
|
|
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/nio/ByteBuffer;
|
|
|
|
.line 115
|
|
throw p2
|
|
.end method
|