diff --git a/Manager/app/src/main/kotlin/com/meowarex/rlmobile/patcher/util/ManifestPatcher.kt b/Manager/app/src/main/kotlin/com/meowarex/rlmobile/patcher/util/ManifestPatcher.kt index a727118..c725c72 100644 --- a/Manager/app/src/main/kotlin/com/meowarex/rlmobile/patcher/util/ManifestPatcher.kt +++ b/Manager/app/src/main/kotlin/com/meowarex/rlmobile/patcher/util/ManifestPatcher.kt @@ -89,16 +89,13 @@ object ManifestPatcher { } } - "uses-sdk" -> object : NodeVisitor(nv) { - override fun attr(ns: String?, name: String?, resourceId: Int, type: Int, value: Any?) { - if (name == "targetSdkVersion") { - val version = if (Build.VERSION.SDK_INT >= 31) 30 else 28 - super.attr(ns, name, resourceId, type, version) - } else { - super.attr(ns, name, resourceId, type, value) - } - } - } + // Preserve the original targetSdkVersion. Downgrading it (e.g. to 30) + // makes Android render MediaStyle notifications with the legacy + // compact-row layout instead of the modern auto-rendered controls, + // because TIDAL's notification builder skips addAction() on API 33+ + // expecting the system to auto-infer buttons from the MediaSession — + // which only happens for apps targeting SDK >= 31. + "uses-sdk" -> nv "permission" -> object : NodeVisitor(nv) { override fun attr(ns: String?, name: String, resourceId: Int, type: Int, value: Any?) { diff --git a/patches/playerscreen.patch b/patches/playerscreen.patch index 4e8af7a..413473f 100644 --- a/patches/playerscreen.patch +++ b/patches/playerscreen.patch @@ -63,7 +63,7 @@ + + move-result-object v5 + -+ const/high16 v7, 0x42c00000 # 96f (blur radius dp) ++ const/high16 v7, 0x44b40000 # 1440f (blur radius dp) + + invoke-static {v7}, Landroidx/compose/ui/unit/Dp;->constructor-impl(F)F +