Camera will not save to External SD Card /DCIM/Camera on Android Pie
Expected Behavior
When SD Card is selected as storage method, and photo is taken, photo stored on the SD Card in /DCIM/Camera. Camera will also read and display photos on external SD Card in /DCIM/Camera. Other apps can access photos taken.
Current Behavior
Other camera apps do not have this issue on Android Pie (or even allow user to select storage directory manually). Photos will be stored on SD Card in app's private storage area only on SD Card (/android/data/org.cyanogenmod.snap/files/). Other apps generally cannot read this location, including Google Photos (for backup and sync) as this is the Camera app's private storage area. Some apps will allow the user to browse to the location manually to view files. It can also be noted in Android documentation that all data in this folder WILL BE DELETED if the app is removed, which leaves the possibility that user's photos will be deleted if the camera app is removed (or replaced with another future camera app with a different package name). Photos will be visible in Camera's gallery, but the location being read from is the Camera's private storage. It will ignore any photos in /DCIM/Camera currently.
Possible Solution
Implement correct Android External SD Card public storage as exampled here: https://developer.android.com/training/data-storage/files#PublicFiles Changes should be made in android_packages_apps_Snap/src/com/android/camera/SDCard.java and possibly elsewhere
Changes made in this commit are significant: https://github.com/LineageOS/android_packages_apps_Snap/commit/9b4755c0ce090a14dfb7599a238b044dcdfd5ee4
Steps to Reproduce
- Take photo in Snap (Default Camera app)
- Check the photo details to find the storage location
/device kltedv /version lineage-16.0 /date 2019-03-19 /kernel standard /baseband standard /mods Open Google Apps, Magisk
I have read the directions.