* 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>
403 lines
7.8 KiB
Smali
403 lines
7.8 KiB
Smali
.class public final Lj$/time/r;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lj$/time/temporal/q;
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field public static final d:Lj$/time/r;
|
|
|
|
.field private static final serialVersionUID:J = -0xcbe97ad039fbcL
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public final b:I
|
|
|
|
.field public final c:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
.line 139
|
|
new-instance v0, Lj$/time/r;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1, v1, v1}, Lj$/time/r;-><init>(III)V
|
|
|
|
sput-object v0, Lj$/time/r;->d:Lj$/time/r;
|
|
|
|
.line 148
|
|
const-string v0, "([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?"
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {v0, v2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
const/4 v0, 0x3
|
|
|
|
.line 0
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
sget-object v3, Lj$/time/temporal/b;->YEARS:Lj$/time/temporal/b;
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
sget-object v1, Lj$/time/temporal/b;->MONTHS:Lj$/time/temporal/b;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
sget-object v1, Lj$/time/temporal/b;->DAYS:Lj$/time/temporal/b;
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Lj$/com/android/tools/r8/a;->J([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(III)V
|
|
.locals 0
|
|
|
|
.line 416
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 417
|
|
iput p1, p0, Lj$/time/r;->a:I
|
|
|
|
.line 418
|
|
iput p2, p0, Lj$/time/r;->b:I
|
|
|
|
.line 419
|
|
iput p3, p0, Lj$/time/r;->c:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(III)Lj$/time/r;
|
|
.locals 1
|
|
|
|
or-int v0, p0, p1
|
|
|
|
or-int/2addr v0, p2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 404
|
|
sget-object p0, Lj$/time/r;->d:Lj$/time/r;
|
|
|
|
return-object p0
|
|
|
|
.line 406
|
|
:cond_0
|
|
new-instance v0, Lj$/time/r;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lj$/time/r;-><init>(III)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 1
|
|
|
|
.line 1070
|
|
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 1060
|
|
new-instance v0, Lj$/time/s;
|
|
|
|
const/16 v1, 0xe
|
|
|
|
invoke-direct {v0, v1, p0}, Lj$/time/s;-><init>(BLjava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final d(Lj$/time/temporal/m;)Lj$/time/temporal/m;
|
|
.locals 5
|
|
|
|
.line 973
|
|
const-string v0, "temporal"
|
|
|
|
invoke-static {p1, v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 974
|
|
sget-object v0, Lj$/time/temporal/s;->b:Lj$/time/h;
|
|
|
|
invoke-interface {p1, v0}, Lj$/time/temporal/n;->d(Lj$/time/h;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lj$/time/chrono/m;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 975
|
|
sget-object v1, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
|
|
|
|
invoke-virtual {v1, v0}, Lj$/time/chrono/a;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 976
|
|
:cond_0
|
|
new-instance p1, Lj$/time/b;
|
|
|
|
invoke-interface {v0}, Lj$/time/chrono/m;->f()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Chronology mismatch, expected: ISO, actual: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 88
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 976
|
|
throw p1
|
|
|
|
.line 900
|
|
:cond_1
|
|
:goto_0
|
|
iget v0, p0, Lj$/time/r;->b:I
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 901
|
|
iget v0, p0, Lj$/time/r;->a:I
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
int-to-long v0, v0
|
|
|
|
.line 902
|
|
sget-object v2, Lj$/time/temporal/b;->YEARS:Lj$/time/temporal/b;
|
|
|
|
invoke-interface {p1, v0, v1, v2}, Lj$/time/temporal/m;->b(JLj$/time/temporal/t;)Lj$/time/temporal/m;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 859
|
|
:cond_2
|
|
iget v1, p0, Lj$/time/r;->a:I
|
|
|
|
int-to-long v1, v1
|
|
|
|
const-wide/16 v3, 0xc
|
|
|
|
mul-long/2addr v1, v3
|
|
|
|
int-to-long v3, v0
|
|
|
|
add-long/2addr v1, v3
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v0, v1, v3
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 907
|
|
sget-object v0, Lj$/time/temporal/b;->MONTHS:Lj$/time/temporal/b;
|
|
|
|
invoke-interface {p1, v1, v2, v0}, Lj$/time/temporal/m;->b(JLj$/time/temporal/t;)Lj$/time/temporal/m;
|
|
|
|
move-result-object p1
|
|
|
|
.line 910
|
|
:cond_3
|
|
:goto_1
|
|
iget v0, p0, Lj$/time/r;->c:I
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
int-to-long v0, v0
|
|
|
|
.line 911
|
|
sget-object v2, Lj$/time/temporal/b;->DAYS:Lj$/time/temporal/b;
|
|
|
|
invoke-interface {p1, v0, v1, v2}, Lj$/time/temporal/m;->b(JLj$/time/temporal/t;)Lj$/time/temporal/m;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_4
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 997
|
|
:cond_0
|
|
instance-of v1, p1, Lj$/time/r;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 998
|
|
check-cast p1, Lj$/time/r;
|
|
|
|
.line 999
|
|
iget v1, p0, Lj$/time/r;->a:I
|
|
|
|
iget v3, p1, Lj$/time/r;->a:I
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
iget v1, p0, Lj$/time/r;->b:I
|
|
|
|
iget v3, p1, Lj$/time/r;->b:I
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
iget v1, p0, Lj$/time/r;->c:I
|
|
|
|
iget p1, p1, Lj$/time/r;->c:I
|
|
|
|
if-ne v1, p1, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
return v2
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 3
|
|
|
|
.line 1013
|
|
iget v0, p0, Lj$/time/r;->a:I
|
|
|
|
iget v1, p0, Lj$/time/r;->b:I
|
|
|
|
const/16 v2, 0x8
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Integer;->rotateLeft(II)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iget v0, p0, Lj$/time/r;->c:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Integer;->rotateLeft(II)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1027
|
|
sget-object v0, Lj$/time/r;->d:Lj$/time/r;
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
.line 1028
|
|
const-string v0, "P0D"
|
|
|
|
return-object v0
|
|
|
|
.line 1030
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "P"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 1032
|
|
iget v1, p0, Lj$/time/r;->a:I
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 1033
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x59
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1035
|
|
:cond_1
|
|
iget v1, p0, Lj$/time/r;->b:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 1036
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x4d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1038
|
|
:cond_2
|
|
iget v1, p0, Lj$/time/r;->c:I
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 1039
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x44
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1041
|
|
:cond_3
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|