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

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

data_extraction_rules.xml28 lines · 1.5 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- PDF viewer. Overrides the permissive default in the shared :library module.
3
4 Storage audit:
5 sharedpref pdf_viewer_state.xml One int per document: the last first-visible page.
6 The key is "safe_page_<first 20 chars of the file
7 name>_<hash of the full URI>", so the file names of
8 every PDF the user has opened are embedded in it.
9 cache <uuid>.jpg Scanned page captures; the framework never backs up
10 getCacheDir(), so no rule is needed.
11 No database, no DataStore. The PDFs themselves are opened through SAF and live in
12 storage the app does not own.
13
14 The saved pages are keyed by content URIs that will not resolve after a cloud restore, so
15 backing them up buys nothing and ships a list of document file names to Google. Denied
16 for cloud, kept for device transfer where the same documents are still reachable. -->
17<data-extraction-rules>
18 <cloud-backup>
19 <exclude domain="root" path="." />
20 <exclude domain="file" path="." />
21 <exclude domain="database" path="." />
22 <exclude domain="sharedpref" path="." />
23 <exclude domain="external" path="." />
24 </cloud-backup>
25 <device-transfer>
26 <include domain="sharedpref" path="pdf_viewer_state.xml" />
27 </device-transfer>
28</data-extraction-rules>