T6Pro Bluetooth bringup am: 37bb48c05e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro-sepolicy/+/18841352 Change-Id: I6b2d023d6297927819509749d08730b3667c9388 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
eb43aa817d
3 changed files with 23 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service-qti u:object_r:hal_bluetooth_default_exec:s0
|
/vendor/bin/hw/android\.hardware\.bluetooth@1\.1-service\.synabtlinux u:object_r:hal_bluetooth_synabtlinux_exec:s0
|
||||||
|
|
||||||
/dev/btpower u:object_r:bt_device:s0
|
|
||||||
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
|
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
genfscon sysfs /devices/platform/odm/odm:btqcom/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
|
genfscon sysfs /devices/platform/odm/odm:btbcm/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
|
||||||
|
genfscon proc /bluetooth/sleep/btwrite u:object_r:proc_bluetooth_writable:s0
|
||||||
|
genfscon proc /bluetooth/sleep/lpm u:object_r:proc_bluetooth_writable:s0
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
allow hal_bluetooth_default bt_device:chr_file rw_file_perms;
|
type hal_bluetooth_synabtlinux, domain;
|
||||||
|
type hal_bluetooth_synabtlinux_exec, exec_type, file_type, vendor_file_type;
|
||||||
|
|
||||||
add_hwservice(hal_bluetooth_default, hal_bluetooth_coexistence_hwservice)
|
hal_server_domain(hal_bluetooth_synabtlinux, hal_bluetooth)
|
||||||
|
init_daemon_domain(hal_bluetooth_synabtlinux)
|
||||||
|
|
||||||
userdebug_or_eng(`
|
allow hal_bluetooth_synabtlinux self:socket { create bind read write };
|
||||||
allow hal_bluetooth_default sscoredump_vendor_data_crashinfo_file:dir rw_dir_perms;
|
allow hal_bluetooth_synabtlinux self:bluetooth_socket { create bind read write };
|
||||||
allow hal_bluetooth_default sscoredump_vendor_data_crashinfo_file:file { create_file_perms };
|
allow hal_bluetooth_synabtlinux hci_attach_dev:chr_file rw_file_perms;
|
||||||
set_prop(hal_bluetooth_default, vendor_ssrdump_prop)
|
allow hal_bluetooth_synabtlinux hal_power_stats_vendor_service:service_manager find;
|
||||||
')
|
add_hwservice(hal_bluetooth_synabtlinux, hal_bluetooth_coexistence_hwservice)
|
||||||
|
vndbinder_use(hal_bluetooth_synabtlinux)
|
||||||
|
|
||||||
|
allow hal_bluetooth_synabtlinux sscoredump_vendor_data_crashinfo_file:dir create_dir_perms;
|
||||||
|
allow hal_bluetooth_synabtlinux sscoredump_vendor_data_crashinfo_file:file create_file_perms;
|
||||||
|
|
||||||
|
userdebug_or_eng(`
|
||||||
|
allow hal_bluetooth_synabtlinux logbuffer_device:chr_file r_file_perms;
|
||||||
|
allow hal_bluetooth_synabtlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms;
|
||||||
|
allow hal_bluetooth_synabtlinux sscoredump_vendor_data_coredump_file:file create_file_perms;
|
||||||
|
')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue