[IDEs, Libraries, & Programming Tools] xpmule:
Has anyone managed to sign an APK ?

I installed the v2 Android SDK and setup a bunch of different keystores debug + release but every time i try and sign my APK it fails with code -1

Which obviously means it won't be able to install on my Phone for testing.

So far i ran into a couple errors and figured them out but some help with this would be good.

Do we have to sign them with debug or release ?

I am wondering if i patched an apk with it then signed it with APK Studio

will i still be able to give it someone else so they can install it too ?

An FAQ for trouble shooting clearly laid out some where would be nice for this too. I have seen some help offered on this but the program menu-options changed etc.

Like the Framework issue.. threw me errors so i went looking online about it.

All i had to do to fix it was get root on my Moto-E 2015 phone and then copy "framework-res.apk" from system to my SDcard then copy it to my PC in this folder.. (Win7 x64)

"C:\Users\AccountName\apktool\framework"

I left the file name as it is and i also left the 1.apk file where it is from my fresh up to date install too.

Then my build failed with a couple different errors that were because of the app itself.

So i fixed them up and got it compiled just fine.

For testing i also took a simple free APP from the play store "4G.LTE.Switch-v1.0.2.apk"

Then i tested out decompiling it then recompiling it & it worked fine.

But i find it odd there has been almost no discussion about singing the APK's here on this topic.

Either you all are not even getting that far or.. it must be working really easy for you all.

Any suggestions for code -1 ?

Do we have to have the key password a certain length or something ? I don't get it :(

Help LOL

Thanks in advance ;)

EDIT:

Ok i went here and used this and it worked 100%

https://github.com/appium/sign

Decompiled.. recompiled.. signed.. then installed.. then launched.

Also thanks to the OP for making this and the APKTool guy & signer guy too :)

EDIT2:

Found another way that worked perfect.

This method has a GUI interface and lets you CREATE a keystore and more..

[GUIDE]GUI - SignApk Jar File Tutorial to Sign and Align APKs

I tested this by decompiling "4G.LTE.Switch-v1.0.2" from the play store.

I made no changes.. then recompiled it with APK Studio.

Then i used this newer GUI method to make a new test key of my own.

Then i installed it via my SD card & worked fine.

I still am not sure why i had problems with the Key signing in APK Studio though.

I should mention i had to specify the path for my x64 Java install..

"C:\Program Files\Java\jdk1.8.0_92\bin"

So i launched that GUI Java Applet by double clicking it then i put in my path.

Set up the keystore then signed etc.

I installed Java v1.8 "jdk-8u92-windows-x64.exe" not the 32bit version.

Guys if you are having problems then pick an APK / APP that is *known* to work.

The one i suggested i chose because it was super small & free and on the play store.

"4G LTE Switch" by Base Mobi

https://play.google.com/store/apps/details?id=com.tapbase.LTEswitcher

I also used this Firefox addon to download it from the PlayStore page.

https://addons.mozilla.org/en-US/firefox/addon/apk-downloader/

NOTE: it does not download any paid app's games etc.

It's great to have a local copy backup of APK's on your computer i think.

That add-on puts a download link onto the Google Store pages for any app.

Then i added a Mycroft search provider for the Play Store for searching for app's.

Just Google "Mycroft" search plugins (not actual plugins but .xml files for search providers)

anyway lol