mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
d98f33a337
TODO: - f/w/b - settings Signed-off-by: Tavi <tavi@divested.dev>
27 lines
1.5 KiB
Diff
27 lines
1.5 KiB
Diff
From ff9f020cf0b63d68ac6377c16bef1697eb7bad9a Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Muhomor <muhomor.dmitry@gmail.com>
|
|
Date: Sun, 19 Mar 2023 17:57:26 +0200
|
|
Subject: [PATCH] do not auto-grant Camera permission to the eUICC LPA UI app
|
|
|
|
Google's LPA that is shipped on GrapheneOS handles requesting the Camera permission at runtime,
|
|
which allows the user to give it a one-time grant.
|
|
|
|
13: 7bb7df2d2b13
|
|
---
|
|
.../server/pm/permission/DefaultPermissionGrantPolicy.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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 7f786dbdc60b..674a19d35b2b 100644
|
|
--- a/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java
|
|
+++ b/services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java
|
|
@@ -1097,7 +1097,7 @@ public void revokeDefaultPermissionsFromDisabledTelephonyDataServices(
|
|
public void grantDefaultPermissionsToActiveLuiApp(String packageName, int userId) {
|
|
Log.i(TAG, "Granting permissions to active LUI app for user:" + userId);
|
|
grantSystemFixedPermissionsToSystemPackage(NO_PM_CACHE, packageName, userId,
|
|
- CAMERA_PERMISSIONS, NOTIFICATION_PERMISSIONS);
|
|
+ NOTIFICATION_PERMISSIONS);
|
|
}
|
|
|
|
public void revokeDefaultPermissionsFromLuiApps(String[] packageNames, int userId) {
|