测试 adb 更新与安装? [英] Testing an adb update, versus install?

查看:26
本文介绍了测试 adb 更新与安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何测试应用程序更新与全新安装?我看到 adb install 有几个标志,但我不确定哪个是模仿现实的.

How do I test an update of my application, versus a clean install? I see that adb install has several flags, but I'm not sure which one mimics reality.

我明确需要测试应用更新.

I explicitly need to test app updating.

推荐答案

您无需重新安装即可获得全新安装",您只需擦除应用程序的数据即可.

You don't need to re-install to get a 'clean install', you can just wipe the application's data.

转到设置">应用程序">找到您的应用程序"并使用清除数据"(或类似内容).届时,除非您还使用 SD 卡上的文件,否则您的应用将不知道其中的区别.

Go to Settings > Applications > Find your app and use 'clear data' (or similar). At that point your app won't know the difference unless you are also using files on the SD card.

当然,可以通过正常安装来测试应用更新(或者,使用 adb,您可以使用 adb install -r 进行安装,同时保留应用数据,就像您在市场上所做的那样)或使用 APK)

And, of course, app updating can be tested by installing normally (or, with adb, you can use adb install -r for installing while keeping the app's data, as you would on the market or with an APK)

这篇关于测试 adb 更新与安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆