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

367 lines
6.6 KiB
Smali

.class public final Lj$/time/format/v;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final a:Lj$/time/format/DateTimeFormatter;
.field public b:Z
.field public c:Z
.field public final d:Ljava/util/ArrayList;
.field public e:Ljava/util/ArrayList;
# direct methods
.method public constructor <init>(Lj$/time/format/DateTimeFormatter;)V
.locals 2
.line 121
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
.line 101
iput-boolean v0, p0, Lj$/time/format/v;->b:Z
.line 105
iput-boolean v0, p0, Lj$/time/format/v;->c:Z
.line 109
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lj$/time/format/v;->d:Ljava/util/ArrayList;
const/4 v1, 0x0
.line 113
iput-object v1, p0, Lj$/time/format/v;->e:Ljava/util/ArrayList;
.line 122
iput-object p1, p0, Lj$/time/format/v;->a:Lj$/time/format/DateTimeFormatter;
.line 123
new-instance p1, Lj$/time/format/d0;
invoke-direct {p1}, Lj$/time/format/d0;-><init>()V
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public static b(CC)Z
.locals 2
if-eq p0, p1, :cond_1
.line 257
invoke-static {p0}, Ljava/lang/Character;->toUpperCase(C)C
move-result v0
invoke-static {p1}, Ljava/lang/Character;->toUpperCase(C)C
move-result v1
if-eq v0, v1, :cond_1
.line 258
invoke-static {p0}, Ljava/lang/Character;->toLowerCase(C)C
move-result p0
invoke-static {p1}, Ljava/lang/Character;->toLowerCase(C)C
move-result p1
if-ne p0, p1, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
return p0
:cond_1
:goto_0
const/4 p0, 0x1
return p0
.end method
# virtual methods
.method public final a(CC)Z
.locals 1
.line 184
iget-boolean v0, p0, Lj$/time/format/v;->b:Z
if-eqz v0, :cond_1
if-ne p1, p2, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.line 245
:cond_1
invoke-static {p1, p2}, Lj$/time/format/v;->b(CC)Z
move-result p1
return p1
.end method
.method public final c()Lj$/time/format/d0;
.locals 2
.line 310
iget-object v0, p0, Lj$/time/format/v;->d:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lj$/time/format/d0;
return-object v0
.end method
.method public final d(Lj$/time/temporal/a;)Ljava/lang/Long;
.locals 1
.line 348
invoke-virtual {p0}, Lj$/time/format/v;->c()Lj$/time/format/d0;
move-result-object v0
iget-object v0, v0, Lj$/time/format/d0;->a:Ljava/util/Map;
check-cast v0, Ljava/util/HashMap;
invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Long;
return-object p1
.end method
.method public final e(Lj$/time/ZoneId;)V
.locals 1
.line 416
const-string v0, "zone"
invoke-static {p1, v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 417
invoke-virtual {p0}, Lj$/time/format/v;->c()Lj$/time/format/d0;
move-result-object v0
iput-object p1, v0, Lj$/time/format/d0;->b:Lj$/time/ZoneId;
return-void
.end method
.method public final f(Lj$/time/temporal/r;JII)I
.locals 2
.line 364
const-string v0, "field"
invoke-static {p1, v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 365
invoke-virtual {p0}, Lj$/time/format/v;->c()Lj$/time/format/d0;
move-result-object v0
iget-object v0, v0, Lj$/time/format/d0;->a:Ljava/util/Map;
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
check-cast v0, Ljava/util/HashMap;
invoke-virtual {v0, p1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Long;
if-eqz p1, :cond_0
.line 366
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
cmp-long p1, v0, p2
if-eqz p1, :cond_0
not-int p1, p4
return p1
:cond_0
return p5
.end method
.method public final g(Ljava/lang/CharSequence;ILjava/lang/CharSequence;II)Z
.locals 6
add-int v0, p2, p5
.line 209
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v1
const/4 v2, 0x0
if-gt v0, v1, :cond_5
add-int v0, p4, p5
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
move-result v1
if-le v0, v1, :cond_0
goto :goto_2
.line 184
:cond_0
iget-boolean v0, p0, Lj$/time/format/v;->b:Z
if-eqz v0, :cond_2
move v0, v2
:goto_0
if-ge v0, p5, :cond_4
add-int v1, p2, v0
.line 214
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v1
add-int v3, p4, v0
.line 215
invoke-interface {p3, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
if-eq v1, v3, :cond_1
goto :goto_2
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
move v0, v2
:goto_1
if-ge v0, p5, :cond_4
add-int v1, p2, v0
.line 222
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v1
add-int v3, p4, v0
.line 223
invoke-interface {p3, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
if-eq v1, v3, :cond_3
.line 224
invoke-static {v1}, Ljava/lang/Character;->toUpperCase(C)C
move-result v4
invoke-static {v3}, Ljava/lang/Character;->toUpperCase(C)C
move-result v5
if-eq v4, v5, :cond_3
.line 225
invoke-static {v1}, Ljava/lang/Character;->toLowerCase(C)C
move-result v1
invoke-static {v3}, Ljava/lang/Character;->toLowerCase(C)C
move-result v3
if-eq v1, v3, :cond_3
goto :goto_2
:cond_3
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_4
const/4 p1, 0x1
return p1
:cond_5
:goto_2
return v2
.end method
.method public final toString()Ljava/lang/String;
.locals 1
.line 435
invoke-virtual {p0}, Lj$/time/format/v;->c()Lj$/time/format/d0;
move-result-object v0
invoke-virtual {v0}, Lj$/time/format/d0;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method