From b8a230d4d0a234c80530722bf5b85dce17b281a7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 24 Apr 2020 16:57:08 +0200 Subject: [PATCH] sensors: get the full list of sensors Samsung uses a special OperationMode (5555). Thanks to Pierre-Hugues HUSSON for the hint. Change-Id: I037ff5bf5a1edd65b616480d1c43cef8e61ba999 Signed-off-by: Jesse Chan --- hidl/sensors/Sensors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hidl/sensors/Sensors.cpp b/hidl/sensors/Sensors.cpp index a1cd153c..e9fc5cee 100644 --- a/hidl/sensors/Sensors.cpp +++ b/hidl/sensors/Sensors.cpp @@ -106,6 +106,9 @@ Sensors::Sensors() } } + /* Get us all sensors */ + setOperationMode(static_cast(5555)); + mInitCheck = OK; }