1allow vendor_pcs_app {
2    vendor_camera_lyricconfigprovider_service
3    vendor_camera_cameraidremapper_service
4    edgetpu_app_service
5}:service_manager find;
6
7allow vendor_pcs_app hal_pixel_remote_camera_service:service_manager add;
8
9binder_call(vendor_pcs_app, hal_pixel_remote_camera_service);
10binder_call(vendor_pcs_app, hal_camera_default);
11
12# Allow interacting with EdgeTpu.
13allow vendor_pcs_app edgetpu_device:chr_file { getattr read write ioctl map };
14
15# Allow PCS to open socket connections for HTTP streaming support.
16allow vendor_pcs_app vendor_pcs_app:unpriv_socket_class_set create_socket_perms_no_ioctl;
17allow vendor_pcs_app fwmarkd_socket:sock_file write;
18allow vendor_pcs_app port:tcp_socket name_connect;
19allow vendor_pcs_app port:udp_socket name_bind;
20allow vendor_pcs_app netd:unix_stream_socket connectto;
21allow vendor_pcs_app node:udp_socket node_bind;
22
23allow netd vendor_pcs_app:unpriv_socket_class_set create_socket_perms_no_ioctl;
24allow netd vendor_pcs_app:fd use;
25