Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / passwords / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml56 lines · 3.1 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | These rules govern both cloud backup and device transfer. This app declares no |
| 4 | android:backupAgent (the legacy key/value agent was removed): it exported the vault |
| 5 | DECRYPTED via SqlCipherDbCodec (sqlcipher_export with KEY ''), shipping a plaintext |
| 6 | vault to Google and bypassing this file entirely. With no agent declared, Auto |
| 7 | Backup and D2D both honour the sections below. The app's own KDBX sync and its |
| 8 | in-app BackupButtons flow are separate user-triggered paths and are unaffected. |
| 9 | |
| 10 | Deny-all. Overrides the permissive include-everything default in the shared :library module. |
| 11 | |
| 12 | Nothing this app persists is safe to copy off the device, and nothing it persists is |
| 13 | restorable even if it were copied: |
| 14 | |
| 15 | databases/passwords-db (+ -wal/-shm/-journal/_temp) |
| 16 | The vault. SQLCipher-encrypted; the passphrase is AES-GCM wrapped by the |
| 17 | non-exportable AndroidKeyStore key "db_no_auth_key", which never leaves the |
| 18 | device on either backup path. -wal/-shm are listed because WAL contents would |
| 19 | otherwise leak plaintext pages independently of the main file. _temp is the |
| 20 | plaintext staging file used during the plaintext->SQLCipher migration. |
| 21 | files/kdbx-sync-backup.kdbx |
| 22 | Pre-overwrite copy of the user's KDBX vault, protected only by the master |
| 23 | password. Offline-crackable, so this must never reach Google's servers. |
| 24 | shared_prefs/secure_prefs.xml, shared_prefs/kdbx_sync_prefs.xml |
| 25 | Keystore-wrapped passphrase + IV, and the wrapped KDBX master password. |
| 26 | Restoring these is actively harmful: DatabaseHelper.isKeyGenerated() only checks |
| 27 | that the IV is present, so a restored prefs file with no matching Keystore key |
| 28 | puts the app on the decrypt path with a key that does not exist. |
| 29 | files/datastore_default.preferences_pb |
| 30 | kdbx sync settings, including kdbx_sync_document_uri. The persisted SAF URI |
| 31 | permission grant does not survive backup, so restoring the URI only produces a |
| 32 | sync that fails against an unreadable document. |
| 33 | databases/androidx.work.workdb (+ sidecars) |
| 34 | Regenerable WorkManager scheduling state. |
| 35 | |
| 36 | Device transfer is denied too, not just cloud backup. D2D does not touch Google's |
| 37 | servers, but it also does not migrate AndroidKeyStore material, so carrying the vault |
| 38 | across yields an unopenable database and the corrupt-state trap described above. The |
| 39 | supported migration path is the app's own KDBX sync to a user-chosen SAF document. |
| 40 | --> |
| 41 | <data-extraction-rules> |
| 42 | <cloud-backup> |
| 43 | <exclude domain="root" path="." /> |
| 44 | <exclude domain="file" path="." /> |
| 45 | <exclude domain="database" path="." /> |
| 46 | <exclude domain="sharedpref" path="." /> |
| 47 | <exclude domain="external" path="." /> |
| 48 | </cloud-backup> |
| 49 | <device-transfer> |
| 50 | <exclude domain="root" path="." /> |
| 51 | <exclude domain="file" path="." /> |
| 52 | <exclude domain="database" path="." /> |
| 53 | <exclude domain="sharedpref" path="." /> |
| 54 | <exclude domain="external" path="." /> |
| 55 | </device-transfer> |
| 56 | </data-extraction-rules> |