Fix dumpsys meminfo is not completing in bugreports
Invoked wrong RunDumpsys for `APP PROVIDERS PLATFORM`. It dumped to
STDOUT directly and interjected into the middle of meminfo results.
Bug: 176250041
Test: atest dumpstate_test
Test: atest dumpstate_smoke_test
Test: adb bugreport
Change-Id: Ifc42bf4f5c24664cc9daaf750d530f471d530c0f
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 9c5b883..acc570e 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1548,7 +1548,7 @@
dprintf(out_fd, "========================================================\n");
RunDumpsys("APP PROVIDERS PLATFORM", {"activity", "provider", "all-platform"},
- DUMPSYS_COMPONENTS_OPTIONS, out_fd);
+ DUMPSYS_COMPONENTS_OPTIONS, 0, out_fd);
dprintf(out_fd, "========================================================\n");
dprintf(out_fd, "== Running Application Providers (non-platform)\n");