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

Commit 68f3225a authored by Patrick Rohr's avatar Patrick Rohr
Browse files

Restart Audio Proxy When Audioserver Restarts

Audio Proxy should restart all connected HAL services including audio
proxy.

Bug: 160773454
Test: Tested on Android TV Device.
Change-Id: Ibbb8d1be4c77b6ce07f5a8310c10064ac4aa3ae6
parent ba75bf77
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ service audioserver /system/bin/audioserver
    task_profiles ProcessCapacityHigh HighPerformance
    onrestart restart vendor.audio-hal
    onrestart restart vendor.audio-hal-4-0-msd
    onrestart restart audio_proxy_service
    # Keep the original service names for backward compatibility
    onrestart restart vendor.audio-hal-2-0
    onrestart restart audio-hal-2-0
@@ -20,6 +21,7 @@ on property:vts.native_server.on=0
on property:init.svc.audioserver=stopped
    stop vendor.audio-hal
    stop vendor.audio-hal-4-0-msd
    stop audio_proxy_service
    # Keep the original service names for backward compatibility
    stop vendor.audio-hal-2-0
    stop audio-hal-2-0
@@ -28,6 +30,7 @@ on property:init.svc.audioserver=stopped
    # audioserver bringing it back into running state.
    start vendor.audio-hal
    start vendor.audio-hal-4-0-msd
    start audio_proxy_service
    # Keep the original service names for backward compatibility
    start vendor.audio-hal-2-0
    start audio-hal-2-0
@@ -35,6 +38,7 @@ on property:init.svc.audioserver=stopped
on property:init.svc.audioserver=running
    start vendor.audio-hal
    start vendor.audio-hal-4-0-msd
    start audio_proxy_service
    # Keep the original service names for backward compatibility
    start vendor.audio-hal-2-0
    start audio-hal-2-0
@@ -44,10 +48,12 @@ on property:sys.audio.restart.hal=1
    # Keep the original service names for backward compatibility
    stop vendor.audio-hal
    stop vendor.audio-hal-4-0-msd
    stop audio_proxy_service
    stop vendor.audio-hal-2-0
    stop audio-hal-2-0
    start vendor.audio-hal
    start vendor.audio-hal-4-0-msd
    start audio_proxy_service
    start vendor.audio-hal-2-0
    start audio-hal-2-0
    # reset the property