* 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>
153 lines
5.5 KiB
Java
153 lines
5.5 KiB
Java
package androidx.media.app;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.app.Notification;
|
|
import android.app.PendingIntent;
|
|
import android.media.session.MediaSession;
|
|
import android.os.Build;
|
|
import android.support.v4.media.session.MediaSessionCompat;
|
|
import android.widget.RemoteViews;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.DrawableRes;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.core.app.NotificationBuilderWithBuilderAccessor;
|
|
import androidx.core.app.NotificationCompat;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class NotificationCompat {
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Api15Impl {
|
|
@DoNotInline
|
|
public static void a(RemoteViews remoteViews, int i, CharSequence charSequence) {
|
|
remoteViews.setContentDescription(i, charSequence);
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Api21Impl {
|
|
@DoNotInline
|
|
public static Notification.MediaStyle a() {
|
|
return new Notification.MediaStyle();
|
|
}
|
|
|
|
@DoNotInline
|
|
public static Notification.MediaStyle b(Notification.MediaStyle mediaStyle, int[] iArr, MediaSessionCompat.Token token) {
|
|
if (iArr != null) {
|
|
e(mediaStyle, iArr);
|
|
}
|
|
if (token != null) {
|
|
c(mediaStyle, (MediaSession.Token) token.getToken());
|
|
}
|
|
return mediaStyle;
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void c(Notification.MediaStyle mediaStyle, MediaSession.Token token) {
|
|
mediaStyle.setMediaSession(token);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void d(Notification.Builder builder, Notification.MediaStyle mediaStyle) {
|
|
builder.setStyle(mediaStyle);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void e(Notification.MediaStyle mediaStyle, int... iArr) {
|
|
mediaStyle.setShowActionsInCompactView(iArr);
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Api24Impl {
|
|
@DoNotInline
|
|
public static Notification.MediaStyle a() {
|
|
return new Notification.DecoratedMediaCustomViewStyle();
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Api34Impl {
|
|
@DoNotInline
|
|
@SuppressLint({"MissingPermission"})
|
|
public static Notification.MediaStyle a(Notification.MediaStyle mediaStyle, @NonNull CharSequence charSequence, @DrawableRes int i, @Nullable PendingIntent pendingIntent, Boolean bool) {
|
|
if (bool.booleanValue()) {
|
|
mediaStyle.setRemotePlaybackInfo(charSequence, i, pendingIntent);
|
|
}
|
|
return mediaStyle;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class DecoratedMediaCustomViewStyle extends MediaStyle {
|
|
@Override // androidx.media.app.NotificationCompat.MediaStyle, androidx.core.app.NotificationCompat.Style
|
|
public final void b(NotificationBuilderWithBuilderAccessor notificationBuilderWithBuilderAccessor) {
|
|
int i = Build.VERSION.SDK_INT;
|
|
if (i >= 34) {
|
|
Api21Impl.d(notificationBuilderWithBuilderAccessor.a(), Api21Impl.b(Api34Impl.a(Api24Impl.a(), null, 0, null, Boolean.FALSE), this.b, this.f1276c));
|
|
} else if (i >= 24) {
|
|
Api21Impl.d(notificationBuilderWithBuilderAccessor.a(), Api21Impl.b(Api24Impl.a(), this.b, this.f1276c));
|
|
} else {
|
|
super.b(notificationBuilderWithBuilderAccessor);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.media.app.NotificationCompat.MediaStyle, androidx.core.app.NotificationCompat.Style
|
|
public final void d() {
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
return;
|
|
}
|
|
this.f637a.getClass();
|
|
this.f637a.getClass();
|
|
}
|
|
|
|
@Override // androidx.media.app.NotificationCompat.MediaStyle, androidx.core.app.NotificationCompat.Style
|
|
public final void e() {
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
return;
|
|
}
|
|
this.f637a.getClass();
|
|
this.f637a.getClass();
|
|
}
|
|
|
|
@Override // androidx.core.app.NotificationCompat.Style
|
|
public final void f() {
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
return;
|
|
}
|
|
this.f637a.getClass();
|
|
this.f637a.getClass();
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class MediaStyle extends NotificationCompat.Style {
|
|
public int[] b = null;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public MediaSessionCompat.Token f1276c;
|
|
|
|
@Override // androidx.core.app.NotificationCompat.Style
|
|
public void b(NotificationBuilderWithBuilderAccessor notificationBuilderWithBuilderAccessor) {
|
|
if (Build.VERSION.SDK_INT >= 34) {
|
|
Api21Impl.d(notificationBuilderWithBuilderAccessor.a(), Api21Impl.b(Api34Impl.a(Api21Impl.a(), null, 0, null, Boolean.FALSE), this.b, this.f1276c));
|
|
} else {
|
|
Api21Impl.d(notificationBuilderWithBuilderAccessor.a(), Api21Impl.b(Api21Impl.a(), this.b, this.f1276c));
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.app.NotificationCompat.Style
|
|
public void d() {
|
|
}
|
|
|
|
@Override // androidx.core.app.NotificationCompat.Style
|
|
public void e() {
|
|
}
|
|
}
|
|
}
|