* 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>
183 lines
7.9 KiB
Java
183 lines
7.9 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.ExecutorService;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzgkb implements zzgjw {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzgbr f8040a;
|
|
public final zzgbr b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final zzgbr f8041c;
|
|
public final zzgbr d;
|
|
public final zzija e;
|
|
public final zzija f;
|
|
public final File g;
|
|
public final ExecutorService h;
|
|
public final zzgnc i;
|
|
|
|
public zzgkb(zzgbr zzgbrVar, zzgbr zzgbrVar2, zzija zzijaVar, zzgbr zzgbrVar3, zzgbr zzgbrVar4, zzija zzijaVar2, File file, ExecutorService executorService, zzgnc zzgncVar) {
|
|
this.f8040a = zzgbrVar;
|
|
this.f8041c = zzgbrVar2;
|
|
this.e = zzijaVar;
|
|
this.b = zzgbrVar3;
|
|
this.d = zzgbrVar4;
|
|
this.f = zzijaVar2;
|
|
this.g = file;
|
|
this.h = executorService;
|
|
this.i = zzgncVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgjv
|
|
public final ListenableFuture a(final zzgcs zzgcsVar, byte[] bArr, byte[] bArr2) {
|
|
ListenableFuture b = ((zzgbr) this.f.zzb()).b(bArr);
|
|
zzgnc zzgncVar = this.i;
|
|
zzgncVar.e(15307, b);
|
|
ListenableFuture b2 = this.d.b(bArr2);
|
|
zzgncVar.e(15305, b2);
|
|
return (zzgye) zzgym.h(zzgye.r(new zzgxv(zzgtd.w(new ListenableFuture[]{b, b2}), true)), new zzgxu() { // from class: com.google.android.gms.internal.ads.zzgjz
|
|
@Override // com.google.android.gms.internal.ads.zzgxu
|
|
public final ListenableFuture zza(Object obj) {
|
|
zzgkb zzgkbVar = zzgkb.this;
|
|
ListenableFuture b3 = zzgkbVar.b.b(zzgcsVar);
|
|
zzgkbVar.i.e(15303, b3);
|
|
return b3;
|
|
}
|
|
}, zzgyb.f8301c);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgjv
|
|
public final ListenableFuture b(final zzgcs zzgcsVar, byte[] bArr) {
|
|
ListenableFuture b = this.d.b(bArr);
|
|
this.i.e(15305, b);
|
|
return (zzgye) zzgym.h(zzgye.r(b), new zzgxu() { // from class: com.google.android.gms.internal.ads.zzgjy
|
|
@Override // com.google.android.gms.internal.ads.zzgxu
|
|
public final ListenableFuture zza(Object obj) {
|
|
zzgkb zzgkbVar = zzgkb.this;
|
|
ListenableFuture b2 = zzgkbVar.b.b(zzgcsVar);
|
|
zzgkbVar.i.e(15303, b2);
|
|
return b2;
|
|
}
|
|
}, zzgyb.f8301c);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgjv
|
|
public final ListenableFuture zza() {
|
|
return zzgym.c(new Callable() { // from class: com.google.android.gms.internal.ads.zzgka
|
|
@Override // java.util.concurrent.Callable
|
|
public final Object call() {
|
|
zzgkb zzgkbVar = zzgkb.this;
|
|
zzgnc zzgncVar = zzgkbVar.i;
|
|
zzgbr zzgbrVar = zzgkbVar.b;
|
|
zzgbr zzgbrVar2 = zzgkbVar.d;
|
|
zzija zzijaVar = zzgkbVar.f;
|
|
try {
|
|
File file = zzgbrVar.f7806a;
|
|
File file2 = zzgbrVar.f7806a;
|
|
boolean z = false;
|
|
if (!file.exists()) {
|
|
file2.delete();
|
|
} else {
|
|
File file3 = ((zzgbr) zzijaVar.zzb()).f7806a;
|
|
File file4 = ((zzgbr) zzgkbVar.e.zzb()).f7806a;
|
|
try {
|
|
if (file3.exists()) {
|
|
File parentFile = file4.getParentFile();
|
|
if (parentFile != null) {
|
|
zzfvq.e(parentFile);
|
|
}
|
|
zzgwk.b(file4);
|
|
zzgwk.c(file3, file4);
|
|
}
|
|
File file5 = zzgbrVar2.f7806a;
|
|
File file6 = zzgkbVar.f8041c.f7806a;
|
|
try {
|
|
if (file5.exists()) {
|
|
zzgwk.b(file6);
|
|
zzgwk.c(file5, file6);
|
|
}
|
|
File file7 = zzgkbVar.f8040a.f7806a;
|
|
try {
|
|
if (file.exists()) {
|
|
zzgwk.b(file7);
|
|
zzgwk.c(file, file7);
|
|
}
|
|
file2.delete();
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
z = true;
|
|
} catch (IOException | SecurityException e) {
|
|
zzgncVar.d(15313, e);
|
|
zzgbrVar.f7806a.delete();
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
return new Boolean(z);
|
|
}
|
|
} catch (IOException | SecurityException e2) {
|
|
zzgncVar.d(15312, e2);
|
|
}
|
|
} catch (IOException e3) {
|
|
e = e3;
|
|
zzgncVar.d(15311, e);
|
|
zzgbrVar.f7806a.delete();
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
return new Boolean(z);
|
|
} catch (SecurityException e4) {
|
|
e = e4;
|
|
zzgncVar.d(15311, e);
|
|
zzgbrVar.f7806a.delete();
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
return new Boolean(z);
|
|
}
|
|
return new Boolean(z);
|
|
}
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
return new Boolean(z);
|
|
} catch (Throwable th) {
|
|
zzgbrVar.f7806a.delete();
|
|
((zzgbr) zzijaVar.zzb()).f7806a.delete();
|
|
zzgbrVar2.f7806a.delete();
|
|
throw th;
|
|
}
|
|
}
|
|
}, this.h);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgjv
|
|
public final ListenableFuture zzb() {
|
|
ListenableFuture a2 = this.f8040a.a();
|
|
this.i.e(15302, a2);
|
|
return a2;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzgjw
|
|
public final ListenableFuture zze() {
|
|
zzgye zzgyeVar = (zzgye) zzgym.i(zzgye.r(this.f8040a.a()), new zzgpr() { // from class: com.google.android.gms.internal.ads.zzgjx
|
|
@Override // com.google.android.gms.internal.ads.zzgpr
|
|
public final Object apply(Object obj) {
|
|
zzgcs zzgcsVar = (zzgcs) obj;
|
|
zzgkb zzgkbVar = zzgkb.this;
|
|
zzgkbVar.getClass();
|
|
if (zzgcsVar != null && !zzgcsVar.equals(zzgcs.I())) {
|
|
zzbby D = zzgcsVar.D();
|
|
File file = ((zzgbr) zzgkbVar.e.zzb()).f7806a;
|
|
zzgbr zzgbrVar = zzgkbVar.f8041c;
|
|
return new zzfvo(D, file, zzgbrVar.f7806a, zzgkbVar.g);
|
|
}
|
|
return null;
|
|
}
|
|
}, zzgyb.f8301c);
|
|
this.i.e(15314, zzgyeVar);
|
|
return zzgyeVar;
|
|
}
|
|
}
|