Merge "health storage AIDL HAL logs more." am: 4b0c7f0e7a am: 94dea4096c am: 9bc26cbcb8

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1905374

Change-Id: I510c018641993fc6b8bfa6a6a03af60d361978e9
This commit is contained in:
Treehugger Robot 2021-11-30 00:21:44 +00:00 committed by Automerger Merge Worker
commit 76db9d7ba6

View file

@ -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<Storage>();
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
}