Commit 9222e6bf authored by zeeshanq@chromium.org's avatar zeeshanq@chromium.org

Fix adb_gdb --su-prefix

|adb_gdb --su-prefix=su| wasn't working for me, so updating doc and script.

BUG=337423

Review URL: https://codereview.chromium.org/315223005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275508 0039d316-1c4b-4281-b951-d872f2087c98
parent 701bc024
......@@ -320,6 +320,7 @@ Valid options:
--su-prefix=<prefix> Prepend <prefix> to 'adb shell' commands that are
run by this script. This can be useful to use
the 'su' program on rooted production devices.
e.g. --su-prefix="su -c"
--pull-libs Force system libraries extraction.
--no-pull-libs Do not extract any system library.
......@@ -852,7 +853,7 @@ if [ "$SU_PREFIX" ]; then
cat $SU_PREFIX_TEST_LOG
exit 1
fi
COMMAND_PREFIX=$SU_PREFIX
COMMAND_PREFIX="$SU_PREFIX"
else
SHELL_UID=$(adb shell cat /proc/self/status | \
awk '$1 == "Uid:" { print $2; }')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment