2021-10-16 14:05:45 -04:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2021-09-24 22:49:45 -04:00
|
|
|
From: MSe <mse1969@posteo.de>
|
|
|
|
Date: Wed, 25 Apr 2018 23:12:20 +0200
|
2021-10-16 14:05:45 -04:00
|
|
|
Subject: [PATCH] AppOps: Default MODE_ASK for OP_MOTION_SENSORS
|
2021-09-24 22:49:45 -04:00
|
|
|
|
|
|
|
Change-Id: I4e8380c21b5c8a9e90c99d52e35d825ef0db6d98
|
|
|
|
---
|
|
|
|
core/java/android/app/AppOpsManager.java | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java
|
|
|
|
index a9a00a60f0e5..84b196a2375b 100644
|
|
|
|
--- a/core/java/android/app/AppOpsManager.java
|
|
|
|
+++ b/core/java/android/app/AppOpsManager.java
|
|
|
|
@@ -977,7 +977,7 @@ public class AppOpsManager {
|
|
|
|
AppOpsManager.MODE_ALLOWED, // OP_NFC_CHANGE
|
|
|
|
AppOpsManager.MODE_ALLOWED,
|
|
|
|
AppOpsManager.MODE_ASK, // OP_SU
|
|
|
|
- AppOpsManager.MODE_ALLOWED, // OP_MOTION_SENSORS
|
|
|
|
+ AppOpsManager.MODE_ASK, // OP_MOTION_SENSORS
|
|
|
|
AppOpsManager.MODE_ALLOWED, // OP_OTHER_SENSORS
|
|
|
|
};
|
|
|
|
|
|
|
|
@@ -1056,7 +1056,7 @@ public class AppOpsManager {
|
|
|
|
AppOpsManager.MODE_ASK, // OP_NFC_CHANGE
|
|
|
|
AppOpsManager.MODE_ASK, // OP_DATA_CONNECT_CHANGE
|
|
|
|
AppOpsManager.MODE_ASK, // OP_SU
|
|
|
|
- AppOpsManager.MODE_ALLOWED, // OP_MOTION_SENSORS
|
|
|
|
+ AppOpsManager.MODE_ASK, // OP_MOTION_SENSORS
|
|
|
|
AppOpsManager.MODE_ALLOWED, // OP_OTHER_SENSORS
|
|
|
|
};
|
|
|
|
|
|
|
|
--
|
|
|
|
2.31.1
|
|
|
|
|