libaudiohal@aidl: Add missing HAL death handler
The death handler is used when the HAL gets stopped
using 'sys.audio.restart.hal' system property.
In this case the HAL is restarted using 'stop / start'
sequence, and as a result, 'onrestart' event is not
triggered (that's intentional).
Bug: 328569315
Test: adb shell setprop sys.audio.restart.hal 1
then check if both audioserver and HAL get restarted
Change-Id: I7368557d2a8cb37d758882e94b64d6446aa9a671
diff --git a/media/libaudiohal/impl/Android.bp b/media/libaudiohal/impl/Android.bp
index c7fa96e..dd8f021 100644
--- a/media/libaudiohal/impl/Android.bp
+++ b/media/libaudiohal/impl/Android.bp
@@ -262,6 +262,7 @@
srcs: [
":audio_effect_hal_aidl_src_files",
":core_audio_hal_aidl_src_files",
+ "AidlUtils.cpp",
"DevicesFactoryHalEntry.cpp",
"EffectsFactoryHalEntry.cpp",
],