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

159 lines
5.3 KiB
Java

package com.google.android.gms.internal.ads;
/* loaded from: classes.dex */
final class zzakn implements zzafr {
/* renamed from: a, reason: collision with root package name */
public final long f4129a;
public final zzako[] b;
/* renamed from: c, reason: collision with root package name */
public final int f4130c;
public zzakn(long j, zzako[] zzakoVarArr, int i) {
this.f4129a = j;
this.b = zzakoVarArr;
this.f4130c = i;
}
/* JADX WARN: Removed duplicated region for block: B:25:0x0062 */
/* JADX WARN: Removed duplicated region for block: B:50:0x00c1 */
/* JADX WARN: Removed duplicated region for block: B:52:0x00c7 */
@Override // com.google.android.gms.internal.ads.zzafr
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.google.android.gms.internal.ads.zzafp b(long r23) {
/*
r22 = this;
r0 = r22
r1 = r23
com.google.android.gms.internal.ads.zzako[] r3 = r0.b
int r4 = r3.length
com.google.android.gms.internal.ads.zzafs r5 = com.google.android.gms.internal.ads.zzafs.f3986c
if (r4 != 0) goto L11
com.google.android.gms.internal.ads.zzafp r1 = new com.google.android.gms.internal.ads.zzafp
r1.<init>(r5, r5)
return r1
L11:
r4 = -1
int r10 = r0.f4130c
if (r10 == r4) goto L4f
r11 = r3[r10]
com.google.android.gms.internal.ads.zzaky r11 = r11.b
int r12 = r11.a(r1)
if (r12 != r4) goto L24
int r12 = r11.b(r1)
L24:
if (r12 != r4) goto L2c
com.google.android.gms.internal.ads.zzafp r1 = new com.google.android.gms.internal.ads.zzafp
r1.<init>(r5, r5)
return r1
L2c:
long[] r5 = r11.f
r13 = r5[r12]
long[] r15 = r11.f4148c
r16 = r15[r12]
int r18 = (r13 > r1 ? 1 : (r13 == r1 ? 0 : -1))
if (r18 >= 0) goto L55
int r6 = r11.b
int r6 = r6 + r4
if (r12 >= r6) goto L55
int r1 = r11.b(r1)
if (r1 == r4) goto L55
if (r1 == r12) goto L55
r6 = r5[r1]
r1 = r15[r1]
r20 = r6
r6 = r1
r1 = r20
goto L5c
L4f:
r16 = 9223372036854775807(0x7fffffffffffffff, double:NaN)
r13 = r1
L55:
r1 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
r6 = -1
L5c:
r5 = 0
r11 = r16
L5f:
int r15 = r3.length
if (r5 >= r15) goto Lb3
if (r5 == r10) goto La4
r15 = r3[r5]
com.google.android.gms.internal.ads.zzaky r15 = r15.b
r16 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
long[] r8 = r15.f4148c
int r9 = r15.a(r13)
if (r9 != r4) goto L79
int r9 = r15.b(r13)
L79:
if (r9 != r4) goto L7e
r19 = r5
goto L86
L7e:
r19 = r5
r4 = r8[r9]
long r11 = java.lang.Math.min(r4, r11)
L86:
int r4 = (r1 > r16 ? 1 : (r1 == r16 ? 0 : -1))
if (r4 == 0) goto La1
int r4 = r15.a(r1)
r5 = -1
if (r4 != r5) goto L95
int r4 = r15.b(r1)
L95:
if (r4 != r5) goto L99
r9 = r3
goto Lad
L99:
r9 = r3
r3 = r8[r4]
long r6 = java.lang.Math.min(r3, r6)
goto Lad
La1:
r9 = r3
r5 = -1
goto Lad
La4:
r9 = r3
r19 = r5
r16 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
r5 = r4
Lad:
int r3 = r19 + 1
r4 = r5
r5 = r3
r3 = r9
goto L5f
Lb3:
r16 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
com.google.android.gms.internal.ads.zzafs r3 = new com.google.android.gms.internal.ads.zzafs
r3.<init>(r13, r11)
int r4 = (r1 > r16 ? 1 : (r1 == r16 ? 0 : -1))
if (r4 != 0) goto Lc7
com.google.android.gms.internal.ads.zzafp r1 = new com.google.android.gms.internal.ads.zzafp
r1.<init>(r3, r3)
return r1
Lc7:
com.google.android.gms.internal.ads.zzafs r4 = new com.google.android.gms.internal.ads.zzafs
r4.<init>(r1, r6)
com.google.android.gms.internal.ads.zzafp r1 = new com.google.android.gms.internal.ads.zzafp
r1.<init>(r3, r4)
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzakn.b(long):com.google.android.gms.internal.ads.zzafp");
}
@Override // com.google.android.gms.internal.ads.zzafr
public final long zza() {
return this.f4129a;
}
@Override // com.google.android.gms.internal.ads.zzafr
public final boolean zzb() {
return true;
}
}