1type lhd, domain;
2type lhd_exec, vendor_file_type, exec_type, file_type;
3init_daemon_domain(lhd)
4
5# Allow lhd access PixelLogger unix socket in debug build only
6userdebug_or_eng(`
7    typeattribute lhd mlstrustedsubject;
8    allow lhd logger_app:unix_stream_socket connectto;
9')
10
11# Allow lhd access data vendor gps files
12allow lhd vendor_gps_file:dir create_dir_perms;
13allow lhd vendor_gps_file:file create_file_perms;
14allow lhd vendor_gps_file:fifo_file create_file_perms;
15
16# Allow lhd to obtain wakelock
17wakelock_use(lhd)
18
19# Allow lhd access /dev/bbd_control file
20allow lhd vendor_gnss_device:chr_file rw_file_perms;
21
22# Allow lhd access nstandby gpio
23allow lhd sysfs_gps:file rw_file_perms;
24