From f62d869ea5af629544215b06b95c3471f0829c9c Mon Sep 17 00:00:00 2001 From: baisheng Date: Thu, 25 Jan 2018 18:07:24 +0800 Subject: [PATCH] Add dedicated signature permissions to platform manifest and shell manifest which could enable/disable BT and Wifi state on watch Skip Bluetooth consent UI if running on shell, also fix a typo in log message. Test: Manual test running `adb root; adb shell service call bluetooth_manager 6` and see if BT is on without consent UI. Bug: 69872231 Change-Id: Ie513794a7fc13041259fd84734bfc651495ba5cf --- core/res/AndroidManifest.xml | 11 ++++++++ packages/Shell/AndroidManifest.xml | 5 ++++ .../android/server/BluetoothManagerService.java | 30 +++++++++++++++++++--- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index ba30981e6377..6649b59dec90 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1386,6 +1386,12 @@ + + + @@ -1463,6 +1469,11 @@ + + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 64b2ae6e23d3..5c8d74516274 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -138,6 +138,11 @@ + + +