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

232 lines
8.6 KiB
Java

package com.google.android.gms.internal.ads;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;
import com.google.android.gms.ads.RequestConfiguration;
import com.google.android.gms.ads.VideoController;
import com.google.android.gms.ads.formats.NativeAd;
import com.google.android.gms.ads.formats.UnifiedNativeAd;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public final class zzblt extends UnifiedNativeAd {
/* renamed from: a, reason: collision with root package name */
public final zzbls f4755a;
/* renamed from: c, reason: collision with root package name */
public final zzbjz f4756c;
public final ArrayList b = new ArrayList();
public final VideoController d = new VideoController();
public final ArrayList e = new ArrayList();
public zzblt(zzbls zzblsVar) {
com.google.android.gms.ads.internal.client.zzdj zzdjVar;
zzbjy zzbjyVar;
this.f4755a = zzblsVar;
zzbjz zzbjzVar = null;
try {
List zzf = zzblsVar.zzf();
if (zzf != null) {
for (Object obj : zzf) {
if (obj instanceof IBinder) {
IBinder iBinder = (IBinder) obj;
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeAdImage");
if (queryLocalInterface instanceof zzbjy) {
zzbjyVar = (zzbjy) queryLocalInterface;
} else {
zzbjyVar = new zzbjw(iBinder);
}
} else {
zzbjyVar = null;
}
if (zzbjyVar != null) {
this.b.add(new zzbjz(zzbjyVar));
}
}
}
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
}
try {
List zzz = this.f4755a.zzz();
if (zzz != null) {
for (Object obj2 : zzz) {
if (obj2 instanceof IBinder) {
zzdjVar = com.google.android.gms.ads.internal.client.zzdi.zzb((IBinder) obj2);
} else {
zzdjVar = null;
}
if (zzdjVar != null) {
this.e.add(new com.google.android.gms.ads.internal.client.zzdk(zzdjVar));
}
}
}
} catch (RemoteException e2) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e2);
}
try {
zzbjy zzh = this.f4755a.zzh();
if (zzh != null) {
zzbjzVar = new zzbjz(zzh);
}
} catch (RemoteException e3) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e3);
}
this.f4756c = zzbjzVar;
try {
if (this.f4755a.zzq() != null) {
new zzbjs(this.f4755a.zzq());
}
} catch (RemoteException e4) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e4);
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final void performClick(Bundle bundle) {
try {
this.f4755a.R3(bundle);
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final boolean recordImpression(Bundle bundle) {
try {
return this.f4755a.c3(bundle);
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return false;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final void reportTouchEvent(Bundle bundle) {
try {
this.f4755a.A2(bundle);
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zza() {
try {
return this.f4755a.zze();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final List zzb() {
return this.b;
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zzc() {
try {
return this.f4755a.zzg();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final NativeAd.Image zzd() {
return this.f4756c;
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zze() {
try {
return this.f4755a.zzi();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zzf() {
try {
return this.f4755a.zzj();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final Double zzg() {
try {
double zzk = this.f4755a.zzk();
if (zzk == -1.0d) {
return null;
}
return Double.valueOf(zzk);
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zzh() {
try {
return this.f4755a.zzl();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final String zzi() {
try {
return this.f4755a.zzm();
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final VideoController zzj() {
VideoController videoController = this.d;
try {
zzbls zzblsVar = this.f4755a;
if (zzblsVar.zzn() != null) {
videoController.zza(zzblsVar.zzn());
return videoController;
}
return videoController;
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg("Exception occurred while getting video controller", e);
return videoController;
}
}
@Override // com.google.android.gms.ads.formats.UnifiedNativeAd
public final Object zzk() {
try {
IObjectWrapper zzv = this.f4755a.zzv();
if (zzv != null) {
return ObjectWrapper.f2(zzv);
}
return null;
} catch (RemoteException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzg(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, e);
return null;
}
}
}