如何从 Play 商店(网站等)以外的地方更新 Google Play Signed Apk

How to update Google Play Signed Apk from other than play-store (website etc)

我将使用我的密钥库签名的 apk 上传到 Google 玩意外启用 Google 应用程序签名 选项。 我在我的网站上上传了相同的 apk

现在,由于 Google App Signing 选项,两个 apks 都有不同的签名

  1. Google Play Apk:由 Google
  2. 签名
  3. 网站 Apk:由我的密钥签名

导致 The apk must be signed with the same certificates as the previous version error 更新。

Q) 如何让我的 Website-apk 签名与 Google-Play-signed-apk 相同?

好问题。 不幸的是,无法使用 Google App Signing 提供的最终密钥并使用这些密钥生成您自己的 apk,它只能由 google 内部使用以在商店中发布。

Important: App Signing opt-in is permanent Google Play App Signing is an optional program. If you prefer, you can continue managing your own keys.

Once you've enrolled your app in Google Play App Signing, withdrawal is not supported. To preserve the security of your app signing keys, we don't have the ability to remove keys from the secure server.

这里有更多信息: https://support.google.com/googleplay/android-developer/answer/7384423

我建议您简单地提取 Play 商店提供的 apk(有很多工具或应用程序可以实现),和将其上传到您的网站,或重定向到您应用的 Play 商店页面。

问候。

工作原理如下:

您有 X,您的原始应用签名密钥,用于签署安装在用户设备上的 APK - 您在启用 "App Signing" 功能时将其提供给 Google。

您还有 Y,上传密钥 - 您使用它来签署您上传到 Play 商店的 APK。

Google Play 将从您提供的 APK 中删除 Y 签名,并使用 X 对 APK 签名并将其发送给用户。

对于您要上传到您网站的APK,您需要使用X进行签名

永远不要丢失 X,将其存放在安全的地方(如 Lastpass 安全笔记)。