* 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>
128 lines
4 KiB
Java
128 lines
4 KiB
Java
package androidx.mediarouter.media;
|
|
|
|
import android.media.RouteListingPreference;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.annotation.RestrictTo;
|
|
import j$.util.Objects;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class RouteListingPreference {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final List f1415a;
|
|
public final boolean b;
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Api34Impl {
|
|
public static android.media.RouteListingPreference a(RouteListingPreference routeListingPreference) {
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Item item : routeListingPreference.f1415a) {
|
|
arrayList.add(new RouteListingPreference.Item.Builder(item.f1417a).setFlags(0).setSubText(0).setCustomSubtextMessage(null).setSelectionBehavior(item.b).build());
|
|
}
|
|
return new RouteListingPreference.Builder().setItems(arrayList).setLinkedItemComponentName(null).setUseSystemOrdering(routeListingPreference.b).build();
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class Builder {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public List f1416a;
|
|
public boolean b;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class Item {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final String f1417a;
|
|
public final int b;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class Builder {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final String f1418a;
|
|
public final int b;
|
|
|
|
public Builder(String str) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
this.f1418a = str;
|
|
this.b = 1;
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException();
|
|
}
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public @interface Flags {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public @interface SelectionBehavior {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public @interface SubText {
|
|
}
|
|
|
|
public Item(Builder builder) {
|
|
this.f1417a = builder.f1418a;
|
|
this.b = builder.b;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
if (obj instanceof Item) {
|
|
Item item = (Item) obj;
|
|
if (this.f1417a.equals(item.f1417a) && this.b == item.b && TextUtils.equals(null, null)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hash(this.f1417a, Integer.valueOf(this.b), 0, 0, null);
|
|
}
|
|
}
|
|
|
|
public RouteListingPreference(Builder builder) {
|
|
this.f1415a = builder.f1416a;
|
|
this.b = builder.b;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
if (obj instanceof RouteListingPreference) {
|
|
RouteListingPreference routeListingPreference = (RouteListingPreference) obj;
|
|
if (this.f1415a.equals(routeListingPreference.f1415a) && this.b == routeListingPreference.b) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hash(this.f1415a, Boolean.valueOf(this.b), null);
|
|
}
|
|
}
|