soul-browser/app/smali_classes2/j$/time/format/y.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

284 lines
6.1 KiB
Smali

.class public final Lj$/time/format/y;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final a:Lj$/time/temporal/n;
.field public final b:Lj$/time/format/DateTimeFormatter;
.field public c:I
# direct methods
.method public constructor <init>(Lj$/time/Instant;Lj$/time/format/DateTimeFormatter;)V
.locals 9
.line 118
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 1501
iget-object v0, p2, Lj$/time/format/DateTimeFormatter;->e:Lj$/time/chrono/m;
if-nez v0, :cond_0
goto/16 :goto_4
.line 132
:cond_0
sget-object v1, Lj$/time/temporal/s;->b:Lj$/time/h;
invoke-virtual {p1, v1}, Lj$/time/Instant;->d(Lj$/time/h;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lj$/time/chrono/m;
.line 133
sget-object v2, Lj$/time/temporal/s;->a:Lj$/time/h;
invoke-virtual {p1, v2}, Lj$/time/Instant;->d(Lj$/time/h;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lj$/time/ZoneId;
.line 134
invoke-static {v0, v1}, Lj$/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v3
const/4 v4, 0x0
if-eqz v3, :cond_1
move-object v0, v4
.line 137
:cond_1
invoke-static {v4, v2}, Lj$/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
if-nez v0, :cond_2
goto :goto_4
:cond_2
if-eqz v0, :cond_3
move-object v3, v0
goto :goto_0
:cond_3
move-object v3, v1
:goto_0
if-eqz v0, :cond_8
.line 163
sget-object v5, Lj$/time/temporal/a;->EPOCH_DAY:Lj$/time/temporal/a;
invoke-virtual {p1, v5}, Lj$/time/Instant;->c(Lj$/time/temporal/r;)Z
move-result v5
if-eqz v5, :cond_4
.line 164
invoke-interface {v3, p1}, Lj$/time/chrono/m;->w(Lj$/time/temporal/n;)Lj$/time/chrono/b;
move-result-object v4
goto :goto_3
.line 167
:cond_4
sget-object v5, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
if-ne v0, v5, :cond_5
if-eqz v1, :cond_8
.line 168
:cond_5
invoke-static {}, Lj$/time/temporal/a;->values()[Lj$/time/temporal/a;
move-result-object v1
array-length v5, v1
const/4 v6, 0x0
:goto_1
if-ge v6, v5, :cond_8
aget-object v7, v1, v6
.line 169
invoke-virtual {v7}, Lj$/time/temporal/a;->isDateBased()Z
move-result v8
if-eqz v8, :cond_7
invoke-virtual {p1, v7}, Lj$/time/Instant;->c(Lj$/time/temporal/r;)Z
move-result v7
if-nez v7, :cond_6
goto :goto_2
.line 170
:cond_6
new-instance p2, Lj$/time/b;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Unable to apply override chronology \'"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, "\' because the temporal object being formatted contains date fields but does not represent a whole date: "
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 88
invoke-direct {p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
.line 170
throw p2
:cond_7
:goto_2
add-int/lit8 v6, v6, 0x1
goto :goto_1
.line 185
:cond_8
:goto_3
new-instance v0, Lj$/time/format/x;
invoke-direct {v0, v4, p1, v3, v2}, Lj$/time/format/x;-><init>(Lj$/time/chrono/b;Lj$/time/Instant;Lj$/time/chrono/m;Lj$/time/ZoneId;)V
move-object p1, v0
.line 119
:goto_4
iput-object p1, p0, Lj$/time/format/y;->a:Lj$/time/temporal/n;
.line 120
iput-object p2, p0, Lj$/time/format/y;->b:Lj$/time/format/DateTimeFormatter;
return-void
.end method
# virtual methods
.method public final a(Lj$/time/temporal/r;)Ljava/lang/Long;
.locals 2
.line 305
iget v0, p0, Lj$/time/format/y;->c:I
iget-object v1, p0, Lj$/time/format/y;->a:Lj$/time/temporal/n;
if-lez v0, :cond_0
invoke-interface {v1, p1}, Lj$/time/temporal/n;->c(Lj$/time/temporal/r;)Z
move-result v0
if-nez v0, :cond_0
const/4 p1, 0x0
return-object p1
.line 308
:cond_0
invoke-interface {v1, p1}, Lj$/time/temporal/n;->y(Lj$/time/temporal/r;)J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
return-object p1
.end method
.method public final b(Lj$/time/h;)Ljava/lang/Object;
.locals 4
.line 287
iget-object v0, p0, Lj$/time/format/y;->a:Lj$/time/temporal/n;
invoke-interface {v0, p1}, Lj$/time/temporal/n;->d(Lj$/time/h;)Ljava/lang/Object;
move-result-object v1
if-nez v1, :cond_1
.line 288
iget v2, p0, Lj$/time/format/y;->c:I
if-eqz v2, :cond_0
goto :goto_0
.line 289
:cond_0
new-instance v1, Lj$/time/b;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Unable to extract "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " from temporal "
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 88
invoke-direct {v1, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
.line 289
throw v1
:cond_1
:goto_0
return-object v1
.end method
.method public final toString()Ljava/lang/String;
.locals 1
.line 319
iget-object v0, p0, Lj$/time/format/y;->a:Lj$/time/temporal/n;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method