Merge "gps: pixel gnss aidl service (sepolicy)" into udc-qpr-dev
This commit is contained in:
commit
4f1985f354
6 changed files with 20 additions and 0 deletions
1
vendor/file.te
vendored
Normal file
1
vendor/file.te
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
type sysfs_modem_state, sysfs_type, fs_type;
|
2
vendor/file_contexts
vendored
2
vendor/file_contexts
vendored
|
@ -12,7 +12,9 @@
|
||||||
/vendor/bin/hw/sctd u:object_r:sctd_exec:s0
|
/vendor/bin/hw/sctd u:object_r:sctd_exec:s0
|
||||||
/vendor/bin/hw/swcnd u:object_r:swcnd_exec:s0
|
/vendor/bin/hw/swcnd u:object_r:swcnd_exec:s0
|
||||||
/vendor/bin/hw/spad u:object_r:spad_exec:s0
|
/vendor/bin/hw/spad u:object_r:spad_exec:s0
|
||||||
|
|
||||||
/vendor/bin/hw/android.hardware.gnss-service u:object_r:hal_gnss_default_exec:s0
|
/vendor/bin/hw/android.hardware.gnss-service u:object_r:hal_gnss_default_exec:s0
|
||||||
|
/vendor/bin/hw/android.hardware.gnss-service.pixel u:object_r:hal_gnss_pixel_exec:s0
|
||||||
|
|
||||||
# gnss/gps data/log files
|
# gnss/gps data/log files
|
||||||
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
|
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
|
||||||
|
|
3
vendor/genfs_contexts
vendored
3
vendor/genfs_contexts
vendored
|
@ -61,3 +61,6 @@ genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0025/power_supply/tcpm-s
|
||||||
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0025/power_supply/tcpm-source-psy-9-0025/wakeup u:object_r:sysfs_wakeup:s0
|
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0025/power_supply/tcpm-source-psy-9-0025/wakeup u:object_r:sysfs_wakeup:s0
|
||||||
|
|
||||||
genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0
|
genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0
|
||||||
|
|
||||||
|
# modem state
|
||||||
|
genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0
|
||||||
|
|
12
vendor/hal_gnss_pixel.te
vendored
Normal file
12
vendor/hal_gnss_pixel.te
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
type hal_gnss_pixel, domain;
|
||||||
|
hal_server_domain(hal_gnss_pixel, hal_gnss)
|
||||||
|
|
||||||
|
type hal_gnss_pixel_exec, exec_type, vendor_file_type, file_type;
|
||||||
|
init_daemon_domain(hal_gnss_pixel)
|
||||||
|
|
||||||
|
#IPC between pixel and vendor HAL
|
||||||
|
binder_call(hal_gnss_pixel, hal_gnss_default)
|
||||||
|
binder_call(hal_gnss_default, hal_gnss_pixel)
|
||||||
|
|
||||||
|
#Read modem state /sys/bus/platform/devices/cpif/modem_state
|
||||||
|
allow hal_gnss_pixel sysfs_modem_state:file r_file_perms;
|
1
vendor/service_contexts
vendored
Normal file
1
vendor/service_contexts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
android.hardware.gnss.IGnss/vendor u:object_r:hal_gnss_service:s0
|
1
vendor/servicemanager.te
vendored
Normal file
1
vendor/servicemanager.te
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
binder_call(servicemanager, hal_gnss_pixel)
|
Loading…
Add table
Add a link
Reference in a new issue