universal7885: sepolicy: Allow hal audio to use wakelock

Allow audio hal service to take wakelock.
This is needed to ensure Hotword sessions

Following denied pattern:
avc:  denied  { find } for
interface=android.system.suspend::ISystemSuspend
sid=u:r:hal_audio_default:s0 pid=7678
scontext=u:r:hal_audio_default:s0
tcontext=u:object_r:system_suspend_hwservice:s0
tclass=hwservice_manager permissive=0

Bug: 149454068
Test: build pass, "avc denied" cleared

Change-Id: I11b9f72e48241dc5b7d942ad3b519c6e19910579
Signed-off-by: JJ Lee <leejj@google.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
JJ Lee 2020-02-19 18:09:44 +08:00 committed by roynatech2544
commit d1c45bdd1a

View file

@ -0,0 +1,2 @@
# Allow hal audio to use wakelock
wakelock_use(hal_audio)