janbar / noson-app

The essential to control music from your SONOS devices on Linux platforms
GNU General Public License v3.0
343 stars 28 forks source link

Request storage permissions on Android #218

Open AntiGuide opened 5 months ago

AntiGuide commented 5 months ago

The app does not actively ask for permissions to access the device storage. This results in music only being recognized in /storage/emulated/0/Android/data/io.github.janbar.noson/flies/Music but not in /storage/emulated/0/Music.

janbar commented 5 months ago

Root cause is Android >= 11. From Android 11 the external storage (removable card) is no longer accessible by the app. Google has changed the behavior, because the external storage can be removed online, and so it crash the apps accessing the external storage.

Solution: You have to put your music files in the internal storage of the device (internal disk) and not in the external flash card.

udittmer commented 4 months ago

It's fine for files needing to be in internal storage, but that's a different issue than the storage permission not being asked for - which I second would be a good thing to do, especially as it's not mentioned anywhere that this needs to be done manually.