This is SELinux enforcement introduced in Lollipop. One way is to invoke "setenforce Permissive" as root.
Edit: if SuperSU is installed on the device, the following policy will also provide access to / dev / input without having to reset SELinux to allow mode.
supolicy --live "allow appdomain input_device dir { ioctl read getattr search open }" "allow appdomain input_device chr_file { ioctl read write getattr lock append open }"
Irwin source share