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

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

data_extraction_rules.xml33 lines · 1.9 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Browser. Overrides the permissive default in the shared :library module.
3
4 Storage audit:
5 database web-browser-db Room: HistoryEntry, Bookmark, BookmarkFolder, SitePermission,
6 StorageInfo, DownloadEntry, InstalledSite (PWAs), ShieldSetting.
7 sharedpref web_prefs.xml Browser + Brave Shields defaults AND the serialized open-tab
8 list (full URLs) for every window.
9 root app_webview/ WebView profile: cookies, localStorage, IndexedDB, service
10 workers. Session credentials.
11 file shields/ ~8 MB serialized adblock engine snapshot, rebuilt from the
12 bundled assets whenever it is missing or stale.
13 Downloads go to the public Downloads dir via DownloadManager, not app storage.
14
15 Cloud backup is denied outright, and not reflexively: bookmarks and shield settings are
16 worth restoring, but they are not separable from the data that must not leave the device.
17 Bookmarks/ShieldSetting share one Room file with browsing history, and the shield/browser
18 defaults share one SharedPreferences file with the open-tab URLs. Splitting bookmarks and
19 settings into their own stores is the prerequisite for a partial cloud allowlist here. -->
20<data-extraction-rules>
21 <cloud-backup>
22 <exclude domain="root" path="." />
23 <exclude domain="file" path="." />
24 <exclude domain="database" path="." />
25 <exclude domain="sharedpref" path="." />
26 <exclude domain="external" path="." />
27 </cloud-backup>
28 <device-transfer>
29 <!-- Exclude-only: everything not listed here transfers, which is correct for a
30 direct device-to-device migration that never reaches Google's servers. -->
31 <exclude domain="file" path="shields" />
32 </device-transfer>
33</data-extraction-rules>