Do not use su to run the df command in bugreports

User builds do not have su, so when the bugreport attempts to report
disk free space, the command fails and nothing is reported.  However,
the df command does not need to be run as root to report free space,
so just run the command directly.

Change-Id: Ic7deb696f293e772ddf28eacfe16e4250af9a9f3
This commit is contained in:
Ken Sumrall 2013-02-08 17:35:58 -08:00
parent 9f8386e111
commit 8f75fa7bcf

View File

@ -216,7 +216,7 @@ static void dumpstate() {
run_command("VOLD DUMP", 10, "vdc", "dump", NULL); run_command("VOLD DUMP", 10, "vdc", "dump", NULL);
run_command("SECURE CONTAINERS", 10, "vdc", "asec", "list", NULL); run_command("SECURE CONTAINERS", 10, "vdc", "asec", "list", NULL);
run_command("FILESYSTEMS & FREE SPACE", 10, SU_PATH, "root", "df", NULL); run_command("FILESYSTEMS & FREE SPACE", 10, "df", NULL);
run_command("PACKAGE SETTINGS", 20, SU_PATH, "root", "cat", "/data/system/packages.xml", NULL); run_command("PACKAGE SETTINGS", 20, SU_PATH, "root", "cat", "/data/system/packages.xml", NULL);
dump_file("PACKAGE UID ERRORS", "/data/system/uiderrors.txt"); dump_file("PACKAGE UID ERRORS", "/data/system/uiderrors.txt");