测试 adb 更新还是安装?

发布于 2024-12-28 19:31:11 字数 97 浏览 3 评论 0原文

如何测试应用程序的更新与全新安装?我看到 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫性小仙女 2025-01-04 19:31:11

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

转到设置>应用领域>>找到您的应用程序并使用“清除数据”(或类似内容)。此时,除非您也使用 SD 卡上的文件,否则您的应用程序将不会知道其中的差异。

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

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

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.

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文