From 1ef721380ab9964721c23267c37de3328804cb06 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 --- 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 816bb87896675..092f215b33de6 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -371,6 +371,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 84d9bb673d1f3..a57377e34991c 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -91,6 +91,7 @@ +