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

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

data_extraction_rules.xml34 lines · 2.1 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- YouTube client. Overrides the permissive default in the shared :library module.
3
4 Storage audit:
5 database passwords-db Room. The buildDatabase() default dbName is used because
6 MainActivity calls buildDatabase<SubscriptionDatabase>() with
7 no name; the file is per-app so the name is only confusing.
8 Holds Subscription, SubscriptionVideo, HistoryVideo,
9 DownloadedVideo, CachedRelatedVideo, RecommendationImpression
10 and the recommendation/channel/keyword preference tables.
11 sharedpref sabr_* PoToken caches and playback diagnostics. Session tokens bound
12 to this device and install; useless and unsafe off-device.
13 file datastore_default.preferences_pb
14 Settings only: sponsorblock_enabled + categories,
15 dearrow_enabled, youtube_language, default page.
16 file sabr-cloud-policy.bin/.rev Fetched playback policy, refetched on demand.
17 external downloads/ Downloaded video files. Large and re-downloadable.
18
19 Cloud backup is an allowlist holding just the settings DataStore. Subscriptions are worth
20 restoring but sit in the same Room file as watch history and per-video recommendation
21 impressions, so the whole database is device-transfer only. -->
22<data-extraction-rules>
23 <cloud-backup>
24 <include domain="file" path="datastore_default.preferences_pb" />
25 </cloud-backup>
26 <device-transfer>
27 <exclude domain="external" path="downloads" />
28 <exclude domain="file" path="sabr-cloud-policy.bin" />
29 <exclude domain="file" path="sabr-cloud-policy.rev" />
30 <exclude domain="sharedpref" path="sabr_local_dom_video_token_cache.xml" />
31 <exclude domain="sharedpref" path="sabr_webpo_video_token_cache.xml" />
32 <exclude domain="sharedpref" path="sabr_playback_diagnostics.xml" />
33 </device-transfer>
34</data-extraction-rules>