Grant CONTROL_UI_TRACING permission to Settings app

We are going to guard the following IPCs with CONTROL_UI_TRACING
permission [1].

 * IWindowManager#startWindowTrace()
 * IWindowManager#stopWindowTrace()
 * IInputMethodManager#startImeTrace()
 * IInputMethodManager#stopImeTrace()

For QS DevelopmentTiles to continue being allowed to access those
IPCs, this CL gives CONTROL_UI_TRACING to the Settings app.

 [1]: Ibdeb38dc9a066cb8ed2904adcdac29014b166526
      2ad02a383b036b02a836a50a43c679a17c2fde6b

Bug: 172444310
Test: Manually verified as follows.
 1. build aosp_coral-userdebug and flash it.
 2. adb shell dumpsys package com.android.settings
 3. Verify that
      android.permission.CONTROL_UI_TRACING
    is granted.
Change-Id: I2165ce38e5897ea0321fad9d54047e964a0a6ddb
This commit is contained in:
Yohei Yukawa
2022-07-22 07:45:04 -07:00
parent de6ed69527
commit 16db5370eb

View File

@@ -16,6 +16,7 @@
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.CONTROL_UI_TRACING" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />