In addition to checking for GET_APP_OPS_STATS permission,
require running in the same process or being instrumented
to access stack trace collection API.

Test: atest android.app.appops.cts.RuntimeMesageCollectionTest
Bug: 175193187
Change-Id: I5bbaea48f4d4b59b0a3b276525291787fefcb9d5
1 file changed