pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
2.82k stars 76 forks source link

android: show local files on Android 10 devices #1118

Closed yamanq closed 1 month ago

yamanq commented 1 month ago

This fixes #1000 on my Android 10 device.

For reference, the error I was getting on loading a new local image is: Failed to read EXIF data: /storage/emulated/0/DCIM/Camera/FILENAME.jpg: open failed: EACCES (Permission denied)

I was unable to test the impact on newer devices but I think it should be fine:

After you update your app to target Android 11 (API level 30), the system ignores the requestLegacyExternalStorage attribute when your app is running on Android 11 devices, so your app must be ready to support scoped storage and to migrate app data for users on those devices

yamanq commented 1 month ago

Oops, this doesn't actually fix the issue, sorry about that.