Uploading some missing blobs
[GitHub/moto-9609/twrp_device_motorola_troika.git] / recovery / root / vendor / etc / gpfspath_oem_config.xml
1 <!--
2 Copyright (c) 2017 Qualcomm Technologies, Inc.
3 All Rights Reserved.
4 Confidential and Proprietary - Qualcomm Technologies, Inc.
5 -->
6
7 <!--
8
9 This file is configured by OEM to customize the path used by GP FS listener
10 service to save files, and will be located in /vendor/etc on device
11
12 "gp_data_path" and "gp_persist_path" are the /data and /persist partition
13 path to save files, respectively.
14 By default, "gp_data_path" is "/data/vendor/tzstorage/", and
15 "gp_persist_path" is "/mnt/vendor/persist/data/".
16
17 To replace with different paths, please also create folder in init.qcom.rc
18 file and update SEAndroid policy.
19
20 Take "/data/vendor/tzstorage/" as an example below,
21
22 A) rootdir/etc/init.qcom.rc:
23 # Create /data/vendor/tzstorage directory for SFS listener
24 mkdir /data/vendor/tzstorage 0770 system system
25
26 B) common/file.te:
27 # SFS listener data file
28 type data_tzstorage_file, file_type, data_file_type;
29
30 C) common/file_contexts:
31 /data/vendor/tzstorage(/.*)? u:object_r:data_tzstorage_file:s0
32
33 D) common/qseecomd.te:
34 # Allow SFS to write to data partition
35 allow tee data_tzstorage_file:dir create_dir_perms;
36 allow tee data_tzstorage_file:file create_file_perms;
37
38 "gp_whitelist_count" and "gp_whitelist_path"
39
40 Some paths needs "/data/vendor/tzstorage" appended to it at the beginning
41 as they do not have access/permissions on their own.
42 Use gp_whitelist_count and gp_whitelist_paths entries to add more such paths.
43 By default, we add "/data/system/users" and "/data/misc/qsee" for current use
44 cases.
45
46 To add an extra path, increment the count in gp_whitelist_count and add a new
47 gp_whitelist_path entry. It is very critical that the count matches with the
48 number of path entries.
49
50 -->
51
52
53 <sfs_path>
54 <gp_data_path> /data/vendor/tzstorage/ </gp_data_path>
55 <gp_persist_path> /mnt/vendor/persist/data/ </gp_persist_path>
56 <gp_whitelist_count> 2 </gp_whitelist_count>
57 <gp_whitelist_path> /data/system/users/ </gp_whitelist_path>
58 <gp_whitelist_path> /data/misc/qsee/ </gp_whitelist_path>
59 </sfs_path>