/* * Copyright (C) 2021 The LineageOS Project * * SPDX-License-Identifier: Apache-2.0 */ #define LOG_TAG "android.hardware.light-service.exynos9810" #include "Lights.h" #include #include #include using ::aidl::android::hardware::light::Lights; int main() { ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr lights = ndk::SharedRefBase::make(); const std::string instance = std::string() + Lights::descriptor + "/default"; binder_status_t status = AServiceManager_addService(lights->asBinder().get(), instance.c_str()); CHECK(status == STATUS_OK); ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach }