/* * SPDX-FileCopyrightText: 2025 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ #define LOG_TAG "vendor.lineage.touch-service.tama" #include "GloveMode.h" #include #include #include using aidl::vendor::lineage::touch::GloveMode; int main() { ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr glovemode = ndk::SharedRefBase::make(); const std::string instance = std::string(GloveMode::descriptor) + "/default"; binder_status_t status = AServiceManager_addService(glovemode->asBinder().get(), instance.c_str()); CHECK_EQ(status, STATUS_OK) << "Failed to add service " << instance << " " << status; ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach }