1binder_use(pixelstats_vendor) 2 3get_prop(pixelstats_vendor, hwservicemanager_prop) 4hwbinder_use(pixelstats_vendor) 5 6allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms; 7allow pixelstats_vendor sysfs_pixelstats:file r_file_perms; 8 9# Wireless charge 10allow pixelstats_vendor sysfs_wlc:dir search; 11allow pixelstats_vendor sysfs_wlc:file rw_file_perms; 12# Wireless charge/OrientationCollector 13get_prop(pixelstats_vendor, hwservicemanager_prop); 14hwbinder_use(pixelstats_vendor); 15allow pixelstats_vendor fwk_sensor_hwservice:hwservice_manager find; 16# android.frameworks.sensorservice through libsensorndkbridge 17allow pixelstats_vendor fwk_sensor_service:service_manager find; 18 19 20# Batery history 21allow pixelstats_vendor battery_history_device:chr_file r_file_perms; 22allow pixelstats_vendor logbuffer_device:chr_file r_file_perms; 23 24# storage smart idle maintenance 25get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop); 26 27# Pca charge 28allow pixelstats_vendor sysfs_pca:file rw_file_perms; 29 30#Thermal 31r_dir_file(pixelstats_vendor, sysfs_thermal) 32allow pixelstats_vendor sysfs_thermal:lnk_file r_file_perms; 33 34# BCL 35allow pixelstats_vendor sysfs_bcl:dir search; 36allow pixelstats_vendor sysfs_bcl:file r_file_perms; 37allow pixelstats_vendor mitigation_vendor_data_file:dir search; 38allow pixelstats_vendor mitigation_vendor_data_file:file rw_file_perms; 39get_prop(pixelstats_vendor, vendor_brownout_reason_prop); 40 41# PCIe statistics 42allow pixelstats_vendor sysfs_exynos_pcie_stats:dir search; 43allow pixelstats_vendor sysfs_exynos_pcie_stats:file rw_file_perms; 44 45#perf-metrics 46r_dir_file(pixelstats_vendor, sysfs_vendor_metrics) 47allow pixelstats_vendor sysfs_vendor_metrics:lnk_file r_file_perms; 48allow pixelstats_vendor sysfs_vendor_metrics:file w_file_perms; 49 50# BCL 51allow pixelstats_vendor sysfs_bcl:dir search; 52allow pixelstats_vendor sysfs_bcl:file r_file_perms; 53allow pixelstats_vendor mitigation_vendor_data_file:dir search; 54allow pixelstats_vendor mitigation_vendor_data_file:file { read write }; 55get_prop(pixelstats_vendor, vendor_brownout_reason_prop); 56