Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / music / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml32 lines · 1.7 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Local music player. Overrides the permissive default in the shared :library module. |
| 3 | |
| 4 | Storage audit: |
| 5 | database passwords-db Room (buildDatabase<MusicDatabase>() uses the default dbName). |
| 6 | Music/Album/Artist rows are a mirror of MediaStore keyed by |
| 7 | device-local content URIs; Playlist rows reference those same |
| 8 | URIs. SyncWorker rebuilds the mirror from MediaStore. |
| 9 | file datastore_default.preferences_pb |
| 10 | Single key last_music_generation, the MediaStore generation |
| 11 | marker SyncWorker compares against. |
| 12 | Album art is an in-process LruCache only; nothing is written to disk. |
| 13 | |
| 14 | Nothing here survives a move to different hardware: every row points at a MediaStore URI |
| 15 | that will not exist on the new device, and restoring a stale last_music_generation would |
| 16 | make SyncWorker skip the rescan that repopulates the library. Cloud backup is therefore |
| 17 | denied, and device transfer carries the library so playlists survive a same-user |
| 18 | migration where the media files move too. --> |
| 19 | <data-extraction-rules> |
| 20 | <cloud-backup> |
| 21 | <exclude domain="root" path="." /> |
| 22 | <exclude domain="file" path="." /> |
| 23 | <exclude domain="database" path="." /> |
| 24 | <exclude domain="sharedpref" path="." /> |
| 25 | <exclude domain="external" path="." /> |
| 26 | </cloud-backup> |
| 27 | <device-transfer> |
| 28 | <include domain="database" path="passwords-db" /> |
| 29 | <include domain="database" path="passwords-db-wal" /> |
| 30 | <include domain="database" path="passwords-db-shm" /> |
| 31 | </device-transfer> |
| 32 | </data-extraction-rules> |