summaryrefslogtreecommitdiffstats
path: root/chromium/tools
diff options
context:
space:
mode:
authorPrimiano Tucci <primiano@google.com>2013-05-08 10:50:39 +0100
committerPrimiano Tucci <primiano@google.com>2013-05-08 10:50:39 +0100
commitf6f00ae3a6bece2b90c099f0e6ef3bcc6d6a02b3 (patch)
tree9880f6c99b8f1c2b1caf9bd23ac8fa765ba510f8 /chromium/tools
parent7962d3fa1b66ed25aba03a2d48f6c47528d7d95c (diff)
downloadandroid_frameworks_webview-f6f00ae3a6bece2b90c099f0e6ef3bcc6d6a02b3.tar.gz
android_frameworks_webview-f6f00ae3a6bece2b90c099f0e6ef3bcc6d6a02b3.tar.bz2
android_frameworks_webview-f6f00ae3a6bece2b90c099f0e6ef3bcc6d6a02b3.zip
Fix webview_command_line script.
CommandLine.initFromFile expects a binary name as first argument (which is subsequently stripped off). Prepending "webview " string when creating the webview-command-line file. BUG:8357127 Change-Id: I0a3553f73bcc205e192bc9ae70d3b4784625bf54
Diffstat (limited to 'chromium/tools')
-rwxr-xr-xchromium/tools/webview_command_line7
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/tools/webview_command_line b/chromium/tools/webview_command_line
index b9ae8dc..f89816d 100755
--- a/chromium/tools/webview_command_line
+++ b/chromium/tools/webview_command_line
@@ -17,8 +17,8 @@
CMD_LINE_FILE=/data/local/tmp/webview-command-line
if [ $# -eq 0 ] ; then
- # If nothing specified, print the command line.
- adb shell "cat $CMD_LINE_FILE 2>/dev/null"
+ # If nothing specified, print the command line (stripping off "webview").
+ adb shell "cat $CMD_LINE_FILE 2>/dev/null" | cut -d" " -f "2-"
elif [ $# -eq 1 ] && [ "$1" = '' ] ; then
# If given an empty string, delete the command line.
set -x
@@ -26,7 +26,6 @@ elif [ $# -eq 1 ] && [ "$1" = '' ] ; then
else
# Else set it.
set -x
- adb shell "echo '$*' > $CMD_LINE_FILE"
- # Prevent other apps from modifying flags -- this can create security issues.
+ adb shell "echo 'webview $*' > $CMD_LINE_FILE"
adb shell chmod 0664 $CMD_LINE_FILE
fi