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

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

data_extraction_rules.xml37 lines · 2.3 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- App store client. Overrides the permissive default in the shared :library module, and
3 replaces an earlier rule set that cloud-backed the whole database and all preferences.
4
5 Storage audit:
6 database appstore-db Room. RepoEntity (the user's configured F-Droid repos),
7 CachedAppEntity (the full index of every app in every enabled
8 repo — multi-megabyte and refetched on demand) and
9 PinnedStampEntity (trust-on-first-use signer pins).
10 file datastore/play_auth.preferences_pb A serialized Play AuthData: the
11 dispensed anonymous account with its auth token, gsfId and
12 device profile, plus the dispense timestamp. A live session
13 credential with a max age, re-dispensed whenever it is absent.
14 sharedpref appstore-update-check.xml The comma-joined package list from the last
15 update notification, used only to suppress repeats. It is a
16 list of the user's installed apps.
17 cache <pkg>.apk, PlayDownloads/, fdroid-index/, fdroid-verified.json Download and
18 verification scratch under getCacheDir(), never backed up.
19
20 Cloud backup is denied. The repo list is the only non-regenerable state and it shares one
21 Room file with the bulk index cache and the TOFU signer pins; the update-check preference
22 is a regenerable inventory of installed apps; the Play auth blob is a session credential.
23 The Play credential is excluded from device transfer as well — it is bound to a gsfId and
24 device profile that do not survive the move, and a stale one just costs a round-trip. -->
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 <exclude domain="file" path="datastore/play_auth.preferences_pb" />
35 <exclude domain="external" path="." />
36 </device-transfer>
37</data-extraction-rules>