From 2c484238d141dfeb695d91dc66121235b61c90ca Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Tue, 8 May 2018 10:29:04 -0700 Subject: [PATCH] audio hal: Add 'interface' declarations for IDeviceFactory into .rc Declaring the interfaces allows HIDL hwservicemanager to start the HAL service in case it has crashed before audioserver has called 'getService'. Bug: 80227481 Test: use the repro case from the bug Change-Id: Ibb46beb714b3985ab373d56d92da1105cfda28c6 --- .../default/service/android.hardware.audio@2.0-service.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc b/audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc index a76770d747..8217b946dc 100644 --- a/audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc +++ b/audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc @@ -9,3 +9,5 @@ service vendor.audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service # and its .rc file has an "onrestart restart audio-hal" rule, thus # an additional auto-restart from the init process isn't needed. oneshot + interface android.hardware.audio@4.0::IDevicesFactory default + interface android.hardware.audio@2.0::IDevicesFactory default