* 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>
193 lines
5.9 KiB
Java
193 lines
5.9 KiB
Java
package com.google.android.gms.internal.drive;
|
|
|
|
import com.google.android.gms.internal.ads.a;
|
|
import java.nio.charset.Charset;
|
|
import java.util.AbstractList;
|
|
import java.util.Arrays;
|
|
import java.util.Collection;
|
|
import java.util.RandomAccess;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class zzkl extends zziw<Integer> implements zzkp<Integer>, zzmc, RandomAccess {
|
|
public int[] f;
|
|
public int g;
|
|
|
|
static {
|
|
new zzkl(0, new int[0]).f10199c = false;
|
|
}
|
|
|
|
public zzkl(int i, int[] iArr) {
|
|
this.f = iArr;
|
|
this.g = i;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractList, java.util.List
|
|
public final void add(int i, Object obj) {
|
|
int i2;
|
|
int intValue = ((Integer) obj).intValue();
|
|
a();
|
|
if (i >= 0 && i <= (i2 = this.g)) {
|
|
int[] iArr = this.f;
|
|
if (i2 < iArr.length) {
|
|
System.arraycopy(iArr, i, iArr, i + 1, i2 - i);
|
|
} else {
|
|
int[] iArr2 = new int[a.d(i2, 3, 2, 1)];
|
|
System.arraycopy(iArr, 0, iArr2, 0, i);
|
|
System.arraycopy(this.f, i, iArr2, i + 1, this.g - i);
|
|
this.f = iArr2;
|
|
}
|
|
this.f[i] = intValue;
|
|
this.g++;
|
|
((AbstractList) this).modCount++;
|
|
return;
|
|
}
|
|
throw new IndexOutOfBoundsException(g(i));
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public final boolean addAll(Collection collection) {
|
|
a();
|
|
Charset charset = zzkm.f10222a;
|
|
collection.getClass();
|
|
if (!(collection instanceof zzkl)) {
|
|
return super.addAll(collection);
|
|
}
|
|
zzkl zzklVar = (zzkl) collection;
|
|
int i = zzklVar.g;
|
|
if (i == 0) {
|
|
return false;
|
|
}
|
|
int i2 = this.g;
|
|
if (Integer.MAX_VALUE - i2 >= i) {
|
|
int i3 = i2 + i;
|
|
int[] iArr = this.f;
|
|
if (i3 > iArr.length) {
|
|
this.f = Arrays.copyOf(iArr, i3);
|
|
}
|
|
System.arraycopy(zzklVar.f, 0, this.f, this.g, zzklVar.g);
|
|
this.g = i3;
|
|
((AbstractList) this).modCount++;
|
|
return true;
|
|
}
|
|
throw new OutOfMemoryError();
|
|
}
|
|
|
|
public final void c(int i) {
|
|
if (i >= 0 && i < this.g) {
|
|
} else {
|
|
throw new IndexOutOfBoundsException(g(i));
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractList, java.util.Collection, java.util.List
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zzkl)) {
|
|
return super.equals(obj);
|
|
}
|
|
zzkl zzklVar = (zzkl) obj;
|
|
if (this.g != zzklVar.g) {
|
|
return false;
|
|
}
|
|
int[] iArr = zzklVar.f;
|
|
for (int i = 0; i < this.g; i++) {
|
|
if (this.f[i] != iArr[i]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final String g(int i) {
|
|
int i2 = this.g;
|
|
StringBuilder sb = new StringBuilder(35);
|
|
sb.append("Index:");
|
|
sb.append(i);
|
|
sb.append(", Size:");
|
|
sb.append(i2);
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // java.util.AbstractList, java.util.List
|
|
public final Object get(int i) {
|
|
c(i);
|
|
return Integer.valueOf(this.f[i]);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractList, java.util.Collection, java.util.List
|
|
public final int hashCode() {
|
|
int i = 1;
|
|
for (int i2 = 0; i2 < this.g; i2++) {
|
|
i = (i * 31) + this.f[i2];
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zzkp
|
|
public final /* synthetic */ zzkp l(int i) {
|
|
if (i >= this.g) {
|
|
return new zzkl(this.g, Arrays.copyOf(this.f, i));
|
|
}
|
|
throw new IllegalArgumentException();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public final boolean remove(Object obj) {
|
|
a();
|
|
for (int i = 0; i < this.g; i++) {
|
|
if (obj.equals(Integer.valueOf(this.f[i]))) {
|
|
int[] iArr = this.f;
|
|
System.arraycopy(iArr, i + 1, iArr, i, (this.g - i) - 1);
|
|
this.g--;
|
|
((AbstractList) this).modCount++;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.AbstractList
|
|
public final void removeRange(int i, int i2) {
|
|
a();
|
|
if (i2 >= i) {
|
|
int[] iArr = this.f;
|
|
System.arraycopy(iArr, i2, iArr, i, this.g - i2);
|
|
this.g -= i2 - i;
|
|
((AbstractList) this).modCount++;
|
|
return;
|
|
}
|
|
throw new IndexOutOfBoundsException("toIndex < fromIndex");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractList, java.util.List
|
|
public final /* synthetic */ Object set(int i, Object obj) {
|
|
int intValue = ((Integer) obj).intValue();
|
|
a();
|
|
c(i);
|
|
int[] iArr = this.f;
|
|
int i2 = iArr[i];
|
|
iArr[i] = intValue;
|
|
return Integer.valueOf(i2);
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public final int size() {
|
|
return this.g;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.drive.zziw, java.util.AbstractList, java.util.List
|
|
public final /* synthetic */ Object remove(int i) {
|
|
a();
|
|
c(i);
|
|
int[] iArr = this.f;
|
|
int i2 = iArr[i];
|
|
if (i < this.g - 1) {
|
|
System.arraycopy(iArr, i + 1, iArr, i, (r2 - i) - 1);
|
|
}
|
|
this.g--;
|
|
((AbstractList) this).modCount++;
|
|
return Integer.valueOf(i2);
|
|
}
|
|
}
|