* 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>
275 lines
14 KiB
Java
275 lines
14 KiB
Java
package kotlin.time;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.io.InvalidObjectException;
|
|
import java.io.ObjectInputStream;
|
|
import java.io.Serializable;
|
|
import kotlin.Deprecated;
|
|
import kotlin.DeprecationLevel;
|
|
import kotlin.Metadata;
|
|
import kotlin.NotImplementedError;
|
|
import kotlin.ReplaceWith;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.LongCompanionObject;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.time.Duration;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
@SinceKotlin(version = "2.1")
|
|
@Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u0000 '2\b\u0012\u0004\u0012\u00020\u00000\u00012\u00060\u0002j\u0002`\u0003:\u0001'B\u0019\b\u0000\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\b\b\u0010\tJ\u0006\u0010\u000e\u001a\u00020\u0005J\u0018\u0010\u000f\u001a\u00020\u00002\u0006\u0010\u0010\u001a\u00020\u0011H\u0086\u0002¢\u0006\u0004\b\u0012\u0010\u0013J\u0018\u0010\u0014\u001a\u00020\u00002\u0006\u0010\u0010\u001a\u00020\u0011H\u0086\u0002¢\u0006\u0004\b\u0015\u0010\u0013J\u0018\u0010\u0014\u001a\u00020\u00112\u0006\u0010\u0016\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\u0017\u0010\u0018J\u0011\u0010\u0019\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020\u0000H\u0096\u0002J\u0013\u0010\u001a\u001a\u00020\u001b2\b\u0010\u0016\u001a\u0004\u0018\u00010\u001cH\u0096\u0002J\b\u0010\u001d\u001a\u00020\u0007H\u0016J\b\u0010\u001e\u001a\u00020\u001fH\u0016J\b\u0010 \u001a\u00020\u001cH\u0002J\u0019\u0010!\u001a\u00020\"2\n\u0010#\u001a\u00060$j\u0002`%H\u0002¢\u0006\u0002\u0010&R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006("}, d2 = {"Lkotlin/time/Instant;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "epochSeconds", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "nanosecondsOfSecond", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "(JI)V", "getEpochSeconds", "()J", "getNanosecondsOfSecond", "()I", "toEpochMilliseconds", "plus", "duration", "Lkotlin/time/Duration;", "plus-LRDsOJo", "(J)Lkotlin/time/Instant;", "minus", "minus-LRDsOJo", "other", "minus-UwyO8pc", "(Lkotlin/time/Instant;)J", "compareTo", "equals", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "hashCode", "toString", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "writeReplace", "readObject", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "input", "Ljava/io/ObjectInputStream;", "Lkotlin/internal/ReadObjectParameterType;", "(Ljava/io/ObjectInputStream;)V", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nInstant.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Instant.kt\nkotlin/time/Instant\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 Instant.kt\nkotlin/time/InstantKt\n+ 4 Duration.kt\nkotlin/time/Duration\n*L\n1#1,864:1\n1#2:865\n803#3,14:866\n786#3,6:880\n803#3,14:886\n786#3,6:900\n786#3,6:907\n548#4:906\n*S KotlinDebug\n*F\n+ 1 Instant.kt\nkotlin/time/Instant\n*L\n150#1:866,14\n153#1:880,6\n161#1:886,14\n164#1:900,6\n188#1:907,6\n184#1:906\n*E\n"})
|
|
@ExperimentalTime
|
|
/* loaded from: classes4.dex */
|
|
public final class Instant implements Comparable<Instant>, Serializable {
|
|
private final long epochSeconds;
|
|
private final int nanosecondsOfSecond;
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
|
|
@NotNull
|
|
private static final Instant MIN = new Instant(-31557014167219200L, 0);
|
|
|
|
@NotNull
|
|
private static final Instant MAX = new Instant(31556889864403199L, 999999999);
|
|
|
|
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\r\n\u0002\b\u000b\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\b\u0010\u0004\u001a\u00020\u0005H\u0007J\u000e\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0007\u001a\u00020\bJ\u0018\u0010\t\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\b2\b\b\u0002\u0010\u000b\u001a\u00020\bJ\u0016\u0010\t\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\fJ\u000e\u0010\r\u001a\u00020\u00052\u0006\u0010\u000e\u001a\u00020\u000fJ\u0012\u0010\u0010\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u000e\u001a\u00020\u000fH\u0007R\u0011\u0010\u0011\u001a\u00020\u00058F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013R\u0011\u0010\u0014\u001a\u00020\u00058F¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0013R\u0014\u0010\u0016\u001a\u00020\u0005X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0013R\u0014\u0010\u0018\u001a\u00020\u0005X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0013¨\u0006\u001a"}, d2 = {"Lkotlin/time/Instant$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "now", "Lkotlin/time/Instant;", "fromEpochMilliseconds", "epochMilliseconds", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "fromEpochSeconds", "epochSeconds", "nanosecondAdjustment", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "parse", "input", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "parseOrNull", "DISTANT_PAST", "getDISTANT_PAST", "()Lkotlin/time/Instant;", "DISTANT_FUTURE", "getDISTANT_FUTURE", "MIN", "getMIN$kotlin_stdlib", "MAX", "getMAX$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nInstant.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Instant.kt\nkotlin/time/Instant$Companion\n+ 2 Instant.kt\nkotlin/time/InstantKt\n*L\n1#1,864:1\n786#2,6:865\n*S KotlinDebug\n*F\n+ 1 Instant.kt\nkotlin/time/Instant$Companion\n*L\n312#1:865,6\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public static /* synthetic */ Instant fromEpochSeconds$default(Companion companion, long j, long j2, int i, Object obj) {
|
|
if ((i & 2) != 0) {
|
|
j2 = 0;
|
|
}
|
|
return companion.fromEpochSeconds(j, j2);
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant fromEpochMilliseconds(long epochMilliseconds) {
|
|
long j = epochMilliseconds / 1000;
|
|
if ((epochMilliseconds ^ 1000) < 0 && j * 1000 != epochMilliseconds) {
|
|
j--;
|
|
}
|
|
long j2 = epochMilliseconds % 1000;
|
|
int i = (int) ((j2 + (1000 & (((j2 ^ 1000) & ((-j2) | j2)) >> 63))) * DurationKt.NANOS_IN_MILLIS);
|
|
if (j < -31557014167219200L) {
|
|
return getMIN$kotlin_stdlib();
|
|
}
|
|
if (j > 31556889864403199L) {
|
|
return getMAX$kotlin_stdlib();
|
|
}
|
|
return fromEpochSeconds(j, i);
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant fromEpochSeconds(long epochSeconds, long nanosecondAdjustment) {
|
|
long j = nanosecondAdjustment / 1000000000;
|
|
if ((nanosecondAdjustment ^ 1000000000) < 0 && j * 1000000000 != nanosecondAdjustment) {
|
|
j--;
|
|
}
|
|
long j2 = epochSeconds + j;
|
|
if ((epochSeconds ^ j2) < 0 && (j ^ epochSeconds) >= 0) {
|
|
return epochSeconds > 0 ? Instant.INSTANCE.getMAX$kotlin_stdlib() : Instant.INSTANCE.getMIN$kotlin_stdlib();
|
|
}
|
|
if (j2 < -31557014167219200L) {
|
|
return getMIN$kotlin_stdlib();
|
|
}
|
|
if (j2 > 31556889864403199L) {
|
|
return getMAX$kotlin_stdlib();
|
|
}
|
|
long j3 = nanosecondAdjustment % 1000000000;
|
|
return new Instant(j2, (int) (j3 + ((((j3 ^ 1000000000) & ((-j3) | j3)) >> 63) & 1000000000)));
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant getDISTANT_FUTURE() {
|
|
return fromEpochSeconds(3093527980800L, 0);
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant getDISTANT_PAST() {
|
|
return fromEpochSeconds(-3217862419201L, 999999999);
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant getMAX$kotlin_stdlib() {
|
|
return Instant.MAX;
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant getMIN$kotlin_stdlib() {
|
|
return Instant.MIN;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "Use Clock.System.now() instead", replaceWith = @ReplaceWith(expression = "Clock.System.now()", imports = {"kotlin.time.Clock"}))
|
|
@NotNull
|
|
public final Instant now() {
|
|
throw new NotImplementedError(null, 1, null);
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant parse(@NotNull CharSequence input) {
|
|
InstantParseResult parseIso;
|
|
Intrinsics.checkNotNullParameter(input, "input");
|
|
parseIso = InstantKt.parseIso(input);
|
|
return parseIso.toInstant();
|
|
}
|
|
|
|
@SinceKotlin(version = "2.2")
|
|
@Nullable
|
|
public final Instant parseOrNull(@NotNull CharSequence input) {
|
|
InstantParseResult parseIso;
|
|
Intrinsics.checkNotNullParameter(input, "input");
|
|
parseIso = InstantKt.parseIso(input);
|
|
return parseIso.toInstantOrNull();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
@NotNull
|
|
public final Instant fromEpochSeconds(long epochSeconds, int nanosecondAdjustment) {
|
|
return fromEpochSeconds(epochSeconds, nanosecondAdjustment);
|
|
}
|
|
}
|
|
|
|
public Instant(long j, int i) {
|
|
this.epochSeconds = j;
|
|
this.nanosecondsOfSecond = i;
|
|
if (-31557014167219200L <= j && j < 31556889864403200L) {
|
|
} else {
|
|
throw new IllegalArgumentException("Instant exceeds minimum or maximum instant");
|
|
}
|
|
}
|
|
|
|
private final void readObject(ObjectInputStream input) {
|
|
throw new InvalidObjectException("Deserialization is supported via proxy only");
|
|
}
|
|
|
|
private final Object writeReplace() {
|
|
return InstantJvmKt.serializedInstant(this);
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this != other) {
|
|
if (other instanceof Instant) {
|
|
Instant instant = (Instant) other;
|
|
if (this.epochSeconds != instant.epochSeconds || this.nanosecondsOfSecond != instant.nanosecondsOfSecond) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final long getEpochSeconds() {
|
|
return this.epochSeconds;
|
|
}
|
|
|
|
public final int getNanosecondsOfSecond() {
|
|
return this.nanosecondsOfSecond;
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.epochSeconds;
|
|
return (this.nanosecondsOfSecond * 51) + ((int) (j ^ (j >>> 32)));
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: minus-LRDsOJo, reason: not valid java name */
|
|
public final Instant m1456minusLRDsOJo(long duration) {
|
|
return m1458plusLRDsOJo(Duration.m1402unaryMinusUwyO8pc(duration));
|
|
}
|
|
|
|
/* renamed from: minus-UwyO8pc, reason: not valid java name */
|
|
public final long m1457minusUwyO8pc(@NotNull Instant other) {
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
Duration.Companion companion = Duration.INSTANCE;
|
|
return Duration.m1387plusLRDsOJo(DurationKt.toDuration(this.epochSeconds - other.epochSeconds, DurationUnit.SECONDS), DurationKt.toDuration(this.nanosecondsOfSecond - other.nanosecondsOfSecond, DurationUnit.NANOSECONDS));
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: plus-LRDsOJo, reason: not valid java name */
|
|
public final Instant m1458plusLRDsOJo(long duration) {
|
|
long m1372getInWholeSecondsimpl = Duration.m1372getInWholeSecondsimpl(duration);
|
|
int m1374getNanosecondsComponentimpl = Duration.m1374getNanosecondsComponentimpl(duration);
|
|
if (m1372getInWholeSecondsimpl == 0 && m1374getNanosecondsComponentimpl == 0) {
|
|
return this;
|
|
}
|
|
long j = this.epochSeconds;
|
|
long j2 = j + m1372getInWholeSecondsimpl;
|
|
if ((j ^ j2) < 0 && (m1372getInWholeSecondsimpl ^ j) >= 0) {
|
|
if (Duration.m1385isPositiveimpl(duration)) {
|
|
return MAX;
|
|
}
|
|
return MIN;
|
|
}
|
|
return INSTANCE.fromEpochSeconds(j2, this.nanosecondsOfSecond + m1374getNanosecondsComponentimpl);
|
|
}
|
|
|
|
public final long toEpochMilliseconds() {
|
|
long j = this.epochSeconds;
|
|
long j2 = 1000;
|
|
if (j >= 0) {
|
|
if (j != 1) {
|
|
if (j != 0) {
|
|
long j3 = j * 1000;
|
|
if (j3 / 1000 != j) {
|
|
return LongCompanionObject.MAX_VALUE;
|
|
}
|
|
j2 = j3;
|
|
} else {
|
|
j2 = 0;
|
|
}
|
|
}
|
|
long j4 = this.nanosecondsOfSecond / DurationKt.NANOS_IN_MILLIS;
|
|
long j5 = j2 + j4;
|
|
if ((j2 ^ j5) < 0 && (j4 ^ j2) >= 0) {
|
|
return LongCompanionObject.MAX_VALUE;
|
|
}
|
|
return j5;
|
|
}
|
|
long j6 = j + 1;
|
|
if (j6 != 1) {
|
|
if (j6 != 0) {
|
|
long j7 = j6 * 1000;
|
|
if (j7 / 1000 != j6) {
|
|
return Long.MIN_VALUE;
|
|
}
|
|
j2 = j7;
|
|
} else {
|
|
j2 = 0;
|
|
}
|
|
}
|
|
long j8 = (this.nanosecondsOfSecond / DurationKt.NANOS_IN_MILLIS) - 1000;
|
|
long j9 = j2 + j8;
|
|
if ((j2 ^ j9) < 0 && (j8 ^ j2) >= 0) {
|
|
return Long.MIN_VALUE;
|
|
}
|
|
return j9;
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
String formatIso;
|
|
formatIso = InstantKt.formatIso(this);
|
|
return formatIso;
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public int compareTo(@NotNull Instant other) {
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
int compare = Intrinsics.compare(this.epochSeconds, other.epochSeconds);
|
|
return compare != 0 ? compare : Intrinsics.compare(this.nanosecondsOfSecond, other.nanosecondsOfSecond);
|
|
}
|
|
}
|