diff options
| author | JP Abgrall <jpa@google.com> | 2012-02-24 18:53:45 -0800 |
|---|---|---|
| committer | JP Abgrall <jpa@google.com> | 2012-02-24 18:53:45 -0800 |
| commit | cb115fca1fe16d01f9a75f3963c87feafc0d42b8 (patch) | |
| tree | b666b5ecae1cdbe48d2f94bb4bfcc32b65c29d8c /cmds/dumpstate/dumpstate.h | |
| parent | 5265466e8a5453e738713869f61ca45482b85319 (diff) | |
| download | frameworks_base-cb115fca1fe16d01f9a75f3963c87feafc0d42b8.zip frameworks_base-cb115fca1fe16d01f9a75f3963c87feafc0d42b8.tar.gz frameworks_base-cb115fca1fe16d01f9a75f3963c87feafc0d42b8.tar.bz2 | |
dumpstate: use /system/xbin/su directly
This avoids accidentally picking up very common "su" alternatives
that developers use.
It also avoids having to search the PATH for su.
Change-Id: Ib9a3eeca7f4d892f2c9ea9ca1132304ef8e8484b
Diffstat (limited to 'cmds/dumpstate/dumpstate.h')
| -rw-r--r-- | cmds/dumpstate/dumpstate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.h b/cmds/dumpstate/dumpstate.h index b02db0b..c1c2ad8 100644 --- a/cmds/dumpstate/dumpstate.h +++ b/cmds/dumpstate/dumpstate.h @@ -21,6 +21,8 @@ #include <unistd.h> #include <stdio.h> +#define SU_PATH "/system/xbin/su" + /* prints the contents of a file */ int dump_file(const char *title, const char* path); |
