mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-14 10:17:02 +00:00
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From dc6c9ae247d0165c3d2dd8f582d2c0d07245d273 Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Wed, 14 Aug 2019 23:37:10 +0200
|
|
Subject: [PATCH 01/11] On Samsung, we need to send a hack-message to HAL to
|
|
get all Sensors
|
|
|
|
Change-Id: Id6a1fa48340de61c418493668e9abd22c2599376
|
|
---
|
|
services/sensorservice/SensorDevice.cpp | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/services/sensorservice/SensorDevice.cpp b/services/sensorservice/SensorDevice.cpp
|
|
index dd83fdefc3..1996b306a4 100644
|
|
--- a/services/sensorservice/SensorDevice.cpp
|
|
+++ b/services/sensorservice/SensorDevice.cpp
|
|
@@ -40,6 +40,7 @@
|
|
#include <mutex>
|
|
#include <condition_variable>
|
|
|
|
+#include <android-base/properties.h>
|
|
using namespace android::hardware::sensors;
|
|
using android::util::ProtoOutputStream;
|
|
|
|
@@ -78,6 +79,8 @@ SensorDevice::SensorDevice() : mInHalBypassMode(false) {
|
|
}
|
|
|
|
void SensorDevice::initializeSensorList() {
|
|
+ if(::android::base::GetBoolProperty("persist.sys.phh.samsung_sensors", false))
|
|
+ setMode(5555);
|
|
if (mHalWrapper == nullptr) {
|
|
return;
|
|
}
|
|
--
|
|
2.25.1
|
|
|