To use a key store you need to do two things:
- Go to the AndroidManifest.xml file and change android:debuggable from "true" to "false". You then run a build
- Next is to sign the resulting APK (after running the build) with the javarsigner. The command should look something like:
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Trust me on this, it's far less stressful keeping your keys safe than losing it. Can you imagine the hassle of having your users to re-install your Android app?
No comments:
Post a Comment