android - 使用 adb 安装的 Apk 会收到来自 playstore 的更新吗?

标签 android google-play

我创建了一个 apk 并使用 adb 在我的手机上安装了本地副本,后来我在市场上保留了相同的 apk。

现在,

  • 我可以在设备中安装这两个应用程序吗?
  • 安装市场应用程序时,它会显示我替换您的旧应用程序吗?
  • 一个月后,我将更新发布到市场 - 我的设备中仍然有相同的本地 apk - 我是否从市场获得更新?

  • 斯里拉姆

    最佳答案

    几天前,我不得不为我的公司测试 Play 商店更新机制。我总结的结果导致 Play 商店更新的以下条件:

  • 两个应用程序的包名称必须相同。
  • 为了能够更新 apk(与更新源无关),两个 apk 的签名需要匹配。
  • android:versionCode市场 apk 的数量需要高于设备上安装的 apk 之一。

  • 让我快速解释一下结果。首先,包名是安卓操作系统用来判断一个apk是否相同的值。 apk 的签名 key 证明开发者(或签名者)是相同的。和 android:versionCode如果您想知道 apk 的版本,这是一个简单的检查值。

    最后,回答您的问题:

    1) Only with different package names.

    2) Only with the same package name and signature. The store will offer to update the apk if the stores android:versionCode is higher then the one installed.



    现在有趣的部分:

    3) Yes you do get an update! It's the same behavior described before.



    编辑:
    这是带有我的原始结果数据的图表:
    |Old source|Old version|New source|New version|Reinstall result|Store update available?|
    |----------|-----------|----------|-----------|----------------|-----------------------|
    |Store     |10         |Device    |5          |fail            |---                    |
    |Store     |10         |Device    |10         |success         |no                     |
    |Store     |10         |Device    |15         |success         |no                     |
    |Device    |5          |Store     |10         |success         |yes                    |
    |Device    |10         |Store     |10         |not possible    |no                     |
    |Device    |15         |Store     |10         |not possible    |no                     |
    

    关于android - 使用 adb 安装的 Apk 会收到来自 playstore 的更新吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16708447/

    相关文章:

    android - 如何检测设备上是否存在 Android Market?

    console - Google Play 开发者控制台 : Some stats are missing

    php - 是否有可以突出显示 PHP 标签的文本/代码编辑器?

    android - 如何检测哪个 Activity 导致我的 Activity onPause

    Android url下载计算进度?

    android - 如何限制谁可以在谷歌游戏商店下载我的应用程序?

    android - 顶级 Android Activity

    android - Firebase Firestore - 移动 SDK 和 Web SDK 之间的差异

    android - 在 Google Play 商店推出测试版

    google-play - 将应用重新提交到 Google Play