mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-08-30 22:21:55 +00:00
30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
![]() |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Daniel Micay <danielmicay@gmail.com>
|
||
|
Date: Sat, 7 Oct 2017 15:56:35 -0400
|
||
|
Subject: [PATCH] add OTHER_SENSORS permission group
|
||
|
|
||
|
---
|
||
|
src/com/android/packageinstaller/permission/utils/Utils.java | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/src/com/android/packageinstaller/permission/utils/Utils.java b/src/com/android/packageinstaller/permission/utils/Utils.java
|
||
|
index 162b15f37..d1a19200b 100644
|
||
|
--- a/src/com/android/packageinstaller/permission/utils/Utils.java
|
||
|
+++ b/src/com/android/packageinstaller/permission/utils/Utils.java
|
||
|
@@ -25,6 +25,7 @@ import static android.Manifest.permission_group.CONTACTS;
|
||
|
import static android.Manifest.permission_group.LOCATION;
|
||
|
import static android.Manifest.permission_group.MICROPHONE;
|
||
|
import static android.Manifest.permission_group.NETWORK;
|
||
|
+import static android.Manifest.permission_group.OTHER_SENSORS;
|
||
|
import static android.Manifest.permission_group.PHONE;
|
||
|
import static android.Manifest.permission_group.SENSORS;
|
||
|
import static android.Manifest.permission_group.SMS;
|
||
|
@@ -175,6 +176,7 @@ public final class Utils {
|
||
|
PLATFORM_PERMISSIONS.put(Manifest.permission.BODY_SENSORS, SENSORS);
|
||
|
|
||
|
PLATFORM_PERMISSIONS.put(Manifest.permission.INTERNET, NETWORK);
|
||
|
+ PLATFORM_PERMISSIONS.put(Manifest.permission.OTHER_SENSORS, OTHER_SENSORS);
|
||
|
|
||
|
PLATFORM_PERMISSION_GROUPS = new ArrayMap<>();
|
||
|
int numPlatformPermissions = PLATFORM_PERMISSIONS.size();
|