There are two possible cases how to sign the apk file. The first one is really simple, if you build the Android app you want to test on your own within eclipse you don’t need to resign the apk file. The signatures should be the same. The second case is more complex.
If you get the apk file you have to test e.g. from your developers, from jenkins or from the market you have to resign the app. Do the following steps to resign it with your keystore:
If you get the apk file you have to test e.g. from your developers, from jenkins or from the market you have to resign the app. Do the following steps to resign it with your keystore:
- Rename the apk file into a zip file, e.g. Name.apk = Name.zip
- Unpack/ Unzip the zip file
- Delete the META-INF folder
- Repack/ Rezip the folder again to a zip file
- Rename the zip file again to an apk file
- Open a terminal window / Command prompt and enter (the jarsigner tool is located in the bin folder of your installed java sdk
jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass
android APPNAME.apk androiddebugkey
Enjoy Testing !!!!!!!!!!!
Comments
Post a Comment