mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-22 14:14:58 -05:00
35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
|
From 07a7a113fb952844fad6b90ff064544a76c9f4c7 Mon Sep 17 00:00:00 2001
|
||
|
From: Philip Nagler-Frank <philip@nagler.world>
|
||
|
Date: Mon, 22 Mar 2021 21:07:09 -0400
|
||
|
Subject: [PATCH] Add permission to allow an APK to fake a signature.
|
||
|
|
||
|
Change-Id: Iffcffde30416bd897d8afe0b4f72538a586ccab9
|
||
|
---
|
||
|
.../android/permissioncontroller/permission/utils/Utils.java | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/src/com/android/permissioncontroller/permission/utils/Utils.java b/src/com/android/permissioncontroller/permission/utils/Utils.java
|
||
|
index 65fdd590a..fdd71e215 100644
|
||
|
--- a/src/com/android/permissioncontroller/permission/utils/Utils.java
|
||
|
+++ b/src/com/android/permissioncontroller/permission/utils/Utils.java
|
||
|
@@ -23,6 +23,7 @@ import static android.Manifest.permission_group.CALENDAR;
|
||
|
import static android.Manifest.permission_group.CALL_LOG;
|
||
|
import static android.Manifest.permission_group.CAMERA;
|
||
|
import static android.Manifest.permission_group.CONTACTS;
|
||
|
+import static android.Manifest.permission_group.FAKE_PACKAGE;
|
||
|
import static android.Manifest.permission_group.LOCATION;
|
||
|
import static android.Manifest.permission_group.MICROPHONE;
|
||
|
import static android.Manifest.permission_group.PHONE;
|
||
|
@@ -209,6 +210,8 @@ public final class Utils {
|
||
|
|
||
|
PLATFORM_PERMISSIONS.put(Manifest.permission.BODY_SENSORS, SENSORS);
|
||
|
|
||
|
+ PLATFORM_PERMISSIONS.put(Manifest.permission.FAKE_PACKAGE_SIGNATURE, FAKE_PACKAGE);
|
||
|
+
|
||
|
PLATFORM_PERMISSION_GROUPS = new ArrayMap<>();
|
||
|
int numPlatformPermissions = PLATFORM_PERMISSIONS.size();
|
||
|
for (int i = 0; i < numPlatformPermissions; i++) {
|
||
|
--
|
||
|
2.30.2
|
||
|
|