如何使我的软件包签名与先前安装的版本匹配?

huangapple go评论109阅读模式
英文:

How to make my package signatures match previously installed version?

问题

Package com.bookup.chessopeningswizard 的签名与先前安装的版本不匹配;忽略!如何让 Delphi 匹配来自 Play 商店先前安装的应用的签名?已安装应用的卸载不是一个选择,因为我想测试应用在更新时的行为。

英文:

I'm deploying my Delphi 11.3 app to an Android device that has the app store version of the app installed. I get this error:

> Package com.bookup.chessopeningswizard signatures do not match previously installed version; ignoring!

I need to test how the published app behaves when it is updated (for example, whether it retains user-created documents). I'm simulating this by deploying the updated project from Delphi.

How do I get Delphi to match the signatures of the previously installed app from the play store?

Uninstalling the previously installed app is not an option, as I want to test how the app behaves when updated.

答案1

得分: 1

以下是翻译好的部分:

One of the "easiest" ways would be to deploy for Play Store, and use the bundle tool to extract the .apk which could then be copied to/installed on your device. You can execute the bundle tool at the command line - assuming you have the same JDK as me and a default install of Delphi 11, it would look like this:

其中最“简单”的方法之一是部署到Play商店,然后使用捆绑工具提取.apk,然后将其复制到/安装到您的设备上。您可以在命令行上执行捆绑工具 - 假设您与我使用相同的JDK并且默认安装了Delphi 11,它看起来会像这样:

"C:\Program Files\Eclipse Adoptium\jdk-11.0.14.101-hotspot\bin\java.exe" -jar "C:\Program Files (x86)\Embarcadero\Studio.0\bin\Android\bundletool-all-1.2.0.jar" build-apks --bundle="path\to\your\app.aab" --output="path\to\your\app.apk" --ks "path\to\your\playstore.keystore" --ks-pass=pass:yourpassword --ks-key-alias=youralias --mode=universal

在上述代码中,您将显然的部分替换为您自己的信息,即:

  • path\to\your\app.aab 是您的应用程序的.aab文件的路径/文件名
  • path\to\your\app.apk 是从中提取时输出的.apk文件的路径/文件名
  • path\to\your\playstore.keystore 是用于在应用商店模式下部署的.keystore文件的路径/文件名
  • yourpassword.keystore文件的密码
  • youralias.keystore文件使用的别名
英文:

One of the "easiest" ways would be to deploy for Play Store, and use the bundle tool to extract the .apk which could then be copied to/installed on your device. You can execute the bundle tool at the command line - assuming you have the same JDK as me and a default install of Delphi 11, it would look like this:

"C:\Program Files\Eclipse Adoptium\jdk-11.0.14.101-hotspot\bin\java.exe" -jar "C:\Program Files (x86)\Embarcadero\Studio.0\bin\Android\bundletool-all-1.2.0.jar" build-apks --bundle="path\to\your\app.aab" --output="path\to\your\app.apk" --ks "path\to\your\playstore.keystore" --ks-pass=pass:yourpassword --ks-key-alias=youralias --mode=universal

Where you replace the obvious parts with your own info, i.e.:

path\to\your\app.aab is the path/filename of the .aab file for your app

path\to\your\app.apk is the path/filename of the .apk file that is output when extracted

path\to\your\playstore.keystore is the path/filename of the .keystore file you used for deploying in app store mode

yourpassword is the password for the .keystore file

youralias is the alias used for the .keystore file

huangapple
  • 本文由 发表于 2023年3月7日 03:54:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/75655263.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定