* 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>
145 lines
4.4 KiB
Java
145 lines
4.4 KiB
Java
package androidx.fragment.app;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import kotlin.uuid.Uuid;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@SuppressLint({"BanParcelableUsage"})
|
|
/* loaded from: classes.dex */
|
|
public final class FragmentState implements Parcelable {
|
|
public static final Parcelable.Creator<FragmentState> CREATOR = new Object();
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f1117c;
|
|
public final String f;
|
|
public final boolean g;
|
|
public final int h;
|
|
public final int i;
|
|
public final String j;
|
|
public final boolean k;
|
|
public final boolean l;
|
|
public final boolean m;
|
|
public final boolean n;
|
|
public final int o;
|
|
public final String p;
|
|
public final int q;
|
|
public final boolean r;
|
|
|
|
/* renamed from: androidx.fragment.app.FragmentState$1, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public class AnonymousClass1 implements Parcelable.Creator<FragmentState> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final FragmentState createFromParcel(Parcel parcel) {
|
|
return new FragmentState(parcel);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final FragmentState[] newArray(int i) {
|
|
return new FragmentState[i];
|
|
}
|
|
}
|
|
|
|
public FragmentState(Fragment fragment) {
|
|
this.f1117c = fragment.getClass().getName();
|
|
this.f = fragment.mWho;
|
|
this.g = fragment.mFromLayout;
|
|
this.h = fragment.mFragmentId;
|
|
this.i = fragment.mContainerId;
|
|
this.j = fragment.mTag;
|
|
this.k = fragment.mRetainInstance;
|
|
this.l = fragment.mRemoving;
|
|
this.m = fragment.mDetached;
|
|
this.n = fragment.mHidden;
|
|
this.o = fragment.mMaxState.ordinal();
|
|
this.p = fragment.mTargetWho;
|
|
this.q = fragment.mTargetRequestCode;
|
|
this.r = fragment.mUserVisibleHint;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public final String toString() {
|
|
StringBuilder sb = new StringBuilder(Uuid.SIZE_BITS);
|
|
sb.append("FragmentState{");
|
|
sb.append(this.f1117c);
|
|
sb.append(" (");
|
|
sb.append(this.f);
|
|
sb.append(")}:");
|
|
if (this.g) {
|
|
sb.append(" fromLayout");
|
|
}
|
|
int i = this.i;
|
|
if (i != 0) {
|
|
sb.append(" id=0x");
|
|
sb.append(Integer.toHexString(i));
|
|
}
|
|
String str = this.j;
|
|
if (str != null && !str.isEmpty()) {
|
|
sb.append(" tag=");
|
|
sb.append(str);
|
|
}
|
|
if (this.k) {
|
|
sb.append(" retainInstance");
|
|
}
|
|
if (this.l) {
|
|
sb.append(" removing");
|
|
}
|
|
if (this.m) {
|
|
sb.append(" detached");
|
|
}
|
|
if (this.n) {
|
|
sb.append(" hidden");
|
|
}
|
|
String str2 = this.p;
|
|
if (str2 != null) {
|
|
sb.append(" targetWho=");
|
|
sb.append(str2);
|
|
sb.append(" targetRequestCode=");
|
|
sb.append(this.q);
|
|
}
|
|
if (this.r) {
|
|
sb.append(" userVisibleHint");
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.f1117c);
|
|
parcel.writeString(this.f);
|
|
parcel.writeInt(this.g ? 1 : 0);
|
|
parcel.writeInt(this.h);
|
|
parcel.writeInt(this.i);
|
|
parcel.writeString(this.j);
|
|
parcel.writeInt(this.k ? 1 : 0);
|
|
parcel.writeInt(this.l ? 1 : 0);
|
|
parcel.writeInt(this.m ? 1 : 0);
|
|
parcel.writeInt(this.n ? 1 : 0);
|
|
parcel.writeInt(this.o);
|
|
parcel.writeString(this.p);
|
|
parcel.writeInt(this.q);
|
|
parcel.writeInt(this.r ? 1 : 0);
|
|
}
|
|
|
|
public FragmentState(Parcel parcel) {
|
|
this.f1117c = parcel.readString();
|
|
this.f = parcel.readString();
|
|
this.g = parcel.readInt() != 0;
|
|
this.h = parcel.readInt();
|
|
this.i = parcel.readInt();
|
|
this.j = parcel.readString();
|
|
this.k = parcel.readInt() != 0;
|
|
this.l = parcel.readInt() != 0;
|
|
this.m = parcel.readInt() != 0;
|
|
this.n = parcel.readInt() != 0;
|
|
this.o = parcel.readInt();
|
|
this.p = parcel.readString();
|
|
this.q = parcel.readInt();
|
|
this.r = parcel.readInt() != 0;
|
|
}
|
|
}
|