diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 39c347a07..c94137cfd 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -71,10 +71,6 @@ using android::hidl::manager::V1_0::IServiceManager; static sp get_health_service() { for (auto&& instanceName : {"default", "backup"}) { - if (IServiceManager::getService()->getTransport(IHealth::descriptor, instanceName) == - IServiceManager::Transport::EMPTY) { - continue; - } auto ret = IHealth::getService(instanceName); if (ret != nullptr) { return ret;