* 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>
406 lines
9.8 KiB
Smali
406 lines
9.8 KiB
Smali
.class public final Lj$/time/temporal/x;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field public static final g:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
.field public static final h:Lj$/time/temporal/i;
|
|
|
|
.field private static final serialVersionUID:J = -0x1056d36d74f0f639L
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lj$/time/d;
|
|
|
|
.field public final b:I
|
|
|
|
.field public final transient c:Lj$/time/temporal/w;
|
|
|
|
.field public final transient d:Lj$/time/temporal/w;
|
|
|
|
.field public final transient e:Lj$/time/temporal/w;
|
|
|
|
.field public final transient f:Lj$/time/temporal/w;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
.line 196
|
|
new-instance v0, Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
const/high16 v1, 0x3f400000 # 0.75f
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x4
|
|
|
|
invoke-direct {v0, v3, v1, v2}, Lj$/util/concurrent/ConcurrentHashMap;-><init>(IFI)V
|
|
|
|
sput-object v0, Lj$/time/temporal/x;->g:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
.line 210
|
|
new-instance v0, Lj$/time/temporal/x;
|
|
|
|
sget-object v1, Lj$/time/d;->MONDAY:Lj$/time/d;
|
|
|
|
invoke-direct {v0, v1, v3}, Lj$/time/temporal/x;-><init>(Lj$/time/d;I)V
|
|
|
|
.line 219
|
|
sget-object v0, Lj$/time/d;->SUNDAY:Lj$/time/d;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, v1}, Lj$/time/temporal/x;->a(Lj$/time/d;I)Lj$/time/temporal/x;
|
|
|
|
.line 237
|
|
sget-object v0, Lj$/time/temporal/j;->d:Lj$/time/temporal/i;
|
|
|
|
sput-object v0, Lj$/time/temporal/x;->h:Lj$/time/temporal/i;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/time/d;I)V
|
|
.locals 6
|
|
|
|
.line 349
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 691
|
|
new-instance v0, Lj$/time/temporal/w;
|
|
|
|
sget-object v3, Lj$/time/temporal/b;->DAYS:Lj$/time/temporal/b;
|
|
|
|
sget-object v4, Lj$/time/temporal/b;->WEEKS:Lj$/time/temporal/b;
|
|
|
|
sget-object v5, Lj$/time/temporal/w;->f:Lj$/time/temporal/v;
|
|
|
|
const-string v1, "DayOfWeek"
|
|
|
|
move-object v2, p0
|
|
|
|
invoke-direct/range {v0 .. v5}, Lj$/time/temporal/w;-><init>(Ljava/lang/String;Lj$/time/temporal/x;Lj$/time/temporal/t;Lj$/time/temporal/t;Lj$/time/temporal/v;)V
|
|
|
|
move-object v3, v4
|
|
|
|
.line 255
|
|
iput-object v0, p0, Lj$/time/temporal/x;->c:Lj$/time/temporal/w;
|
|
|
|
.line 700
|
|
new-instance v0, Lj$/time/temporal/w;
|
|
|
|
sget-object v4, Lj$/time/temporal/b;->MONTHS:Lj$/time/temporal/b;
|
|
|
|
sget-object v5, Lj$/time/temporal/w;->g:Lj$/time/temporal/v;
|
|
|
|
const-string v1, "WeekOfMonth"
|
|
|
|
invoke-direct/range {v0 .. v5}, Lj$/time/temporal/w;-><init>(Ljava/lang/String;Lj$/time/temporal/x;Lj$/time/temporal/t;Lj$/time/temporal/t;Lj$/time/temporal/v;)V
|
|
|
|
.line 259
|
|
iput-object v0, p0, Lj$/time/temporal/x;->d:Lj$/time/temporal/w;
|
|
|
|
.line 709
|
|
new-instance v0, Lj$/time/temporal/w;
|
|
|
|
.line 718
|
|
new-instance v0, Lj$/time/temporal/w;
|
|
|
|
sget-object v4, Lj$/time/temporal/j;->d:Lj$/time/temporal/i;
|
|
|
|
sget-object v5, Lj$/time/temporal/w;->i:Lj$/time/temporal/v;
|
|
|
|
const-string v1, "WeekOfWeekBasedYear"
|
|
|
|
invoke-direct/range {v0 .. v5}, Lj$/time/temporal/w;-><init>(Ljava/lang/String;Lj$/time/temporal/x;Lj$/time/temporal/t;Lj$/time/temporal/t;Lj$/time/temporal/v;)V
|
|
|
|
move-object v3, v4
|
|
|
|
.line 271
|
|
iput-object v0, p0, Lj$/time/temporal/x;->e:Lj$/time/temporal/w;
|
|
|
|
.line 727
|
|
new-instance v0, Lj$/time/temporal/w;
|
|
|
|
sget-object v4, Lj$/time/temporal/b;->FOREVER:Lj$/time/temporal/b;
|
|
|
|
sget-object v1, Lj$/time/temporal/a;->YEAR:Lj$/time/temporal/a;
|
|
|
|
.line 669
|
|
iget-object v5, v1, Lj$/time/temporal/a;->b:Lj$/time/temporal/v;
|
|
|
|
.line 727
|
|
const-string v1, "WeekBasedYear"
|
|
|
|
invoke-direct/range {v0 .. v5}, Lj$/time/temporal/w;-><init>(Ljava/lang/String;Lj$/time/temporal/x;Lj$/time/temporal/t;Lj$/time/temporal/t;Lj$/time/temporal/v;)V
|
|
|
|
.line 279
|
|
iput-object v0, p0, Lj$/time/temporal/x;->f:Lj$/time/temporal/w;
|
|
|
|
.line 350
|
|
const-string v0, "firstDayOfWeek"
|
|
|
|
invoke-static {p1, v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lt p2, v0, :cond_0
|
|
|
|
const/4 v0, 0x7
|
|
|
|
if-gt p2, v0, :cond_0
|
|
|
|
.line 354
|
|
iput-object p1, p0, Lj$/time/temporal/x;->a:Lj$/time/d;
|
|
|
|
.line 355
|
|
iput p2, p0, Lj$/time/temporal/x;->b:I
|
|
|
|
return-void
|
|
|
|
.line 352
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Minimal number of days is invalid"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static a(Lj$/time/d;I)Lj$/time/temporal/x;
|
|
.locals 3
|
|
|
|
.line 331
|
|
invoke-virtual {p0}, Ljava/lang/Enum;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
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 v0
|
|
|
|
.line 332
|
|
sget-object v1, Lj$/time/temporal/x;->g:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/concurrent/ConcurrentMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lj$/time/temporal/x;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 334
|
|
new-instance v2, Lj$/time/temporal/x;
|
|
|
|
invoke-direct {v2, p0, p1}, Lj$/time/temporal/x;-><init>(Lj$/time/d;I)V
|
|
|
|
.line 335
|
|
invoke-interface {v1, v0, v2}, Ljava/util/concurrent/ConcurrentMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 336
|
|
invoke-interface {v1, v0}, Ljava/util/concurrent/ConcurrentMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lj$/time/temporal/x;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
return-object v2
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 1
|
|
|
|
.line 371
|
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
|
|
|
|
.line 372
|
|
iget-object p1, p0, Lj$/time/temporal/x;->a:Lj$/time/d;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 376
|
|
iget p1, p0, Lj$/time/temporal/x;->b:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x7
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 377
|
|
:cond_0
|
|
new-instance p1, Ljava/io/InvalidObjectException;
|
|
|
|
const-string v0, "Minimal number of days is invalid"
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/InvalidObjectException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 373
|
|
:cond_1
|
|
new-instance p1, Ljava/io/InvalidObjectException;
|
|
|
|
const-string v0, "firstDayOfWeek is null"
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/InvalidObjectException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private readResolve()Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
.line 390
|
|
:try_start_0
|
|
iget-object v0, p0, Lj$/time/temporal/x;->a:Lj$/time/d;
|
|
|
|
iget v1, p0, Lj$/time/temporal/x;->b:I
|
|
|
|
invoke-static {v0, v1}, Lj$/time/temporal/x;->a(Lj$/time/d;I)Lj$/time/temporal/x;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 392
|
|
new-instance v1, Ljava/io/InvalidObjectException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Invalid serialized WeekFields: "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/io/InvalidObjectException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 645
|
|
:cond_0
|
|
instance-of v1, p1, Lj$/time/temporal/x;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 646
|
|
invoke-virtual {p0}, Lj$/time/temporal/x;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p1
|
|
|
|
if-ne v1, p1, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
return v2
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 2
|
|
|
|
.line 658
|
|
iget-object v0, p0, Lj$/time/temporal/x;->a:Lj$/time/d;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
mul-int/lit8 v0, v0, 0x7
|
|
|
|
iget v1, p0, Lj$/time/temporal/x;->b:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 669
|
|
iget-object v0, p0, Lj$/time/temporal/x;->a:Lj$/time/d;
|
|
|
|
iget v1, p0, Lj$/time/temporal/x;->b:I
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "WeekFields["
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ","
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "]"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|