Grant the MDS access to the IPowerStats hal service.
ref logs: 09-06 10:07:18.006 536 536 I auditd : avc: denied { find } for pid=22543 uid=10225 name=android.hardware.power.stats.IPowerStats/default scontext=u:r:modem_diagnostic_app:s0:c512,c768 tcontext=u:object_r:hal_power_stats_service:s0 tclass=service_manager permissive=1 09-06 10:07:18.010 22543 22543 I auditd : type=1400 audit(0.0:65): avc: denied { call } for comm="pool-4-thread-1" scontext=u:r:modem_diagnostic_app:s0:c512,c768 tcontext=u:r:hal_power_stats_default:s0 tclass=binder permissive=1 app=com.google.mds Test: Tested with MDS app and the MDS can get IPowerStats binder and call the interface. Bug: 297250368 Change-Id: I7503a86baa01e4391d64f958cd053822de78d8fd
This commit is contained in:
parent
2ceb44240d
commit
72c63096bd
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ allow modem_diagnostic_app app_api_service:service_manager find;
|
|||
allow modem_diagnostic_app radio_service:service_manager find;
|
||||
|
||||
userdebug_or_eng(`
|
||||
hal_client_domain(modem_diagnostic_app, hal_power_stats);
|
||||
|
||||
binder_call(modem_diagnostic_app, dmd)
|
||||
|
||||
set_prop(modem_diagnostic_app, vendor_cbd_prop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue