mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-08 10:32:42 +00:00
![Tad](/assets/img/avatar_default.png)
Some patches were ported from 12 to 10/11 Some patches from 11 were ported to 10 This 10/11 port should be very close to 12 BOUNS: 16.0 patches, disabled Signed-off-by: Tad <tad@spotco.us>
31 lines
1.4 KiB
Diff
31 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Fri, 21 Jul 2017 10:29:15 -0400
|
|
Subject: [PATCH] add INTERNET permission toggle
|
|
|
|
---
|
|
src/com/android/packageinstaller/permission/utils/Utils.java | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/com/android/packageinstaller/permission/utils/Utils.java b/src/com/android/packageinstaller/permission/utils/Utils.java
|
|
index b7be30dcc..162b15f37 100644
|
|
--- a/src/com/android/packageinstaller/permission/utils/Utils.java
|
|
+++ b/src/com/android/packageinstaller/permission/utils/Utils.java
|
|
@@ -24,6 +24,7 @@ import static android.Manifest.permission_group.CAMERA;
|
|
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.PHONE;
|
|
import static android.Manifest.permission_group.SENSORS;
|
|
import static android.Manifest.permission_group.SMS;
|
|
@@ -173,6 +174,8 @@ public final class Utils {
|
|
|
|
PLATFORM_PERMISSIONS.put(Manifest.permission.BODY_SENSORS, SENSORS);
|
|
|
|
+ PLATFORM_PERMISSIONS.put(Manifest.permission.INTERNET, NETWORK);
|
|
+
|
|
PLATFORM_PERMISSION_GROUPS = new ArrayMap<>();
|
|
int numPlatformPermissions = PLATFORM_PERMISSIONS.size();
|
|
for (int i = 0; i < numPlatformPermissions; i++) {
|