Get status for all processes in OC.
Test: succesful run of STS tests which use this feature.
Bug:65559061
Change-Id: I7ef0dbea34e1bfd7a8cc6538fd63fe5c24fa3bf9
diff --git a/hostsidetests/security/src/android/security/cts/AdbUtils.java b/hostsidetests/security/src/android/security/cts/AdbUtils.java
index 77a8f7b..7dc371a 100644
--- a/hostsidetests/security/src/android/security/cts/AdbUtils.java
+++ b/hostsidetests/security/src/android/security/cts/AdbUtils.java
@@ -99,7 +99,7 @@
public static boolean enableLibcMallocDebug(String processName, ITestDevice device) throws Exception {
device.executeShellCommand("setprop libc.debug.malloc.program " + processName);
device.executeShellCommand("setprop libc.debug.malloc.options \"backtrace guard\"");
- String cmdOut = device.executeShellCommand("ps | fgrep " + processName);
+ String cmdOut = device.executeShellCommand("ps -A | fgrep " + processName);
Scanner s = new Scanner(cmdOut);
if(!s.hasNextInt()) {
CLog.w("Could not find pid for process: " + processName);