mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 10:28:38 +00:00
sepolicy: hwinfo: Add battery fuel gauge permission
Bug: 208909060
Bug: 219660742
Bug: 219660741
Test: check dmeg and search "avc: denied { search } for
comm="id.hardwareinfo" vendor_maxfg_debugfs avc gone after apply patch
Change-Id: I3399e696b59218e62c4d1adcc2a12f5d6ee5c8cc
Signed-off-by: Denny cy Lee <dennycylee@google.com>
This commit is contained in:
committed by
TreeHugger Robot
parent
064c6a86e0
commit
efbd9fa0b2
@@ -21,3 +21,9 @@ allow hardware_info_app sysfs_display:file r_file_perms;
|
||||
# SoC
|
||||
allow hardware_info_app sysfs_soc:file r_file_perms;
|
||||
allow hardware_info_app sysfs_chip_id:file r_file_perms;
|
||||
|
||||
# Fuel
|
||||
userdebug_or_eng(`
|
||||
allow hardware_info_app vendor_maxfg_debugfs:dir search;
|
||||
allow hardware_info_app vendor_maxfg_debugfs:file r_file_perms;
|
||||
')
|
||||
|
||||
Reference in New Issue
Block a user