* 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>
109 lines
3.5 KiB
Java
109 lines
3.5 KiB
Java
package com.google.android.gms.internal.auth;
|
|
|
|
import com.google.android.gms.internal.ads.a;
|
|
import java.util.AbstractList;
|
|
import java.util.Arrays;
|
|
import java.util.RandomAccess;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzgg extends zzdr implements RandomAccess {
|
|
public static final zzgg h = new zzgg(new Object[0], 0, false);
|
|
public Object[] f;
|
|
public int g;
|
|
|
|
public zzgg(Object[] objArr, int i, boolean z) {
|
|
super(z);
|
|
this.f = objArr;
|
|
this.g = i;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzdr, java.util.AbstractList, java.util.List
|
|
public final void add(int i, Object obj) {
|
|
int i2;
|
|
a();
|
|
if (i >= 0 && i <= (i2 = this.g)) {
|
|
Object[] objArr = this.f;
|
|
if (i2 < objArr.length) {
|
|
System.arraycopy(objArr, i, objArr, i + 1, i2 - i);
|
|
} else {
|
|
Object[] objArr2 = new Object[a.d(i2, 3, 2, 1)];
|
|
System.arraycopy(objArr, 0, objArr2, 0, i);
|
|
System.arraycopy(this.f, i, objArr2, i + 1, this.g - i);
|
|
this.f = objArr2;
|
|
}
|
|
this.f[i] = obj;
|
|
this.g++;
|
|
((AbstractList) this).modCount++;
|
|
return;
|
|
}
|
|
throw new IndexOutOfBoundsException(androidx.work.impl.workers.a.s("Index:", i, this.g, ", Size:"));
|
|
}
|
|
|
|
public final void c(int i) {
|
|
if (i >= 0 && i < this.g) {
|
|
} else {
|
|
throw new IndexOutOfBoundsException(androidx.work.impl.workers.a.s("Index:", i, this.g, ", Size:"));
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzez
|
|
public final /* bridge */ /* synthetic */ zzez f(int i) {
|
|
if (i >= this.g) {
|
|
return new zzgg(Arrays.copyOf(this.f, i), this.g, true);
|
|
}
|
|
throw new IllegalArgumentException();
|
|
}
|
|
|
|
@Override // java.util.AbstractList, java.util.List
|
|
public final Object get(int i) {
|
|
c(i);
|
|
return this.f[i];
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzdr, java.util.AbstractList, java.util.List
|
|
public final Object remove(int i) {
|
|
a();
|
|
c(i);
|
|
Object[] objArr = this.f;
|
|
Object obj = objArr[i];
|
|
if (i < this.g - 1) {
|
|
System.arraycopy(objArr, i + 1, objArr, i, (r2 - i) - 1);
|
|
}
|
|
this.g--;
|
|
((AbstractList) this).modCount++;
|
|
return obj;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzdr, java.util.AbstractList, java.util.List
|
|
public final Object set(int i, Object obj) {
|
|
a();
|
|
c(i);
|
|
Object[] objArr = this.f;
|
|
Object obj2 = objArr[i];
|
|
objArr[i] = obj;
|
|
((AbstractList) this).modCount++;
|
|
return obj2;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public final int size() {
|
|
return this.g;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzdr, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public final boolean add(Object obj) {
|
|
a();
|
|
int i = this.g;
|
|
Object[] objArr = this.f;
|
|
if (i == objArr.length) {
|
|
this.f = Arrays.copyOf(objArr, ((i * 3) / 2) + 1);
|
|
}
|
|
Object[] objArr2 = this.f;
|
|
int i2 = this.g;
|
|
this.g = i2 + 1;
|
|
objArr2[i2] = obj;
|
|
((AbstractList) this).modCount++;
|
|
return true;
|
|
}
|
|
}
|