Spacewar: let vibrator service access richtap dev
Change-Id: I19cf413ebe128ac952e2f5237907b7bb7afcbc7f
This commit is contained in:
committed by
Wiktor Rudzki
parent
251be0e2e9
commit
1c778d4b03
3
sepolicy/vendor/device.te
vendored
3
sepolicy/vendor/device.te
vendored
@@ -1,2 +1,5 @@
|
||||
# Fingerprint
|
||||
type fingerprint_device, dev_type;
|
||||
|
||||
# Vibrator
|
||||
type aac_richtap_dev_device, dev_type;
|
||||
|
||||
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
@@ -21,4 +21,5 @@
|
||||
/sys/devices/platform/soc/984000.i2c/i2c-0/0-0020/leds/aw210xx_led(/.*)? u:object_r:sysfs_leds:s0
|
||||
|
||||
# Vibrator
|
||||
/vendor/bin/hw/android.hardware.vibrator.service.spacewar u:object_r:hal_vibrator_default_exec:s0
|
||||
/dev/aw8697_haptic u:object_r:aac_richtap_dev_device:s0
|
||||
/vendor/bin/hw/android.hardware.vibrator.service.spacewar u:object_r:hal_vibrator_default_exec:s0
|
||||
|
||||
1
sepolicy/vendor/hal_vibrator_default.te
vendored
Normal file
1
sepolicy/vendor/hal_vibrator_default.te
vendored
Normal file
@@ -0,0 +1 @@
|
||||
allow hal_vibrator_default aac_richtap_dev_device:chr_file rw_file_perms;
|
||||
Reference in New Issue
Block a user