soul-browser/sources/java/com/google/android/gms/internal/ads/zzcgw.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

172 lines
5.5 KiB
Java

package com.google.android.gms.internal.ads;
/* loaded from: classes.dex */
final class zzcgw implements Runnable {
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ String f5141c;
public final /* synthetic */ String f;
public final /* synthetic */ String g;
public final /* synthetic */ String h;
public final /* synthetic */ zzcgx i;
public zzcgw(zzcgx zzcgxVar, String str, String str2, String str3, String str4) {
this.f5141c = str;
this.f = str2;
this.g = str3;
this.h = str4;
this.i = zzcgxVar;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x003b, code lost:
if (r1.equals("expireFailed") != false) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x004f, code lost:
if (r1.equals("externalAbort") != false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x005a, code lost:
r3 = "policy";
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0058, code lost:
if (r1.equals("sizeExceeded") != false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x0069, code lost:
if (r1.equals("downloadTimeout") != false) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0077, code lost:
r3 = "network";
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0075, code lost:
if (r1.equals("badUrl") != false) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0032, code lost:
if (r1.equals("noCacheDir") != false) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x003d, code lost:
r3 = "io";
*/
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
r4 = this;
java.util.HashMap r0 = new java.util.HashMap
r0.<init>()
java.lang.String r1 = "event"
java.lang.String r2 = "precacheCanceled"
r0.put(r1, r2)
java.lang.String r1 = "src"
java.lang.String r2 = r4.f5141c
r0.put(r1, r2)
java.lang.String r1 = r4.f
boolean r2 = android.text.TextUtils.isEmpty(r1)
if (r2 != 0) goto L20
java.lang.String r2 = "cachedSrc"
r0.put(r2, r1)
L20:
java.lang.String r1 = r4.g
int r2 = r1.hashCode()
java.lang.String r3 = "internal"
switch(r2) {
case -1947652542: goto L7a;
case -1396664534: goto L6f;
case -1347010958: goto L6c;
case -918817863: goto L63;
case -659376217: goto L60;
case -642208130: goto L5d;
case -354048396: goto L52;
case -32082395: goto L49;
case 3387234: goto L46;
case 96784904: goto L40;
case 580119100: goto L35;
case 725497484: goto L2c;
default: goto L2b;
}
L2b:
goto L7d
L2c:
java.lang.String r2 = "noCacheDir"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
goto L3d
L35:
java.lang.String r2 = "expireFailed"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
L3d:
java.lang.String r3 = "io"
goto L7d
L40:
java.lang.String r2 = "error"
L42:
r1.equals(r2)
goto L7d
L46:
java.lang.String r2 = "noop"
goto L42
L49:
java.lang.String r2 = "externalAbort"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
goto L5a
L52:
java.lang.String r2 = "sizeExceeded"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
L5a:
java.lang.String r3 = "policy"
goto L7d
L5d:
java.lang.String r2 = "playerFailed"
goto L42
L60:
java.lang.String r2 = "contentLengthMissing"
goto L42
L63:
java.lang.String r2 = "downloadTimeout"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
goto L77
L6c:
java.lang.String r2 = "inProgress"
goto L42
L6f:
java.lang.String r2 = "badUrl"
boolean r2 = r1.equals(r2)
if (r2 == 0) goto L7d
L77:
java.lang.String r3 = "network"
goto L7d
L7a:
java.lang.String r2 = "interrupted"
goto L42
L7d:
java.lang.String r2 = "type"
r0.put(r2, r3)
java.lang.String r2 = "reason"
r0.put(r2, r1)
java.lang.String r1 = r4.h
boolean r2 = android.text.TextUtils.isEmpty(r1)
if (r2 != 0) goto L94
java.lang.String r2 = "message"
r0.put(r2, r1)
L94:
com.google.android.gms.internal.ads.zzcgx r1 = r4.i
r1.q(r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzcgw.run():void");
}
}