Skip to content
Snippets Groups Projects
Commit bb103de6 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9253587 from 6c42229d to tm-d3-release

Change-Id: Iab35ce7f310f19ac6be3143bb6fff8354c17d898
parents dda7f65e 6c42229d
Branches caf_migration/LA.BF.1.1.2_rb1.23
Tags LA.BF.1.1.2-03810-8x26.0
No related merge requests found
type vibrator_device, dev_type;
...@@ -11,3 +11,8 @@ ...@@ -11,3 +11,8 @@
/dev/ttySAC18 u:object_r:hci_attach_dev:s0 /dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0 /dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0 /dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
# Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private u:object_r:hal_vibrator_default_exec:s0
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-stereo-private u:object_r:hal_vibrator_stereo_exec:s0
/dev/gpiochip44 u:object_r:vibrator_device:s0
# Allow vibrator HAL to communicate with another service
binder_call(hal_vibrator_default, hal_vibrator_stereo);
# Allow vibrator HAL to "add" the hal_vibrator_vndservice service type
add_service(hal_vibrator_default, hal_vibrator_vndservice);
# From system sepilicy
type hal_vibrator_stereo, domain;
hal_server_domain(hal_vibrator_stereo, hal_vibrator)
type hal_vibrator_stereo_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_vibrator_stereo)
# From project
get_prop(hal_vibrator_stereo, vendor_vibrator_prop);
get_prop(hal_vibrator_stereo, boot_status_prop);
# Allow vibrator HAL's default implementation to use vendor-binder service
vndbinder_use(hal_vibrator_stereo);
# For gpio dev node
allow hal_vibrator_stereo vibrator_device:chr_file rw_file_perms;
# For vibrator HAL's communication with other service
binder_call(hal_vibrator_stereo, hal_vibrator_default);
allow hal_vibrator_stereo hal_vibrator_vndservice:service_manager find;
type hal_vibrator_vndservice, vndservice_manager_type;
android.hardware.vibrator.IVibratorSync/default u:object_r:hal_vibrator_vndservice:s0
android.hardware.vibrator.IVibratorSync/dual u:object_r:hal_vibrator_vndservice:s0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment