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:
parent
9f8386e111
commit
8f75fa7bcf
@ -216,7 +216,7 @@ static void dumpstate() {
|
||||
run_command("VOLD DUMP", 10, "vdc", "dump", 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);
|
||||
dump_file("PACKAGE UID ERRORS", "/data/system/uiderrors.txt");
|
||||
|
Loading…
Reference in New Issue
Block a user