* 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>
209 lines
8.8 KiB
Java
209 lines
8.8 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzfho extends zzbzo {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final zzfhe f7362c;
|
|
public final zzfgv f;
|
|
public final zzfid g;
|
|
public zzdte h;
|
|
public boolean i;
|
|
|
|
public zzfho(zzfhe zzfheVar, zzfgv zzfgvVar, zzfid zzfidVar) {
|
|
super("com.google.android.gms.ads.internal.reward.client.IRewardedVideoAd");
|
|
this.i = false;
|
|
this.f7362c = zzfheVar;
|
|
this.f = zzfgvVar;
|
|
this.g = zzfidVar;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0045, code lost:
|
|
|
|
return;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0042, code lost:
|
|
|
|
if (((java.lang.Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(com.google.android.gms.internal.ads.zzbgk.s6)).booleanValue() == false) goto L18;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x001d, code lost:
|
|
|
|
if (java.util.regex.Pattern.matches(r1, r0) != false) goto L18;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.Object, com.google.android.gms.internal.ads.zzerd] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final synchronized void c5(com.google.android.gms.internal.ads.zzbzt r5) {
|
|
/*
|
|
r4 = this;
|
|
monitor-enter(r4)
|
|
java.lang.String r0 = "loadAd must be called on the main UI thread."
|
|
com.google.android.gms.common.internal.Preconditions.checkMainThread(r0) // Catch: java.lang.Throwable -> L20
|
|
java.lang.String r0 = r5.f // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzbgb r1 = com.google.android.gms.internal.ads.zzbgk.q6 // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzbgi r2 = com.google.android.gms.ads.internal.client.zzbd.zzc() // Catch: java.lang.Throwable -> L20
|
|
java.lang.Object r1 = r2.a(r1) // Catch: java.lang.Throwable -> L20
|
|
java.lang.String r1 = (java.lang.String) r1 // Catch: java.lang.Throwable -> L20
|
|
if (r1 == 0) goto L2c
|
|
if (r0 != 0) goto L19
|
|
goto L2c
|
|
L19:
|
|
boolean r0 = java.util.regex.Pattern.matches(r1, r0) // Catch: java.lang.Throwable -> L20 java.lang.RuntimeException -> L22
|
|
if (r0 == 0) goto L2c
|
|
goto L44
|
|
L20:
|
|
r5 = move-exception
|
|
goto L65
|
|
L22:
|
|
r0 = move-exception
|
|
java.lang.String r1 = "NonagonUtil.isPatternMatched"
|
|
com.google.android.gms.internal.ads.zzcda r2 = com.google.android.gms.ads.internal.zzt.zzh() // Catch: java.lang.Throwable -> L20
|
|
r2.f(r1, r0) // Catch: java.lang.Throwable -> L20
|
|
L2c:
|
|
boolean r0 = r4.g5() // Catch: java.lang.Throwable -> L20
|
|
if (r0 == 0) goto L46
|
|
com.google.android.gms.internal.ads.zzbgb r0 = com.google.android.gms.internal.ads.zzbgk.s6 // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzbgi r1 = com.google.android.gms.ads.internal.client.zzbd.zzc() // Catch: java.lang.Throwable -> L20
|
|
java.lang.Object r0 = r1.a(r0) // Catch: java.lang.Throwable -> L20
|
|
java.lang.Boolean r0 = (java.lang.Boolean) r0 // Catch: java.lang.Throwable -> L20
|
|
boolean r0 = r0.booleanValue() // Catch: java.lang.Throwable -> L20
|
|
if (r0 != 0) goto L46
|
|
L44:
|
|
monitor-exit(r4)
|
|
return
|
|
L46:
|
|
com.google.android.gms.internal.ads.zzfgx r0 = new com.google.android.gms.internal.ads.zzfgx // Catch: java.lang.Throwable -> L20
|
|
r0.<init>() // Catch: java.lang.Throwable -> L20
|
|
r1 = 0
|
|
r4.h = r1 // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzfhe r1 = r4.f7362c // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzfij r2 = r1.h // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzfhx r2 = r2.o // Catch: java.lang.Throwable -> L20
|
|
r3 = 1
|
|
r2.f7376a = r3 // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.ads.internal.client.zzm r2 = r5.f4990c // Catch: java.lang.Throwable -> L20
|
|
java.lang.String r5 = r5.f // Catch: java.lang.Throwable -> L20
|
|
com.google.android.gms.internal.ads.zzfhm r3 = new com.google.android.gms.internal.ads.zzfhm // Catch: java.lang.Throwable -> L20
|
|
r3.<init>(r4) // Catch: java.lang.Throwable -> L20
|
|
r1.a(r2, r5, r0, r3) // Catch: java.lang.Throwable -> L20
|
|
monitor-exit(r4)
|
|
return
|
|
L65:
|
|
monitor-exit(r4) // Catch: java.lang.Throwable -> L20
|
|
throw r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzfho.c5(com.google.android.gms.internal.ads.zzbzt):void");
|
|
}
|
|
|
|
public final synchronized void d5(IObjectWrapper iObjectWrapper) {
|
|
Preconditions.checkMainThread("destroy must be called on the main UI thread.");
|
|
Context context = null;
|
|
this.f.f.set(null);
|
|
if (this.h != null) {
|
|
if (iObjectWrapper != null) {
|
|
context = (Context) ObjectWrapper.f2(iObjectWrapper);
|
|
}
|
|
zzdbj zzdbjVar = this.h.f5507c;
|
|
zzdbjVar.getClass();
|
|
zzdbjVar.s0(new zzdbh(context));
|
|
}
|
|
}
|
|
|
|
public final synchronized void e5(String str) {
|
|
Preconditions.checkMainThread("setUserId must be called on the main UI thread.");
|
|
this.g.f7384a = str;
|
|
}
|
|
|
|
public final synchronized void f5(String str) {
|
|
Preconditions.checkMainThread("#008 Must be called on the main UI thread.: setCustomData");
|
|
this.g.b = str;
|
|
}
|
|
|
|
public final synchronized boolean g5() {
|
|
zzdte zzdteVar = this.h;
|
|
if (zzdteVar != null) {
|
|
if (!zzdteVar.r.f.get()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final synchronized void q3(IObjectWrapper iObjectWrapper) {
|
|
Context context;
|
|
Preconditions.checkMainThread("pause must be called on the main UI thread.");
|
|
if (this.h != null) {
|
|
if (iObjectWrapper == null) {
|
|
context = null;
|
|
} else {
|
|
context = (Context) ObjectWrapper.f2(iObjectWrapper);
|
|
}
|
|
zzdbj zzdbjVar = this.h.f5507c;
|
|
zzdbjVar.getClass();
|
|
zzdbjVar.s0(new zzdbi(context));
|
|
}
|
|
}
|
|
|
|
public final synchronized void s2(IObjectWrapper iObjectWrapper) {
|
|
try {
|
|
Preconditions.checkMainThread("showAd must be called on the main UI thread.");
|
|
if (this.h != null) {
|
|
Activity activity = null;
|
|
if (iObjectWrapper != null) {
|
|
Object f2 = ObjectWrapper.f2(iObjectWrapper);
|
|
if (f2 instanceof Activity) {
|
|
activity = (Activity) f2;
|
|
}
|
|
}
|
|
this.h.c(activity, this.i);
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
public final synchronized void zzc() {
|
|
s2(null);
|
|
}
|
|
|
|
public final synchronized void zzj(IObjectWrapper iObjectWrapper) {
|
|
Context context;
|
|
Preconditions.checkMainThread("resume must be called on the main UI thread.");
|
|
if (this.h != null) {
|
|
if (iObjectWrapper == null) {
|
|
context = null;
|
|
} else {
|
|
context = (Context) ObjectWrapper.f2(iObjectWrapper);
|
|
}
|
|
zzdbj zzdbjVar = this.h.f5507c;
|
|
zzdbjVar.getClass();
|
|
zzdbjVar.s0(new zzdbg(context));
|
|
}
|
|
}
|
|
|
|
public final synchronized String zzl() {
|
|
zzdad zzdadVar;
|
|
zzdte zzdteVar = this.h;
|
|
if (zzdteVar != null && (zzdadVar = zzdteVar.f) != null) {
|
|
return zzdadVar.f5650c;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final synchronized com.google.android.gms.ads.internal.client.zzea zzt() {
|
|
zzdte zzdteVar;
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbd.zzc().a(zzbgk.B7)).booleanValue() && (zzdteVar = this.h) != null) {
|
|
return zzdteVar.f;
|
|
}
|
|
return null;
|
|
}
|
|
}
|