From bf19417b0dc3747bfd8c4cf84817ac98d382a665 Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Sat, 1 Feb 2020 00:08:14 +0000 Subject: [PATCH] Grant shell REBOOT permission Shell already can reboot a device (via `adb reboot` command). This change allows shell to also trigger a reboot logic inside the system_server. Additionally, it allows to CTS test PowerManager.reboot API. Test: adb shell svc reboot Change-Id: I4545c4f3587fee2840a00648c569f75bb57501fc Merged-In: I4545c4f3587fee2840a00648c569f75bb57501fc --- data/etc/privapp-permissions-platform.xml | 1 + packages/Shell/AndroidManifest.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 7f9a4ecb0171d..03f31aecb3337 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -346,6 +346,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 09eece8a4746b..6a8173c677bc3 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -91,6 +91,7 @@ +