1) I decompiled YahooWeather.apk app, tweak a little thing from values.xml and recompiled again.
Then I signed it with "java -Xmx512m -jar signapk.jar -w testkey.x509.pem testkey.pk8" and installed it on my device.
It worked well except for the Google Map. So I read about it (I'm not a programmer), and found that I needed to create an API key for Google Maps Android.
2) I looked at my signed apk key with "keytool -printcert -file %myfile%.apk" and I could see the SHA-1 key. I pasted it on Google Console window to generate my API key, and it gave me one.
3) Then I modified the line in AndroidManifest.xml where the key value is, and replaced it with the one given in google console. Recompiled and signed again. Installed it in my device but keeps showing blank when opening the map.
What am I doing wrong?
I attached the .apk modified, which can be decompiled with apktool, and a screenshot of my Google API key.
RESOLVED: In Google Console API Key Settings I had to put the original package name after the SHA-1 key.
So --- > [SHA-1 KEY FROM YOUR APP];[same package name]
By the way, I have a question about the app certificate signed by singapk.jar
Is it unique for an app? Even if I decompile and resign it again?
Gaming is a part of life of almost every Android enthusiast. But many of new titles are … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?