2017-02-10 00:15:11 +01:00
|
|
|
type virtual_touchpad, domain;
|
|
|
|
type virtual_touchpad_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
binder_use(virtual_touchpad)
|
|
|
|
binder_service(virtual_touchpad)
|
|
|
|
add_service(virtual_touchpad, virtual_touchpad_service)
|
|
|
|
|
2017-04-20 23:34:52 +02:00
|
|
|
# Needed to check app permissions.
|
|
|
|
binder_call(virtual_touchpad, system_server)
|
|
|
|
|
2017-02-10 00:15:11 +01:00
|
|
|
# Requires access to /dev/uinput to create and feed the virtual device.
|
|
|
|
allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
|
2017-04-20 23:34:52 +02:00
|
|
|
|
|
|
|
# Requires access to the permission service to validate that clients have the
|
|
|
|
# appropriate VR permissions.
|
|
|
|
allow virtual_touchpad permission_service:service_manager find;
|