Merge "CTS: Use cmd activity instead of am" am: 45eb89bd05 am: c8f5df263d
am: 3ccd80611c
Change-Id: I9dbd55b1a3bc4956fc204484a017706cc98601c3
diff --git a/hostsidetests/jvmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java b/hostsidetests/jvmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
index 326ff96..aba1d02 100644
--- a/hostsidetests/jvmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
+++ b/hostsidetests/jvmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
@@ -109,8 +109,8 @@
String agentInDataData = installLibToDataData(pwd, "libctsjvmtiagent.so");
- String attachReply = mDevice
- .executeShellCommand("am attach-agent " + mPkg + " " + agentInDataData);
+ String attachCmd = "cmd activity attach-agent " + mPkg + " " + agentInDataData;
+ String attachReply = mDevice.executeShellCommand(attachCmd);
// Don't try to parse the output. The test will time out anyways if this didn't
// work.
if (attachReply != null && !attachReply.trim().isEmpty()) {