mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-08 18:44:54 +00:00
![Tad](/assets/img/avatar_default.png)
TODO: - manifest - devices - a few small patches to rebase Signed-off-by: Tad <tad@spotco.us>
34 lines
1.7 KiB
Diff
34 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Sun, 17 Mar 2019 19:54:30 -0400
|
|
Subject: [PATCH] stop auto-granting location to system browsers
|
|
|
|
---
|
|
.../pm/permission/DefaultPermissionGrantPolicy.java | 13 -------------
|
|
1 file changed, 13 deletions(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java b/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java
|
|
index cb28637e8c10..77ae50533f42 100644
|
|
--- a/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java
|
|
+++ b/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java
|
|
@@ -706,19 +706,6 @@ final class DefaultPermissionGrantPolicy {
|
|
Intent.CATEGORY_APP_EMAIL, userId),
|
|
userId, CONTACTS_PERMISSIONS, CALENDAR_PERMISSIONS);
|
|
|
|
- // Browser
|
|
- String browserPackage = ArrayUtils.firstOrNull(getKnownPackages(
|
|
- PackageManagerInternal.PACKAGE_BROWSER, userId));
|
|
- if (browserPackage == null) {
|
|
- browserPackage = getDefaultSystemHandlerActivityPackageForCategory(pm,
|
|
- Intent.CATEGORY_APP_BROWSER, userId);
|
|
- if (!pm.isSystemPackage(browserPackage)) {
|
|
- browserPackage = null;
|
|
- }
|
|
- }
|
|
- grantPermissionsToPackage(pm, browserPackage, userId, false /* ignoreSystemPackage */,
|
|
- true /*whitelistRestrictedPermissions*/, FOREGROUND_LOCATION_PERMISSIONS);
|
|
-
|
|
// Voice interaction
|
|
if (voiceInteractPackageNames != null) {
|
|
for (String voiceInteractPackageName : voiceInteractPackageNames) {
|