Do not check for debuggable / profilable for app tracing.

This is publicly undocumented and surprising behaviour.

Bug: 179883548
Change-Id: Iceee54c63dc9f5d61e9dcc76a47e11cc4088ed19
This commit is contained in:
Florian Mayer
2021-02-12 16:50:14 +00:00
parent a8a2198ddc
commit f287f6900c
2 changed files with 5 additions and 3 deletions

View File

@@ -168,8 +168,10 @@ public final class Trace {
}
/**
* Set whether application tracing is allowed for this process. This is intended to be set
* once at application start-up time based on whether the application is debuggable.
* From Android S, this is no-op.
*
* Before, set whether application tracing is allowed for this process. This is intended to be
* set once at application start-up time based on whether the application is debuggable.
*
* @hide
*/