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:
Cheng Chang 2024-04-01 04:33:28 +00:00
parent b0910805c0
commit ab38b9e239
4 changed files with 3 additions and 15 deletions

View file

@ -14,7 +14,6 @@
/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

View file

@ -7,3 +7,6 @@ allow hal_gnss_default sysfs_gps:file rw_file_perms;
#Read GPS property #Read GPS property
get_prop(hal_gnss_default, vendor_gps_prop) get_prop(hal_gnss_default, vendor_gps_prop)
# Binder call to pixel-gnss
binder_call(hal_gnss_default, hal_gnss_pixel)

View file

@ -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;

View file

@ -1 +0,0 @@
android.hardware.gnss.IGnss/vendor u:object_r:hal_gnss_service:s0