diff options
author | sanfin <sanfin@google.com> | 2016-03-02 10:32:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 18:33:05 +0000 |
commit | 24d7960decb02198c73a9fcd3e847de8e97702fe (patch) | |
tree | a6f262d3bb2e842f60a48229ca99973d57fe3e0d /chromecast | |
parent | 080d586d7396eed8d503e6ec3a7eec9fcd891041 (diff) | |
download | chromium_src-24d7960decb02198c73a9fcd3e847de8e97702fe.zip chromium_src-24d7960decb02198c73a9fcd3e847de8e97702fe.tar.gz chromium_src-24d7960decb02198c73a9fcd3e847de8e97702fe.tar.bz2 |
Replaced apk_command_line with adb_cast_shell_command_line.
The new script uses the adb_command_line.py script in build/android
and is therefore compatible with the --device argument.
BUG= internal b/26406816
Review URL: https://codereview.chromium.org/1750393003
Cr-Commit-Position: refs/heads/master@{#378780}
Diffstat (limited to 'chromecast')
-rwxr-xr-x | chromecast/tools/apk_command_line | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/chromecast/tools/apk_command_line b/chromecast/tools/apk_command_line deleted file mode 100755 index 0fd0001..0000000 --- a/chromecast/tools/apk_command_line +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# -# Copyright 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# If no flags are given, prints the current cast shell flags. -# -# Otherwise, the given flags are used to REPLACE (not modify) the cast shell -# flags. For example: -# apk_command_line --enable-webgl -# -# To remove all content shell flags, pass an empty string for the flags: -# apk_command_line "" - -CMD_LINE_FILE=/data/local/tmp/castshell-command-line - -if [ $# -eq 0 ] ; then - # If nothing specified, print the command line (stripping off "castshell") - tempfile=$(tempfile) - adb pull $CMD_LINE_FILE $tempfile 2>/dev/null - if [ $? -eq 0 ] ; then - rm $tempfile - adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null - fi -elif [ $# -eq 1 ] && [ "$1" = '' ] ; then - # If given an empty string, delete the command line. - set -x - adb shell rm $CMD_LINE_FILE >/dev/null -else - # Else set it. - set -x - adb shell "echo 'castshell $*' > $CMD_LINE_FILE" - # Prevent other apps from modifying flags -- this can create security issues. - adb shell chmod 0664 $CMD_LINE_FILE -fi |