Bump versionCode of SkyDemo.apk to avoid downgrade warning.

Also teach both skydb and shelldb to ignore version downgrades
I did not change sky_tool since maybe the warning makes sense
there?

R=abarth@chromium.org, chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1138343002
This commit is contained in:
Eric Seidel 2015-05-13 17:34:09 -07:00
parent cff10ebf23
commit 5b60d0a358
2 changed files with 4 additions and 2 deletions

View File

@ -175,7 +175,8 @@ class StartSky(object):
pids['build_dir'] = os.path.abspath(args.build_dir)
if args.install:
subprocess.check_call([ADB_PATH, 'install', '-r', apk_path])
# -r to replace an existing apk, -d to allow version downgrade.
subprocess.check_call([ADB_PATH, 'install', '-r', '-d', apk_path])
port_string = 'tcp:%s' % sky_server.port
subprocess.check_call([

View File

@ -226,7 +226,8 @@ class SkyDebugger(object):
subprocess.check_call([ADB_PATH, 'root'])
# We could make installing conditional on an argument.
subprocess.check_call([ADB_PATH, 'install', '-r', apk_path])
# -r to replace an existing apk, -d to allow version downgrade.
subprocess.check_call([ADB_PATH, 'install', '-r', '-d', apk_path])
port_string = 'tcp:%s' % sky_server.port
subprocess.check_call([