CliffracerMerchant / SoundAura

Apache License 2.0
42 stars 2 forks source link

Use MediaStore to bypass file limit #53

Open CliffracerMerchant opened 3 months ago

CliffracerMerchant commented 3 months ago

SoundAura, as of v1.5.0, uses persisted permissions on the files the user selects through the system file picker in order to be able to access the files without requesting any storage related permissions. Android limits the number of persisted permissions granted to apps in this way to 128 for Android versions under 11, or 512 for Android versions 11 or higher. This may be limiting to some users, especially since playlist support has been added. Using MediaStore to access the audio files selected by the user would prevent the app from needing to use persisted permissions and allow them to use more files than the persisted permission limit allows.

FlingCarnationProposal commented 3 months ago

Would allowing access to an entire folder help with reducing the number of persistent file access granted to the app? In AntennaPod, granting access to an entire folder allows access to all the files in it, even if the folder has more than the maximum number of files.

That idea might be worth pursuing alongside your current idea.