* 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>
285 lines
4.9 KiB
Smali
285 lines
4.9 KiB
Smali
.class public final Lj$/time/x;
|
|
.super Lj$/time/ZoneId;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic c:I = 0x0
|
|
|
|
.field private static final serialVersionUID:J = 0x746262147bb70e18L
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
.field public final transient b:Lj$/time/zone/f;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;Lj$/time/zone/f;)V
|
|
.locals 0
|
|
|
|
.line 162
|
|
invoke-direct {p0}, Lj$/time/ZoneId;-><init>()V
|
|
|
|
.line 163
|
|
iput-object p1, p0, Lj$/time/x;->a:Ljava/lang/String;
|
|
|
|
.line 164
|
|
iput-object p2, p0, Lj$/time/x;->b:Lj$/time/zone/f;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static P(Ljava/lang/String;Z)Lj$/time/x;
|
|
.locals 5
|
|
|
|
.line 115
|
|
const-string v0, "zoneId"
|
|
|
|
invoke-static {p0, v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 136
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 137
|
|
const-string v2, "Invalid ID for region-based ZoneId, invalid format: "
|
|
|
|
if-lt v0, v1, :cond_b
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_9
|
|
|
|
.line 141
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x61
|
|
|
|
if-lt v3, v4, :cond_0
|
|
|
|
const/16 v4, 0x7a
|
|
|
|
if-gt v3, v4, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v4, 0x41
|
|
|
|
if-lt v3, v4, :cond_1
|
|
|
|
const/16 v4, 0x5a
|
|
|
|
if-gt v3, v4, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v4, 0x2f
|
|
|
|
if-ne v3, v4, :cond_2
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v4, 0x30
|
|
|
|
if-lt v3, v4, :cond_3
|
|
|
|
const/16 v4, 0x39
|
|
|
|
if-gt v3, v4, :cond_3
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/16 v4, 0x7e
|
|
|
|
if-ne v3, v4, :cond_4
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/16 v4, 0x2e
|
|
|
|
if-ne v3, v4, :cond_5
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/16 v4, 0x5f
|
|
|
|
if-ne v3, v4, :cond_6
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
const/16 v4, 0x2b
|
|
|
|
if-ne v3, v4, :cond_7
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
const/16 v4, 0x2d
|
|
|
|
if-ne v3, v4, :cond_8
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 151
|
|
:cond_8
|
|
new-instance p1, Lj$/time/b;
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 88
|
|
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 151
|
|
throw p1
|
|
|
|
.line 120
|
|
:cond_9
|
|
:try_start_0
|
|
invoke-static {p0}, Lj$/time/zone/i;->a(Ljava/lang/String;)Lj$/time/zone/f;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Lj$/time/zone/g; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
if-nez p1, :cond_a
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 126
|
|
:goto_2
|
|
new-instance v0, Lj$/time/x;
|
|
|
|
invoke-direct {v0, p0, p1}, Lj$/time/x;-><init>(Ljava/lang/String;Lj$/time/zone/f;)V
|
|
|
|
return-object v0
|
|
|
|
.line 123
|
|
:cond_a
|
|
throw v0
|
|
|
|
.line 138
|
|
:cond_b
|
|
new-instance p1, Lj$/time/b;
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 88
|
|
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 138
|
|
throw p1
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 1
|
|
|
|
.line 203
|
|
new-instance p1, Ljava/io/InvalidObjectException;
|
|
|
|
const-string v0, "Deserialization via serialization delegate"
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/InvalidObjectException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private writeReplace()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 193
|
|
new-instance v0, Lj$/time/s;
|
|
|
|
const/4 v1, 0x7
|
|
|
|
invoke-direct {v0, v1, p0}, Lj$/time/s;-><init>(BLjava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final K()Lj$/time/zone/f;
|
|
.locals 1
|
|
|
|
.line 177
|
|
iget-object v0, p0, Lj$/time/x;->b:Lj$/time/zone/f;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lj$/time/x;->a:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lj$/time/zone/i;->a(Ljava/lang/String;)Lj$/time/zone/f;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final O(Ljava/io/DataOutput;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x7
|
|
|
|
.line 208
|
|
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeByte(I)V
|
|
|
|
.line 213
|
|
iget-object v0, p0, Lj$/time/x;->a:Ljava/lang/String;
|
|
|
|
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 170
|
|
iget-object v0, p0, Lj$/time/x;->a:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|