* 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>
138 lines
3.5 KiB
Java
138 lines
3.5 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzaky {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzakv f4147a;
|
|
public final int b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final long[] f4148c;
|
|
public final int[] d;
|
|
public final int e;
|
|
public final long[] f;
|
|
public final int[] g;
|
|
public final int[] h;
|
|
public final long i;
|
|
public final boolean j;
|
|
|
|
public zzaky(zzakv zzakvVar, long[] jArr, int[] iArr, int i, long[] jArr2, int[] iArr2, int[] iArr3, boolean z, long j, int i2) {
|
|
boolean z2;
|
|
boolean z3;
|
|
int length = iArr.length;
|
|
int length2 = jArr2.length;
|
|
if (length == length2) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
zzgqa.a(z2);
|
|
if (jArr.length == length2) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
zzgqa.a(z3);
|
|
int length3 = iArr2.length;
|
|
zzgqa.a(length3 == length2);
|
|
this.f4147a = zzakvVar;
|
|
this.f4148c = jArr;
|
|
this.d = iArr;
|
|
this.e = i;
|
|
this.f = jArr2;
|
|
this.g = iArr2;
|
|
this.h = iArr3;
|
|
this.j = z;
|
|
this.i = j;
|
|
this.b = i2;
|
|
if (length3 > 0) {
|
|
int i3 = length3 - 1;
|
|
iArr2[i3] = iArr2[i3] | 536870912;
|
|
}
|
|
}
|
|
|
|
public final int a(long j) {
|
|
boolean z = this.j;
|
|
int i = 0;
|
|
long[] jArr = this.f;
|
|
if (z) {
|
|
return zzfj.q(jArr, j, false);
|
|
}
|
|
int[] iArr = this.h;
|
|
int length = iArr.length - 1;
|
|
int i2 = -1;
|
|
while (i <= length) {
|
|
int i3 = ((length - i) / 2) + i;
|
|
if (jArr[iArr[i3]] <= j) {
|
|
i = i3 + 1;
|
|
i2 = i3;
|
|
} else {
|
|
length = i3 - 1;
|
|
}
|
|
}
|
|
if (i2 == -1) {
|
|
return -1;
|
|
}
|
|
long j2 = jArr[iArr[i2]];
|
|
if (j2 == j) {
|
|
while (i2 > 0) {
|
|
int i4 = i2 - 1;
|
|
if (jArr[iArr[i4]] != j2) {
|
|
break;
|
|
}
|
|
i2 = i4;
|
|
}
|
|
}
|
|
return iArr[i2];
|
|
}
|
|
|
|
public final int b(long j) {
|
|
boolean z = this.j;
|
|
long[] jArr = this.f;
|
|
if (z) {
|
|
String str = zzfj.f7405a;
|
|
int binarySearch = Arrays.binarySearch(jArr, j);
|
|
if (binarySearch < 0) {
|
|
return ~binarySearch;
|
|
}
|
|
while (true) {
|
|
int i = binarySearch + 1;
|
|
if (i >= jArr.length || jArr[i] != j) {
|
|
break;
|
|
}
|
|
binarySearch = i;
|
|
}
|
|
return binarySearch;
|
|
}
|
|
int[] iArr = this.h;
|
|
int length = iArr.length - 1;
|
|
int i2 = 0;
|
|
int i3 = -1;
|
|
while (i2 <= length) {
|
|
int i4 = ((length - i2) / 2) + i2;
|
|
if (jArr[iArr[i4]] >= j) {
|
|
length = i4 - 1;
|
|
i3 = i4;
|
|
} else {
|
|
i2 = i4 + 1;
|
|
}
|
|
}
|
|
if (i3 == -1) {
|
|
return -1;
|
|
}
|
|
long j2 = jArr[iArr[i3]];
|
|
if (j2 == j) {
|
|
while (i3 < iArr.length - 1) {
|
|
int i5 = i3 + 1;
|
|
if (jArr[iArr[i5]] != j2) {
|
|
break;
|
|
}
|
|
i3 = i5;
|
|
}
|
|
}
|
|
return iArr[i3];
|
|
}
|
|
}
|