diff --git a/vendor/file_contexts b/vendor/file_contexts index d692577..1b1cd08 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -15,3 +15,6 @@ /dev/socket/wifihal(/.*)? u:object_r:vendor_wifihal_socket:s0 /vendor/bin/loc_launcher u:object_r:vendor_location_exec:s0 /vendor/bin/lowi-server u:object_r:lowi_server_exec:s0 + +# Haptics +/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private-lynx u:object_r:hal_vibrator_default_exec:s0 \ No newline at end of file diff --git a/vendor/hal_vibrator_default.te b/vendor/hal_vibrator_default.te new file mode 100644 index 0000000..b5c7202 --- /dev/null +++ b/vendor/hal_vibrator_default.te @@ -0,0 +1,3 @@ +# Allow Vibrator HAL to communicate with daemon via socket +allow hal_vibrator_default chre:unix_stream_socket connectto; +allow hal_vibrator_default chre_socket:sock_file write; \ No newline at end of file diff --git a/vendor/property_contexts b/vendor/property_contexts new file mode 100644 index 0000000..75cbb36 --- /dev/null +++ b/vendor/property_contexts @@ -0,0 +1,2 @@ +# Haptics +persist.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 diff --git a/vendor/vendor_init.te b/vendor/vendor_init.te index 6d9b469..440c30c 100644 --- a/vendor/vendor_init.te +++ b/vendor/vendor_init.te @@ -1 +1,5 @@ +# Camera set_prop(vendor_init, vendor_camera_prop) + +# Haptics +get_prop(vendor_init, adaptive_haptics_prop)