* 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>
150 lines
4.9 KiB
Java
150 lines
4.9 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.os.Parcel;
|
|
import android.text.TextUtils;
|
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
|
import java.util.regex.Pattern;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract /* synthetic */ class a {
|
|
public static void a(zzbqk zzbqkVar, String str, String str2) {
|
|
zzbqkVar.zza(android.support.v4.media.a.r(new StringBuilder(androidx.work.impl.workers.a.d(1, String.valueOf(str2).length(), str) + 2), str, "(", str2, ");"));
|
|
}
|
|
|
|
public static void b(zzbqk zzbqkVar, String str, JSONObject jSONObject) {
|
|
StringBuilder u = androidx.work.impl.workers.a.u("(window.AFMA_ReceiveMessage || function() {})('", str, "',", jSONObject.toString(), ");");
|
|
String sb = u.toString();
|
|
int i = com.google.android.gms.ads.internal.util.zze.zza;
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzd("Dispatching AFMA event: ".concat(sb));
|
|
zzbqkVar.zza(u.toString());
|
|
}
|
|
|
|
public static int c(int i, int i2, int i3) {
|
|
int i4 = i / i2;
|
|
return i4 + i4 + i3;
|
|
}
|
|
|
|
public static int d(int i, int i2, int i3, int i4) {
|
|
return ((i * i2) / i3) + i4;
|
|
}
|
|
|
|
public static int e(int i, int i2, int i3, int i4, int i5) {
|
|
return Math.max(((i * i2) / i3) + i4, i5);
|
|
}
|
|
|
|
public static /* synthetic */ int f(long j) {
|
|
int i = (int) j;
|
|
if (j == i) {
|
|
return i;
|
|
}
|
|
throw new ArithmeticException();
|
|
}
|
|
|
|
public static IObjectWrapper g(Parcel parcel, Parcel parcel2) {
|
|
IObjectWrapper I1 = IObjectWrapper.Stub.I1(parcel.readStrongBinder());
|
|
zzbcd.f(parcel2);
|
|
return I1;
|
|
}
|
|
|
|
public static void h(String str, String str2, String str3) {
|
|
zzee.c(str3, str2.concat(String.valueOf(str)));
|
|
}
|
|
|
|
public static void i(StringBuilder sb, String str, int i, String str2) {
|
|
sb.append(str);
|
|
sb.append(i);
|
|
zzee.c(str2, sb.toString());
|
|
}
|
|
|
|
public static void j(StringBuilder sb, String str, long j, String str2) {
|
|
sb.append(str);
|
|
sb.append(j);
|
|
sb.append(str2);
|
|
}
|
|
|
|
public static int k(int i, int i2, int i3) {
|
|
return zzhzw.b(i) + i2 + i3;
|
|
}
|
|
|
|
public static int l(int i, int i2, int i3, int i4) {
|
|
return ((i + i2) - i3) + i4;
|
|
}
|
|
|
|
public static int m(int i, int i2, int i3, int i4) {
|
|
return zzhzw.b(i) + i2 + i3 + i4;
|
|
}
|
|
|
|
public static boolean n(int i, boolean z) {
|
|
int i2 = i & 7;
|
|
if (i2 != 4) {
|
|
if (!z || i2 != 3) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v1, types: [java.lang.Object, com.google.android.gms.internal.ads.zzfne] */
|
|
public static zzfne o(Context context, int i) {
|
|
boolean booleanValue;
|
|
if (zzfnr.a()) {
|
|
int i2 = i - 2;
|
|
if (i2 != 20 && i2 != 21) {
|
|
if (i2 != 110) {
|
|
switch (i2) {
|
|
case 2:
|
|
case 3:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
booleanValue = ((Boolean) zzbid.f4704c.c()).booleanValue();
|
|
break;
|
|
case 4:
|
|
case 9:
|
|
case 10:
|
|
case 11:
|
|
case 12:
|
|
case 13:
|
|
booleanValue = ((Boolean) zzbid.d.c()).booleanValue();
|
|
break;
|
|
case 5:
|
|
booleanValue = ((Boolean) zzbid.b.c()).booleanValue();
|
|
break;
|
|
}
|
|
} else {
|
|
booleanValue = ((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.ha)).booleanValue();
|
|
}
|
|
} else {
|
|
booleanValue = ((Boolean) zzbid.e.c()).booleanValue();
|
|
}
|
|
if (booleanValue) {
|
|
return new zzfng(context, i);
|
|
}
|
|
}
|
|
return new Object();
|
|
}
|
|
|
|
public static zzfne p(Context context, int i, int i2, com.google.android.gms.ads.internal.client.zzm zzmVar) {
|
|
boolean matches;
|
|
zzfne o = o(context, i);
|
|
if (o instanceof zzfng) {
|
|
zzfng zzfngVar = (zzfng) o;
|
|
zzfngVar.f();
|
|
zzfngVar.d(i2);
|
|
zzfngVar.c(com.google.android.gms.ads.nonagon.signalgeneration.zzaa.zzd(zzmVar.zzm));
|
|
String str = zzmVar.zzp;
|
|
if (TextUtils.isEmpty(str)) {
|
|
matches = false;
|
|
} else {
|
|
matches = Pattern.matches((String) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.Z9), str);
|
|
}
|
|
if (matches) {
|
|
zzfngVar.zze(str);
|
|
}
|
|
}
|
|
return o;
|
|
}
|
|
}
|