From 13461c2ffe1c77a0c11a922ba41b0922791a7874 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 17 May 2012 12:40:11 -0700 Subject: [PATCH] Dump packages.xml as root. Bug: 6501151 Change-Id: Ied638bdbe9ed6fbf749a44de8ac1f9d4167829c1 --- cmds/dumpstate/dumpstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index 2bcda11a5..165f11c57 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -208,7 +208,7 @@ static void dumpstate() { run_command("FILESYSTEMS & FREE SPACE", 10, SU_PATH, "root", "df", NULL); - dump_file("PACKAGE SETTINGS", "/data/system/packages.xml"); + run_command("PACKAGE SETTINGS", 20, SU_PATH, "root", "cat", "/data/system/packages.xml", NULL); dump_file("PACKAGE UID ERRORS", "/data/system/uiderrors.txt"); run_command("LAST RADIO LOG", 10, "parse_radio_log", "/proc/last_radio_log", NULL);