我创建了一个 apk 并使用 adb 在我的手机上安装了本地副本,后来我在市场上保留了相同的 apk。
现在,
斯里拉姆
最佳答案
几天前,我不得不为我的公司测试 Play 商店更新机制。我总结的结果导致 Play 商店更新的以下条件:
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/