* 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>
115 lines
4.7 KiB
Java
115 lines
4.7 KiB
Java
package com.google.android.gms.cast;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.work.impl.workers.a;
|
|
import com.google.android.gms.cast.internal.CastUtils;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
import j$.util.DesugarCollections;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
@SafeParcelable.Class(creator = "ApplicationMetadataCreator")
|
|
@SafeParcelable.Reserved({1})
|
|
/* loaded from: classes.dex */
|
|
public class ApplicationMetadata extends AbstractSafeParcelable {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<ApplicationMetadata> CREATOR = new Object();
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f3427c;
|
|
public final String f;
|
|
public final List g;
|
|
public final String h;
|
|
public final Uri i;
|
|
public final String j;
|
|
public final String k;
|
|
public final Boolean l;
|
|
public final Boolean m;
|
|
public final int n;
|
|
|
|
public ApplicationMetadata(String str, String str2, ArrayList arrayList, String str3, Uri uri, String str4, String str5, Boolean bool, Boolean bool2, int i) {
|
|
this.f3427c = str;
|
|
this.f = str2;
|
|
this.g = arrayList;
|
|
this.h = str3;
|
|
this.i = uri;
|
|
this.j = str4;
|
|
this.k = str5;
|
|
this.l = bool;
|
|
this.m = bool2;
|
|
this.n = i;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ApplicationMetadata)) {
|
|
return false;
|
|
}
|
|
ApplicationMetadata applicationMetadata = (ApplicationMetadata) obj;
|
|
if (CastUtils.c(this.f3427c, applicationMetadata.f3427c) && CastUtils.c(this.f, applicationMetadata.f) && CastUtils.c(this.g, applicationMetadata.g) && CastUtils.c(this.h, applicationMetadata.h) && CastUtils.c(this.i, applicationMetadata.i) && CastUtils.c(this.j, applicationMetadata.j) && CastUtils.c(this.k, applicationMetadata.k) && this.n == applicationMetadata.n) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hashCode(this.f3427c, this.f, this.g, this.h, this.i, this.j, Integer.valueOf(this.n));
|
|
}
|
|
|
|
public final String toString() {
|
|
int size;
|
|
List list = this.g;
|
|
if (list == null) {
|
|
size = 0;
|
|
} else {
|
|
size = list.size();
|
|
}
|
|
String valueOf = String.valueOf(this.i);
|
|
String str = this.f3427c;
|
|
int length = String.valueOf(str).length();
|
|
String str2 = this.f;
|
|
int length2 = String.valueOf(str2).length() + length + 23;
|
|
int length3 = String.valueOf(size).length();
|
|
String str3 = this.h;
|
|
int d = a.d(length2 + 20 + length3 + 23, 22, String.valueOf(str3));
|
|
int length4 = valueOf.length();
|
|
String str4 = this.j;
|
|
int i = d + length4 + 11;
|
|
int length5 = String.valueOf(str4).length();
|
|
String str5 = this.k;
|
|
StringBuilder sb = new StringBuilder(i + length5 + 8 + String.valueOf(str5).length());
|
|
android.support.v4.media.a.z(sb, "applicationId: ", str, ", name: ", str2);
|
|
sb.append(", namespaces.count: ");
|
|
sb.append(size);
|
|
sb.append(", senderAppIdentifier: ");
|
|
sb.append(str3);
|
|
android.support.v4.media.a.z(sb, ", senderAppLaunchUrl: ", valueOf, ", iconUrl: ", str4);
|
|
return android.support.v4.media.a.p(sb, ", type: ", str5);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeString(parcel, 2, this.f3427c, false);
|
|
SafeParcelWriter.writeString(parcel, 3, this.f, false);
|
|
SafeParcelWriter.writeTypedList(parcel, 4, null, false);
|
|
SafeParcelWriter.writeStringList(parcel, 5, DesugarCollections.unmodifiableList(this.g), false);
|
|
SafeParcelWriter.writeString(parcel, 6, this.h, false);
|
|
SafeParcelWriter.writeParcelable(parcel, 7, this.i, i, false);
|
|
SafeParcelWriter.writeString(parcel, 8, this.j, false);
|
|
SafeParcelWriter.writeString(parcel, 9, this.k, false);
|
|
SafeParcelWriter.writeBooleanObject(parcel, 10, this.l, false);
|
|
SafeParcelWriter.writeBooleanObject(parcel, 11, this.m, false);
|
|
SafeParcelWriter.writeInt(parcel, 12, this.n);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
}
|