* 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>
138 lines
5.1 KiB
Java
138 lines
5.1 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import dalvik.system.DexClassLoader;
|
|
import java.io.File;
|
|
import java.security.GeneralSecurityException;
|
|
import java.util.HashMap;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzfvy {
|
|
public static final HashMap h = new HashMap();
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Context f7695a;
|
|
public final zzfvz b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final zzfuf f7696c;
|
|
public final zzfua d;
|
|
public final boolean e;
|
|
public zzfvn f;
|
|
public final Object g = new Object();
|
|
|
|
public zzfvy(Context context, zzfvz zzfvzVar, zzfuf zzfufVar, zzfua zzfuaVar, boolean z) {
|
|
this.f7695a = context;
|
|
this.b = zzfvzVar;
|
|
this.f7696c = zzfufVar;
|
|
this.d = zzfuaVar;
|
|
this.e = z;
|
|
}
|
|
|
|
public final boolean a(zzfvo zzfvoVar) {
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
try {
|
|
try {
|
|
zzfvn zzfvnVar = new zzfvn(d(zzfvoVar).getDeclaredConstructor(Context.class, String.class, byte[].class, Object.class, Bundle.class, Integer.TYPE).newInstance(this.f7695a, "msa-r", zzfvoVar.a(), null, new Bundle(), 2), zzfvoVar, this.b, this.f7696c, this.e);
|
|
if (zzfvnVar.e()) {
|
|
int g = zzfvnVar.g();
|
|
if (g == 0) {
|
|
synchronized (this.g) {
|
|
zzfvn zzfvnVar2 = this.f;
|
|
if (zzfvnVar2 != null) {
|
|
try {
|
|
zzfvnVar2.f();
|
|
} catch (zzfvx e) {
|
|
this.f7696c.c(e.f7694c, -1L, e);
|
|
}
|
|
}
|
|
this.f = zzfvnVar;
|
|
}
|
|
this.f7696c.b(3000, System.currentTimeMillis() - currentTimeMillis);
|
|
return true;
|
|
}
|
|
StringBuilder sb = new StringBuilder(String.valueOf(g).length() + 4);
|
|
sb.append("ci: ");
|
|
sb.append(g);
|
|
throw new zzfvx(4001, sb.toString());
|
|
}
|
|
throw new zzfvx(4000, "init failed");
|
|
} catch (Exception e2) {
|
|
throw new zzfvx(2004, e2);
|
|
}
|
|
} catch (zzfvx e3) {
|
|
this.f7696c.c(e3.f7694c, System.currentTimeMillis() - currentTimeMillis, e3);
|
|
return false;
|
|
} catch (Exception e4) {
|
|
this.f7696c.c(4010, System.currentTimeMillis() - currentTimeMillis, e4);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final zzfui b() {
|
|
zzfvn zzfvnVar;
|
|
synchronized (this.g) {
|
|
zzfvnVar = this.f;
|
|
}
|
|
return zzfvnVar;
|
|
}
|
|
|
|
public final zzfvo c() {
|
|
synchronized (this.g) {
|
|
try {
|
|
zzfvn zzfvnVar = this.f;
|
|
if (zzfvnVar != null) {
|
|
return zzfvnVar.b;
|
|
}
|
|
return null;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final synchronized Class d(zzfvo zzfvoVar) {
|
|
try {
|
|
zzbby zzbbyVar = zzfvoVar.f7686a;
|
|
if (zzbbyVar != null) {
|
|
String D = zzbbyVar.D();
|
|
HashMap hashMap = h;
|
|
Class cls = (Class) hashMap.get(D);
|
|
if (cls != null) {
|
|
return cls;
|
|
}
|
|
try {
|
|
zzfua zzfuaVar = this.d;
|
|
File file = zzfvoVar.b;
|
|
zzfuaVar.getClass();
|
|
if (zzfua.a(file)) {
|
|
try {
|
|
File file2 = zzfvoVar.f7687c;
|
|
if (!file2.exists()) {
|
|
file2.mkdirs();
|
|
}
|
|
Class<?> loadClass = new DexClassLoader(zzfvoVar.b.getAbsolutePath(), file2.getAbsolutePath(), null, this.f7695a.getClassLoader()).loadClass("com.google.ccc.abuse.droidguard.DroidGuard");
|
|
hashMap.put(D, loadClass);
|
|
return loadClass;
|
|
} catch (ClassNotFoundException e) {
|
|
e = e;
|
|
throw new zzfvx(2008, e);
|
|
} catch (IllegalArgumentException e2) {
|
|
e = e2;
|
|
throw new zzfvx(2008, e);
|
|
} catch (SecurityException e3) {
|
|
e = e3;
|
|
throw new zzfvx(2008, e);
|
|
}
|
|
}
|
|
throw new zzfvx(2026, "VM did not pass signature verification");
|
|
} catch (GeneralSecurityException e4) {
|
|
throw new zzfvx(2026, e4);
|
|
}
|
|
}
|
|
throw new zzfvx(4010, "mc");
|
|
} finally {
|
|
}
|
|
}
|
|
}
|