| get_prop(system_app, vendor_info_battery_prop) |
| |
| # For front & back camera custom property |
| get_prop(system_app, vendor_info_camera_prop) |
| |
| # Add firmware version info in settings. |
| allow system_app { |
| lcm_vendor |
| memory_vendor |
| touch_vendor |
| }:file r_file_perms; |
| |
| # Allow to read battery details |
| allow system_app sysfs_battery_supply:dir r_dir_perms; |
| allow system_app sysfs_battery_supply:file r_file_perms; |
| |
| # Allow ServiceMenu to toggle notification LED |
| allow system_app sysfs_graphics:dir search; |
| allow system_app sysfs_graphics:file { open write }; |
| allow system_app sysfs_leds:dir search; |