uwb: add permission for ccc ranging am: 187dcc4e08

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/21965706

Change-Id: I56e876d5f45045d887be9d8812f72f8ad8dd50b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Victor Liu 2023-04-06 21:29:19 +00:00 committed by Automerger Merge Worker
commit 1b1128bd55
4 changed files with 10 additions and 0 deletions

View file

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

View file

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

View file

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

View file

@ -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)
')