/* * SPDX-FileCopyrightText: 2025 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include "Vibrator.h" using aidl::android::hardware::vibrator::Vibrator; int main() { ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr vib = ndk::SharedRefBase::make(); const std::string instance = std::string() + Vibrator::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 }