blob: f05c2d271f5451c307c98c6b96b05486b60c07fa [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
Suren Baghdasaryan029f52b2020-04-30 14:39:39 -07008 task_profiles ProcessCapacityHigh HighPerformance
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
Mikhail Naganov7ee69742020-05-06 09:46:35 -070023 # See b/155364397. Need to have HAL service running for VTS.
24 # Can't use 'restart' because then HAL service would restart
25 # audioserver bringing it back into running state.
26 start vendor.audio-hal
27 start vendor.audio-hal-4-0-msd
28 # Keep the original service names for backward compatibility
29 start vendor.audio-hal-2-0
30 start audio-hal-2-0
Ytai Ben-Tsvi4da7af22020-04-23 10:44:00 -070031
32on property:init.svc.audioserver=running
33 start vendor.audio-hal
34 start vendor.audio-hal-4-0-msd
35 # Keep the original service names for backward compatibility
36 start vendor.audio-hal-2-0
37 start audio-hal-2-0
38
Ytai Ben-Tsvie734d9d2020-04-10 11:14:27 -070039on property:sys.audio.restart.hal=1
40 restart vendor.audio-hal
41 restart vendor.audio-hal-4-0-msd
42 # Keep the original service names for backward compatibility
43 restart vendor.audio-hal-2-0
44 restart audio-hal-2-0
45 # reset the property
46 setprop sys.audio.restart.hal 0
47
François Gaffied544f1c2018-06-25 15:25:48 +020048on init
49 mkdir /dev/socket/audioserver 0775 audioserver audioserver