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

Commit 7ee6974a authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

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
parent 686dac0c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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