From cbc3e0487813c90352293276f0e60a8857c4cdb8 Mon Sep 17 00:00:00 2001 From: Anand S Date: Sat, 10 May 2025 16:51:07 +0530 Subject: [PATCH] Revert "dubai: sensors: Implement UDFPS sensor" This reverts commit ec3f93036c171de0a9dffe0a42171d524fe28602. Change-Id: Ieb25d3b8e55e7039a6bbe1906562890c6dda0b5c --- init/init.mmi.overlay.rc | 2 -- .../device/Frameworks/res/values/config.xml | 3 --- sensors/Sensor.h | 12 ------------ sensors/SensorsSubHal.cpp | 1 - 4 files changed, 18 deletions(-) diff --git a/init/init.mmi.overlay.rc b/init/init.mmi.overlay.rc index 66651bf..5a98f42 100644 --- a/init/init.mmi.overlay.rc +++ b/init/init.mmi.overlay.rc @@ -5,8 +5,6 @@ on post-fs # Sensors chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed - chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled - chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed on post-fs-data diff --git a/resource-overlay/device/Frameworks/res/values/config.xml b/resource-overlay/device/Frameworks/res/values/config.xml index 83ff46b..0f3db12 100644 --- a/resource-overlay/device/Frameworks/res/values/config.xml +++ b/resource-overlay/device/Frameworks/res/values/config.xml @@ -165,9 +165,6 @@ org.lineageos.sensor.double_tap - - org.lineageos.sensor.udfps - diff --git a/sensors/Sensor.h b/sensors/Sensor.h index f85a892..e5a5a38 100644 --- a/sensors/Sensor.h +++ b/sensors/Sensor.h @@ -134,18 +134,6 @@ class DoubleTapSensor : public SysfsPollingOneShotSensor { static_cast(static_cast(SensorType::DEVICE_PRIVATE_BASE) + 1)) {} }; -const std::string kTsUdfpsPressedPath = kTsPath + "udfps_pressed"; -const std::string kTsUdfpsEnabledPath = kTsPath + "udfps_enabled"; - -class UdfpsSensor : public SysfsPollingOneShotSensor { - public: - UdfpsSensor(int32_t sensorHandle, ISensorsEventCallback* callback) - : SysfsPollingOneShotSensor( - sensorHandle, callback, kTsUdfpsPressedPath, kTsUdfpsEnabledPath, - "UDFPS Sensor", "org.lineageos.sensor.udfps", - static_cast(static_cast(SensorType::DEVICE_PRIVATE_BASE) + 2)) {} -}; - } // namespace implementation } // namespace subhal } // namespace V2_1 diff --git a/sensors/SensorsSubHal.cpp b/sensors/SensorsSubHal.cpp index 3c80bb7..9281bfa 100644 --- a/sensors/SensorsSubHal.cpp +++ b/sensors/SensorsSubHal.cpp @@ -34,7 +34,6 @@ using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock; SensorsSubHal::SensorsSubHal() : mCallback(nullptr), mNextHandle(1) { AddSensor(); - AddSensor(); } Return SensorsSubHal::getSensorsList_2_1(ISensors::getSensorsList_2_1_cb _hidl_cb) {