From 9f1639f6b45a97b2378e8b1a586ac99f6f5c3523 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Mon, 29 Nov 2021 11:26:38 -0800 Subject: [PATCH] health storage AIDL HAL logs more. Test: builds Bug: 206775954 Change-Id: I211e29e495a974e9c93ac97c7dd9ef93e1bcb5ef --- health/storage/aidl/default/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/health/storage/aidl/default/main.cpp b/health/storage/aidl/default/main.cpp index 186b64c0c5..74e266f707 100644 --- a/health/storage/aidl/default/main.cpp +++ b/health/storage/aidl/default/main.cpp @@ -24,14 +24,19 @@ using aidl::android::hardware::health::storage::Storage; using std::string_literals::operator""s; int main() { + LOG(INFO) << "Health storage AIDL HAL starting..."; ABinderProcess_setThreadPoolMaxThreadCount(0); // make a default storage service auto storage = ndk::SharedRefBase::make(); const std::string name = Storage::descriptor + "/default"s; + LOG(INFO) << "Health storage AIDL HAL registering..."; CHECK_EQ(STATUS_OK, AServiceManager_registerLazyService(storage->asBinder().get(), name.c_str())); + LOG(INFO) << "Health storage AIDL HAL joining..."; ABinderProcess_joinThreadPool(); + + LOG(ERROR) << "Health storage AIDL HAL join thread ends, exiting..."; return EXIT_FAILURE; // should not reach }