提交 bd631989 编写于 作者: E Eric Seidel

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
上级 6729917a
......@@ -5,7 +5,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.domokit.sky.demo"
android:versionCode="3"
android:versionCode="7"
android:versionName="0.0.1">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
......
......@@ -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([
......
......@@ -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([
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册