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

214 lines
7.9 KiB
Java

package j$.time;
import j$.util.Objects;
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import kotlin.jvm.internal.LongCompanionObject;
/* loaded from: classes2.dex */
public final class OffsetDateTime implements j$.time.temporal.m, j$.time.temporal.o, Comparable<OffsetDateTime>, Serializable {
/* renamed from: c, reason: collision with root package name */
public static final /* synthetic */ int f21141c = 0;
private static final long serialVersionUID = 2287754244819255394L;
/* renamed from: a, reason: collision with root package name */
public final LocalDateTime f21142a;
public final ZoneOffset b;
@Override // java.lang.Comparable
public final int compareTo(OffsetDateTime offsetDateTime) {
int compare;
OffsetDateTime offsetDateTime2 = offsetDateTime;
if (this.b.equals(offsetDateTime2.b)) {
compare = this.f21142a.compareTo(offsetDateTime2.f21142a);
} else {
LocalDateTime localDateTime = this.f21142a;
ZoneOffset zoneOffset = this.b;
localDateTime.getClass();
long q = j$.com.android.tools.r8.a.q(localDateTime, zoneOffset);
LocalDateTime localDateTime2 = offsetDateTime2.f21142a;
ZoneOffset zoneOffset2 = offsetDateTime2.b;
localDateTime2.getClass();
compare = Long.compare(q, j$.com.android.tools.r8.a.q(localDateTime2, zoneOffset2));
if (compare == 0) {
compare = this.f21142a.b.d - offsetDateTime2.f21142a.b.d;
}
}
return compare == 0 ? this.f21142a.compareTo(offsetDateTime2.f21142a) : compare;
}
static {
LocalDateTime.f21139c.atOffset(ZoneOffset.f);
LocalDateTime.d.atOffset(ZoneOffset.e);
}
public OffsetDateTime(LocalDateTime localDateTime, ZoneOffset zoneOffset) {
this.f21142a = (LocalDateTime) Objects.requireNonNull(localDateTime, "dateTime");
this.b = (ZoneOffset) Objects.requireNonNull(zoneOffset, "offset");
}
public final OffsetDateTime L(LocalDateTime localDateTime, ZoneOffset zoneOffset) {
return (this.f21142a == localDateTime && this.b.equals(zoneOffset)) ? this : new OffsetDateTime(localDateTime, zoneOffset);
}
@Override // j$.time.temporal.n
public final boolean c(j$.time.temporal.r rVar) {
if (rVar instanceof j$.time.temporal.a) {
return true;
}
return rVar != null && rVar.d(this);
}
@Override // j$.time.temporal.n
public final j$.time.temporal.v i(j$.time.temporal.r rVar) {
if (rVar instanceof j$.time.temporal.a) {
if (rVar != j$.time.temporal.a.INSTANT_SECONDS && rVar != j$.time.temporal.a.OFFSET_SECONDS) {
return this.f21142a.i(rVar);
}
return ((j$.time.temporal.a) rVar).b;
}
return rVar.g(this);
}
@Override // j$.time.temporal.n
public final int g(j$.time.temporal.r rVar) {
if (rVar instanceof j$.time.temporal.a) {
int i = p.f21237a[((j$.time.temporal.a) rVar).ordinal()];
if (i == 1) {
throw new RuntimeException("Invalid field 'InstantSeconds' for get() method, use getLong() instead");
}
if (i == 2) {
return this.b.f21144a;
}
return this.f21142a.g(rVar);
}
return j$.time.temporal.s.a(this, rVar);
}
@Override // j$.time.temporal.n
public final long y(j$.time.temporal.r rVar) {
if (rVar instanceof j$.time.temporal.a) {
int i = p.f21237a[((j$.time.temporal.a) rVar).ordinal()];
if (i != 1) {
if (i == 2) {
return this.b.f21144a;
}
return this.f21142a.y(rVar);
}
LocalDateTime localDateTime = this.f21142a;
ZoneOffset zoneOffset = this.b;
localDateTime.getClass();
return j$.com.android.tools.r8.a.q(localDateTime, zoneOffset);
}
return rVar.i(this);
}
@Override // j$.time.temporal.m
/* renamed from: h */
public final j$.time.temporal.m t(g gVar) {
LocalDateTime localDateTime = this.f21142a;
return L(localDateTime.T(gVar, localDateTime.b), this.b);
}
@Override // j$.time.temporal.m
public final j$.time.temporal.m a(long j, j$.time.temporal.r rVar) {
if (rVar instanceof j$.time.temporal.a) {
j$.time.temporal.a aVar = (j$.time.temporal.a) rVar;
int i = p.f21237a[aVar.ordinal()];
if (i != 1) {
if (i == 2) {
return L(this.f21142a, ZoneOffset.R(aVar.b.a(j, aVar)));
}
return L(this.f21142a.a(j, rVar), this.b);
}
Instant ofEpochSecond = Instant.ofEpochSecond(j, this.f21142a.b.d);
ZoneOffset zoneOffset = this.b;
Objects.requireNonNull(ofEpochSecond, "instant");
Objects.requireNonNull(zoneOffset, "zone");
ZoneOffset d = zoneOffset.K().d(ofEpochSecond);
return new OffsetDateTime(LocalDateTime.O(ofEpochSecond.getEpochSecond(), ofEpochSecond.getNano(), d), d);
}
return (OffsetDateTime) rVar.l(this, j);
}
@Override // j$.time.temporal.m
/* renamed from: K, reason: merged with bridge method [inline-methods] */
public final OffsetDateTime b(long j, j$.time.temporal.t tVar) {
if (tVar instanceof j$.time.temporal.b) {
return L(this.f21142a.b(j, tVar), this.b);
}
return (OffsetDateTime) tVar.d(this, j);
}
@Override // j$.time.temporal.m
public final j$.time.temporal.m u(long j, j$.time.temporal.b bVar) {
return j == Long.MIN_VALUE ? b(LongCompanionObject.MAX_VALUE, bVar).b(1L, bVar) : b(-j, bVar);
}
@Override // j$.time.temporal.n
public final Object d(h hVar) {
if (hVar == j$.time.temporal.s.d || hVar == j$.time.temporal.s.e) {
return this.b;
}
if (hVar == j$.time.temporal.s.f21256a) {
return null;
}
if (hVar == j$.time.temporal.s.f) {
return this.f21142a.f21140a;
}
if (hVar == j$.time.temporal.s.g) {
return this.f21142a.b;
}
if (hVar == j$.time.temporal.s.b) {
return j$.time.chrono.t.f21173c;
}
if (hVar == j$.time.temporal.s.f21257c) {
return j$.time.temporal.b.NANOS;
}
return hVar.d(this);
}
@Override // j$.time.temporal.o
public final j$.time.temporal.m l(j$.time.temporal.m mVar) {
return mVar.a(this.f21142a.f21140a.z(), j$.time.temporal.a.EPOCH_DAY).a(this.f21142a.b.W(), j$.time.temporal.a.NANO_OF_DAY).a(this.b.f21144a, j$.time.temporal.a.OFFSET_SECONDS);
}
public Instant toInstant() {
LocalDateTime localDateTime = this.f21142a;
ZoneOffset zoneOffset = this.b;
localDateTime.getClass();
localDateTime.getClass();
return Instant.ofEpochSecond(j$.com.android.tools.r8.a.q(localDateTime, zoneOffset), localDateTime.toLocalTime().d);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof OffsetDateTime) {
OffsetDateTime offsetDateTime = (OffsetDateTime) obj;
if (this.f21142a.equals(offsetDateTime.f21142a) && this.b.equals(offsetDateTime.b)) {
return true;
}
}
return false;
}
public final int hashCode() {
return this.f21142a.hashCode() ^ this.b.f21144a;
}
public final String toString() {
return this.f21142a.toString() + this.b.b;
}
private Object writeReplace() {
return new s((byte) 10, this);
}
private void readObject(ObjectInputStream objectInputStream) {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
}