diff options
author | Calvin Huang <calhuang@google.com> | 2019-12-12 10:24:45 -0800 |
---|---|---|
committer | Calvin Huang <calhuang@google.com> | 2019-12-12 18:29:09 +0000 |
commit | 545cc50e323c6e36a42026f5773bc7aa26448221 (patch) | |
tree | 541d3435607db830c71a080d2978bb802f41b3cd | |
parent | ef3aa970c0687c34bd88a0ec130baccd6f5ca4fe (diff) | |
download | device_generic_car-545cc50e323c6e36a42026f5773bc7aa26448221.tar.gz device_generic_car-545cc50e323c6e36a42026f5773bc7aa26448221.tar.bz2 device_generic_car-545cc50e323c6e36a42026f5773bc7aa26448221.zip |
Update bluetooth sepolicy on car emu
Update bluetooth related sepolicy based on cuttlefish
Bug: 144849034
Test: Manual
Change-Id: I6f70fef58b113e39f20f67fe5bd941ec2653066b
-rw-r--r-- | common/sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | common/sepolicy/property_contexts | 0 | ||||
-rw-r--r-- | common/sepolicy/vendor/property_contexts | 2 | ||||
-rw-r--r-- | common/sepolicy/vendor/vendor_init.te | 8 |
4 files changed, 11 insertions, 1 deletions
diff --git a/common/sepolicy/file_contexts b/common/sepolicy/file_contexts index e3e07d2..ed5712b 100644 --- a/common/sepolicy/file_contexts +++ b/common/sepolicy/file_contexts @@ -1,2 +1,2 @@ # label the bluetooth@1.0-service.sim or it won't register during system boot -/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim u:object_r:hal_bluetooth_default_exec:s0 +/vendor/bin/hw/android\.hardware\.bluetooth@1\.1-service\.sim u:object_r:hal_bluetooth_default_exec:s0 diff --git a/common/sepolicy/property_contexts b/common/sepolicy/property_contexts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/common/sepolicy/property_contexts diff --git a/common/sepolicy/vendor/property_contexts b/common/sepolicy/vendor/property_contexts new file mode 100644 index 0000000..1925671 --- /dev/null +++ b/common/sepolicy/vendor/property_contexts @@ -0,0 +1,2 @@ +bt.rootcanal_mac_address u:object_r:hal_bluetooth_sim_prop:s0 +bt.rootcanal_test_console u:object_r:hal_bluetooth_sim_prop:s0
\ No newline at end of file diff --git a/common/sepolicy/vendor/vendor_init.te b/common/sepolicy/vendor/vendor_init.te new file mode 100644 index 0000000..d3a115f --- /dev/null +++ b/common/sepolicy/vendor/vendor_init.te @@ -0,0 +1,8 @@ +allow vendor_init { + audio_device + input_events_device + libcuttlefish_rild_device + region_screen_device +}:chr_file { getattr }; + +set_prop(vendor_init, hal_bluetooth_sim_prop) |