1type pixelstats_vendor, domain;
2
3# IStats
4binder_use(pixelstats_vendor)
5
6type pixelstats_vendor_exec, exec_type, vendor_file_type, file_type;
7init_daemon_domain(pixelstats_vendor)
8
9# UeventListener
10r_dir_file(pixelstats_vendor, sysfs_batteryinfo)
11allow pixelstats_vendor sysfs_batteryinfo:file w_file_perms;
12allow pixelstats_vendor self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
13
14allow pixelstats_vendor mnt_vendor_file:dir search;
15allow pixelstats_vendor sysfs_scsi_devices_0000:dir search;
16allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
17allow pixelstats_vendor sysfs_fs_f2fs:dir search;
18allow pixelstats_vendor sysfs_fs_f2fs:file rw_file_perms;
19get_prop(pixelstats_vendor, boottime_public_prop)
20get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop)
21
22allow pixelstats_vendor fwk_stats_service:service_manager find;
23binder_call(pixelstats_vendor, stats_service_server)
24
25# Pixel MM Metrics: (Atoms: PixelMmMetricsPerHour, PixelMmMetricsPerDay,
26#                    CmaStatus, CmaStatusExt, ZramBdStat, ZramMmStat)
27allow pixelstats_vendor kernel:dir search;
28allow pixelstats_vendor kernel:file r_file_perms;
29allow pixelstats_vendor proc_meminfo:file r_file_perms;
30allow pixelstats_vendor proc_pressure_cpu:file r_file_perms;
31allow pixelstats_vendor proc_pressure_io:file r_file_perms;
32allow pixelstats_vendor proc_pressure_mem:file r_file_perms;
33allow pixelstats_vendor proc_stat:file r_file_perms;
34allow pixelstats_vendor proc_vmstat:file r_file_perms;
35allow pixelstats_vendor sysfs_dma_heap:dir search;
36allow pixelstats_vendor sysfs_dma_heap:file r_file_perms;
37allow pixelstats_vendor sysfs_ion:dir search;
38allow pixelstats_vendor sysfs_ion:file r_file_perms;
39allow pixelstats_vendor sysfs_pixel_stat:dir r_dir_perms;
40allow pixelstats_vendor sysfs_pixel_stat:file r_file_perms;
41allow pixelstats_vendor sysfs_zram:dir search;
42allow pixelstats_vendor sysfs_zram:file r_file_perms;
43
44# Pixel MM Metrics 2024a2
45r_dir_file(pixelstats_vendor, proc_vendor_mm)
46
47