blob: 38c2750a99a87dd3f69dad50ec5f19f5faf0db48 [file] [log] [blame]
Marco Nelissendcb346b2015-09-09 10:47:29 -07001service audioserver /system/bin/audioserver
Wei Wang21385d02017-09-15 14:04:05 -07002 class core
Marco Nelissendcb346b2015-09-09 10:47:29 -07003 user audioserver
4 # media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
Nick Kralevichf6f60c02019-05-23 09:06:24 -07005 group audio camera drmrpc media mediadrm net_bt net_bt_admin net_bw_acct wakelock
Tri Voc3a07c12018-05-17 15:50:50 -07006 capabilities BLOCK_SUSPEND
Marco Nelissendcb346b2015-09-09 10:47:29 -07007 ioprio rt 4
Srinath Sridharan00bbc1d2016-07-18 16:03:39 -07008 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
Ytai Ben-Tsvie734d9d2020-04-10 11:14:27 -07009
10 onrestart setprop sys.audio.restart.hal 1
Eric Laurent1700f3d2017-02-16 15:56:42 -080011
12on property:vts.native_server.on=1
13 stop audioserver
14on property:vts.native_server.on=0
15 start audioserver
François Gaffied544f1c2018-06-25 15:25:48 +020016
Ytai Ben-Tsvi4da7af22020-04-23 10:44:00 -070017on property:init.svc.audioserver=stopped
18 stop vendor.audio-hal
19 stop vendor.audio-hal-4-0-msd
20 # Keep the original service names for backward compatibility
21 stop vendor.audio-hal-2-0
22 stop audio-hal-2-0
23
24on property:init.svc.audioserver=running
25 start vendor.audio-hal
26 start vendor.audio-hal-4-0-msd
27 # Keep the original service names for backward compatibility
28 start vendor.audio-hal-2-0
29 start audio-hal-2-0
30
Ytai Ben-Tsvie734d9d2020-04-10 11:14:27 -070031on property:sys.audio.restart.hal=1
32 restart vendor.audio-hal
33 restart vendor.audio-hal-4-0-msd
34 # Keep the original service names for backward compatibility
35 restart vendor.audio-hal-2-0
36 restart audio-hal-2-0
37 # reset the property
38 setprop sys.audio.restart.hal 0
39
François Gaffied544f1c2018-06-25 15:25:48 +020040on init
41 mkdir /dev/socket/audioserver 0775 audioserver audioserver