From fbd4a6f80ab074ad3172decb1e53f5415072e125 Mon Sep 17 00:00:00 2001 From: Treehugger Robot Date: Mon, 11 May 2020 23:50:19 +0000 Subject: [PATCH] Add day-night-mode permission to Shell. Without the permission "adb shell cmd uimode night " doesn't work. Adding the permission to the AndroidManifest file so the shell command will work. Bug: 155584597 Test: run `adb shell cmd uimode night ` Change-Id: Ic444f3351cb130d24a2794284c6bf8709c80712c (cherry picked from commit a85cc220442c9a5033f926d8b9f708faa93990ef) --- data/etc/privapp-permissions-platform.xml | 1 + packages/Shell/AndroidManifest.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 0389639e9edbb..bdb6bcc1f19f3 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -324,6 +324,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 96caf3143a4af..83d72189de74c 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -233,6 +233,9 @@ + + +