* 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>
101 lines
6.8 KiB
Java
101 lines
6.8 KiB
Java
package kotlin.time;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.LongCompanionObject;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.time.Duration;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0015\n\u0002\u0010\u000b\n\u0000\u001a'\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0000¢\u0006\u0004\b\u0007\u0010\b\u001a'\u0010\t\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0001H\u0002¢\u0006\u0004\b\u000b\u0010\f\u001a'\u0010\r\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u000e\u0010\b\u001a\u0015\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u0002\u001a\u00020\u0001H\u0002¢\u0006\u0002\u0010\u0010\u001a%\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u0012\u001a\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\u0014\u001a%\u0010\u0015\u001a\u00020\u00062\u0006\u0010\u0016\u001a\u00020\u00012\u0006\u0010\u0017\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\u0014\u001a%\u0010\u0018\u001a\u00020\u00062\u0006\u0010\u0019\u001a\u00020\u00012\u0006\u0010\u001a\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0002¢\u0006\u0002\u0010\u0014\u001a\r\u0010\u001b\u001a\u00020\u001c*\u00020\u0001H\u0080\b¨\u0006\u001d"}, d2 = {"saturatingAdd", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "value", "unit", "Lkotlin/time/DurationUnit;", "duration", "Lkotlin/time/Duration;", "saturatingAdd-NuflL3o", "(JLkotlin/time/DurationUnit;J)J", "checkInfiniteSumDefined", "durationInUnit", "checkInfiniteSumDefined-PjuGub4", "(JJJ)J", "saturatingAddInHalves", "saturatingAddInHalves-NuflL3o", "infinityOfSign", "(J)J", "saturatingDiff", "valueNs", "origin", "(JJLkotlin/time/DurationUnit;)J", "saturatingOriginsDiff", "origin1", "origin2", "saturatingFiniteDiff", "value1", "value2", "isSaturated", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "kotlin-stdlib"}, k = 2, mv = {2, 2, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nlongSaturatedMath.kt\nKotlin\n*S Kotlin\n*F\n+ 1 longSaturatedMath.kt\nkotlin/time/LongSaturatedMathKt\n*L\n1#1,81:1\n80#1:82\n80#1:83\n80#1:84\n80#1:85\n80#1:86\n80#1:87\n*S KotlinDebug\n*F\n+ 1 longSaturatedMath.kt\nkotlin/time/LongSaturatedMathKt\n*L\n14#1:82\n17#1:83\n36#1:84\n46#1:85\n53#1:86\n57#1:87\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public final class LongSaturatedMathKt {
|
|
/* renamed from: checkInfiniteSumDefined-PjuGub4, reason: not valid java name */
|
|
private static final long m1459checkInfiniteSumDefinedPjuGub4(long j, long j2, long j3) {
|
|
if (Duration.m1383isInfiniteimpl(j2) && (j ^ j3) < 0) {
|
|
throw new IllegalArgumentException("Summing infinities of different signs");
|
|
}
|
|
return j;
|
|
}
|
|
|
|
private static final long infinityOfSign(long j) {
|
|
if (j < 0) {
|
|
return Duration.INSTANCE.m1448getNEG_INFINITEUwyO8pc$kotlin_stdlib();
|
|
}
|
|
return Duration.INSTANCE.m1447getINFINITEUwyO8pc();
|
|
}
|
|
|
|
public static final boolean isSaturated(long j) {
|
|
return ((j - 1) | 1) == LongCompanionObject.MAX_VALUE;
|
|
}
|
|
|
|
/* renamed from: saturatingAdd-NuflL3o, reason: not valid java name */
|
|
public static final long m1460saturatingAddNuflL3o(long j, @NotNull DurationUnit unit, long j2) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
long m1397toLongimpl = Duration.m1397toLongimpl(j2, unit);
|
|
if (((j - 1) | 1) == LongCompanionObject.MAX_VALUE) {
|
|
return m1459checkInfiniteSumDefinedPjuGub4(j, j2, m1397toLongimpl);
|
|
}
|
|
if (((m1397toLongimpl - 1) | 1) == LongCompanionObject.MAX_VALUE) {
|
|
return m1461saturatingAddInHalvesNuflL3o(j, unit, j2);
|
|
}
|
|
long j3 = j + m1397toLongimpl;
|
|
if (((j ^ j3) & (m1397toLongimpl ^ j3)) < 0) {
|
|
if (j >= 0) {
|
|
return LongCompanionObject.MAX_VALUE;
|
|
}
|
|
return Long.MIN_VALUE;
|
|
}
|
|
return j3;
|
|
}
|
|
|
|
/* renamed from: saturatingAddInHalves-NuflL3o, reason: not valid java name */
|
|
private static final long m1461saturatingAddInHalvesNuflL3o(long j, DurationUnit durationUnit, long j2) {
|
|
long m1361divUwyO8pc = Duration.m1361divUwyO8pc(j2, 2);
|
|
long m1397toLongimpl = Duration.m1397toLongimpl(m1361divUwyO8pc, durationUnit);
|
|
if ((1 | (m1397toLongimpl - 1)) == LongCompanionObject.MAX_VALUE) {
|
|
return m1397toLongimpl;
|
|
}
|
|
return m1460saturatingAddNuflL3o(m1460saturatingAddNuflL3o(j, durationUnit, m1361divUwyO8pc), durationUnit, Duration.m1386minusLRDsOJo(j2, m1361divUwyO8pc));
|
|
}
|
|
|
|
public static final long saturatingDiff(long j, long j2, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
if ((1 | (j2 - 1)) == LongCompanionObject.MAX_VALUE) {
|
|
return Duration.m1402unaryMinusUwyO8pc(infinityOfSign(j2));
|
|
}
|
|
return saturatingFiniteDiff(j, j2, unit);
|
|
}
|
|
|
|
private static final long saturatingFiniteDiff(long j, long j2, DurationUnit durationUnit) {
|
|
long j3 = j - j2;
|
|
if (((j3 ^ j) & (~(j3 ^ j2))) < 0) {
|
|
DurationUnit durationUnit2 = DurationUnit.MILLISECONDS;
|
|
if (durationUnit.compareTo(durationUnit2) < 0) {
|
|
long convertDurationUnit = DurationUnitKt__DurationUnitJvmKt.convertDurationUnit(1L, durationUnit2, durationUnit);
|
|
long j4 = (j / convertDurationUnit) - (j2 / convertDurationUnit);
|
|
long j5 = (j % convertDurationUnit) - (j2 % convertDurationUnit);
|
|
Duration.Companion companion = Duration.INSTANCE;
|
|
return Duration.m1387plusLRDsOJo(DurationKt.toDuration(j4, durationUnit2), DurationKt.toDuration(j5, durationUnit));
|
|
}
|
|
return Duration.m1402unaryMinusUwyO8pc(infinityOfSign(j3));
|
|
}
|
|
return DurationKt.toDuration(j3, durationUnit);
|
|
}
|
|
|
|
public static final long saturatingOriginsDiff(long j, long j2, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
if (((j2 - 1) | 1) == LongCompanionObject.MAX_VALUE) {
|
|
if (j == j2) {
|
|
return Duration.INSTANCE.m1449getZEROUwyO8pc();
|
|
}
|
|
return Duration.m1402unaryMinusUwyO8pc(infinityOfSign(j2));
|
|
}
|
|
if ((1 | (j - 1)) == LongCompanionObject.MAX_VALUE) {
|
|
return infinityOfSign(j);
|
|
}
|
|
return saturatingFiniteDiff(j, j2, unit);
|
|
}
|
|
}
|