Add permission for protecting UI tracing
The new permission will protect the UI traces, allowing only wanted development tools to start the tracing. At the moment, the permission is planned to be used for WindowManager and InputMethod traces. Bug: 172444310 Test: N/A Change-Id: Ibdeb38dc9a066cb8ed2904adcdac29014b166526
This commit is contained in:
@@ -3032,6 +3032,12 @@
|
||||
<permission android:name="android.permission.DUMP"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- Allows an application to start tracing for InputMethod and WindowManager.
|
||||
<p>Not for use by third-party applications.
|
||||
@hide -->
|
||||
<permission android:name="android.permission.CONTROL_UI_TRACING"
|
||||
android:protectionLevel="signature|privileged|development" />
|
||||
|
||||
<!-- Allows an application to read the low-level system log files.
|
||||
<p>Not for use by third-party applications, because
|
||||
Log entries can contain the user's private information. -->
|
||||
|
||||
@@ -316,6 +316,7 @@ applications that come with the platform
|
||||
<permission name="android.permission.DELETE_CACHE_FILES"/>
|
||||
<permission name="android.permission.DELETE_PACKAGES"/>
|
||||
<permission name="android.permission.DUMP"/>
|
||||
<permission name="android.permission.CONTROL_UI_TRACING"/>
|
||||
<permission name="android.permission.ACTIVITY_EMBEDDING"/>
|
||||
<permission name="android.permission.FORCE_STOP_PACKAGES"/>
|
||||
<permission name="android.permission.GET_APP_OPS_STATS"/>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
<uses-permission android:name="android.permission.SET_PROCESS_LIMIT" />
|
||||
<uses-permission android:name="android.permission.SET_ALWAYS_FINISH" />
|
||||
<uses-permission android:name="android.permission.DUMP" />
|
||||
<uses-permission android:name="android.permission.CONTROL_UI_TRACING" />
|
||||
<uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES" />
|
||||
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
|
||||
<!-- Internal permissions granted to the shell. -->
|
||||
|
||||
Reference in New Issue
Block a user