diff options
author | Andreas Gampe <agampe@google.com> | 2018-01-22 15:15:54 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2018-01-24 17:48:02 -0800 |
commit | 5b495d54d3831bd1a72309643f724958e814c90c (patch) | |
tree | 3072969512ad323d3582a33e72761775d5e35524 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d3dac85e46dc438304df752f48498e03e58f7b17 (diff) |
ActivityManager: Add support for agents on startup
Add setAgentApp similar to setDebugApp. If given, attempt to attach the given
agent during handleBindApplication.
The flow needed a slight refactor. It is not possible to do a debuggability
check at setAgentApp time (without checking all installed apps). Instead,
when a ProfilerInfo contains an agent, perform a debuggability check then.
This is consistent with how setDebugApp works.
Expose through the shell command:
cmd activity set-agent-app process agent
Add CTS coverage.
Bug: 69929492
Test: m
Test: m cts
Test: cts-tradefed run commandAndExit cts-dev -m CtsJvmtiAttachingHostTestCases
Change-Id: I65e869debd45e6073f9ab21cb9de9c9deb828a2e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions