From b701c84f5848ec042d66bccaac939373d3b40d5d Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 1 Dec 2019 17:02:12 +0100 Subject: [PATCH] Allow treble_app to control /dev/input/eventX (useful to enable dt2w) --- sepolicy/treble_app.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/treble_app.te b/sepolicy/treble_app.te index e6cdf3c..f78a29a 100644 --- a/sepolicy/treble_app.te +++ b/sepolicy/treble_app.te @@ -7,3 +7,7 @@ allow system_app sysfs_batteryinfo:file rw_file_perms; type vendor_camera_prop, property_type; set_prop(system_app, vendor_camera_prop); + +#Used to control double-tap-to-wake on Xiaomi +allow system_app input_device:chr_file rw_file_perms; +allow system_app input_device:dir r_dir_perms;