2021-10-16 14:05:45 -04:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-04-10 20:24:01 -04:00
|
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
|
|
Date: Sat, 7 Oct 2017 16:28:57 -0400
|
|
|
|
Subject: [PATCH] require OTHER_SENSORS permission for sensors
|
2021-09-24 22:49:45 -04:00
|
|
|
|
|
|
|
---
|
2022-04-10 20:24:01 -04:00
|
|
|
libs/sensor/Sensor.cpp | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
2021-09-24 22:49:45 -04:00
|
|
|
|
|
|
|
diff --git a/libs/sensor/Sensor.cpp b/libs/sensor/Sensor.cpp
|
2022-04-10 20:24:01 -04:00
|
|
|
index abc910302c..8b6e96aef6 100644
|
2021-09-24 22:49:45 -04:00
|
|
|
--- a/libs/sensor/Sensor.cpp
|
|
|
|
+++ b/libs/sensor/Sensor.cpp
|
|
|
|
@@ -59,6 +59,7 @@ Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersi
|
|
|
|
mMinDelay = hwSensor.minDelay;
|
|
|
|
mFlags = 0;
|
|
|
|
mUuid = uuid;
|
2022-04-10 20:24:01 -04:00
|
|
|
+ mRequiredPermission = "android.permission.OTHER_SENSORS";
|
2021-09-24 22:49:45 -04:00
|
|
|
|
|
|
|
// Set fifo event count zero for older devices which do not support batching. Fused
|
|
|
|
// sensors also have their fifo counts set to zero.
|