[T] "package was not signed correctly" when downloading an app of mine - Android Q&A, Help & Troubleshooting

Hello,
I've uploaded my first apk to Google Play, made with processing 2.03.
I used this guide to sign: http://www.akeric.com/blog/?p=1352
After a few hours, when the app was visible, when trying to install, I get the "package was not signed correctly".
I'v tried it on another device rather than the one used for testing and I have the same issue.
1. is there a way to test apk's faster? It could take up to 12-24 hours for the new apk to be updated on Google Play, and that's what I have to wait to see if I now signed my apk correctly.
2. can you download the app and see if you get that issue?
3. does it matter what information you input when you create the release key using jdk? I mean, does google check against information you use in your Google Play publisher's account and then gives that error?
4. is there an alternate way of signing my apk? obviously this manual method is no good for a noob.
I am using win 7 64 bit, latest jdk7 at the time of writing, latest android sdk with just api level 10 installed, latest version of apache ant (installed manually).

here's the fix
To anyone having this issue, STOP USING JDK 7 and install JDK 6.
Not only JDK7 outputs some warnings when you sign your apk that "the internets" say they're safe and should work anyway, but they will generate badly signed apks that malfunction when you try to install off google play saying the "package was not signed correctly".

Related

[Q] apkmanager decompile error NOT a system apk

hi i have been trying to decompile the latest version of gameboid so that i can edit the xml so the app shows in my xperia play launcher, but every time i try to decompile i get the message "an error has occured check the log" so i check the log and since i don't know anything about knowing what is wrong i uploaded the log.txt
http://www.fileserve.com/file/nSnDSkZ/log.txt
and before you ask
YES i have the latest version of jdk, android sdk AND apkmanager
and YES i used google search AND a search of the entire android forum and found NOTHING but errors because of decompiling SYSTEM apks and i was NOT using a system apk
can anyone tell me why this is happening and how i can fix this, because i can not make any sense of this whatsoever
also the location of apkmanager is c:\apkmanager
and the install location of android sdk, and JDK is left at the default
i'm using windows 7 64 bit
Anyone
BuMp
i just tried to decompile some other apks (nesoid, snesoid, n64oid, and gensoid) and bet the same problem.
anybody got any ideas?
bUmPiDdY bUmP
bUmPiDdY bUmP 2, tHe NeW SeQuEl To ThE oRiGiNaL bUmPiDdY bUmP by ImPaTiEnCe SoFtWoRkS
bUmPiDdY bUmP 3, tHe ThIrD iNsTaLlMeNt Of ThE bUmPiDy BuMp SeRiEs, By ImPaTiEnCe SoFtWoRkS
Have you tried another pc? If you don't have access get virtualbox and run a version of linux. At the very least you would be able to rule out problems with your windows config.
Sent from my GT-S5830 using XDA App

Trouble Signing?

So I used someone else's theme as a template with apktool and created my own theme. Runs great on my phone, everything works. Problem is, when I go to upload it to my apps in the Dev Console, I get the following error:
"Google Play does not accept apks signed with certificates issued by Android team. Create a new certificate that is valid for at least 50 years."
So I tried other methods to sign, such as AndroidSigner. When I used AndroidSigner I am able to upload the APK to the Dev Console but it won't install on my phone (logcat references the first file in the package, which happens to be a font, and complains about signing).
Since I only have an edited apk and not a full project to sign with Eclipse or the like, what are my options?
I mean, the theme is DONE.
Shoot.

Problem for sign sn application

Hello, I've started to create applications in htmlcode, with Eclipse and PhoneGap. The problem is that after creating the apk file and trying to load it on Play Store, I get out the words: "Google Play Store does not accept apk signed with certificates issued by Android team. Create a new certificate that is valid for at least 50 years."
How do I resolve this problem? How do I create a.keystore file? What are the steps to do?
Thanks in advance!
that mean I think you have signed your apk with a test signature and play store wont accept it.It needs to be signed with your own certificate which is valid for atleast 20 years.You can use java to create a cert if im not mistaken.You google for the syntax.But im not sure as i havent signed an apk to release it on play store I always test sign it
Sent from my GT-N7000 using xda app-developers app
Thank you, I'm finally solved the problem

Hack "Google My Tracks" back into life?

The Google app "My Tracks" was deprecated some months ago, which is a shame since it was very popular due to it's no-nonsense approach.
I had a look at the last version before Google deprecated it, it's available for download here.
Really the only two things that don't seem to work still are the maps (it just displays an empty background) and Google Drive syncing. I suppose Google canceled the API keys for those, and that's why they're not working.
So I used APKTool to unpack it, and changed the API key for the maps in AndroidManifest.xml to one that I had registered myself. I then used APKTool to put it back together, signed it with jarsigner and installed it on my phone. It didn't work (it's still not displaying the map).
So now I'm hoping someone smarter than me might be able to get it to work Not sure why it's not working (I used the package name of the app, com.google.android.maps.mytracks as the package name when I registered for the API key, if that matters).
Hi,
Which version of Android do you use ? 6.0.1 ?
I used to be on Android 4.4.2, and "My Tracks" used to work perfectly.
I changed phone, and I now have Android 6.0.1, and "My Tracks" displays grey empty area, instead of the map.
I suppose that Google has changer many things on Andoird 6.0.1, which blocks the map from being used by "My Traks".
I have noticed that the Android/Data/ directory does not contain any "com.google.android.maps.mytracks" folder, as it used to.
I made a full back-up from MyBackUp Pro, and I have noticed that when I restore My Tracks "APK and DATA", the map displays totally fine on My Tracks, when I launch a track recording !!!
But the GPS does not work well at all.
We could discuss together or findings, to try to see what can be done to correct this on Android 6.0.1 ?
Hi BadCash,
I have read many pages, and did not find a good solution yet, ans no other app can beat or even be as good as My Tracks.
I confirm that when I install My Tracks with MyBackUp Pro, on my rooted phone G900F on Android 6.0.1 stock rooted, "apk+data", the map appears on My Tracks, but the GPS is crazy...
and when I install apk only, no map appears, but thr GPS works veray well.... (writes the route on the grey screen)....
So is there a chance that the solution would be in the DATA files I have back-up, and juste on file to modify... ?
Or is it related to Android 6.0.1 permissions ?
Or is it related to Google services ? or Play Store, or Google apps ?
---------- Post added at 11:48 AM ---------- Previous post was at 11:45 AM ----------
I found the apk sources for "My Tracks" :
https://github.com/Plonk42/mytracks
Who could find and correct it to make it work on Android 6.0.1 please ?
Many users would donate a reward on PayPal to the genious person who would correct it !!!
I am running a rooted Note 4 on Android 5.1.1 and the map in My Tracks no longer shows up for me either. My tracks still worked on my LG G4 with 6.0.1. I think My Tracks is still tracking but doesn't show my actual track on the map.
watching this thread. Google Fit sucks.
Seb14 said:
I found the apk sources for "My Tracks" :
https://github.com/Plonk42/mytracks
Who could find and correct it to make it work on Android 6.0.1 please ?
Many users would donate a reward on PayPal to the genious person who would correct it !!!
Click to expand...
Click to collapse
I went and recompiled the said source code with a new Google Maps API key, and it's working like a charm on Android 8.0. :good:
Please give me a link to download your version
YandereSan said:
I went and recompiled the said source code with a new Google Maps API key, and it's working like a charm on Android 8.0. :good:
Click to expand...
Click to collapse
Great job. I hope you post a link to the download for people who need it.
My previous phone was a Note 4 where it was working fine (Android 5.1). I did a Google backup on it, and then when I set up my Pixel 2 XL, I restored from the Note 4 backup and it is working fine on my Pixel 2 XL.
I hope too! I still haven't found a good alternative to My Track
bubnenko said:
Please give me a link to download your version
Click to expand...
Click to collapse
Unfortunately, I can't really give you my version as it requires API keys which are tied to my personal account.
1. Go to Google Cloud Dashboard: https://console.cloud.google.com/apis/dashboard
2. Create a new project. You can call it MyTracks Revived.
3. Click "Enable APIs" -> Maps SDK for Android - make sure it's activated.
4. Go to Credentials: https://console.cloud.google.com/apis/credentials
5. Create credentials. You'll receive an API key.
Once you the maps API key, you can follow the instructions to compile it here: https://github.com/Plonk42/mytracks
YandereSan said:
Once you the maps API key, you can follow the instructions to compile it here: https://github.com/Plonk42/mytracks
Click to expand...
Click to collapse
I downloaded, created a new set of API keys, and used Android Studio to run it on my phone. Had to uninstall the Google version.
While the maps part now works, I cannot import from my SD card all of my old tracks! This makes the new version unusable! And unfortunately, Verizon sucks so I can't root my phone and manually do it. Anyone else find a way to allow import? It sees there are two tracks to import, but just gives a generic error. Nothing in the debug log or logcat...very frustrating.
It would be nice to have the newest Google version work. Why does decompiling the APK with APKTool, replacing the API keys in AndroidManifest, and recompiling/signing not work? I took a look at the differences between the open source AndroidManifest and the Google 2.0.11 one, but didn't see anything important. Any thoughts?
Thanks!
MrNetwork said:
Great job. I hope you post a link to the download for people who need it.
My previous phone was a Note 4 where it was working fine (Android 5.1). I did a Google backup on it, and then when I set up my Pixel 2 XL, I restored from the Note 4 backup and it is working fine on my Pixel 2 XL.
Click to expand...
Click to collapse
Hi can you elaborate on how you got my tracks working on your pixel?
Thanks
YandereSan said:
I went and recompiled the said source code with a new Google Maps API key, and it's working like a charm on Android 8.0. :good:
Click to expand...
Click to collapse
I have a key but dont remember how to change it
gtg472b said:
I downloaded, created a new set of API keys, and used Android Studio to run it on my phone. Had to uninstall the Google version.
While the maps part now works, I cannot import from my SD card all of my old tracks! This makes the new version unusable! And unfortunately, Verizon sucks so I can't root my phone and manually do it. Anyone else find a way to allow import? It sees there are two tracks to import, but just gives a generic error. Nothing in the debug log or logcat...very frustrating.
It would be nice to have the newest Google version work. Why does decompiling the APK with APKTool, replacing the API keys in AndroidManifest, and recompiling/signing not work? I took a look at the differences between the open source AndroidManifest and the Google 2.0.11 one, but didn't see anything important. Any thoughts?
Thanks!
Click to expand...
Click to collapse
Hello,
Thank you all, i've been very interested by this thread about Mytracks, and i was searching for solutions about this app.
Here were my needs :
- continue to use "mytracks" on new smartphone (android 8.1) => able to see maps and record tracks with markers (photos)
- possibility to import all my tracks (>800) on my tablet (official android 5.0.2, but now using Lineage OS 15)
So, i created my personal API key with Google console and tried to apply it in AndroidManifest.xml
I tested several versions :
- 2.0.11 / 2.0.10 : display is KO, maps stays grey. No errors in logcat because my key is valid (also no metric for my key in Google Maps API console)
- 2.0.9 / 2.0.7 : display for Google Maps is OK and i can import tracks.
So that's it i keep app version 2.0.9 with modified AndroidManifest.xml
(it seems versions 2.0.10 & 2.0.11 only bring "Earth maps")
Thanks
Google will change the maps renderer. Any chance that MyTracks can be modified to work with this new renderer?

Where can I download official Google services framework and google play store apk's?

I am trying to troubleshoot an issue with an iwork 8 air tablet where google play store instantly stops working upon launch. It is Android 5.1. I figured I would first update the store to the latest version. However after tons of searching I cannot seem to find a legit download.
I looked on apkmirror.com, which people on the web say is legit, and they claim they verify the signature on all apk's. However my tablet would not accept it, thinking it is from an unknown source. I then uploaded it to apkpure.com's apk signature verification and it did not pass.
I can't seem to find anywhere "official" to download it other than forums, mirror sites. I also can't seem to find a simple way to actually view the signature, view what googles signature is supposed to be, etc. Unsure why this is so hard. On a PC I can right click a signed file and view the certificate details. Can anyone help point me in the right direction how to obtain official google apk's and verify they are indeed official?
Turn on unknown sources in settings security then you can install app from apkmirror which I believe is a reputable site
Sent from my Nexus 4 using Tapatalk
OpenGapps
You could also extract the apks from one of the opengapps flashable zips
hxxp://opengapps.org/ (replace xx with tt)
But you have to pay attention that you use the right version for your platform and android version

Categories

Resources