/* * Copyright (C) 2024 The LineageOS Project * * SPDX-License-Identifier: Apache-2.0 */ #include "OsenseAidlHalReporter.h" #include #include #include using ::aidl::vendor::oplus::hardware::osense::client::OsenseAidlHalReporter; int main() { ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr reporter = ndk::SharedRefBase::make(); const std::string instance = std::string() + OsenseAidlHalReporter::descriptor + "/default"; binder_status_t status = AServiceManager_addService(reporter->asBinder().get(), instance.c_str()); CHECK_EQ(status, STATUS_OK); ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach }