klte - LineageOS 16.0 - Media Storage data not persisting across reboots
Expected Behavior
Music library held on external SD.
- On first boot, scan indexes directories and adds data to Media Storage system app.
- Note Media Storage size in Settings> Apps and Notifications> Show System apps> Media Storage.
- Enter music app and begin playback of track.
- Pause track (to keep it in play queue) then reboot device.
- Media Storage data persists (storage size unchanged from step 2).
- Music app displays full music library.
- Continue playback of same track. This is the behaviour in Lineage 15.1.
Current Behavior
Music library held on external SD.
- On first boot, scan indexes directories and adds data to Media Storage system app.
- Note Media Storage size in Settings> Apps and Notifications> Show System apps> Media Storage.
- Enter music app and begin playback of track.
- Pause track (to keep it in play queue) then reboot device.
- Media Storage data is cleared (storage size reduced from step 2).
- Music app displays partial library.
- Playback of same track fails since cannot locate it.
Possible Solution
I have no idea of the cause for this. External SD not being mounted in time for media scan? Or does Android 9 force full media scan on each reboot? The current workaround is to manually clear all Media Storage data and allow the scan to re-index everything.
Steps to Reproduce
- Music app displays full music library held on external SD card.
- Note Media Storage size in Settings> Apps and Notifications> Show System apps> Media Storage.
- Enter music app and begin playback of track.
- Pause track (to keep it in play queue) then reboot device.
- Media Storage data is (sometimes fully, sometimes partially) cleared (as evidenced by reduced storage size from step 2).
- Music app displays partial library.
- Playback of same track fails since cannot locate it.
/device klte /version lineage-16.0 /date 2019-03-15 /kernel 3.4.113 /baseband G900FXXU1BOE5 /mods F-Droid
I have read the directions.