Skip to content

Commit 15b3e0d

Browse files
author
nhusted
committed
Added required modificationss to res/AndroidManifest.xml and res/res/values/strings.xml so that the AUDIT permission could be added. Includes strring resources additions and a detailed perrmission tag addition to AndroidManifest.xml.
1 parent 58ae5e4 commit 15b3e0d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

patches/jellybean/audit_permission.patch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
2+
index 6546fed..37a3b0d 100644
3+
--- a/core/res/AndroidManifest.xml
4+
+++ b/core/res/AndroidManifest.xml
5+
@@ -777,6 +777,13 @@
6+
android:label="@string/permlab_removeTasks"
7+
android:description="@string/permdesc_removeTasks" />
8+
9+
+ <!-- Allows an application to access the raw Audit stream -->
10+
+ <permission android:name="android.permission.AUDIT"
11+
+ android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
12+
+ android:protectionLevel="dangerous"
13+
+ android:label="@string/permlab_audit"
14+
+ android:description="@string/permdesc_audit" />
15+
+
16+
<!-- Allows an application to start any activity, regardless of permission
17+
protection or exported state. @hide -->
18+
<permission android:name="android.permission.START_ANY_ACTIVITY"
19+
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
20+
index 325b6fe..510ee16 100755
21+
--- a/core/res/res/values/strings.xml
22+
+++ b/core/res/res/values/strings.xml
23+
@@ -563,6 +563,11 @@
24+
tasks and kill their apps. Malicious apps may disrupt
25+
the behavior of other apps.</string>
26+
27+
+ <!-- Title of an application permission, allowing an application to access the system's audit stream -->
28+
+ <string name="permlab_audit">access audit stream</string>
29+
+ <!-- Description of an application permission, allowwwing an application to access the system's audit stream -->
30+
+ <string name="permdesc_audit">Allows the app to access the system audit stream. This stream could leak sensitive data from other applications running on the system.</string>
31+
+
32+
<!-- Title of an application permission, allowing an application to start any activity, regardless of permission protection or exported state. -->
33+
<string name="permlab_startAnyActivity">start any activity</string>
34+
<!-- Description of an application permission, allowing an application to start any activity, regardless of permission protection or exported state. -->
135
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
236
index 4b93e74..d2490b1 100644
337
--- a/data/etc/platform.xml

0 commit comments

Comments
 (0)