* 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>
197 lines
5.5 KiB
Java
197 lines
5.5 KiB
Java
package android.support.v4.media;
|
|
|
|
import android.content.ContentProviderClient;
|
|
import android.content.res.TypedArray;
|
|
import android.database.Cursor;
|
|
import android.drm.DrmManagerClient;
|
|
import android.media.MediaDrm;
|
|
import android.media.MediaMetadataRetriever;
|
|
import androidx.core.provider.b;
|
|
import androidx.fragment.app.Fragment;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import java.util.ArrayList;
|
|
import java.util.concurrent.ExecutorService;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract /* synthetic */ class a {
|
|
public static /* synthetic */ boolean A(Object obj) {
|
|
return obj != null;
|
|
}
|
|
|
|
public static int B(int i, int i2, int i3, int i4) {
|
|
return ((i + i2) - i3) % i4;
|
|
}
|
|
|
|
public static String C(String str, String str2) {
|
|
return str + str2;
|
|
}
|
|
|
|
public static String D(String str, String str2, String str3) {
|
|
return str + str2 + str3;
|
|
}
|
|
|
|
public static float a(float f, float f2, float f3, float f4) {
|
|
return ((f - f2) * f3) + f4;
|
|
}
|
|
|
|
public static int b(int i, int i2, int i3, int i4) {
|
|
return i + i2 + i3 + i4;
|
|
}
|
|
|
|
public static Object c(int i, ArrayList arrayList) {
|
|
return arrayList.get(arrayList.size() - i);
|
|
}
|
|
|
|
public static String d(int i, int i2, String str) {
|
|
return str.substring(i2, str.length() - i);
|
|
}
|
|
|
|
public static String e(int i, String str) {
|
|
return str + i;
|
|
}
|
|
|
|
public static String f(int i, String str, String str2) {
|
|
return str + i + str2;
|
|
}
|
|
|
|
public static String g(int i, String str, StringBuilder sb) {
|
|
sb.append(i);
|
|
sb.append(str);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String h(long j, String str) {
|
|
return str + j;
|
|
}
|
|
|
|
public static String i(RecyclerView recyclerView, StringBuilder sb) {
|
|
sb.append(recyclerView.C());
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String j(String str, Fragment fragment, String str2) {
|
|
return str + fragment + str2;
|
|
}
|
|
|
|
public static String k(String str, String str2) {
|
|
return str + str2;
|
|
}
|
|
|
|
public static String l(String str, String str2, String str3) {
|
|
return str + str2 + str3;
|
|
}
|
|
|
|
public static String m(String str, String str2, String str3, String str4) {
|
|
return str + str2 + str3 + str4;
|
|
}
|
|
|
|
public static String n(String str, String str2, String str3, String str4, String str5) {
|
|
return str + str2 + str3 + str4 + str5;
|
|
}
|
|
|
|
public static String o(StringBuilder sb, long j, String str) {
|
|
sb.append(j);
|
|
sb.append(str);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String p(StringBuilder sb, String str, String str2) {
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String q(StringBuilder sb, String str, String str2, String str3) {
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
sb.append(str3);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String r(StringBuilder sb, String str, String str2, String str3, String str4) {
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
sb.append(str3);
|
|
sb.append(str4);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static StringBuilder s(int i, String str, String str2) {
|
|
StringBuilder sb = new StringBuilder(str);
|
|
sb.append(i);
|
|
sb.append(str2);
|
|
return sb;
|
|
}
|
|
|
|
public static StringBuilder t(String str) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
return sb;
|
|
}
|
|
|
|
public static StringBuilder u(String str, int i, int i2, String str2, String str3) {
|
|
StringBuilder sb = new StringBuilder(str);
|
|
sb.append(i);
|
|
sb.append(str2);
|
|
sb.append(i2);
|
|
sb.append(str3);
|
|
return sb;
|
|
}
|
|
|
|
public static StringBuilder v(String str, String str2) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
return sb;
|
|
}
|
|
|
|
public static StringBuilder w(String str, String str2, String str3) {
|
|
StringBuilder sb = new StringBuilder(str);
|
|
sb.append(str2);
|
|
sb.append(str3);
|
|
return sb;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ void x(Cursor cursor) {
|
|
if (cursor instanceof AutoCloseable) {
|
|
cursor.close();
|
|
return;
|
|
}
|
|
if (cursor instanceof ExecutorService) {
|
|
b.f((ExecutorService) cursor);
|
|
return;
|
|
}
|
|
if (cursor instanceof TypedArray) {
|
|
((TypedArray) cursor).recycle();
|
|
return;
|
|
}
|
|
if (cursor instanceof MediaMetadataRetriever) {
|
|
((MediaMetadataRetriever) cursor).release();
|
|
return;
|
|
}
|
|
if (cursor instanceof MediaDrm) {
|
|
((MediaDrm) cursor).release();
|
|
} else if (cursor instanceof DrmManagerClient) {
|
|
((DrmManagerClient) cursor).release();
|
|
} else {
|
|
if (!(cursor instanceof ContentProviderClient)) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
((ContentProviderClient) cursor).release();
|
|
}
|
|
}
|
|
|
|
public static void y(StringBuilder sb, String str, String str2, String str3) {
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
sb.append(str3);
|
|
}
|
|
|
|
public static void z(StringBuilder sb, String str, String str2, String str3, String str4) {
|
|
sb.append(str);
|
|
sb.append(str2);
|
|
sb.append(str3);
|
|
sb.append(str4);
|
|
}
|
|
}
|