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

Commit c5c60040 authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Automerger Merge Worker
Browse files

Merge "Expose a property that allows restarting the audio HAL" into rvc-dev am: 141095dc

Change-Id: I76a33f999e55478320111f8bd841609facf1e2fe
parents 91a91c44 141095dc
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -6,16 +6,22 @@ service audioserver /system/bin/audioserver
    capabilities BLOCK_SUSPEND
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
    onrestart restart vendor.audio-hal
    onrestart restart vendor.audio-hal-4-0-msd
    # Keep the original service names for backward compatibility
    onrestart restart vendor.audio-hal-2-0
    onrestart restart audio-hal-2-0

    onrestart setprop sys.audio.restart.hal 1

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

on property:sys.audio.restart.hal=1
    restart vendor.audio-hal
    restart vendor.audio-hal-4-0-msd
    # Keep the original service names for backward compatibility
    restart vendor.audio-hal-2-0
    restart audio-hal-2-0
    # reset the property
    setprop sys.audio.restart.hal 0

on init
    mkdir /dev/socket/audioserver 0775 audioserver audioserver