To repackage existing APK files, the previous Android signature mechanism: Generating KeyStore, signing, and viewing signature information has been introduced. This article describes two other requirements.
Package with the default debug signature
If you are using eclipse to develop a new program, the default will be a debug signature, which is known to the Earth, but what if you want to repack someone and want to use the debug signature?
First need to find your local default signature, generally located under the C:\Users\ username \.android\debug.keystore, copy out, and then pack, pack Order:
Copy Code code as follows:
Jarsigner-verbose-keystore%1-signedjar%2%3 androiddebugkey-digestalg sha1-sigalg Md5withrsa
Where%1 is your debug.keystore location,%2 is the apk after the re-sign, such as 1.signed.apk,%3 is unsigned apk (this is done using Android-apktool to reverse (decompile) using APK) for repackaging. Obviously this is a bat script, so save it as. bat will be very high next time.
The password is: Android
Change Eclipse's default debug signature
The eclipse default generated APK is signed with debug, and if you want to replace it with your own signature, you can change:
Eclipse->preferences->android->build->custom Debug KeyStore, I think it's helpful to develop apps for a multiplayer team.