uwb: add permission for ccc ranging
Bug: 255649425 Change-Id: I05aac586146bf25569b5f6251d2fd62b921631be
This commit is contained in:
parent
7cc3817f71
commit
a55bb8682c
4 changed files with 7 additions and 0 deletions
1
whitechapel/vendor/google/hal_nfc_default.te
vendored
1
whitechapel/vendor/google/hal_nfc_default.te
vendored
|
@ -13,3 +13,4 @@ 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)
|
||||
|
|
2
whitechapel/vendor/google/property.te
vendored
2
whitechapel/vendor/google/property.te
vendored
|
@ -53,6 +53,8 @@ vendor_internal_prop(vendor_dynamic_sensor_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)
|
||||
|
||||
# Trusty storage FS ready
|
||||
vendor_internal_prop(vendor_trusty_storage_prop)
|
||||
|
|
1
whitechapel/vendor/google/property_contexts
vendored
1
whitechapel/vendor/google/property_contexts
vendored
|
@ -96,6 +96,7 @@ vendor.dynamic_sensor. u:object_r:vendor_dynamic_sensor
|
|||
|
||||
# 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
|
||||
|
||||
# Trusty
|
||||
ro.vendor.trusty.storage.fs_ready u:object_r:vendor_trusty_storage_prop:s0
|
||||
|
|
3
whitechapel/vendor/google/uwb_vendor_app.te
vendored
3
whitechapel/vendor/google/uwb_vendor_app.te
vendored
|
@ -15,7 +15,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