* 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>
185 lines
9.2 KiB
Java
185 lines
9.2 KiB
Java
package kotlin;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigInteger;
|
|
import java.math.MathContext;
|
|
import kotlin.internal.InlineOnly;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\n\u001a\u0015\u0010\u0003\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\n\u001a\u0015\u0010\u0004\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\n\u001a\u0015\u0010\u0005\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\n\u001a\u0015\u0010\u0006\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\n\u001a\r\u0010\u0007\u001a\u00020\u0001*\u00020\u0001H\u0087\n\u001a\r\u0010\b\u001a\u00020\u0001*\u00020\u0001H\u0087\n\u001a\r\u0010\t\u001a\u00020\u0001*\u00020\u0001H\u0087\n\u001a\r\u0010\n\u001a\u00020\u0001*\u00020\u0001H\u0087\b\u001a\u0015\u0010\u000b\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\f\u001a\u0015\u0010\f\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\f\u001a\u0015\u0010\r\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\f\u001a\u0015\u0010\u000e\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\f\u001a\u0015\u0010\u0011\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\f\u001a\r\u0010\u0012\u001a\u00020\u0001*\u00020\u0010H\u0087\b\u001a\r\u0010\u0012\u001a\u00020\u0001*\u00020\u0013H\u0087\b\u001a\r\u0010\u0014\u001a\u00020\u0015*\u00020\u0001H\u0087\b\u001a!\u0010\u0014\u001a\u00020\u0015*\u00020\u00012\b\b\u0002\u0010\u0016\u001a\u00020\u00102\b\b\u0002\u0010\u0017\u001a\u00020\u0018H\u0087\b¨\u0006\u0019"}, d2 = {"plus", "Ljava/math/BigInteger;", "other", "minus", "times", "div", "rem", "unaryMinus", "inc", "dec", "inv", "and", "or", "xor", "shl", "n", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "shr", "toBigInteger", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "toBigDecimal", "Ljava/math/BigDecimal;", "scale", "mathContext", "Ljava/math/MathContext;", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/NumbersKt")
|
|
/* loaded from: classes3.dex */
|
|
class NumbersKt__BigIntegersKt extends NumbersKt__BigDecimalsKt {
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger and(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger and = bigInteger.and(other);
|
|
Intrinsics.checkNotNullExpressionValue(and, "and(...)");
|
|
return and;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger dec(BigInteger bigInteger) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger subtract = bigInteger.subtract(BigInteger.ONE);
|
|
Intrinsics.checkNotNullExpressionValue(subtract, "subtract(...)");
|
|
return subtract;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final BigInteger div(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger divide = bigInteger.divide(other);
|
|
Intrinsics.checkNotNullExpressionValue(divide, "divide(...)");
|
|
return divide;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger inc(BigInteger bigInteger) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger add = bigInteger.add(BigInteger.ONE);
|
|
Intrinsics.checkNotNullExpressionValue(add, "add(...)");
|
|
return add;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger inv(BigInteger bigInteger) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger not = bigInteger.not();
|
|
Intrinsics.checkNotNullExpressionValue(not, "not(...)");
|
|
return not;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final BigInteger minus(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger subtract = bigInteger.subtract(other);
|
|
Intrinsics.checkNotNullExpressionValue(subtract, "subtract(...)");
|
|
return subtract;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger or(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger or = bigInteger.or(other);
|
|
Intrinsics.checkNotNullExpressionValue(or, "or(...)");
|
|
return or;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final BigInteger plus(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger add = bigInteger.add(other);
|
|
Intrinsics.checkNotNullExpressionValue(add, "add(...)");
|
|
return add;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@InlineOnly
|
|
private static final BigInteger rem(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger remainder = bigInteger.remainder(other);
|
|
Intrinsics.checkNotNullExpressionValue(remainder, "remainder(...)");
|
|
return remainder;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger shl(BigInteger bigInteger, int i) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger shiftLeft = bigInteger.shiftLeft(i);
|
|
Intrinsics.checkNotNullExpressionValue(shiftLeft, "shiftLeft(...)");
|
|
return shiftLeft;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger shr(BigInteger bigInteger, int i) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger shiftRight = bigInteger.shiftRight(i);
|
|
Intrinsics.checkNotNullExpressionValue(shiftRight, "shiftRight(...)");
|
|
return shiftRight;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final BigInteger times(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger multiply = bigInteger.multiply(other);
|
|
Intrinsics.checkNotNullExpressionValue(multiply, "multiply(...)");
|
|
return multiply;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigDecimal toBigDecimal(BigInteger bigInteger) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
return new BigDecimal(bigInteger);
|
|
}
|
|
|
|
public static /* synthetic */ BigDecimal toBigDecimal$default(BigInteger bigInteger, int i, MathContext mathContext, int i2, Object obj) {
|
|
if ((i2 & 1) != 0) {
|
|
i = 0;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
mathContext = MathContext.UNLIMITED;
|
|
Intrinsics.checkNotNullExpressionValue(mathContext, "UNLIMITED");
|
|
}
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(mathContext, "mathContext");
|
|
return new BigDecimal(bigInteger, i, mathContext);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger toBigInteger(int i) {
|
|
BigInteger valueOf = BigInteger.valueOf(i);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
return valueOf;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final BigInteger unaryMinus(BigInteger bigInteger) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
BigInteger negate = bigInteger.negate();
|
|
Intrinsics.checkNotNullExpressionValue(negate, "negate(...)");
|
|
return negate;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger xor(BigInteger bigInteger, BigInteger other) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
BigInteger xor = bigInteger.xor(other);
|
|
Intrinsics.checkNotNullExpressionValue(xor, "xor(...)");
|
|
return xor;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigDecimal toBigDecimal(BigInteger bigInteger, int i, MathContext mathContext) {
|
|
Intrinsics.checkNotNullParameter(bigInteger, "<this>");
|
|
Intrinsics.checkNotNullParameter(mathContext, "mathContext");
|
|
return new BigDecimal(bigInteger, i, mathContext);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final BigInteger toBigInteger(long j) {
|
|
BigInteger valueOf = BigInteger.valueOf(j);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
return valueOf;
|
|
}
|
|
}
|