From 4fc0ac189a556a9e7dad953e259533e002c8d225 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 24 Mar 2015 12:44:39 -0700 Subject: [PATCH] Add a --no_install option to shelldb This CL adds an option to shelldb to skip installing the APK if the user of the tool knows that the APK is already up-to-date on the device. R=ojan@chromium.org Review URL: https://codereview.chromium.org/1002123003 --- engine/src/flutter/tools/shelldb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/tools/shelldb b/engine/src/flutter/tools/shelldb index 59513217ab..ba5b1d1bd9 100755 --- a/engine/src/flutter/tools/shelldb +++ b/engine/src/flutter/tools/shelldb @@ -113,6 +113,9 @@ class StartSky(object): start_parser.add_argument('build_dir', type=str) start_parser.add_argument('url_or_path', nargs='?', type=str, default=DEFAULT_URL) + start_parser.add_argument('--no_install', action="store_false", + default=True, dest="install", + help="Don't install SkyDemo.apk before starting") start_parser.set_defaults(func=self.run) def _server_root_for_url(self, url_or_path): @@ -159,7 +162,8 @@ class StartSky(object): pids['build_dir'] = os.path.abspath(args.build_dir) - subprocess.check_call([ADB_PATH, 'install', '-r', apk_path]) + if args.install: + subprocess.check_call([ADB_PATH, 'install', '-r', apk_path]) port_string = 'tcp:%s' % sky_server.port subprocess.check_call([