/* * Copyright (c) 2020 Rockchip Electronics Co., Ltd */ #include "Power.h" #include #include #include using aidl::android::hardware::power::impl::rockchip::Power; int main() { ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr vib = ndk::SharedRefBase::make(); const std::string instance = std::string() + Power::descriptor + "/default"; binder_status_t status = AServiceManager_addService(vib->asBinder().get(), instance.c_str()); CHECK(status == STATUS_OK); ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach }