soul-browser/sources/java/com/google/android/gms/internal/ads/zzffv.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

140 lines
5.3 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import android.os.Bundle;
import android.util.Pair;
import java.util.HashSet;
import java.util.concurrent.Executor;
/* loaded from: classes.dex */
public final class zzffv implements zzerf {
/* renamed from: a, reason: collision with root package name */
public final Context f7312a;
public final Executor b;
/* renamed from: c, reason: collision with root package name */
public final zzclg f7313c;
public final zzeqp d;
public final zzfgv e;
public zzbhf f;
public final zzfnr g;
public final zzfij h;
public zzfmb i;
public zzffv(Context context, Executor executor, zzclg zzclgVar, zzeqp zzeqpVar, zzfgv zzfgvVar, zzfij zzfijVar) {
this.f7312a = context;
this.b = executor;
this.f7313c = zzclgVar;
this.d = zzeqpVar;
this.h = zzfijVar;
this.e = zzfgvVar;
this.g = zzclgVar.z();
}
public final boolean a(com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzerd zzerdVar, zzere zzereVar) {
zzdkz zzh;
zzfno zzfnoVar;
Executor executor = this.b;
if (str == null) {
int i = com.google.android.gms.ads.internal.util.zze.zza;
com.google.android.gms.ads.internal.util.client.zzo.zzf("Ad unit ID should not be null for interstitial ad.");
executor.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzffu
@Override // java.lang.Runnable
public final /* synthetic */ void run() {
zzffv.this.d.S(zzfjm.d(6, null, null));
}
});
return false;
}
if (b()) {
return false;
}
if (((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.X2)).booleanValue()) {
com.google.android.gms.ads.internal.client.zzbb.zzc();
}
boolean booleanValue = ((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.la)).booleanValue();
zzclg zzclgVar = this.f7313c;
if (booleanValue && zzmVar.zzf) {
zzclgVar.y().b(true);
}
com.google.android.gms.ads.internal.client.zzr zzrVar = ((zzffo) zzerdVar).f7304a;
Bundle a2 = zzdwo.a(new Pair("api-call", Long.valueOf(zzmVar.zzz)), new Pair("dynamite-enter", Long.valueOf(com.google.android.gms.ads.internal.zzt.zzk().currentTimeMillis())));
zzfij zzfijVar = this.h;
zzfijVar.f7389c = str;
zzfijVar.b = zzrVar;
zzfijVar.f7388a = zzmVar;
zzfijVar.t = a2;
zzfik a3 = zzfijVar.a();
int b = zzfnn.b(a3);
Context context = this.f7312a;
zzfne p = a.p(context, b, 4, zzmVar);
boolean booleanValue2 = ((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.t9)).booleanValue();
zzeqp zzeqpVar = this.d;
if (booleanValue2) {
zzdky o = zzclgVar.o();
zzczs zzczsVar = new zzczs();
zzczsVar.f5634a = context;
zzczsVar.b = a3;
((zzcnn) o).e = new zzczt(zzczsVar);
zzdgj zzdgjVar = new zzdgj();
zzdgjVar.d(zzeqpVar, executor);
zzdgjVar.b(zzeqpVar, executor);
zzcnn zzcnnVar = (zzcnn) o;
zzcnnVar.d = new zzdgk(zzdgjVar);
zzcnnVar.f = new zzeow(this.f);
zzh = zzcnnVar.zzh();
} else {
zzdgj zzdgjVar2 = new zzdgj();
HashSet hashSet = zzdgjVar2.h;
HashSet hashSet2 = zzdgjVar2.e;
zzfgv zzfgvVar = this.e;
if (zzfgvVar != null) {
hashSet2.add(new zzdij(zzfgvVar, executor));
hashSet.add(new zzdij(zzfgvVar, executor));
zzdgjVar2.a(zzfgvVar, executor);
}
zzdky o2 = zzclgVar.o();
zzczs zzczsVar2 = new zzczs();
zzczsVar2.f5634a = context;
zzczsVar2.b = a3;
((zzcnn) o2).e = new zzczt(zzczsVar2);
zzdgjVar2.d(zzeqpVar, executor);
hashSet2.add(new zzdij(zzeqpVar, executor));
hashSet.add(new zzdij(zzeqpVar, executor));
zzdgjVar2.a(zzeqpVar, executor);
zzdgjVar2.f5778c.add(new zzdij(zzeqpVar, executor));
zzdgjVar2.c(zzeqpVar, executor);
zzdgjVar2.b(zzeqpVar, executor);
zzdgjVar2.m.add(new zzdij(zzeqpVar, executor));
zzdgjVar2.l.add(new zzdij(zzeqpVar, executor));
zzcnn zzcnnVar2 = (zzcnn) o2;
zzcnnVar2.d = new zzdgk(zzdgjVar2);
zzcnnVar2.f = new zzeow(this.f);
zzh = zzcnnVar2.zzh();
}
zzdkz zzdkzVar = zzh;
if (((Boolean) zzbid.f4704c.c()).booleanValue()) {
zzfnoVar = zzdkzVar.c();
zzfnoVar.i(4);
zzfnoVar.c(zzmVar.zzp);
zzfnoVar.d(zzmVar.zzm);
} else {
zzfnoVar = null;
}
zzfno zzfnoVar2 = zzfnoVar;
zzcwo b2 = zzdkzVar.b();
zzfmb c2 = b2.c(b2.b());
this.i = c2;
c2.k(new zzgyk(c2, new zzfft(this, zzereVar, zzfnoVar2, p, zzdkzVar)), executor);
return true;
}
public final boolean b() {
zzfmb zzfmbVar = this.i;
if (zzfmbVar != null && !zzfmbVar.g.isDone()) {
return true;
}
return false;
}
}