Home | History | Annotate | Download | only in public
      1 type virtual_touchpad, domain;
      2 type virtual_touchpad_exec, exec_type, file_type;
      3 
      4 binder_use(virtual_touchpad)
      5 binder_service(virtual_touchpad)
      6 add_service(virtual_touchpad, virtual_touchpad_service)
      7 
      8 # Needed to check app permissions.
      9 binder_call(virtual_touchpad, system_server)
     10 
     11 # Requires access to /dev/uinput to create and feed the virtual device.
     12 allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
     13 
     14 # Requires access to the permission service to validate that clients have the
     15 # appropriate VR permissions.
     16 allow virtual_touchpad permission_service:service_manager find;
     17