Google maps does not work after resigning an apk

醉酒当歌 提交于 2019-12-24 12:22:09

问题


I am doing some modification in an existing apk that i got from my client to modify. I have decompiled application using apktool, changed some resources (like some strings from strings.xml) and recompiled/built it again using same tool. Then I signed using one_click_signer tool that I found somewhere of the google.

But when I install it on my device then google maps does not work anymore as it was working with original apk on the same device.

I have searched a lot about this but did not got any solution. I reviewed this link and many more and come to conclusion that I need to sign the apk with same key that was in original apk.

So can anyone please tell me:

  1. how can I sign the apk again with the same key and make map work?
  2. or is there any other way to make maps work properly?

Solution That I found and worked for me:

Thanx for @apmartin1991's answer . .

I created a google api console project and got got the generated key. then I replaced that key in android-manifest.xml file and resigned the application.

It worked.


回答1:


You will need to contact your client to get the .keystore file so you can sign it with the same key OR you can sign it with your own key and allow your key to be used with google maps, You can do this from the Google API console.

However if your clients app is on the appstore and you want to update that you MUST use the same key or it will be impossible to update it.




回答2:


You need .keystore file to use the same key. If you dont have .keystore file you need to generate a new one and register a new key in google maps console.

You have all the official instructions here.



来源:https://stackoverflow.com/questions/24492881/google-maps-does-not-work-after-resigning-an-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!