1type hardware_info_app, domain; 2 3app_domain(hardware_info_app) 4 5# App 6allow hardware_info_app app_data_file:file execute; 7 8# Services 9allow hardware_info_app app_api_service:service_manager find; 10 11# Shell 12allow hardware_info_app shell_data_file:dir search; 13allow hardware_info_app shell_data_file:file { open read }; 14 15# SysFS 16allow hardware_info_app sysfs_batteryinfo:dir search; 17allow hardware_info_app sysfs_batteryinfo:file { getattr open read }; 18allow hardware_info_app sysfs_camera:dir search; 19allow hardware_info_app sysfs_camera:file { getattr open read }; 20allow hardware_info_app sysfs_msm_subsys:dir search; 21allow hardware_info_app sysfs_mmc:dir search; 22allow hardware_info_app sysfs_mmc:file r_file_perms; 23allow hardware_info_app sysfs_soc:dir search; 24allow hardware_info_app sysfs_soc:file { getattr open read }; 25allow hardware_info_app sysfs_display:dir search; 26allow hardware_info_app sysfs_display:file { getattr open read }; 27