* 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>
177 lines
5.6 KiB
Java
177 lines
5.6 KiB
Java
package androidx.versionedparcelable;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.support.v4.media.a;
|
|
import android.text.TextUtils;
|
|
import android.util.SparseIntArray;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.collection.ArrayMap;
|
|
import androidx.collection.SimpleArrayMap;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
class VersionedParcelParcel extends VersionedParcel {
|
|
public final SparseIntArray d;
|
|
public final Parcel e;
|
|
public final int f;
|
|
public final int g;
|
|
public final String h;
|
|
public int i;
|
|
public int j;
|
|
public int k;
|
|
|
|
/* JADX WARN: Type inference failed for: r5v0, types: [androidx.collection.SimpleArrayMap, androidx.collection.ArrayMap] */
|
|
/* JADX WARN: Type inference failed for: r6v0, types: [androidx.collection.SimpleArrayMap, androidx.collection.ArrayMap] */
|
|
/* JADX WARN: Type inference failed for: r7v0, types: [androidx.collection.SimpleArrayMap, androidx.collection.ArrayMap] */
|
|
public VersionedParcelParcel(Parcel parcel) {
|
|
this(parcel, parcel.dataPosition(), parcel.dataSize(), RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, new SimpleArrayMap(0), new SimpleArrayMap(0), new SimpleArrayMap(0));
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void a() {
|
|
int i = this.i;
|
|
if (i >= 0) {
|
|
int i2 = this.d.get(i);
|
|
Parcel parcel = this.e;
|
|
int dataPosition = parcel.dataPosition();
|
|
parcel.setDataPosition(i2);
|
|
parcel.writeInt(dataPosition - i2);
|
|
parcel.setDataPosition(dataPosition);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final VersionedParcel b() {
|
|
Parcel parcel = this.e;
|
|
int dataPosition = parcel.dataPosition();
|
|
int i = this.j;
|
|
if (i == this.f) {
|
|
i = this.g;
|
|
}
|
|
return new VersionedParcelParcel(parcel, dataPosition, i, a.p(new StringBuilder(), this.h, " "), this.f1751a, this.b, this.f1752c);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final boolean g() {
|
|
if (this.e.readInt() != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final byte[] h() {
|
|
Parcel parcel = this.e;
|
|
int readInt = parcel.readInt();
|
|
if (readInt < 0) {
|
|
return null;
|
|
}
|
|
byte[] bArr = new byte[readInt];
|
|
parcel.readByteArray(bArr);
|
|
return bArr;
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final CharSequence i() {
|
|
return (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(this.e);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final boolean j(int i) {
|
|
while (this.j < this.g) {
|
|
int i2 = this.k;
|
|
if (i2 != i) {
|
|
if (String.valueOf(i2).compareTo(String.valueOf(i)) <= 0) {
|
|
int i3 = this.j;
|
|
Parcel parcel = this.e;
|
|
parcel.setDataPosition(i3);
|
|
int readInt = parcel.readInt();
|
|
this.k = parcel.readInt();
|
|
this.j += readInt;
|
|
} else {
|
|
return false;
|
|
}
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
if (this.k == i) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final int k() {
|
|
return this.e.readInt();
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final Parcelable m() {
|
|
return this.e.readParcelable(getClass().getClassLoader());
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final String n() {
|
|
return this.e.readString();
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void p(int i) {
|
|
a();
|
|
this.i = i;
|
|
this.d.put(i, this.e.dataPosition());
|
|
u(0);
|
|
u(i);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void r(boolean z) {
|
|
this.e.writeInt(z ? 1 : 0);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void s(byte[] bArr) {
|
|
Parcel parcel = this.e;
|
|
if (bArr != null) {
|
|
parcel.writeInt(bArr.length);
|
|
parcel.writeByteArray(bArr);
|
|
} else {
|
|
parcel.writeInt(-1);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void t(CharSequence charSequence) {
|
|
TextUtils.writeToParcel(charSequence, this.e, 0);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void u(int i) {
|
|
this.e.writeInt(i);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void w(Parcelable parcelable) {
|
|
this.e.writeParcelable(parcelable, 0);
|
|
}
|
|
|
|
@Override // androidx.versionedparcelable.VersionedParcel
|
|
public final void x(String str) {
|
|
this.e.writeString(str);
|
|
}
|
|
|
|
public VersionedParcelParcel(Parcel parcel, int i, int i2, String str, ArrayMap arrayMap, ArrayMap arrayMap2, ArrayMap arrayMap3) {
|
|
super(arrayMap, arrayMap2, arrayMap3);
|
|
this.d = new SparseIntArray();
|
|
this.i = -1;
|
|
this.k = -1;
|
|
this.e = parcel;
|
|
this.f = i;
|
|
this.g = i2;
|
|
this.j = i;
|
|
this.h = str;
|
|
}
|
|
}
|