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; 22 23# storage smart idle maintenance 24get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop); 25 26# Pca charge 27allow pixelstats_vendor sysfs_pca:file rw_file_perms; 28 29#Thermal 30r_dir_file(pixelstats_vendor, sysfs_thermal) 31allow pixelstats_vendor sysfs_thermal:lnk_file r_file_perms; 32 33# BCL 34allow pixelstats_vendor sysfs_bcl:dir search; 35allow pixelstats_vendor sysfs_bcl:file r_file_perms; 36 37# PCIe statistics 38allow pixelstats_vendor sysfs_exynos_pcie_stats:dir search; 39allow pixelstats_vendor sysfs_exynos_pcie_stats:file rw_file_perms; 40 41#perf-metrics 42r_dir_file(pixelstats_vendor, sysfs_vendor_metrics) 43allow pixelstats_vendor sysfs_vendor_metrics:lnk_file r_file_perms; 44allow pixelstats_vendor sysfs_vendor_metrics:file w_file_perms; 45 46# BCL 47allow pixelstats_vendor sysfs_bcl:dir search; 48allow pixelstats_vendor sysfs_bcl:file r_file_perms; 49allow pixelstats_vendor mitigation_vendor_data_file:dir search; 50allow pixelstats_vendor mitigation_vendor_data_file:file { read write }; 51get_prop(pixelstats_vendor, vendor_brownout_reason_prop); 52