mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
4ce35a3c60
Fixed up: LineageOS-16.0/android_packages_apps_Backgrounds/308977.patch LineageOS-16.0/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch LineageOS-17.1/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch LineageOS-18.1/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch Must review again: LineageOS-14.1/android_packages_apps_PackageInstaller/64d8b44.patch Signed-off-by: Tad <tad@spotco.us>
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MSe <mse1969@posteo.de>
|
|
Date: Wed, 25 Apr 2018 23:12:20 +0200
|
|
Subject: [PATCH] AppOps: Default MODE_ASK for OP_MOTION_SENSORS
|
|
|
|
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
|
|
|