mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Merge "health storage AIDL HAL logs more." am: 4b0c7f0e7a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1905374 Change-Id: Ifc15c002af051dfae4b0b8b3efcdd79ecb1011ed
This commit is contained in:
@@ -24,14 +24,19 @@ using aidl::android::hardware::health::storage::Storage;
|
|||||||
using std::string_literals::operator""s;
|
using std::string_literals::operator""s;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
LOG(INFO) << "Health storage AIDL HAL starting...";
|
||||||
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
|
|
||||||
// make a default storage service
|
// make a default storage service
|
||||||
auto storage = ndk::SharedRefBase::make<Storage>();
|
auto storage = ndk::SharedRefBase::make<Storage>();
|
||||||
const std::string name = Storage::descriptor + "/default"s;
|
const std::string name = Storage::descriptor + "/default"s;
|
||||||
|
LOG(INFO) << "Health storage AIDL HAL registering...";
|
||||||
CHECK_EQ(STATUS_OK,
|
CHECK_EQ(STATUS_OK,
|
||||||
AServiceManager_registerLazyService(storage->asBinder().get(), name.c_str()));
|
AServiceManager_registerLazyService(storage->asBinder().get(), name.c_str()));
|
||||||
|
|
||||||
|
LOG(INFO) << "Health storage AIDL HAL joining...";
|
||||||
ABinderProcess_joinThreadPool();
|
ABinderProcess_joinThreadPool();
|
||||||
|
|
||||||
|
LOG(ERROR) << "Health storage AIDL HAL join thread ends, exiting...";
|
||||||
return EXIT_FAILURE; // should not reach
|
return EXIT_FAILURE; // should not reach
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user