* 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>
159 lines
8.1 KiB
Java
159 lines
8.1 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.os.Bundle;
|
|
import android.os.RemoteException;
|
|
import java.util.Arrays;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzgnw implements zzgnu {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzgom f8168a;
|
|
|
|
public zzgnw(zzgom zzgomVar) {
|
|
this.f8168a = zzgomVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgnu
|
|
public final void a(zzgot zzgotVar, zzgor zzgorVar) {
|
|
this.f8168a.a(zzgotVar, zzgorVar, 2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgnu
|
|
public final void b(final zzgoo zzgooVar, final zzgor zzgorVar) {
|
|
final zzgom zzgomVar = this.f8168a;
|
|
zzgpd zzgpdVar = zzgomVar.f8184a;
|
|
if (zzgpdVar == null) {
|
|
zzgom.f8183c.c("error: %s", "Play Store not found.");
|
|
} else {
|
|
if (!zzgom.c(zzgorVar, "Failed to apply OverlayDisplayShowRequest: missing appId and sessionToken.", Arrays.asList(null, zzgooVar.b()))) {
|
|
return;
|
|
}
|
|
zzgpdVar.a(new zzgoz(zzgpdVar, new Runnable() { // from class: com.google.android.gms.internal.ads.zzgoj
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzgoo zzgooVar2 = zzgooVar;
|
|
zzgor zzgorVar2 = zzgorVar;
|
|
zzgom zzgomVar2 = zzgom.this;
|
|
String str = zzgomVar2.b;
|
|
try {
|
|
zzgpd zzgpdVar2 = zzgomVar2.f8184a;
|
|
if (zzgpdVar2 != null) {
|
|
zzgnh zzgnhVar = zzgpdVar2.j;
|
|
if (zzgnhVar == null) {
|
|
return;
|
|
}
|
|
final Bundle bundle = new Bundle();
|
|
bundle.putString("callerPackage", str);
|
|
bundle.putBinder("windowToken", zzgooVar2.a());
|
|
zzgom.b(zzgooVar2.f(), new zzgol() { // from class: com.google.android.gms.internal.ads.zzgob
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("adFieldEnifd", str2);
|
|
}
|
|
});
|
|
bundle.putInt("layoutGravity", zzgooVar2.c());
|
|
bundle.putFloat("layoutVerticalMargin", zzgooVar2.d());
|
|
bundle.putInt("displayMode", 0);
|
|
bundle.putInt("triggerMode", 0);
|
|
bundle.putInt("windowWidthPx", zzgooVar2.e());
|
|
zzgom.b(null, new zzgol() { // from class: com.google.android.gms.internal.ads.zzgoc
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("deeplinkUrl", str2);
|
|
}
|
|
});
|
|
zzgom.b(null, new zzgol() { // from class: com.google.android.gms.internal.ads.zzgod
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("sessionToken", str2);
|
|
}
|
|
});
|
|
zzgom.b(zzgooVar2.b(), new zzgol() { // from class: com.google.android.gms.internal.ads.zzgoe
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("appId", str2);
|
|
}
|
|
});
|
|
zzgom.b(null, new zzgol() { // from class: com.google.android.gms.internal.ads.zzgof
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("thirdPartyAuthCallerId", str2);
|
|
}
|
|
});
|
|
bundle.putBoolean("stableSessionToken", true);
|
|
zzgnhVar.m3(str, bundle, new zzgok(zzgomVar2, zzgorVar2));
|
|
return;
|
|
}
|
|
throw null;
|
|
} catch (RemoteException e) {
|
|
zzgom.f8183c.d(e, "show overlay display from: %s", str);
|
|
}
|
|
}
|
|
}));
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgnu
|
|
public final void c(zzgot zzgotVar, zzgor zzgorVar) {
|
|
this.f8168a.a(zzgotVar, zzgorVar, 1);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgnu
|
|
public final void d(final zzgnt zzgntVar, final zzgor zzgorVar) {
|
|
final zzgom zzgomVar = this.f8168a;
|
|
zzgpd zzgpdVar = zzgomVar.f8184a;
|
|
if (zzgpdVar == null) {
|
|
zzgom.f8183c.c("error: %s", "Play Store not found.");
|
|
} else {
|
|
if (!zzgom.c(zzgorVar, "Failed to apply OverlayDisplayDismissRequest: missing appId and sessionToken.", Arrays.asList(zzgntVar.a(), zzgntVar.b()))) {
|
|
return;
|
|
}
|
|
zzgpdVar.a(new zzgoz(zzgpdVar, new Runnable() { // from class: com.google.android.gms.internal.ads.zzgny
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzgnt zzgntVar2 = zzgntVar;
|
|
zzgor zzgorVar2 = zzgorVar;
|
|
zzgom zzgomVar2 = zzgom.this;
|
|
String str = zzgomVar2.b;
|
|
try {
|
|
zzgpd zzgpdVar2 = zzgomVar2.f8184a;
|
|
if (zzgpdVar2 != null) {
|
|
zzgnh zzgnhVar = zzgpdVar2.j;
|
|
if (zzgnhVar == null) {
|
|
return;
|
|
}
|
|
final Bundle bundle = new Bundle();
|
|
bundle.putString("callerPackage", str);
|
|
zzgom.b(zzgntVar2.a(), new zzgol() { // from class: com.google.android.gms.internal.ads.zzgog
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("sessionToken", str2);
|
|
}
|
|
});
|
|
zzgom.b(zzgntVar2.b(), new zzgol() { // from class: com.google.android.gms.internal.ads.zzgoh
|
|
@Override // com.google.android.gms.internal.ads.zzgol
|
|
public final /* synthetic */ void zza(String str2) {
|
|
zzgpe zzgpeVar = zzgom.f8183c;
|
|
bundle.putString("appId", str2);
|
|
}
|
|
});
|
|
zzgnhVar.w0(bundle, new zzgok(zzgomVar2, zzgorVar2));
|
|
return;
|
|
}
|
|
throw null;
|
|
} catch (RemoteException e) {
|
|
zzgom.f8183c.d(e, "dismiss overlay display from: %s", str);
|
|
}
|
|
}
|
|
}));
|
|
}
|
|
}
|
|
}
|