summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Naganov2018-05-08 12:29:04 -0500
committerMikhail Naganov2018-05-25 15:02:25 -0500
commit2c484238d141dfeb695d91dc66121235b61c90ca (patch)
tree474ae24c4ea109b917d3e0096bc682d070d8584c
parentd5a5888c60c9fc829faf2fd9e3c89f0d5190f2c7 (diff)
downloadplatform-hardware-interfaces-2c484238d141dfeb695d91dc66121235b61c90ca.tar.gz
platform-hardware-interfaces-2c484238d141dfeb695d91dc66121235b61c90ca.tar.xz
platform-hardware-interfaces-2c484238d141dfeb695d91dc66121235b61c90ca.zip
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
-rw-r--r--audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc2
1 files changed, 2 insertions, 0 deletions
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 a76770d7..8217b946 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
9 # and its .rc file has an "onrestart restart audio-hal" rule, thus 9 # and its .rc file has an "onrestart restart audio-hal" rule, thus
10 # an additional auto-restart from the init process isn't needed. 10 # an additional auto-restart from the init process isn't needed.
11 oneshot 11 oneshot
12 interface android.hardware.audio@4.0::IDevicesFactory default
13 interface android.hardware.audio@2.0::IDevicesFactory default