soul-browser/sources/java/j$/time/d.java
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

109 lines
3.7 KiB
Java

package j$.time;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes2.dex */
public final class d implements j$.time.temporal.n, j$.time.temporal.o {
public static final d FRIDAY;
public static final d MONDAY;
public static final d SATURDAY;
public static final d SUNDAY;
public static final d THURSDAY;
public static final d TUESDAY;
public static final d WEDNESDAY;
/* renamed from: a, reason: collision with root package name */
public static final d[] f21182a;
public static final /* synthetic */ d[] b;
public static d valueOf(String str) {
return (d) Enum.valueOf(d.class, str);
}
public static d[] values() {
return (d[]) b.clone();
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r11v1, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r1v1, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r3v1, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r5v1, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r7v1, types: [java.lang.Enum, j$.time.d] */
/* JADX WARN: Type inference failed for: r9v1, types: [java.lang.Enum, j$.time.d] */
static {
?? r0 = new Enum("MONDAY", 0);
MONDAY = r0;
?? r1 = new Enum("TUESDAY", 1);
TUESDAY = r1;
?? r3 = new Enum("WEDNESDAY", 2);
WEDNESDAY = r3;
?? r5 = new Enum("THURSDAY", 3);
THURSDAY = r5;
?? r7 = new Enum("FRIDAY", 4);
FRIDAY = r7;
?? r9 = new Enum("SATURDAY", 5);
SATURDAY = r9;
?? r11 = new Enum("SUNDAY", 6);
SUNDAY = r11;
b = new d[]{r0, r1, r3, r5, r7, r9, r11};
f21182a = values();
}
public static d K(int i) {
if (i < 1 || i > 7) {
throw new RuntimeException("Invalid value for DayOfWeek: " + i);
}
return f21182a[i - 1];
}
public final int getValue() {
return ordinal() + 1;
}
@Override // j$.time.temporal.n
public final boolean c(j$.time.temporal.r rVar) {
return rVar instanceof j$.time.temporal.a ? rVar == j$.time.temporal.a.DAY_OF_WEEK : rVar != null && rVar.d(this);
}
@Override // j$.time.temporal.n
public final j$.time.temporal.v i(j$.time.temporal.r rVar) {
if (rVar == j$.time.temporal.a.DAY_OF_WEEK) {
return rVar.range();
}
return j$.time.temporal.s.d(this, rVar);
}
@Override // j$.time.temporal.n
public final int g(j$.time.temporal.r rVar) {
if (rVar == j$.time.temporal.a.DAY_OF_WEEK) {
return getValue();
}
return j$.time.temporal.s.a(this, rVar);
}
@Override // j$.time.temporal.n
public final long y(j$.time.temporal.r rVar) {
if (rVar == j$.time.temporal.a.DAY_OF_WEEK) {
return getValue();
}
if (rVar instanceof j$.time.temporal.a) {
throw new RuntimeException(c.a("Unsupported field: ", rVar));
}
return rVar.i(this);
}
@Override // j$.time.temporal.n
public final Object d(h hVar) {
if (hVar == j$.time.temporal.s.f21257c) {
return j$.time.temporal.b.DAYS;
}
return j$.time.temporal.s.c(this, hVar);
}
@Override // j$.time.temporal.o
public final j$.time.temporal.m l(j$.time.temporal.m mVar) {
return mVar.a(getValue(), j$.time.temporal.a.DAY_OF_WEEK);
}
}