简体   繁体   English

您可以对Android APK文件进行“双重签名”吗?

[英]Can you “doublesign” an android apk file?

I did search the forum for a while but i did not find an answer for this. 我确实在论坛上搜索了一段时间,但没有找到答案。 Recently, Google has changed its Maps API for android from v1 to v2. 最近,Google已将其Android版Maps API从v1更改为v2。 Since i started the project way before March, i was not aware they would not accept new apps working on the old API. 由于我是在三月之前开始项目的,所以我不知道他们不会接受在旧API上运行的新应用。 Hence, it's just after i finished my app that i realized the Maps API key was tied to the keystore, and i cannot get a new Map API key for v1 now. 因此,直到我完成我的应用程序后,我才意识到Maps API密钥已绑定到密钥库,而现在我无法获得v1的新Map API密钥。 And i would have to recode the entire thing to translate it to v2, which i cannot do right now. 而且我必须重新编码整个内容才能将其翻译为v2,我现在无法执行。

My question is, is it possible to doublesign the .apk file and submit it to Google Play. 我的问题是,是否可以对.apk文件进行双重签名并将其提交给Google Play。 Let's say i have a working .apk signed with my debug keystore. 假设我有一个使用调试密钥库签名的有效.apk。 However, the .apk will not be accepted by Google because it uses the debug key. 但是,.apk将不被Google接受,因为它使用了调试密钥。 Can i then "resign" it with jarsigner to force Google Play to accept it? 然后我可以使用jarsigner“辞职”以强制Google Play接受它吗? Will the app still work if i do this? 如果我这样做,该应用程序仍然可以正常工作吗? Really would appreciate help for this asap. 真希望能尽快获得帮助。 I don't have a timeline to recode the app now, and i really want to get visibility for the app in Google Play :/ 我现在没有时间表来重新编码该应用程序,我真的很想在Google Play中获得该应用程序的可见性:/

Can you “doublesign” an android apk file? 您可以对Android APK文件进行“双重签名”吗?

No. You can always sign the APK with any key, but that will just override old key. 不可以。您始终可以使用任何密钥对APK进行签名,但这只会覆盖旧密钥。

And i would have to recode the entire thing to translate it to v2 我必须重新编码整个内容才能将其翻译为v2

Unfortunatelly there is nothing else you can do except just that if you don't have a signing key and Maps v1 API key. 不幸的是,除了没有签名密钥和Maps v1 API密钥之外,您无能为力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM