Restart HAL service via stop/start when audioserver is stopped

This interim solution satisfies requirements of performance
tests (audioserver stopped together with zygote) and
requirements of VTS tests (audio HAL keeps running when
zygote stops).

Bug: 155364397
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
Change-Id: I111f0cc397024a38e146981d1e5299ce4f6bd5e2
gugelfrei
Mikhail Naganov 4 years ago
parent 686dac0cdb
commit 7ee6974a7b

@ -20,6 +20,14 @@ on property:init.svc.audioserver=stopped
# Keep the original service names for backward compatibility
stop vendor.audio-hal-2-0
stop audio-hal-2-0
# See b/155364397. Need to have HAL service running for VTS.
# Can't use 'restart' because then HAL service would restart
# audioserver bringing it back into running state.
start vendor.audio-hal
start vendor.audio-hal-4-0-msd
# Keep the original service names for backward compatibility
start vendor.audio-hal-2-0
start audio-hal-2-0
on property:init.svc.audioserver=running
start vendor.audio-hal

Loading…
Cancel
Save