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

104 lines
3.9 KiB
Java

package com.google.android.gms.internal.ads;
import java.io.File;
/* loaded from: classes.dex */
public final class zzfvo {
/* renamed from: a, reason: collision with root package name */
public final zzbby f7686a;
public final File b;
/* renamed from: c, reason: collision with root package name */
public final File f7687c;
public final File d;
public byte[] e;
public zzfvo(zzbby zzbbyVar, File file, File file2, File file3) {
this.f7686a = zzbbyVar;
this.b = file;
this.f7687c = file3;
this.d = file2;
}
/* JADX WARN: Removed duplicated region for block: B:39:0x005c A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:40:0x005d */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final byte[] a() {
/*
r9 = this;
byte[] r0 = r9.e
r1 = 0
if (r0 != 0) goto L58
java.io.File r0 = r9.d
java.io.FileInputStream r2 = new java.io.FileInputStream // Catch: java.lang.Throwable -> L4c java.io.IOException -> L51
r2.<init>(r0) // Catch: java.lang.Throwable -> L4c java.io.IOException -> L51
com.google.android.gms.internal.ads.zzhzl r0 = com.google.android.gms.internal.ads.zzhzl.f // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
java.util.ArrayList r0 = new java.util.ArrayList // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
r0.<init>() // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
r3 = 256(0x100, float:3.59E-43)
L15:
byte[] r4 = new byte[r3] // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
r5 = 0
r6 = r5
L19:
if (r6 >= r3) goto L29
int r7 = r3 - r6
int r7 = r2.read(r4, r6, r7) // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
r8 = -1
if (r7 != r8) goto L25
goto L29
L25:
int r6 = r6 + r7
goto L19
L27:
r0 = move-exception
goto L4a
L29:
if (r6 != 0) goto L2d
r4 = r1
goto L31
L2d:
com.google.android.gms.internal.ads.zzhzl r4 = com.google.android.gms.internal.ads.zzhzl.B(r4, r5, r6) // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
L31:
if (r4 != 0) goto L3f
com.google.android.gms.internal.ads.zzhzl r0 = com.google.android.gms.internal.ads.zzhzl.D(r0) // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
byte[] r0 = r0.E() // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
com.google.android.gms.common.util.IOUtils.closeQuietly(r2)
goto L56
L3f:
r0.add(r4) // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
int r3 = r3 + r3
r4 = 8192(0x2000, float:1.148E-41)
int r3 = java.lang.Math.min(r3, r4) // Catch: java.lang.Throwable -> L27 java.io.IOException -> L52
goto L15
L4a:
r1 = r2
goto L4d
L4c:
r0 = move-exception
L4d:
com.google.android.gms.common.util.IOUtils.closeQuietly(r1)
throw r0
L51:
r2 = r1
L52:
com.google.android.gms.common.util.IOUtils.closeQuietly(r2)
r0 = r1
L56:
r9.e = r0
L58:
byte[] r0 = r9.e
if (r0 != 0) goto L5d
return r1
L5d:
int r1 = r0.length
byte[] r0 = java.util.Arrays.copyOf(r0, r1)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzfvo.a():byte[]");
}
}