soul-browser/sources/java/com/google/android/gms/internal/ads/zzeoi.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

96 lines
3.8 KiB
Java

package com.google.android.gms.internal.ads;
import android.os.Bundle;
import com.google.ads.mediation.admob.AdMobAdapter;
import com.google.common.util.concurrent.ListenableFuture;
import j$.util.Objects;
import java.util.Collections;
import java.util.Iterator;
/* loaded from: classes.dex */
public final class zzeoi implements zzejg {
/* renamed from: a, reason: collision with root package name */
public final zzeji f6753a;
public final zzejm b;
/* renamed from: c, reason: collision with root package name */
public final zzfmu f6754c;
public final zzgyw d;
public zzeoi(zzfmu zzfmuVar, zzgyw zzgywVar, zzeji zzejiVar, zzejm zzejmVar) {
this.f6754c = zzfmuVar;
this.d = zzgywVar;
this.b = zzejmVar;
this.f6753a = zzejiVar;
}
public static final String c(int i, String str) {
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 20 + String.valueOf(i).length());
sb.append("Error from: ");
sb.append(str);
sb.append(", code: ");
sb.append(i);
return sb.toString();
}
/* JADX WARN: Type inference failed for: r3v0, types: [com.google.android.gms.internal.ads.zzbcc, com.google.android.gms.internal.ads.zzdbu] */
@Override // com.google.android.gms.internal.ads.zzejg
public final ListenableFuture a(final zzfic zzficVar, final zzfhr zzfhrVar) {
final zzejj zzejjVar;
Iterator it = zzfhrVar.t.iterator();
while (true) {
if (it.hasNext()) {
try {
zzejjVar = this.f6753a.a(zzfhrVar.v, (String) it.next());
break;
} catch (zzfir unused) {
}
} else {
zzejjVar = null;
break;
}
}
if (zzejjVar == null) {
return zzgym.b(new zzebr(3, "Unable to instantiate mediation adapter class."));
}
zzcdt zzcdtVar = new zzcdt();
zzejjVar.f6560c.r2(new zzeof(this, zzejjVar, zzcdtVar));
if (zzfhrVar.M) {
Bundle bundle = zzficVar.f7383a.f7378a.d.zzm;
Bundle bundle2 = bundle.getBundle(AdMobAdapter.class.getName());
if (bundle2 == null) {
bundle2 = new Bundle();
bundle.putBundle(AdMobAdapter.class.getName(), bundle2);
}
bundle2.putBoolean("render_test_ad_label", true);
}
zzfmu zzfmuVar = this.f6754c;
Objects.requireNonNull(zzfmuVar);
zzfme zzfmeVar = new zzfme(new zzfma() { // from class: com.google.android.gms.internal.ads.zzeoh
@Override // com.google.android.gms.internal.ads.zzfma
public final /* synthetic */ void zza() {
zzeoi.this.b.a(zzficVar, zzfhrVar, zzejjVar);
}
});
zzfml zzfmlVar = new zzfml(zzfmuVar, zzfmo.ADAPTER_LOAD_AD_SYN, null, zzfmm.d, Collections.EMPTY_LIST, this.d.v0(zzfmeVar));
zzfml a2 = zzfmlVar.f.a(zzfmlVar.d(), zzfmo.ADAPTER_LOAD_AD_ACK);
zzfmh zzfmhVar = new zzfmh(zzcdtVar);
zzgyw zzgywVar = zzcdo.g;
zzfml zzfmlVar2 = new zzfml(a2.f, a2.f7479a, a2.b, a2.f7480c, a2.d, zzgym.h(a2.e, zzfmhVar, zzgywVar));
return zzfmlVar2.f.a(zzfmlVar2.d(), zzfmo.ADAPTER_WRAP_ADAPTER).a(new zzflu() { // from class: com.google.android.gms.internal.ads.zzeog
@Override // com.google.android.gms.internal.ads.zzflu
public final /* synthetic */ Object zza(Object obj) {
return zzeoi.this.b.b(zzficVar, zzfhrVar, zzejjVar);
}
}).d();
}
@Override // com.google.android.gms.internal.ads.zzejg
public final boolean b(zzfic zzficVar, zzfhr zzfhrVar) {
if (!zzfhrVar.t.isEmpty()) {
return true;
}
return false;
}
}