diff --git a/patches_treble_td/platform_frameworks_native/0008-MIUI13-devices-hide-their-vibrator-HAL-behind-non-de.patch b/patches_treble_td/platform_frameworks_native/0008-MIUI13-devices-hide-their-vibrator-HAL-behind-non-de.patch deleted file mode 100644 index 75f043a..0000000 --- a/patches_treble_td/platform_frameworks_native/0008-MIUI13-devices-hide-their-vibrator-HAL-behind-non-de.patch +++ /dev/null @@ -1,30 +0,0 @@ -From b6a029560d93ce3e5535ab97e3cfbc7d1ca0f02c Mon Sep 17 00:00:00 2001 -From: Pierre-Hugues Husson -Date: Fri, 25 Mar 2022 05:37:56 -0400 -Subject: [PATCH 08/10] MIUI13 devices hide their vibrator HAL behind - non-default name: "vibratorfeature" - ---- - services/vibratorservice/VibratorHalController.cpp | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/services/vibratorservice/VibratorHalController.cpp b/services/vibratorservice/VibratorHalController.cpp -index c1795f5c32..345016efd6 100644 ---- a/services/vibratorservice/VibratorHalController.cpp -+++ b/services/vibratorservice/VibratorHalController.cpp -@@ -59,6 +59,12 @@ std::shared_ptr connectHal(std::shared_ptr schedu - return std::make_shared(std::move(scheduler), aidlHal); - } - -+ aidlHal = waitForVintfService(String16("vibratorfeature")); -+ if (aidlHal) { -+ ALOGV("Successfully connected to Xiaomi Vibrator HAL AIDL service."); -+ return std::make_shared(std::move(scheduler), aidlHal); -+ } -+ - sp halV1_0 = V1_0::IVibrator::getService(); - if (halV1_0 == nullptr) { - ALOGV("Vibrator HAL service not available."); --- -2.34.1 -