Alex Klyubin | f5446eb | 2017-03-23 14:27:32 -0700 | [diff] [blame] | 1 | typeattribute virtual_touchpad coredomain; |
| 2 | |
Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 3 | init_daemon_domain(virtual_touchpad) |
Inseob Kim | 75806ef | 2024-03-27 17:18:41 +0900 | [diff] [blame] | 4 | |
| 5 | binder_use(virtual_touchpad) |
| 6 | binder_service(virtual_touchpad) |
| 7 | add_service(virtual_touchpad, virtual_touchpad_service) |
| 8 | |
| 9 | # Needed to check app permissions. |
| 10 | binder_call(virtual_touchpad, system_server) |
| 11 | |
| 12 | # Requires access to /dev/uinput to create and feed the virtual device. |
| 13 | allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl }; |
| 14 | |
| 15 | # Requires access to the permission service to validate that clients have the |
| 16 | # appropriate VR permissions. |
| 17 | allow virtual_touchpad permission_service:service_manager find; |