* 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>
505 lines
10 KiB
Smali
505 lines
10 KiB
Smali
.class public final Lj$/time/chrono/h0;
|
|
.super Lj$/time/chrono/a;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field public static final c:Lj$/time/chrono/h0;
|
|
|
|
.field private static final serialVersionUID:J = 0x26862bec417f21daL
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 7
|
|
|
|
.line 114
|
|
new-instance v0, Lj$/time/chrono/h0;
|
|
|
|
invoke-direct {v0}, Lj$/time/chrono/h0;-><init>()V
|
|
|
|
sput-object v0, Lj$/time/chrono/h0;->c:Lj$/time/chrono/h0;
|
|
|
|
.line 127
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 131
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 135
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 148
|
|
const-string v3, "BB"
|
|
|
|
const-string v4, "BE"
|
|
|
|
filled-new-array {v3, v4}, [Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "en"
|
|
|
|
invoke-virtual {v0, v6, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 149
|
|
filled-new-array {v3, v4}, [Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "th"
|
|
|
|
invoke-virtual {v0, v4, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 150
|
|
const-string v0, "B.B."
|
|
|
|
const-string v3, "B.E."
|
|
|
|
filled-new-array {v0, v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 151
|
|
const-string v0, "\u0e1e.\u0e28."
|
|
|
|
const-string v3, "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48"
|
|
|
|
filled-new-array {v0, v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v4, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 154
|
|
const-string v0, "Before Buddhist"
|
|
|
|
const-string v1, "Budhhist Era"
|
|
|
|
filled-new-array {v0, v1}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 155
|
|
const-string v0, "\u0e1e\u0e38\u0e17\u0e18\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a"
|
|
|
|
filled-new-array {v0, v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v4, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 340
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 1
|
|
|
|
.line 398
|
|
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
|
|
|
|
|
|
# virtual methods
|
|
.method public final D(III)Lj$/time/chrono/b;
|
|
.locals 1
|
|
|
|
.line 228
|
|
new-instance v0, Lj$/time/chrono/j0;
|
|
|
|
add-int/lit16 p1, p1, -0x21f
|
|
|
|
invoke-static {p1, p2, p3}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lj$/time/chrono/j0;-><init>(Lj$/time/g;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final F(Ljava/util/Map;Lj$/time/format/e0;)Lj$/time/chrono/b;
|
|
.locals 0
|
|
|
|
.line 371
|
|
invoke-super {p0, p1, p2}, Lj$/time/chrono/a;->F(Ljava/util/Map;Lj$/time/format/e0;)Lj$/time/chrono/b;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lj$/time/chrono/j0;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final G(Lj$/time/Instant;Lj$/time/ZoneId;)Lj$/time/chrono/j;
|
|
.locals 0
|
|
|
|
.line 534
|
|
invoke-static {p0, p1, p2}, Lj$/time/chrono/l;->L(Lj$/time/chrono/m;Lj$/time/Instant;Lj$/time/ZoneId;)Lj$/time/chrono/l;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final J(J)Z
|
|
.locals 3
|
|
|
|
.line 327
|
|
sget-object v0, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
|
|
|
|
const-wide/16 v1, 0x21f
|
|
|
|
sub-long/2addr p1, v1
|
|
|
|
invoke-virtual {v0, p1, p2}, Lj$/time/chrono/t;->J(J)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final e(J)Lj$/time/chrono/b;
|
|
.locals 1
|
|
|
|
.line 270
|
|
new-instance v0, Lj$/time/chrono/j0;
|
|
|
|
invoke-static {p1, p2}, Lj$/time/g;->V(J)Lj$/time/g;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lj$/time/chrono/j0;-><init>(Lj$/time/g;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final f()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 178
|
|
const-string v0, "ThaiBuddhist"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final g()Lj$/time/chrono/b;
|
|
.locals 2
|
|
|
|
.line 275
|
|
invoke-static {}, Lj$/com/android/tools/r8/a;->S()Lj$/time/a;
|
|
|
|
move-result-object v0
|
|
|
|
.line 285
|
|
invoke-static {v0}, Lj$/time/g;->T(Lj$/time/a;)Lj$/time/g;
|
|
|
|
move-result-object v0
|
|
|
|
.line 293
|
|
new-instance v1, Lj$/time/chrono/j0;
|
|
|
|
invoke-static {v0}, Lj$/time/g;->M(Lj$/time/temporal/n;)Lj$/time/g;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Lj$/time/chrono/j0;-><init>(Lj$/time/g;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final j()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 195
|
|
const-string v0, "buddhist"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final k(II)Lj$/time/chrono/b;
|
|
.locals 1
|
|
|
|
.line 258
|
|
new-instance v0, Lj$/time/chrono/j0;
|
|
|
|
add-int/lit16 p1, p1, -0x21f
|
|
|
|
invoke-static {p1, p2}, Lj$/time/g;->W(II)Lj$/time/g;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lj$/time/chrono/j0;-><init>(Lj$/time/g;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final n(Lj$/time/temporal/a;)Lj$/time/temporal/v;
|
|
.locals 12
|
|
|
|
.line 351
|
|
sget-object v0, Lj$/time/chrono/g0;->a:[I
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const-wide/16 v2, 0x21f
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 669
|
|
iget-object p1, p1, Lj$/time/temporal/a;->b:Lj$/time/temporal/v;
|
|
|
|
return-object p1
|
|
|
|
.line 361
|
|
:cond_0
|
|
sget-object p1, Lj$/time/temporal/a;->YEAR:Lj$/time/temporal/a;
|
|
|
|
.line 669
|
|
iget-object p1, p1, Lj$/time/temporal/a;->b:Lj$/time/temporal/v;
|
|
|
|
.line 217
|
|
iget-wide v0, p1, Lj$/time/temporal/v;->a:J
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
.line 253
|
|
iget-wide v4, p1, Lj$/time/temporal/v;->d:J
|
|
|
|
add-long/2addr v4, v2
|
|
|
|
.line 362
|
|
invoke-static {v0, v1, v4, v5}, Lj$/time/temporal/v;->f(JJ)Lj$/time/temporal/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 357
|
|
:cond_1
|
|
sget-object p1, Lj$/time/temporal/a;->YEAR:Lj$/time/temporal/a;
|
|
|
|
.line 669
|
|
iget-object p1, p1, Lj$/time/temporal/a;->b:Lj$/time/temporal/v;
|
|
|
|
.line 217
|
|
iget-wide v0, p1, Lj$/time/temporal/v;->a:J
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
neg-long v0, v0
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
add-long v8, v0, v4
|
|
|
|
.line 253
|
|
iget-wide v0, p1, Lj$/time/temporal/v;->d:J
|
|
|
|
add-long v10, v0, v2
|
|
|
|
const-wide/16 v6, 0x1
|
|
|
|
.line 147
|
|
invoke-static/range {v6 .. v11}, Lj$/time/temporal/v;->g(JJJ)Lj$/time/temporal/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 353
|
|
:cond_2
|
|
sget-object p1, Lj$/time/temporal/a;->PROLEPTIC_MONTH:Lj$/time/temporal/a;
|
|
|
|
.line 669
|
|
iget-object p1, p1, Lj$/time/temporal/a;->b:Lj$/time/temporal/v;
|
|
|
|
.line 217
|
|
iget-wide v0, p1, Lj$/time/temporal/v;->a:J
|
|
|
|
const-wide/16 v2, 0x1974
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
.line 253
|
|
iget-wide v4, p1, Lj$/time/temporal/v;->d:J
|
|
|
|
add-long/2addr v4, v2
|
|
|
|
.line 354
|
|
invoke-static {v0, v1, v4, v5}, Lj$/time/temporal/v;->f(JJ)Lj$/time/temporal/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final p()Ljava/util/List;
|
|
.locals 1
|
|
|
|
.line 345
|
|
invoke-static {}, Lj$/time/chrono/k0;->values()[Lj$/time/chrono/k0;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lj$/com/android/tools/r8/a;->J([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final q(I)Lj$/time/chrono/n;
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 142
|
|
sget-object p1, Lj$/time/chrono/k0;->BE:Lj$/time/chrono/k0;
|
|
|
|
return-object p1
|
|
|
|
.line 144
|
|
:cond_0
|
|
new-instance v0, Lj$/time/b;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Invalid era: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 88
|
|
invoke-direct {v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 144
|
|
throw v0
|
|
|
|
.line 140
|
|
:cond_1
|
|
sget-object p1, Lj$/time/chrono/k0;->BEFORE_BE:Lj$/time/chrono/k0;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final r(Lj$/time/chrono/n;I)I
|
|
.locals 1
|
|
|
|
.line 332
|
|
instance-of v0, p1, Lj$/time/chrono/k0;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 335
|
|
sget-object v0, Lj$/time/chrono/k0;->BE:Lj$/time/chrono/k0;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
rsub-int/lit8 p1, p2, 0x1
|
|
|
|
return p1
|
|
|
|
.line 333
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/ClassCastException;
|
|
|
|
const-string p2, "Era must be BuddhistEra"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final w(Lj$/time/temporal/n;)Lj$/time/chrono/b;
|
|
.locals 1
|
|
|
|
.line 290
|
|
instance-of v0, p1, Lj$/time/chrono/j0;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 291
|
|
check-cast p1, Lj$/time/chrono/j0;
|
|
|
|
return-object p1
|
|
|
|
.line 293
|
|
:cond_0
|
|
new-instance v0, Lj$/time/chrono/j0;
|
|
|
|
invoke-static {p1}, Lj$/time/g;->M(Lj$/time/temporal/n;)Lj$/time/g;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lj$/time/chrono/j0;-><init>(Lj$/time/g;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public writeReplace()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 747
|
|
new-instance v0, Lj$/time/chrono/f0;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1, p0}, Lj$/time/chrono/f0;-><init>(BLjava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|