Skip to content

fix(android): offer Substreamer to One UI's play-music button - #349

Open
BUR4KBEY wants to merge 1 commit into
ghenry22:masterfrom
BUR4KBEY:fix/android-app-music-category
Open

BUR4KBEY wants to merge 1 commit into
ghenry22:masterfrom
BUR4KBEY:fix/android-app-music-category

Conversation

@BUR4KBEY

@BUR4KBEY BUR4KBEY commented Dec 2, 2026

Copy link
Copy Markdown

Summary

With no other music app enabled, One UI's "Play music" / play-last-song button failed with "None of your apps can perform this action" (SimplePlayLastSongHelper: ON-CLICK, No apps for INTENT_ACTION_MUSIC_PLAYER). Substreamer did not declare itself a music app, so it was never offered. Now it is.

Changes

  • New config plugin plugins/with-app-music-category.js, registered in app.json. It adds two intent filters to MainActivity:
    • MAIN + APP_MUSIC (the current "open the music app" selector).
    • MUSIC_PLAYER + DEFAULT (deprecated, but what One UI still asks for).

Testing

  • Generated manifest and built APK contain both filters (aapt2 dump xmltree).
  • Tested on iOS (no iOS change)
  • Tested on Android: Galaxy S25 (One UI 9) with YouTube Music disabled; the button now opens Substreamer.

Created with Claude Opus 5.5 in omp (T3 Code).

System surfaces open "the music app" with ACTION_MAIN +
CATEGORY_APP_MUSIC, or with the deprecated ACTION_MUSIC_PLAYER, which
One UI's play-last-song button uses ("No apps for
INTENT_ACTION_MUSIC_PLAYER"). MainActivity had neither filter, so
Substreamer was never offered, and with no other music app enabled the
request failed with "None of your apps can perform this action".

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant