summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Richard Coles <torne@google.com> 2024-07-17 17:05:26 -0400
committer Torne (Richard Coles) <torne@google.com> 2024-10-04 15:47:58 -0400
commitafb5f5d7cc898e7995ccc19a78f9cfe6f448e43b (patch)
tree3ec7ef07ceda2f043257bb2ea231ce82abb9166d
parent6fd1990fb543290badc3cacf3bc351c070916c42 (diff)
Add KILL_UID permission to shell for CTS test.
Grant KILL_UID permission to the shell identity for use within CTS tests. Bug: 310653407 Test: atest CtsAppTestCases Flag: TEST_ONLY Change-Id: I40c4c05eb91dcc1fa1701327e8f0fe01179d59f2
-rw-r--r--data/etc/privapp-permissions-platform.xml2
-rw-r--r--packages/Shell/AndroidManifest.xml3
2 files changed, 5 insertions, 0 deletions
diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml
index 880f30c6cdc0..2e72f0ec90b8 100644
--- a/data/etc/privapp-permissions-platform.xml
+++ b/data/etc/privapp-permissions-platform.xml
@@ -585,6 +585,8 @@ applications that come with the platform
<permission name="android.permission.EXECUTE_APP_FUNCTIONS" />
<!-- Permission required for CTS test - CtsNfcTestCases -->
<permission name="android.permission.NFC_SET_CONTROLLER_ALWAYS_ON" />
+ <!-- Permission required for CTS test - CtsAppTestCases -->
+ <permission name="android.permission.KILL_UID" />
</privapp-permissions>
<privapp-permissions package="com.android.statementservice">
diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml
index f3c5a186563d..456fedf912ff 100644
--- a/packages/Shell/AndroidManifest.xml
+++ b/packages/Shell/AndroidManifest.xml
@@ -948,6 +948,9 @@
<!-- Permission required for CTS test - CtsNfcTestCases -->
<uses-permission android:name="android.permission.NFC_SET_CONTROLLER_ALWAYS_ON" />
+ <!-- Permission required for CTS test - CtsAppTestCases -->
+ <uses-permission android:name="android.permission.KILL_UID" />
+
<application
android:label="@string/app_label"
android:theme="@android:style/Theme.DeviceDefault.DayNight"