From e5f837784920e2c159de538127df326d5d9d22ec Mon Sep 17 00:00:00 2001 From: Austin Wang Date: Fri, 13 May 2022 13:52:45 +0800 Subject: [PATCH] Add P22 reverse wireless charging selinux policy Allow Settings to call hal_wlc Error: 05-13 09:28:20.508 1000 7293 7293 W ndroid.settings: type=1400 audit(0.0:29): avc: denied { call } for scontext=u:r:system_app:s0 tcontext=u:r:hal_wlc:s0 tclass=binder permissive=0 Bug: 231420451 Test: Enable battery share from settings and charge another device. Change-Id: Ic761bee47ea41f6db8b1838fb3fc2a9f7ef7bb5c --- whitechapel_pro/system_app.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel_pro/system_app.te b/whitechapel_pro/system_app.te index cb6287b9..c1560e6e 100644 --- a/whitechapel_pro/system_app.te +++ b/whitechapel_pro/system_app.te @@ -1 +1,2 @@ allow system_app hal_wlc_hwservice:hwservice_manager find; +binder_call(system_app, hal_wlc)