* 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>
129 lines
5.9 KiB
Java
129 lines
5.9 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
import j$.util.Objects;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzghq {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzgls f7962a;
|
|
public final zzgje b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final zzgjv f7963c;
|
|
public final zzgnc d;
|
|
public final zzgbj e;
|
|
public final boolean f;
|
|
public final long g;
|
|
public final long h;
|
|
|
|
public zzghq(zzgls zzglsVar, zzgje zzgjeVar, zzgjv zzgjvVar, zzgnc zzgncVar, zzgbj zzgbjVar, boolean z, long j, long j2) {
|
|
this.f7962a = zzglsVar;
|
|
this.b = zzgjeVar;
|
|
this.f7963c = zzgjvVar;
|
|
this.d = zzgncVar;
|
|
this.e = zzgbjVar;
|
|
this.f = z;
|
|
this.g = j;
|
|
this.h = j2;
|
|
}
|
|
|
|
public final zzgye a() {
|
|
zzgye r = zzgye.r(this.f7963c.zzb());
|
|
zzghf zzghfVar = zzghf.f7951a;
|
|
zzgyb zzgybVar = zzgyb.f8301c;
|
|
zzgye zzgyeVar = (zzgye) zzgym.e(r, Throwable.class, zzghfVar, zzgybVar);
|
|
final zzgls zzglsVar = this.f7962a;
|
|
Objects.requireNonNull(zzglsVar);
|
|
return (zzgye) zzgym.h((zzgye) zzgym.i(zzgyeVar, new zzgpr() { // from class: com.google.android.gms.internal.ads.zzghe
|
|
@Override // com.google.android.gms.internal.ads.zzgpr
|
|
public final /* synthetic */ Object apply(Object obj) {
|
|
return new Boolean(zzgls.this.b((zzgcs) obj));
|
|
}
|
|
}, zzgybVar), new zzgxu() { // from class: com.google.android.gms.internal.ads.zzghg
|
|
@Override // com.google.android.gms.internal.ads.zzgxu
|
|
public final /* synthetic */ ListenableFuture zza(Object obj) {
|
|
boolean booleanValue = ((Boolean) obj).booleanValue();
|
|
zzghq zzghqVar = zzghq.this;
|
|
if (!booleanValue) {
|
|
zzghqVar.d.b(1003);
|
|
return zzgym.a(zzghp.f);
|
|
}
|
|
return zzghqVar.b(0);
|
|
}
|
|
}, zzgybVar);
|
|
}
|
|
|
|
public final zzgye b(final int i) {
|
|
zzgye r = zzgye.r(this.b.zza());
|
|
zzgpr zzgprVar = new zzgpr() { // from class: com.google.android.gms.internal.ads.zzghh
|
|
@Override // com.google.android.gms.internal.ads.zzgpr
|
|
public final Object apply(Object obj) {
|
|
zzgcq zzgcqVar = (zzgcq) obj;
|
|
zzgnc zzgncVar = zzghq.this.d;
|
|
int K = zzgcqVar.K() - 1;
|
|
if (K != 1 && K != 2) {
|
|
if (K != 3) {
|
|
if (K != 12) {
|
|
int K2 = zzgcqVar.K() - 1;
|
|
StringBuilder sb = new StringBuilder(String.valueOf(K2).length());
|
|
sb.append(K2);
|
|
zzgncVar.c(1005, sb.toString());
|
|
int K3 = zzgcqVar.K() - 1;
|
|
throw new RuntimeException(androidx.work.impl.workers.a.r(K3, "r: ", new StringBuilder(String.valueOf(K3).length() + 3)));
|
|
}
|
|
int K4 = zzgcqVar.K() - 1;
|
|
StringBuilder sb2 = new StringBuilder(String.valueOf(K4).length());
|
|
sb2.append(K4);
|
|
zzgncVar.c(1005, sb2.toString());
|
|
int K5 = zzgcqVar.K() - 1;
|
|
throw new RuntimeException(androidx.work.impl.workers.a.r(K5, "r: ", new StringBuilder(String.valueOf(K5).length() + 3)));
|
|
}
|
|
int K6 = zzgcqVar.K() - 1;
|
|
StringBuilder sb3 = new StringBuilder(String.valueOf(K6).length());
|
|
sb3.append(K6);
|
|
zzgncVar.c(1004, sb3.toString());
|
|
int K7 = zzgcqVar.K() - 1;
|
|
throw new RuntimeException(androidx.work.impl.workers.a.r(K7, "r: ", new StringBuilder(String.valueOf(K7).length() + 3)));
|
|
}
|
|
return zzgcqVar;
|
|
}
|
|
};
|
|
zzgyb zzgybVar = zzgyb.f8301c;
|
|
zzgye zzgyeVar = (zzgye) zzgym.e((zzgye) zzgym.e((zzgye) zzgym.e((zzgye) zzgym.i((zzgye) zzgym.h((zzgye) zzgym.i(r, zzgprVar, zzgybVar), new zzgxu() { // from class: com.google.android.gms.internal.ads.zzghi
|
|
@Override // com.google.android.gms.internal.ads.zzgxu
|
|
public final /* synthetic */ ListenableFuture zza(Object obj) {
|
|
zzgcq zzgcqVar = (zzgcq) obj;
|
|
zzgjv zzgjvVar = zzghq.this.f7963c;
|
|
if (zzgcqVar.K() == 2) {
|
|
return zzgjvVar.b(zzgcqVar.D(), zzgcqVar.E().E());
|
|
}
|
|
if (zzgcqVar.K() == 3) {
|
|
return zzgjvVar.a(zzgcqVar.D(), zzgcqVar.F().E(), zzgcqVar.E().E());
|
|
}
|
|
throw new AssertionError("Unreachable");
|
|
}
|
|
}, zzgybVar), zzghj.f7955a, zzgybVar), zzghc.class, zzghk.f7956a, zzgybVar), zzghd.class, zzghl.f7957a, zzgybVar), zzghb.class, new zzgpr() { // from class: com.google.android.gms.internal.ads.zzghm
|
|
@Override // com.google.android.gms.internal.ads.zzgpr
|
|
public final /* synthetic */ Object apply(Object obj) {
|
|
final zzghq zzghqVar = zzghq.this;
|
|
if (zzghqVar.f) {
|
|
final int i2 = i;
|
|
if (i2 < zzghqVar.g) {
|
|
zzghqVar.e.a(new Runnable() { // from class: com.google.android.gms.internal.ads.zzghn
|
|
@Override // java.lang.Runnable
|
|
public final /* synthetic */ void run() {
|
|
zzghq.this.b(i2 + 1);
|
|
}
|
|
}, zzghqVar.h * ((long) Math.pow(2.0d, i2)));
|
|
}
|
|
}
|
|
return zzghp.j;
|
|
}
|
|
}, zzgybVar);
|
|
this.d.e(1002, zzgyeVar);
|
|
return zzgyeVar;
|
|
}
|
|
}
|