uwb: add permission for ccc ranging
Bug: 255649425 Change-Id: I83ce369e52f382d76723b2b045e09607483a0a6a
This commit is contained in:
parent
1f54dc7256
commit
187dcc4e08
4 changed files with 10 additions and 0 deletions
|
@ -13,3 +13,5 @@ allow hal_nfc_default uwb_data_vendor:file r_file_perms;
|
|||
|
||||
# allow nfc to read uwb calibration file
|
||||
get_prop(hal_nfc_default, vendor_uwb_calibration_prop)
|
||||
get_prop(hal_nfc_default, vendor_uwb_calibration_country_code)
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ vendor_internal_prop(vendor_fingerprint_prop)
|
|||
|
||||
# UWB calibration
|
||||
system_vendor_config_prop(vendor_uwb_calibration_prop)
|
||||
# Country code must be vendor_public to be written by UwbVendorService and read by NFC HAL
|
||||
vendor_internal_prop(vendor_uwb_calibration_country_code)
|
||||
|
||||
# Dynamic sensor
|
||||
vendor_internal_prop(vendor_dynamic_sensor_prop)
|
||||
|
|
|
@ -89,6 +89,8 @@ vendor.gf. u:object_r:vendor_fingerprint_prop:s0
|
|||
|
||||
#uwb
|
||||
ro.vendor.uwb.calibration. u:object_r:vendor_uwb_calibration_prop:s0 exact string
|
||||
vendor.uwb.calibration.country_code u:object_r:vendor_uwb_calibration_country_code:s0 exact string
|
||||
|
||||
|
||||
# Dynamic sensor
|
||||
vendor.dynamic_sensor. u:object_r:vendor_dynamic_sensor_prop:s0
|
||||
|
|
|
@ -16,6 +16,10 @@ allow uwb_vendor_app uwb_vendor_data_file:dir create_dir_perms;
|
|||
allow hal_uwb_vendor_default self:global_capability_class_set sys_nice;
|
||||
allow hal_uwb_vendor_default kernel:process setsched;
|
||||
|
||||
# UwbVendorService must be able to read USRA version from vendor_secure_element_prop
|
||||
get_prop(uwb_vendor_app, vendor_secure_element_prop)
|
||||
# UwbVendorService must be able to write country code prop
|
||||
set_prop(uwb_vendor_app, vendor_uwb_calibration_country_code)
|
||||
|
||||
binder_call(uwb_vendor_app, hal_uwb_vendor_default)
|
||||
')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue