From 862d1440c8d0753abb4d3cc0acf33f690daf4d94 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Feb 2015 21:00:44 +0100 Subject: [PATCH] Add new sensor types Refs #1757 --- src/biz/bokhorst/xprivacy/XSensorManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/biz/bokhorst/xprivacy/XSensorManager.java b/src/biz/bokhorst/xprivacy/XSensorManager.java index ef0defd37..d5e716f1d 100644 --- a/src/biz/bokhorst/xprivacy/XSensorManager.java +++ b/src/biz/bokhorst/xprivacy/XSensorManager.java @@ -166,6 +166,9 @@ else if (type == Sensor.TYPE_ACCELEROMETER || type == Sensor.TYPE_LINEAR_ACCELER } else if (type == Sensor.TYPE_HEART_RATE) { if (isRestricted(param, "heartrate")) return true; + } else if (type == 23 || type == 24 || type == 25) { + // 23/24 This sensor is expected to only be used by the system ui + // 25 Expected to be used internally for always on display } else Util.log(this, Log.WARN, "Unknown sensor type=" + type); return false;