Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1700f3dd authored by Eric Laurent's avatar Eric Laurent
Browse files

audioserver: stop service when VTS tests are running

Stop audioserver service when vts.native_server.on property is set
to avoid conflicts when testing single client HAL implementations.

Bug: 33245139
Test: set and reset property and check service is stopped and started

Change-Id: I4e45d21a57e5b2cf048c5f80669114fcfbbd9df3
parent 6ab60611
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6,3 +6,8 @@ service audioserver /system/bin/audioserver
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
    onrestart restart audio-hal-2-0

on property:vts.native_server.on=1
    stop audioserver
on property:vts.native_server.on=0
    start audioserver