uwb: add permission for ccc ranging am: 187dcc4e08
am: 1b1128bd55
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/21965706 Change-Id: I8b5ae028d2a9fe7abc7c700e3a7d484491645f2a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
34c2aef8ae
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