* 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>
426 lines
8.3 KiB
Smali
426 lines
8.3 KiB
Smali
.class public final Lj$/time/chrono/z;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lj$/time/chrono/n;
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field public static final d:Lj$/time/chrono/z;
|
|
|
|
.field public static final e:[Lj$/time/chrono/z;
|
|
|
|
.field private static final serialVersionUID:J = 0x145a0d680453ed8aL
|
|
|
|
|
|
# instance fields
|
|
.field public final transient a:I
|
|
|
|
.field public final transient b:Lj$/time/g;
|
|
|
|
.field public final transient c:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 12
|
|
|
|
.line 139
|
|
new-instance v0, Lj$/time/chrono/z;
|
|
|
|
const/16 v1, 0x74c
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v1, v2, v2}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "Meiji"
|
|
|
|
const/4 v4, -0x1
|
|
|
|
invoke-direct {v0, v4, v1, v3}, Lj$/time/chrono/z;-><init>(ILj$/time/g;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lj$/time/chrono/z;->d:Lj$/time/chrono/z;
|
|
|
|
.line 145
|
|
new-instance v1, Lj$/time/chrono/z;
|
|
|
|
const/4 v3, 0x7
|
|
|
|
const/16 v4, 0x1e
|
|
|
|
const/16 v5, 0x778
|
|
|
|
invoke-static {v5, v3, v4}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "Taisho"
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-direct {v1, v5, v3, v4}, Lj$/time/chrono/z;-><init>(ILj$/time/g;Ljava/lang/String;)V
|
|
|
|
.line 151
|
|
new-instance v3, Lj$/time/chrono/z;
|
|
|
|
const/16 v4, 0xc
|
|
|
|
const/16 v6, 0x19
|
|
|
|
const/16 v7, 0x786
|
|
|
|
invoke-static {v7, v4, v6}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v6, "Showa"
|
|
|
|
invoke-direct {v3, v2, v4, v6}, Lj$/time/chrono/z;-><init>(ILj$/time/g;Ljava/lang/String;)V
|
|
|
|
.line 157
|
|
new-instance v4, Lj$/time/chrono/z;
|
|
|
|
const/16 v6, 0x7c5
|
|
|
|
const/16 v7, 0x8
|
|
|
|
invoke-static {v6, v2, v7}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "Heisei"
|
|
|
|
const/4 v8, 0x2
|
|
|
|
invoke-direct {v4, v8, v6, v7}, Lj$/time/chrono/z;-><init>(ILj$/time/g;Ljava/lang/String;)V
|
|
|
|
.line 165
|
|
new-instance v6, Lj$/time/chrono/z;
|
|
|
|
const/16 v7, 0x7e3
|
|
|
|
const/4 v9, 0x5
|
|
|
|
invoke-static {v7, v9, v2}, Lj$/time/g;->U(III)Lj$/time/g;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v10, "Reiwa"
|
|
|
|
const/4 v11, 0x3
|
|
|
|
invoke-direct {v6, v11, v7, v10}, Lj$/time/chrono/z;-><init>(ILj$/time/g;Ljava/lang/String;)V
|
|
|
|
.line 183
|
|
new-array v7, v9, [Lj$/time/chrono/z;
|
|
|
|
sput-object v7, Lj$/time/chrono/z;->e:[Lj$/time/chrono/z;
|
|
|
|
.line 184
|
|
aput-object v0, v7, v5
|
|
|
|
.line 185
|
|
aput-object v1, v7, v2
|
|
|
|
.line 186
|
|
aput-object v3, v7, v8
|
|
|
|
.line 187
|
|
aput-object v4, v7, v11
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 188
|
|
aput-object v6, v7, v0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILj$/time/g;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 255
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 256
|
|
iput p1, p0, Lj$/time/chrono/z;->a:I
|
|
|
|
.line 257
|
|
iput-object p2, p0, Lj$/time/chrono/z;->b:Lj$/time/g;
|
|
|
|
.line 258
|
|
iput-object p3, p0, Lj$/time/chrono/z;->c:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static e(Lj$/time/g;)Lj$/time/chrono/z;
|
|
.locals 3
|
|
|
|
.line 368
|
|
sget-object v0, Lj$/time/chrono/y;->d:Lj$/time/g;
|
|
|
|
invoke-virtual {p0, v0}, Lj$/time/g;->Q(Lj$/time/chrono/b;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 371
|
|
sget-object v0, Lj$/time/chrono/z;->e:[Lj$/time/chrono/z;
|
|
|
|
array-length v0, v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:goto_0
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 372
|
|
sget-object v1, Lj$/time/chrono/z;->e:[Lj$/time/chrono/z;
|
|
|
|
aget-object v1, v1, v0
|
|
|
|
.line 373
|
|
iget-object v2, v1, Lj$/time/chrono/z;->b:Lj$/time/g;
|
|
|
|
invoke-virtual {p0, v2}, Lj$/time/g;->I(Lj$/time/chrono/b;)I
|
|
|
|
move-result v2
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 369
|
|
:cond_2
|
|
new-instance p0, Lj$/time/b;
|
|
|
|
const-string v0, "JapaneseDate before Meiji 6 are not supported"
|
|
|
|
.line 88
|
|
invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 369
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static j(I)Lj$/time/chrono/z;
|
|
.locals 3
|
|
|
|
add-int/lit8 v0, p0, 0x1
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 297
|
|
sget-object v1, Lj$/time/chrono/z;->e:[Lj$/time/chrono/z;
|
|
|
|
array-length v2, v1
|
|
|
|
if-ge v0, v2, :cond_0
|
|
|
|
.line 300
|
|
aget-object p0, v1, v0
|
|
|
|
return-object p0
|
|
|
|
.line 298
|
|
: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, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 88
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 298
|
|
throw v0
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 1
|
|
|
|
.line 488
|
|
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 504
|
|
new-instance v0, Lj$/time/chrono/f0;
|
|
|
|
const/4 v1, 0x5
|
|
|
|
invoke-direct {v0, v1, p0}, Lj$/time/chrono/f0;-><init>(BLjava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic c(Lj$/time/temporal/r;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lj$/com/android/tools/r8/a;->l(Lj$/time/chrono/n;Lj$/time/temporal/r;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final synthetic d(Lj$/time/h;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 0
|
|
invoke-static {p0, p1}, Lj$/com/android/tools/r8/a;->p(Lj$/time/chrono/n;Lj$/time/h;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final f()Lj$/time/chrono/z;
|
|
.locals 2
|
|
|
|
.line 199
|
|
sget-object v0, Lj$/time/chrono/z;->e:[Lj$/time/chrono/z;
|
|
|
|
array-length v1, v0
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
.line 472
|
|
:cond_0
|
|
iget v0, p0, Lj$/time/chrono/z;->a:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
invoke-static {v0}, Lj$/time/chrono/z;->j(I)Lj$/time/chrono/z;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final synthetic g(Lj$/time/temporal/r;)I
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lj$/com/android/tools/r8/a;->i(Lj$/time/chrono/n;Lj$/time/temporal/r;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getValue()I
|
|
.locals 1
|
|
|
|
.line 422
|
|
iget v0, p0, Lj$/time/chrono/z;->a:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final i(Lj$/time/temporal/r;)Lj$/time/temporal/v;
|
|
.locals 1
|
|
|
|
.line 453
|
|
sget-object v0, Lj$/time/temporal/a;->ERA:Lj$/time/temporal/a;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 454
|
|
sget-object p1, Lj$/time/chrono/w;->c:Lj$/time/chrono/w;
|
|
|
|
invoke-virtual {p1, v0}, Lj$/time/chrono/w;->n(Lj$/time/temporal/a;)Lj$/time/temporal/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 179
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lj$/time/temporal/s;->d(Lj$/time/temporal/n;Lj$/time/temporal/r;)Lj$/time/temporal/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final l(Lj$/time/temporal/m;)Lj$/time/temporal/m;
|
|
.locals 3
|
|
|
|
.line 301
|
|
sget-object v0, Lj$/time/temporal/a;->ERA:Lj$/time/temporal/a;
|
|
|
|
invoke-virtual {p0}, Lj$/time/chrono/z;->getValue()I
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-interface {p1, v1, v2, v0}, Lj$/time/temporal/m;->a(JLj$/time/temporal/r;)Lj$/time/temporal/m;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 467
|
|
iget-object v0, p0, Lj$/time/chrono/z;->c:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final synthetic y(Lj$/time/temporal/r;)J
|
|
.locals 2
|
|
|
|
invoke-static {p0, p1}, Lj$/com/android/tools/r8/a;->j(Lj$/time/chrono/n;Lj$/time/temporal/r;)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|