soul-browser/sources/java/kotlin/time/TimeSource.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

248 lines
14 KiB
Java

package kotlin.time;
import com.google.android.gms.ads.RequestConfiguration;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
import kotlin.jvm.JvmInline;
import kotlin.jvm.internal.Intrinsics;
import kotlin.time.ComparableTimeMark;
import org.jetbrains.annotations.NotNull;
@SinceKotlin(version = "1.9")
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\bg\u0018\u0000 \u00062\u00020\u0001:\u0003\u0004\u0005\u0006J\b\u0010\u0002\u001a\u00020\u0003H&¨\u0006\u0007"}, d2 = {"Lkotlin/time/TimeSource;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "markNow", "Lkotlin/time/TimeMark;", "WithComparableMarks", "Monotonic", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@WasExperimental(markerClass = {ExperimentalTime.class})
/* loaded from: classes4.dex */
public interface TimeSource {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = Companion.$$INSTANCE;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lkotlin/time/TimeSource$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Companion {
static final /* synthetic */ Companion $$INSTANCE = new Companion();
private Companion() {
}
}
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\\u0002\u0018\u00002\u00020\u0001:\u0001\nB\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0004\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0006\u0010\u0007J\b\u0010\b\u001a\u00020\tH\u0016¨\u0006\u000b"}, d2 = {"Lkotlin/time/TimeSource$Monotonic;", "Lkotlin/time/TimeSource$WithComparableMarks;", "<init>", "()V", "markNow", "Lkotlin/time/TimeSource$Monotonic$ValueTimeMark;", "markNow-z9LOYto", "()J", "toString", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "ValueTimeMark", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Monotonic implements WithComparableMarks {
@NotNull
public static final Monotonic INSTANCE = new Monotonic();
@SinceKotlin(version = "1.9")
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0087@\u0018\u00002\u00020\u0001B\u0015\b\u0000\u0012\n\u0010\u0002\u001a\u00060\u0003j\u0002`\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\u000f\u0010\b\u001a\u00020\tH\u0016¢\u0006\u0004\b\n\u0010\u0006J\u0018\u0010\u000b\u001a\u00020\u00002\u0006\u0010\f\u001a\u00020\tH\u0096\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0018\u0010\u000f\u001a\u00020\u00002\u0006\u0010\f\u001a\u00020\tH\u0096\u0002¢\u0006\u0004\b\u0010\u0010\u000eJ\u000f\u0010\u0011\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0013\u0010\u0014J\u000f\u0010\u0015\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0016\u0010\u0014J\u0018\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0017\u001a\u00020\u0001H\u0096\u0002¢\u0006\u0004\b\u0018\u0010\u0019J\u0018\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0017\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\u001a\u0010\u000eJ\u0018\u0010\u001b\u001a\u00020\u001c2\u0006\u0010\u0017\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\u001d\u0010\u001eJ\u0013\u0010\u001f\u001a\u00020\u00122\b\u0010\u0017\u001a\u0004\u0018\u00010 HÖ\u0003J\t\u0010!\u001a\u00020\u001cHÖ\u0001J\t\u0010\"\u001a\u00020#HÖ\u0001R\u0014\u0010\u0002\u001a\u00060\u0003j\u0002`\u0004X\u0080\u0004¢\u0006\u0004\n\u0002\u0010\u0007\u0088\u0001\u0002\u0092\u0001\u00060\u0003j\u0002`\u0004¨\u0006$"}, d2 = {"Lkotlin/time/TimeSource$Monotonic$ValueTimeMark;", "Lkotlin/time/ComparableTimeMark;", "reading", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/time/ValueTimeMarkReading;", "constructor-impl", "(J)J", "J", "elapsedNow", "Lkotlin/time/Duration;", "elapsedNow-UwyO8pc", "plus", "duration", "plus-LRDsOJo", "(JJ)J", "minus", "minus-LRDsOJo", "hasPassedNow", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "hasPassedNow-impl", "(J)Z", "hasNotPassedNow", "hasNotPassedNow-impl", "other", "minus-UwyO8pc", "(JLkotlin/time/ComparableTimeMark;)J", "minus-6eNON_k", "compareTo", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "compareTo-6eNON_k", "(JJ)I", "equals", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "hashCode", "toString", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@JvmInline
@WasExperimental(markerClass = {ExperimentalTime.class})
/* loaded from: classes4.dex */
public static final class ValueTimeMark implements ComparableTimeMark {
private final long reading;
private /* synthetic */ ValueTimeMark(long j) {
this.reading = j;
}
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ ValueTimeMark m1471boximpl(long j) {
return new ValueTimeMark(j);
}
/* renamed from: compareTo-6eNON_k, reason: not valid java name */
public static final int m1472compareTo6eNON_k(long j, long j2) {
return Duration.m1357compareToLRDsOJo(m1481minus6eNON_k(j, j2), Duration.INSTANCE.m1449getZEROUwyO8pc());
}
/* renamed from: compareTo-impl, reason: not valid java name */
public static int m1473compareToimpl(long j, @NotNull ComparableTimeMark other) {
Intrinsics.checkNotNullParameter(other, "other");
return m1471boximpl(j).compareTo(other);
}
/* renamed from: constructor-impl, reason: not valid java name */
public static long m1474constructorimpl(long j) {
return j;
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m1476equalsimpl(long j, Object obj) {
return (obj instanceof ValueTimeMark) && j == ((ValueTimeMark) obj).getReading();
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m1477equalsimpl0(long j, long j2) {
return j == j2;
}
/* renamed from: hasNotPassedNow-impl, reason: not valid java name */
public static boolean m1478hasNotPassedNowimpl(long j) {
return Duration.m1384isNegativeimpl(m1475elapsedNowUwyO8pc(j));
}
/* renamed from: hasPassedNow-impl, reason: not valid java name */
public static boolean m1479hasPassedNowimpl(long j) {
return !Duration.m1384isNegativeimpl(m1475elapsedNowUwyO8pc(j));
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m1480hashCodeimpl(long j) {
return (int) (j ^ (j >>> 32));
}
/* renamed from: minus-6eNON_k, reason: not valid java name */
public static final long m1481minus6eNON_k(long j, long j2) {
return MonotonicTimeSource.INSTANCE.m1463differenceBetweenfRLX17w(j, j2);
}
/* renamed from: toString-impl, reason: not valid java name */
public static String m1485toStringimpl(long j) {
return "ValueTimeMark(reading=" + j + ')';
}
@Override // kotlin.time.TimeMark
/* renamed from: elapsedNow-UwyO8pc */
public long mo1348elapsedNowUwyO8pc() {
return m1475elapsedNowUwyO8pc(this.reading);
}
@Override // kotlin.time.ComparableTimeMark
public boolean equals(Object other) {
return m1476equalsimpl(this.reading, other);
}
@Override // kotlin.time.TimeMark
public boolean hasNotPassedNow() {
return m1478hasNotPassedNowimpl(this.reading);
}
@Override // kotlin.time.TimeMark
public boolean hasPassedNow() {
return m1479hasPassedNowimpl(this.reading);
}
@Override // kotlin.time.ComparableTimeMark
public int hashCode() {
return m1480hashCodeimpl(this.reading);
}
@Override // kotlin.time.ComparableTimeMark, kotlin.time.TimeMark
/* renamed from: minus-LRDsOJo */
public /* bridge */ /* synthetic */ ComparableTimeMark mo1349minusLRDsOJo(long j) {
return m1471boximpl(m1486minusLRDsOJo(j));
}
@Override // kotlin.time.ComparableTimeMark
/* renamed from: minus-UwyO8pc */
public long mo1350minusUwyO8pc(@NotNull ComparableTimeMark other) {
Intrinsics.checkNotNullParameter(other, "other");
return m1483minusUwyO8pc(this.reading, other);
}
@Override // kotlin.time.ComparableTimeMark, kotlin.time.TimeMark
/* renamed from: plus-LRDsOJo */
public /* bridge */ /* synthetic */ ComparableTimeMark mo1351plusLRDsOJo(long j) {
return m1471boximpl(m1487plusLRDsOJo(j));
}
public String toString() {
return m1485toStringimpl(this.reading);
}
/* renamed from: unbox-impl, reason: not valid java name and from getter */
public final /* synthetic */ long getReading() {
return this.reading;
}
/* renamed from: elapsedNow-UwyO8pc, reason: not valid java name */
public static long m1475elapsedNowUwyO8pc(long j) {
return MonotonicTimeSource.INSTANCE.m1464elapsedFrom6eNON_k(j);
}
/* renamed from: minus-UwyO8pc, reason: not valid java name */
public static long m1483minusUwyO8pc(long j, @NotNull ComparableTimeMark other) {
Intrinsics.checkNotNullParameter(other, "other");
if (other instanceof ValueTimeMark) {
return m1481minus6eNON_k(j, ((ValueTimeMark) other).getReading());
}
throw new IllegalArgumentException("Subtracting or comparing time marks from different time sources is not possible: " + ((Object) m1485toStringimpl(j)) + " and " + other);
}
@Override // java.lang.Comparable
public /* bridge */ int compareTo(@NotNull ComparableTimeMark comparableTimeMark) {
return ComparableTimeMark.DefaultImpls.compareTo(this, comparableTimeMark);
}
@Override // kotlin.time.TimeMark
/* renamed from: minus-LRDsOJo */
public /* bridge */ /* synthetic */ TimeMark mo1349minusLRDsOJo(long j) {
return m1471boximpl(m1486minusLRDsOJo(j));
}
@Override // kotlin.time.TimeMark
/* renamed from: plus-LRDsOJo */
public /* bridge */ /* synthetic */ TimeMark mo1351plusLRDsOJo(long j) {
return m1471boximpl(m1487plusLRDsOJo(j));
}
/* renamed from: minus-LRDsOJo, reason: not valid java name */
public long m1486minusLRDsOJo(long j) {
return m1482minusLRDsOJo(this.reading, j);
}
/* renamed from: plus-LRDsOJo, reason: not valid java name */
public long m1487plusLRDsOJo(long j) {
return m1484plusLRDsOJo(this.reading, j);
}
/* renamed from: minus-LRDsOJo, reason: not valid java name */
public static long m1482minusLRDsOJo(long j, long j2) {
return MonotonicTimeSource.INSTANCE.m1462adjustReading6QKq23U(j, Duration.m1402unaryMinusUwyO8pc(j2));
}
/* renamed from: plus-LRDsOJo, reason: not valid java name */
public static long m1484plusLRDsOJo(long j, long j2) {
return MonotonicTimeSource.INSTANCE.m1462adjustReading6QKq23U(j, j2);
}
}
private Monotonic() {
}
@Override // kotlin.time.TimeSource.WithComparableMarks, kotlin.time.TimeSource
public /* bridge */ /* synthetic */ ComparableTimeMark markNow() {
return ValueTimeMark.m1471boximpl(m1470markNowz9LOYto());
}
/* renamed from: markNow-z9LOYto, reason: not valid java name */
public long m1470markNowz9LOYto() {
return MonotonicTimeSource.INSTANCE.m1465markNowz9LOYto();
}
@NotNull
public String toString() {
return MonotonicTimeSource.INSTANCE.toString();
}
@Override // kotlin.time.TimeSource
public /* bridge */ /* synthetic */ TimeMark markNow() {
return ValueTimeMark.m1471boximpl(m1470markNowz9LOYto());
}
}
@SinceKotlin(version = "1.9")
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bg\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H&¨\u0006\u0004"}, d2 = {"Lkotlin/time/TimeSource$WithComparableMarks;", "Lkotlin/time/TimeSource;", "markNow", "Lkotlin/time/ComparableTimeMark;", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@WasExperimental(markerClass = {ExperimentalTime.class})
/* loaded from: classes4.dex */
public interface WithComparableMarks extends TimeSource {
@Override // kotlin.time.TimeSource
@NotNull
ComparableTimeMark markNow();
}
@NotNull
TimeMark markNow();
}