From d3575e0b918855b8818620cb54c743b2eacb38e7 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 13 May 2019 13:04:48 -0700 Subject: listByInterface -> listManifestByInterface This does two things: - makes sure that HALs configured as lazy HALs will be retrieved - will detect bad manifest entries earlier Bug: 131703193 Test: boot Change-Id: I03503d1963474d9543add75128fa4d7b8c4932ff --- services/core/jni/BroadcastRadio/BroadcastRadioService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core/jni/BroadcastRadio/BroadcastRadioService.cpp b/services/core/jni/BroadcastRadio/BroadcastRadioService.cpp index f7ca363e54a1..be3e8784af77 100644 --- a/services/core/jni/BroadcastRadio/BroadcastRadioService.cpp +++ b/services/core/jni/BroadcastRadio/BroadcastRadioService.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include #include @@ -123,13 +123,13 @@ static jobject nativeLoadModules(JNIEnv *env, jobject obj, jlong nativeContext) auto& ctx = getNativeContext(nativeContext); // Get list of registered HIDL HAL implementations. - auto manager = hardware::defaultServiceManager(); + auto manager = hardware::defaultServiceManager1_2(); hidl_vec services; if (manager == nullptr) { ALOGE("Can't reach service manager, using default service implementation only"); services = std::vector({ "default" }); } else { - manager->listByInterface(V1_0::IBroadcastRadioFactory::descriptor, + manager->listManifestByInterface(V1_0::IBroadcastRadioFactory::descriptor, [&services](const hidl_vec ®istered) { services = registered; }); -- cgit v1.2.3-59-g8ed1b