* 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>
108 lines
4.4 KiB
Java
108 lines
4.4 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.util.Pair;
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzfhe implements zzerf {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Context f7351a;
|
|
public final Executor b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final zzclg f7352c;
|
|
public final zzfgv d;
|
|
public final zzffj e;
|
|
public final zzfid f;
|
|
public final zzfnr g;
|
|
public final zzfij h;
|
|
public ListenableFuture i;
|
|
|
|
public zzfhe(Context context, Executor executor, zzclg zzclgVar, zzffj zzffjVar, zzfgv zzfgvVar, zzfij zzfijVar, zzfid zzfidVar) {
|
|
this.f7351a = context;
|
|
this.b = executor;
|
|
this.f7352c = zzclgVar;
|
|
this.e = zzffjVar;
|
|
this.d = zzfgvVar;
|
|
this.h = zzfijVar;
|
|
this.f = zzfidVar;
|
|
this.g = zzclgVar.z();
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r5v2, types: [com.google.android.gms.internal.ads.zzfhd, java.lang.Object, com.google.android.gms.internal.ads.zzffh] */
|
|
public final boolean a(com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzerd zzerdVar, zzere zzereVar) {
|
|
zzfno zzfnoVar;
|
|
zzbzt zzbztVar = new zzbzt(zzmVar, str);
|
|
Executor executor = this.b;
|
|
String str2 = zzbztVar.f;
|
|
if (str2 == 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 rewarded video ad.");
|
|
executor.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzfhc
|
|
@Override // java.lang.Runnable
|
|
public final /* synthetic */ void run() {
|
|
zzfhe.this.d.S(zzfjm.d(6, null, null));
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
ListenableFuture listenableFuture = this.i;
|
|
if (listenableFuture != null && !listenableFuture.isDone()) {
|
|
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) zzbid.f4704c.c()).booleanValue();
|
|
zzffj zzffjVar = this.e;
|
|
com.google.android.gms.ads.internal.client.zzm zzmVar2 = zzbztVar.f4990c;
|
|
if (booleanValue && zzffjVar.zzd() != null) {
|
|
zzfnoVar = ((zzcnz) ((zzdtj) zzffjVar.zzd())).zzd();
|
|
zzfnoVar.i(5);
|
|
zzfnoVar.c(zzmVar2.zzp);
|
|
zzfnoVar.d(zzmVar2.zzm);
|
|
} else {
|
|
zzfnoVar = null;
|
|
}
|
|
boolean z = zzmVar2.zzf;
|
|
Context context = this.f7351a;
|
|
zzfjh.b(context, z);
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.la)).booleanValue() && z) {
|
|
this.f7352c.y().b(true);
|
|
}
|
|
Bundle a2 = zzdwo.a(new Pair("api-call", Long.valueOf(zzmVar2.zzz)), new Pair("dynamite-enter", Long.valueOf(com.google.android.gms.ads.internal.zzt.zzk().currentTimeMillis())));
|
|
zzfij zzfijVar = this.h;
|
|
zzfijVar.f7389c = str2;
|
|
zzfijVar.b = com.google.android.gms.ads.internal.client.zzr.zzc();
|
|
zzfijVar.f7388a = zzmVar2;
|
|
zzfijVar.t = a2;
|
|
zzfik a3 = zzfijVar.a();
|
|
zzfne p = a.p(context, zzfnn.b(a3), 5, zzmVar2);
|
|
?? obj = new Object();
|
|
obj.f7350a = a3;
|
|
ListenableFuture a4 = zzffjVar.a(new zzffk(obj, null), new zzffi() { // from class: com.google.android.gms.internal.ads.zzfhb
|
|
@Override // com.google.android.gms.internal.ads.zzffi
|
|
public final /* synthetic */ zzczq a(zzffh zzffhVar) {
|
|
return zzfhe.this.b(zzffhVar);
|
|
}
|
|
});
|
|
this.i = a4;
|
|
a4.k(new zzgyk(a4, new zzfha(this, zzereVar, zzfnoVar, p, obj)), executor);
|
|
return true;
|
|
}
|
|
|
|
public final zzdti b(zzffh zzffhVar) {
|
|
zzdti r = this.f7352c.r();
|
|
zzczs zzczsVar = new zzczs();
|
|
zzczsVar.f5634a = this.f7351a;
|
|
zzczsVar.b = ((zzfhd) zzffhVar).f7350a;
|
|
zzczsVar.d = this.f;
|
|
((zzcny) r).e = new zzczt(zzczsVar);
|
|
((zzcny) r).d = new zzdgk(new zzdgj());
|
|
return r;
|
|
}
|
|
}
|