* 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>
128 lines
4 KiB
Java
128 lines
4 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzgwn {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static final /* synthetic */ int f8277a = 0;
|
|
|
|
static {
|
|
Math.log(2.0d);
|
|
}
|
|
|
|
public static boolean a(double d) {
|
|
if (d > 0.0d && zzgwo.b(d)) {
|
|
long a2 = zzgwo.a(d);
|
|
if ((a2 & ((-1) + a2)) == 0) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Failed to find 'out' block for switch in B:9:0x002c. Please report as an issue. */
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0069 */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static int b(double r6) {
|
|
/*
|
|
java.math.RoundingMode r0 = java.math.RoundingMode.CEILING
|
|
r1 = 0
|
|
int r1 = (r6 > r1 ? 1 : (r6 == r1 ? 0 : -1))
|
|
r2 = 0
|
|
r3 = 1
|
|
if (r1 <= 0) goto L12
|
|
boolean r1 = com.google.android.gms.internal.ads.zzgwo.b(r6)
|
|
if (r1 == 0) goto L12
|
|
r1 = r3
|
|
goto L13
|
|
L12:
|
|
r1 = r2
|
|
L13:
|
|
java.lang.String r4 = "x must be positive and finite"
|
|
com.google.android.gms.internal.ads.zzgqa.b(r4, r1)
|
|
int r1 = java.lang.Math.getExponent(r6)
|
|
int r4 = java.lang.Math.getExponent(r6)
|
|
r5 = -1022(0xfffffffffffffc02, float:NaN)
|
|
if (r4 < r5) goto L73
|
|
int[] r4 = com.google.android.gms.internal.ads.zzgwm.f8276a
|
|
int r0 = r0.ordinal()
|
|
r0 = r4[r0]
|
|
switch(r0) {
|
|
case 1: goto L6b;
|
|
case 2: goto L6a;
|
|
case 3: goto L61;
|
|
case 4: goto L59;
|
|
case 5: goto L4f;
|
|
case 6: goto L35;
|
|
case 7: goto L35;
|
|
case 8: goto L35;
|
|
default: goto L2f;
|
|
}
|
|
L2f:
|
|
java.lang.AssertionError r6 = new java.lang.AssertionError
|
|
r6.<init>()
|
|
throw r6
|
|
L35:
|
|
long r6 = java.lang.Double.doubleToRawLongBits(r6)
|
|
r4 = 4503599627370495(0xfffffffffffff, double:2.225073858507201E-308)
|
|
long r6 = r6 & r4
|
|
r4 = 4607182418800017408(0x3ff0000000000000, double:1.0)
|
|
long r6 = r6 | r4
|
|
double r6 = java.lang.Double.longBitsToDouble(r6)
|
|
double r6 = r6 * r6
|
|
r4 = 4611686018427387904(0x4000000000000000, double:2.0)
|
|
int r6 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))
|
|
if (r6 <= 0) goto L67
|
|
r2 = r3
|
|
goto L67
|
|
L4f:
|
|
if (r1 < 0) goto L52
|
|
r2 = r3
|
|
L52:
|
|
boolean r6 = a(r6)
|
|
L56:
|
|
r6 = r6 ^ r3
|
|
r2 = r2 & r6
|
|
goto L67
|
|
L59:
|
|
if (r1 >= 0) goto L5c
|
|
r2 = r3
|
|
L5c:
|
|
boolean r6 = a(r6)
|
|
goto L56
|
|
L61:
|
|
boolean r6 = a(r6)
|
|
r2 = r6 ^ 1
|
|
L67:
|
|
if (r2 == 0) goto L6a
|
|
int r1 = r1 + r3
|
|
L6a:
|
|
return r1
|
|
L6b:
|
|
boolean r6 = a(r6)
|
|
com.google.android.gms.internal.ads.zzgwt.b(r6)
|
|
return r1
|
|
L73:
|
|
r0 = 4841369599423283200(0x4330000000000000, double:4.503599627370496E15)
|
|
double r6 = r6 * r0
|
|
int r6 = b(r6)
|
|
int r6 = r6 + (-52)
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzgwn.b(double):int");
|
|
}
|
|
|
|
public static boolean c(double d) {
|
|
if (!zzgwo.b(d)) {
|
|
return false;
|
|
}
|
|
if (d != 0.0d && 52 - Long.numberOfTrailingZeros(zzgwo.a(d)) > Math.getExponent(d)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|