soul-browser/sources/java/com/google/android/gms/internal/ads/zzgaj.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

98 lines
3.4 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import java.util.concurrent.ExecutorService;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zzgaj implements zzgab {
/* renamed from: a, reason: collision with root package name */
public final zzgaj f7773a = this;
public final zzijh b;
/* renamed from: c, reason: collision with root package name */
public final zzijf f7774c;
public final zzijh d;
public final zzijh e;
public final zzijf f;
public final zzijf g;
public final zzijf h;
public final zzijp i;
public final zzijp j;
public final zzijp k;
public final zzijf l;
public final zzijf m;
public final zzijf n;
public final zzijf o;
public final zzijf p;
public final zzijf q;
public final zzijf r;
public zzgaj(Context context, zzgad zzgadVar, ExecutorService executorService) {
zzijh a2 = zzijh.a(context);
this.b = a2;
zzijf a3 = zzijf.a(zzfzn.f7750a);
this.f7774c = a3;
zzijh a4 = zzijh.a(executorService);
this.d = a4;
zzijf a5 = zzijf.a(new zzgmz(a3, a2, a4));
zzijf a6 = zzijf.a(new zzgmn(a2, a4));
zzijf a7 = zzijf.a(new zzgmv(a2, a4));
zzijf a8 = zzijf.a(new zzgbm(zzijf.a(a4), a3));
zzijf a9 = zzijf.a(zzgbp.f7805a);
zzijh a10 = zzijh.a(zzgadVar);
this.e = a10;
zzijf a11 = zzijf.a(new zzgbk(a8, a9, a10));
this.f = a11;
zzijf a12 = zzijf.a(new zzgbd(a4, a10));
this.g = a12;
zzijf a13 = zzijf.a(new zzgcg(a11, a12, a2, a4, a10));
this.h = a13;
int i = zzijs.f9008c;
zzijr zzijrVar = new zzijr(4, 0);
zzijrVar.a(a5);
zzijrVar.a(a6);
zzijrVar.a(a7);
zzijrVar.a(a13);
zzijs c2 = zzijrVar.c();
zzgag zzgagVar = new zzgag(this);
this.i = zzgagVar;
zzijf a14 = zzijf.a(new zzggj(zzgagVar));
zzgah zzgahVar = new zzgah(this);
this.j = zzgahVar;
zzijf a15 = zzijf.a(new zzggl(zzgahVar));
zzgai zzgaiVar = new zzgai(this);
this.k = zzgaiVar;
zzijf a16 = zzijf.a(new zzggn(zzgaiVar));
zzijf a17 = zzijf.a(new zzgnd(a3, a13));
this.l = a17;
zzijf a18 = zzijf.a(new zzgdf(zzijf.a(new zzgdb(a14, a15, a16, a17, a4)), a13, a17, a10, a4));
zzijf a19 = zzijf.a(new zzfzt(a4));
this.m = a19;
zzijf a20 = zzijf.a(new zzgmf(a17, a19, a2, a10));
zzijf a21 = zzijf.a(new zzgmj(a17, a19, a2, a10));
zzijr zzijrVar2 = new zzijr(3, 0);
zzijrVar2.a(a18);
zzijrVar2.a(a20);
zzijrVar2.a(a21);
zzijf a22 = zzijf.a(new zzgce(c2, zzijrVar2.c(), a4, a17));
zzijf a23 = zzijf.a(zzgmp.f8133a);
zzijf a24 = zzijf.a(new zzgms(a3));
zzijr zzijrVar3 = new zzijr(7, 0);
zzijrVar3.a(a23);
zzijrVar3.a(a5);
zzijrVar3.a(a6);
zzijrVar3.a(a24);
zzijrVar3.a(a7);
zzijrVar3.a(a20);
zzijrVar3.a(a21);
zzijf a25 = zzijf.a(new zzgly(a23, zzijrVar3.c()));
this.n = a25;
zzijf a26 = zzijf.a(new zzged(a17));
this.o = a26;
this.p = zzijf.a(new zzfzy(a22, a18, a25, a17, a11, zzijf.a(new zzggh(a17, a26, a2, a10)), a10));
this.q = zzijf.a(new zzfzs(a2));
this.r = zzijf.a(new zzgbs(a4));
}
}