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

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

data_extraction_rules.xml22 lines · 1.2 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Overrides the permissive default in the shared :library module.
3
4 Storage audited:
5 (no app-owned contact store) ContactViewModel reads and writes the system
6 ContactsContract provider, which the OS backs up on its
7 own. Nothing here should duplicate contact records.
8 file/datastore_default.preferences_pb UI/account settings only: hidden_accounts,
9 extra_accounts_set, last_account_name/type,
10 calendar_sync_enabled, show_account_labels.
11 cache/*.vcf share/export scratch files; Android never backs up cacheDir.
12
13 Only the settings file is allowlisted, so contact data is never duplicated into a
14 backup. It does carry account names, so cloud backup is gated on device encryption. -->
15<data-extraction-rules>
16 <cloud-backup disableIfNoEncryptionCapabilities="true">
17 <include domain="file" path="datastore_default.preferences_pb" />
18 </cloud-backup>
19 <device-transfer>
20 <include domain="file" path="datastore_default.preferences_pb" />
21 </device-transfer>
22</data-extraction-rules>