mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 03:14:17 +00:00
audioserver receives a change that makes it to crash once it detects that audiohal server has crashed (because audioflinger can't gracefully restore the state of the audio system). As audioserver.rc file prescribes restaring the audiohal on audioserver restart, there is no need to rely on the init process to restart the audiohal. Moreover, asking the init process to do that causes a double restart of the audiohal service if it crashes. Test: kill audio-hal process, watch dmesg and logcat Change-Id: Iac4cc79cdc1a3debd2b9cfcdf42f11451d7ce24c
12 lines
574 B
Plaintext
12 lines
574 B
Plaintext
service audio-hal-2-0 /system/bin/hw/android.hardware.audio@2.0-service
|
|
class hal
|
|
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
|
|
ioprio rt 4
|
|
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
|
|
# audioflinger restarts itself when it loses connection with the hal
|
|
# and its .rc file has an "onrestart restart audio-hal" rule, thus
|
|
# an additional auto-restart from the init process isn't needed.
|
|
oneshot
|