• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# Policy File of /vendor/bin/hw/vendor.mediatek.hardware.pq@2.0-service Executable File
3
4# ==============================================
5# Type Declaration
6# ==============================================
7
8type mtk_hal_pq, domain;
9type mtk_hal_pq_exec, exec_type, file_type, vendor_file_type;
10
11# ==============================================
12# MTK Policy Rule
13# ==============================================
14
15# Setup for domain transition
16init_daemon_domain(mtk_hal_pq)
17
18# Allow to use HWBinder IPC
19hwbinder_use(mtk_hal_pq);
20
21# Allow a set of permissions required for a domain to be a server which provides a HAL implementation over HWBinder.
22hal_server_domain(mtk_hal_pq, hal_pq)
23
24# add/find permission rule to hwservicemanager
25add_hwservice(hal_pq_server, mtk_hal_pq_hwservice)
26
27# Allow to allocate hidl memory
28hal_client_domain(mtk_hal_pq, hal_allocator)
29
30# Purpose : Allow to use kernel driver
31allow mtk_hal_pq graphics_device:chr_file { read write open ioctl };
32
33# Purpose : Allow permission to get AmbientLux from hwservice_manager
34allow mtk_hal_pq fwk_sensor_hwservice:hwservice_manager find;
35
36# Purpose : Allow permission to set pq property
37set_prop(mtk_hal_pq, vendor_mtk_pq_prop)
38
39# Purpose :
40allow mtk_hal_pq gpu_device:dir search;
41allow mtk_hal_pq dri_device:chr_file rw_file_perms;
42