Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / code / src / main / res / xml / data_extraction_rules.xml

data_extraction_rules.xml36 lines · 2.1 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Code editor. Overrides the permissive default in the shared :library module.
3
4 Storage audit:
5 file datastore/code_editor.preferences_pb The app's only persisted state
6 (EditorPrefs): editor settings
7 (soft_wrap, font size, tab width,
8 theme, smart-input toggles), session
9 and recent-file paths, snippets, fold
10 state, the last opened folder, and git
11 credentials — git_username, git_token,
12 git author name/email.
13 No database, no SharedPreferences, no app-private files or caches. Source files are
14 edited in place through SAF in storage the app does not own.
15
16 Because that one DataStore file holds a git token, it must not leave the
17 device in cloud backup: cloud backup is denied outright (the file was the
18 only thing cloud backup ever carried here, so nothing else is lost).
19 The git_token value itself is Keystore-sealed (EditorPrefs), so even where
20 the file does travel it holds only ciphertext. Device transfer still
21 carries the file, so settings survive a direct device-to-device move —
22 but the token arrives undecryptable on the new device (the Keystore key
23 never leaves the old one), reads as signed-out, and must be re-entered;
24 folder access will also need re-granting after a restore. -->
25<data-extraction-rules>
26 <cloud-backup>
27 <exclude domain="root" path="." />
28 <exclude domain="file" path="." />
29 <exclude domain="database" path="." />
30 <exclude domain="sharedpref" path="." />
31 <exclude domain="external" path="." />
32 </cloud-backup>
33 <device-transfer>
34 <include domain="file" path="datastore/code_editor.preferences_pb" />
35 </device-transfer>
36</data-extraction-rules>