Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bc26cbc authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "health storage AIDL HAL logs more." am: 4b0c7f0e am: 94dea409

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

Change-Id: Ifd3949da1e1a80c1437e36eaed024f466c0ab8d5
parents 38574547 94dea409
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
}