gps: Merge akita pixel-gnss sepolicy to gs-common folder
Bug: 332204989 Test: Health boot check at b/332204989#comment36 Test: Verification test at b/332204989. Change-Id: Id8801b90a2b5927329a7dc558f0bc29c2d4609ed
This commit is contained in:
parent
b0910805c0
commit
ab38b9e239
4 changed files with 3 additions and 15 deletions
1
vendor/file_contexts
vendored
1
vendor/file_contexts
vendored
|
@ -14,7 +14,6 @@
|
|||
/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.pixel u:object_r:hal_gnss_pixel_exec:s0
|
||||
|
||||
# gnss/gps data/log files
|
||||
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
|
||||
|
|
3
vendor/hal_gnss_default.te
vendored
3
vendor/hal_gnss_default.te
vendored
|
@ -7,3 +7,6 @@ allow hal_gnss_default sysfs_gps:file rw_file_perms;
|
|||
|
||||
#Read GPS property
|
||||
get_prop(hal_gnss_default, vendor_gps_prop)
|
||||
|
||||
# Binder call to pixel-gnss
|
||||
binder_call(hal_gnss_default, hal_gnss_pixel)
|
13
vendor/hal_gnss_pixel.te
vendored
13
vendor/hal_gnss_pixel.te
vendored
|
@ -1,13 +0,0 @@
|
|||
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;
|
||||
allow hal_gnss_pixel sysfs_gps:file rw_file_perms;
|
1
vendor/service_contexts
vendored
1
vendor/service_contexts
vendored
|
@ -1 +0,0 @@
|
|||
android.hardware.gnss.IGnss/vendor u:object_r:hal_gnss_service:s0
|
Loading…
Add table
Add a link
Reference in a new issue