Merge "health storage AIDL HAL logs more."
This commit is contained in:
commit
4b0c7f0e7a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue