android - how to sign an already compiled APK -


i've decoded apk apktool (as original source code lost) fix issues layout xml files. i've rebuilt apktool , when tried install on device (using adb: adb install appname.apk) gave me error:

[install_parse_failed_no_certificates] 

the original apk signed keystore (on eclipse ide), 1 isn't, how can sign it's original keystone file outside eclipse!?

create key using

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg rsa -keysize 2048 -validity 10000 

then sign apk using :

jarsigner -verbose -sigalg sha1withrsa -digestalg sha1 -keystore my-release-key.keystore my_application.apk alias_name 

check here more info


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -