soul-browser/app/smali_classes2/j$/time/format/q.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

531 lines
12 KiB
Smali

.class public final Lj$/time/format/q;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lj$/time/format/e;
# instance fields
.field public final a:Lj$/time/temporal/r;
.field public final b:Lj$/time/format/g0;
.field public final c:Lj$/time/format/b0;
.field public volatile d:Lj$/time/format/i;
# direct methods
.method public constructor <init>(Lj$/time/temporal/r;Lj$/time/format/g0;Lj$/time/format/b0;)V
.locals 0
.line 3309
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3311
iput-object p1, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
.line 3312
iput-object p2, p0, Lj$/time/format/q;->b:Lj$/time/format/g0;
.line 3313
iput-object p3, p0, Lj$/time/format/q;->c:Lj$/time/format/b0;
return-void
.end method
# virtual methods
.method public final d(Lj$/time/format/y;Ljava/lang/StringBuilder;)Z
.locals 10
.line 3318
iget-object v0, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-virtual {p1, v0}, Lj$/time/format/y;->a(Lj$/time/temporal/r;)Ljava/lang/Long;
move-result-object v0
iget-object v1, p1, Lj$/time/format/y;->b:Lj$/time/format/DateTimeFormatter;
if-nez v0, :cond_0
const/4 p1, 0x0
return p1
.line 238
:cond_0
iget-object v2, p1, Lj$/time/format/y;->a:Lj$/time/temporal/n;
.line 3323
sget-object v3, Lj$/time/temporal/s;->b:Lj$/time/h;
invoke-interface {v2, v3}, Lj$/time/temporal/n;->d(Lj$/time/h;)Ljava/lang/Object;
move-result-object v2
move-object v4, v2
check-cast v4, Lj$/time/chrono/m;
if-eqz v4, :cond_1
.line 3324
sget-object v2, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
if-ne v4, v2, :cond_2
:cond_1
move-object v2, v1
goto :goto_0
.line 3327
:cond_2
iget-object v3, p0, Lj$/time/format/q;->c:Lj$/time/format/b0;
iget-object v5, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v6
iget-object v8, p0, Lj$/time/format/q;->b:Lj$/time/format/g0;
.line 1437
iget-object v9, v1, Lj$/time/format/DateTimeFormatter;->b:Ljava/util/Locale;
.line 3327
invoke-virtual/range {v3 .. v9}, Lj$/time/format/b0;->b(Lj$/time/chrono/m;Lj$/time/temporal/r;JLj$/time/format/g0;Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
goto :goto_1
.line 3325
:goto_0
iget-object v1, p0, Lj$/time/format/q;->c:Lj$/time/format/b0;
move-object v3, v2
iget-object v2, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v4
move-object v0, v3
move-wide v3, v4
iget-object v5, p0, Lj$/time/format/q;->b:Lj$/time/format/g0;
.line 1437
iget-object v6, v0, Lj$/time/format/DateTimeFormatter;->b:Ljava/util/Locale;
.line 3325
invoke-virtual/range {v1 .. v6}, Lj$/time/format/b0;->c(Lj$/time/temporal/r;JLj$/time/format/g0;Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
:goto_1
const/4 v1, 0x1
if-nez v0, :cond_4
.line 3380
iget-object v0, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
if-nez v0, :cond_3
.line 3381
new-instance v0, Lj$/time/format/i;
iget-object v2, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
const/16 v3, 0x13
sget-object v4, Lj$/time/format/f0;->NORMAL:Lj$/time/format/f0;
invoke-direct {v0, v2, v1, v3, v4}, Lj$/time/format/i;-><init>(Lj$/time/temporal/r;IILj$/time/format/f0;)V
iput-object v0, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
.line 3383
:cond_3
iget-object v0, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
.line 3330
invoke-virtual {v0, p1, p2}, Lj$/time/format/i;->d(Lj$/time/format/y;Ljava/lang/StringBuilder;)Z
move-result p1
return p1
.line 3332
:cond_4
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
return v1
.end method
.method public final g(Lj$/time/format/v;Ljava/lang/CharSequence;I)I
.locals 10
.line 3338
iget-object v1, p0, Lj$/time/format/q;->c:Lj$/time/format/b0;
iget-object v6, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
move-result v2
if-ltz p3, :cond_a
if-gt p3, v2, :cond_a
.line 270
iget-boolean v2, p1, Lj$/time/format/v;->c:Z
iget-object v3, p1, Lj$/time/format/v;->a:Lj$/time/format/DateTimeFormatter;
if-eqz v2, :cond_0
.line 3342
iget-object v2, p0, Lj$/time/format/q;->b:Lj$/time/format/g0;
goto :goto_0
:cond_0
const/4 v2, 0x0
.line 167
:goto_0
invoke-virtual {p1}, Lj$/time/format/v;->c()Lj$/time/format/d0;
move-result-object v5
iget-object v5, v5, Lj$/time/format/d0;->c:Lj$/time/chrono/m;
if-nez v5, :cond_1
.line 169
iget-object v5, p1, Lj$/time/format/v;->a:Lj$/time/format/DateTimeFormatter;
.line 1501
iget-object v5, v5, Lj$/time/format/DateTimeFormatter;->e:Lj$/time/chrono/m;
if-nez v5, :cond_1
.line 171
sget-object v5, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
:cond_1
move-object v7, v5
if-eqz v7, :cond_3
.line 3345
sget-object v5, Lj$/time/chrono/t;->c:Lj$/time/chrono/t;
if-ne v7, v5, :cond_2
goto :goto_2
.line 1437
:cond_2
iget-object v3, v3, Lj$/time/format/DateTimeFormatter;->b:Ljava/util/Locale;
.line 3348
invoke-virtual {v1, v7, v6, v2, v3}, Lj$/time/format/b0;->d(Lj$/time/chrono/m;Lj$/time/temporal/r;Lj$/time/format/g0;Ljava/util/Locale;)Ljava/util/Iterator;
move-result-object v1
:goto_1
move-object v8, v1
goto :goto_3
.line 1437
:cond_3
:goto_2
iget-object v3, v3, Lj$/time/format/DateTimeFormatter;->b:Ljava/util/Locale;
.line 3346
invoke-virtual {v1, v6, v2, v3}, Lj$/time/format/b0;->e(Lj$/time/temporal/r;Lj$/time/format/g0;Ljava/util/Locale;)Ljava/util/Iterator;
move-result-object v1
goto :goto_1
:goto_3
if-eqz v8, :cond_8
.line 3351
:cond_4
invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_5
.line 3352
invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v9, v1
check-cast v9, Ljava/util/Map$Entry;
.line 3353
invoke-interface {v9}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
const/4 v2, 0x0
.line 3354
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v5
move-object v0, p1
move-object v3, p2
move v4, p3
invoke-virtual/range {v0 .. v5}, Lj$/time/format/v;->g(Ljava/lang/CharSequence;ILjava/lang/CharSequence;II)Z
move-result v2
if-eqz v2, :cond_4
move-object v0, v1
.line 3355
iget-object v1, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-interface {v9}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Long;
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
add-int v5, v0, p3
move-object v0, p1
move v4, p3
invoke-virtual/range {v0 .. v5}, Lj$/time/format/v;->f(Lj$/time/temporal/r;JII)I
move-result v0
return v0
.line 3358
:cond_5
sget-object v1, Lj$/time/temporal/a;->ERA:Lj$/time/temporal/a;
if-ne v6, v1, :cond_7
.line 270
iget-boolean v1, p1, Lj$/time/format/v;->c:Z
if-nez v1, :cond_7
.line 3360
invoke-interface {v7}, Lj$/time/chrono/m;->p()Ljava/util/List;
move-result-object v1
.line 3361
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v6
:cond_6
invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_7
invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v7, v1
check-cast v7, Lj$/time/chrono/n;
.line 3362
invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
.line 3363
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v5
move-object v0, p1
move-object v3, p2
move v4, p3
invoke-virtual/range {v0 .. v5}, Lj$/time/format/v;->g(Ljava/lang/CharSequence;ILjava/lang/CharSequence;II)Z
move-result v2
if-eqz v2, :cond_6
move-object v0, v1
.line 3364
iget-object v1, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
invoke-interface {v7}, Lj$/time/chrono/n;->getValue()I
move-result v2
int-to-long v2, v2
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
add-int v5, v0, p3
move-object v0, p1
move v4, p3
invoke-virtual/range {v0 .. v5}, Lj$/time/format/v;->f(Lj$/time/temporal/r;JII)I
move-result v0
return v0
.line 270
:cond_7
iget-boolean v1, p1, Lj$/time/format/v;->c:Z
if-eqz v1, :cond_8
not-int v0, p3
return v0
.line 3380
:cond_8
iget-object v1, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
if-nez v1, :cond_9
.line 3381
new-instance v1, Lj$/time/format/i;
iget-object v2, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
const/16 v3, 0x13
sget-object v5, Lj$/time/format/f0;->NORMAL:Lj$/time/format/f0;
const/4 v6, 0x1
invoke-direct {v1, v2, v6, v3, v5}, Lj$/time/format/i;-><init>(Lj$/time/temporal/r;IILj$/time/format/f0;)V
iput-object v1, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
.line 3383
:cond_9
iget-object v1, p0, Lj$/time/format/q;->d:Lj$/time/format/i;
.line 3372
invoke-virtual {v1, p1, p2, p3}, Lj$/time/format/i;->g(Lj$/time/format/v;Ljava/lang/CharSequence;I)I
move-result v0
return v0
.line 3340
:cond_a
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
throw v0
.end method
.method public final toString()Ljava/lang/String;
.locals 5
.line 3388
sget-object v0, Lj$/time/format/g0;->FULL:Lj$/time/format/g0;
const-string v1, ")"
const-string v2, "Text("
iget-object v3, p0, Lj$/time/format/q;->a:Lj$/time/temporal/r;
iget-object v4, p0, Lj$/time/format/q;->b:Lj$/time/format/g0;
if-ne v4, v0, :cond_0
.line 3389
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.line 3391
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, ","
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method