DescriptionFixed running gdb on rooted device
The command passed as a parameter to some implementations of "su" must
be enclosed in quotation marks. Otherwise, the command contains spaces,
can be splited into several commands. For example 'su -c echo foo' can
be executed by "su" as two commands: "echo" and "foo". The right way to
run this is 'su -c "echo foo"'. This patch fixes "su" behaviour and
still works fine without --su-prefix flag
Added quotes around adb shell command
R=jbudorick@chromium.org, klundberg@chromium.org
TEST=Run build/android/adb_gdb with parameter --su-prefix="su -c", on device which is rooted with "SuperSU v1.99 - Copyright (C) 2012-2014 - Chainfire"
Committed: https://crrev.com/8fe7481f6b9d9c4012390b959fc7a305111a5a23
Cr-Commit-Position: refs/heads/master@{#312845}
Patch Set 1 #
Messages
Total messages: 9 (1 generated)
|