modularize lhd
Bug: 197914244 Test: boot with lhd started Change-Id: I873a151e4dc6e512b8831b936c3e057ae544888c
This commit is contained in:
parent
8f611991f7
commit
99ab56746a
9 changed files with 11 additions and 11 deletions
1
gps/device.te
Normal file
1
gps/device.te
Normal file
|
@ -0,0 +1 @@
|
|||
type vendor_gnss_device, dev_type;
|
|
@ -3,3 +3,4 @@ userdebug_or_eng(`
|
|||
typeattribute vendor_gps_file mlstrustedobject;
|
||||
')
|
||||
|
||||
type sysfs_gps, sysfs_type, fs_type;
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
# gnss/gps data/log files
|
||||
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
|
||||
|
||||
# devices
|
||||
/dev/bbd_control u:object_r:vendor_gnss_device:s0
|
||||
/dev/ttyBCM u:object_r:vendor_gnss_device:s0
|
||||
|
||||
# vendor binaries
|
||||
/vendor/bin/hw/scd u:object_r:scd_exec:s0
|
||||
/vendor/bin/hw/lhd u:object_r:lhd_exec:s0
|
||||
|
|
3
gps/genfs_contexts
Normal file
3
gps/genfs_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
# GPS
|
||||
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0
|
||||
|
|
@ -9,7 +9,6 @@ type sda_block_device, dev_type;
|
|||
|
||||
# Exynos devices
|
||||
type vendor_m2m1shot_device, dev_type;
|
||||
type vendor_gnss_device, dev_type;
|
||||
type vendor_nanohub_device, dev_type;
|
||||
type vendor_secmem_device, dev_type;
|
||||
type vendor_toe_device, dev_type;
|
||||
|
|
|
@ -104,9 +104,6 @@ type persist_camera_file, file_type;
|
|||
type vendor_camera_tuning_file, vendor_file_type, file_type;
|
||||
type vendor_camera_data_file, file_type, data_file_type;
|
||||
|
||||
# GPS
|
||||
type sysfs_gps, sysfs_type, fs_type;
|
||||
|
||||
# Display
|
||||
type sysfs_display, sysfs_type, fs_type;
|
||||
type persist_display_file, file_type, vendor_persist_type;
|
||||
|
|
|
@ -77,10 +77,7 @@
|
|||
#
|
||||
# Exynos Devices
|
||||
#
|
||||
/dev/gnss_ipc u:object_r:vendor_gnss_device:s0
|
||||
/dev/bbd_control u:object_r:vendor_gnss_device:s0
|
||||
/dev/bbd_pwrstat u:object_r:power_stats_device:s0
|
||||
/dev/ttyBCM u:object_r:vendor_gnss_device:s0
|
||||
/dev/nanohub u:object_r:vendor_nanohub_device:s0
|
||||
/dev/nanohub_comms u:object_r:vendor_nanohub_device:s0
|
||||
/dev/m2m1shot_scaler0 u:object_r:vendor_m2m1shot_device:s0
|
||||
|
@ -115,7 +112,6 @@
|
|||
#
|
||||
/(vendor|system/vendor)/bin/cbd u:object_r:cbd_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/gpsd u:object_r:gpsd_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/lhd u:object_r:lhd_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/rild_exynos u:object_r:rild_exec:s0
|
||||
/(vendor|system/vendor)/bin/rfsd u:object_r:rfsd_exec:s0
|
||||
/(vendor|system/vendor)/bin/bipchmgr u:object_r:bipchmgr_exec:s0
|
||||
|
|
|
@ -102,9 +102,6 @@ genfscon proc /fts/driver_test
|
|||
genfscon proc /fts_ext/driver_test u:object_r:proc_touch:s0
|
||||
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_touch:s0
|
||||
|
||||
# GPS
|
||||
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0
|
||||
|
||||
# Display
|
||||
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/gamma u:object_r:sysfs_display:s0
|
||||
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/gamma u:object_r:sysfs_display:s0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue