init: Define SYS_NICE caps for android.hardware.audio@2.0-service.

- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
This commit is contained in:
Sidipotu Ashok 2018-12-03 14:49:38 +05:30 committed by Max Weffers
parent fac52b4226
commit eedaefc0f2
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -871,7 +871,7 @@ service vendor.audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service
user audioserver
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock
capabilities BLOCK_SUSPEND
capabilities BLOCK_SUSPEND SYS_NICE
ioprio rt 4
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
# audioflinger restarts itself when it loses connection with the hal