mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
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:
parent
d3f562dea9
commit
d1c45bdd1a
1 changed files with 2 additions and 0 deletions
2
sepolicy/private/hal_audio.te
Normal file
2
sepolicy/private/hal_audio.te
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Allow hal audio to use wakelock
|
||||
wakelock_use(hal_audio)
|
||||
Loading…
Reference in a new issue