Add props to control Oppo touchpanel

This is needed because /proc/touchpanel is u:object_r:proc:s0
We can't have our own genfscon on it, because we might hit conflicts
This commit is contained in:
Pierre-Hugues Husson 2020-02-21 18:02:41 +01:00
parent 62f63e975d
commit 17a2cc66f3

View File

@ -16,3 +16,9 @@ on property:sys.boot_completed=1
on property:persist.sys.phh.mainkeys=*
setprop qemu.hw.mainkeys ${persist.sys.phh.mainkeys}
on property:persist.sys.phh.oppo.dt2w=*
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/sh -c "echo ${persist.sys.phh.oppo.dt2w} > /proc/touchpanel/double_tap_enable"
on property:persist.sys.phh.oppo.gaming_mode=*
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/sh -c "echo ${persist.sys.phh.oppo.gaming_mode} > /proc/touchpanel/game_switch_enable"