* 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>
141 lines
5.8 KiB
Java
141 lines
5.8 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import j$.util.Objects;
|
|
import java.io.Serializable;
|
|
import java.io.Writer;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigInteger;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Iterator;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzhyf extends zzhxq {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static final zzhyf f8883a = new Object();
|
|
|
|
public static void a(zzhyq zzhyqVar, zzhxj zzhxjVar) {
|
|
String str;
|
|
Writer writer = zzhyqVar.f8886c;
|
|
if (zzhxjVar != null && !(zzhxjVar instanceof zzhxk)) {
|
|
if (zzhxjVar instanceof zzhxn) {
|
|
zzhxn g = zzhxjVar.g();
|
|
Serializable serializable = g.f8871c;
|
|
if (serializable instanceof Number) {
|
|
Number i = g.i();
|
|
zzhyqVar.d();
|
|
String obj = i.toString();
|
|
Class<?> cls = i.getClass();
|
|
if (cls != Integer.class && cls != Long.class && cls != Byte.class && cls != Short.class && cls != BigDecimal.class && cls != BigInteger.class && cls != AtomicInteger.class && cls != AtomicLong.class) {
|
|
if (!obj.equals("-Infinity") && !obj.equals("Infinity") && !obj.equals("NaN")) {
|
|
if (cls != Float.class && cls != Double.class && !zzhyq.n.matcher(obj).matches()) {
|
|
String valueOf = String.valueOf(cls);
|
|
throw new IllegalArgumentException(android.support.v4.media.a.r(new StringBuilder(valueOf.length() + 47 + obj.length()), "String created by ", valueOf, " is not a valid JSON number: ", obj));
|
|
}
|
|
} else if (zzhyqVar.l != zzhxo.f8872c) {
|
|
throw new IllegalArgumentException("Numeric values must be finite, but was ".concat(obj));
|
|
}
|
|
}
|
|
zzhyqVar.i();
|
|
writer.append((CharSequence) obj);
|
|
return;
|
|
}
|
|
if (serializable instanceof Boolean) {
|
|
boolean booleanValue = ((Boolean) serializable).booleanValue();
|
|
zzhyqVar.d();
|
|
zzhyqVar.i();
|
|
if (true != booleanValue) {
|
|
str = "false";
|
|
} else {
|
|
str = "true";
|
|
}
|
|
writer.write(str);
|
|
return;
|
|
}
|
|
String a2 = g.a();
|
|
if (a2 == null) {
|
|
if (zzhyqVar.m != null) {
|
|
zzhyqVar.d();
|
|
}
|
|
zzhyqVar.i();
|
|
writer.write("null");
|
|
return;
|
|
}
|
|
zzhyqVar.d();
|
|
zzhyqVar.i();
|
|
zzhyqVar.e(a2);
|
|
return;
|
|
}
|
|
boolean z = zzhxjVar instanceof zzhxi;
|
|
if (z) {
|
|
zzhyqVar.d();
|
|
zzhyqVar.i();
|
|
int i2 = zzhyqVar.g;
|
|
int[] iArr = zzhyqVar.f;
|
|
if (i2 == iArr.length) {
|
|
zzhyqVar.f = Arrays.copyOf(iArr, i2 + i2);
|
|
}
|
|
int[] iArr2 = zzhyqVar.f;
|
|
int i3 = zzhyqVar.g;
|
|
zzhyqVar.g = i3 + 1;
|
|
iArr2[i3] = 1;
|
|
writer.write(91);
|
|
if (z) {
|
|
ArrayList arrayList = ((zzhxi) zzhxjVar).f8868c;
|
|
int size = arrayList.size();
|
|
int i4 = 0;
|
|
while (i4 < size) {
|
|
Object obj2 = arrayList.get(i4);
|
|
i4++;
|
|
a(zzhyqVar, (zzhxj) obj2);
|
|
}
|
|
zzhyqVar.a(']', 1, 2);
|
|
return;
|
|
}
|
|
throw new IllegalStateException("Not a JSON Array: ".concat(zzhxjVar.toString()));
|
|
}
|
|
if (zzhxjVar instanceof zzhxl) {
|
|
zzhyqVar.d();
|
|
zzhyqVar.i();
|
|
int i5 = zzhyqVar.g;
|
|
int[] iArr3 = zzhyqVar.f;
|
|
if (i5 == iArr3.length) {
|
|
zzhyqVar.f = Arrays.copyOf(iArr3, i5 + i5);
|
|
}
|
|
int[] iArr4 = zzhyqVar.f;
|
|
int i6 = zzhyqVar.g;
|
|
zzhyqVar.g = i6 + 1;
|
|
iArr4[i6] = 3;
|
|
writer.write(123);
|
|
Iterator it = ((zzhxv) zzhxjVar.c().f8870c.entrySet()).iterator();
|
|
while (((zzhxy) it).hasNext()) {
|
|
zzhxz next = ((zzhxu) it).next();
|
|
String str2 = (String) next.getKey();
|
|
Objects.requireNonNull(str2, "name == null");
|
|
if (zzhyqVar.m == null) {
|
|
int b = zzhyqVar.b();
|
|
if (b != 3 && b != 5) {
|
|
throw new IllegalStateException("Please begin an object before writing a name.");
|
|
}
|
|
zzhyqVar.m = str2;
|
|
a(zzhyqVar, (zzhxj) next.getValue());
|
|
} else {
|
|
throw new IllegalStateException("Already wrote a name, expecting a value.");
|
|
}
|
|
}
|
|
zzhyqVar.a('}', 3, 5);
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("Couldn't write ".concat(String.valueOf(zzhxjVar.getClass())));
|
|
}
|
|
if (zzhyqVar.m != null) {
|
|
zzhyqVar.d();
|
|
}
|
|
zzhyqVar.i();
|
|
writer.write("null");
|
|
}
|
|
}
|