Hardwareinfo: battery info porting
Test: No read error in logcat Bug: 171947164 Bug: 181915166 Bug: 181177926 Bug: 181914888 Bug: 188627513 Change-Id: Ibbed06cc7e6eb00c8611cdc8bc95356b17c7e043 Signed-off-by: Denny cy Lee <dennycylee@google.com>
This commit is contained in:
parent
699d68a092
commit
1eb6bfcd3e
2 changed files with 8 additions and 11 deletions
|
@ -1,14 +1,4 @@
|
||||||
# b/181177926
|
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:file { read };
|
|
||||||
dontaudit hardware_info_app sysfs:file { read };
|
|
||||||
dontaudit hardware_info_app sysfs:file { open };
|
|
||||||
dontaudit hardware_info_app sysfs:file { getattr };
|
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:dir { search };
|
|
||||||
# b/181914888
|
# b/181914888
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:file { open };
|
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:file { getattr };
|
|
||||||
dontaudit hardware_info_app vendor_regmap_debugfs:dir { search };
|
dontaudit hardware_info_app vendor_regmap_debugfs:dir { search };
|
||||||
# b/181915166
|
# b/181915166
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:file { getattr };
|
|
||||||
dontaudit hardware_info_app sysfs_batteryinfo:file { open };
|
|
||||||
dontaudit hardware_info_app vendor_regmap_debugfs:dir { search };
|
dontaudit hardware_info_app vendor_regmap_debugfs:dir { search };
|
||||||
|
|
|
@ -14,4 +14,11 @@ allow hardware_info_app sysfs_pixelstats:file r_file_perms;
|
||||||
|
|
||||||
# Storage
|
# Storage
|
||||||
allow hardware_info_app sysfs_scsi_devices_0000:dir search;
|
allow hardware_info_app sysfs_scsi_devices_0000:dir search;
|
||||||
allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms;
|
allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms;
|
||||||
|
|
||||||
|
# Battery
|
||||||
|
allow hardware_info_app sysfs_batteryinfo:file r_file_perms;
|
||||||
|
allow hardware_info_app sysfs_batteryinfo:dir search;
|
||||||
|
|
||||||
|
# SoC
|
||||||
|
allow hardware_info_app sysfs:file r_file_perms;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue