Created
April 30, 2014 15:33
-
-
Save tcoffin/5c434b6dd3cee3d95506 to your computer and use it in GitHub Desktop.
resign android application with developer key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: android-re-sign.sh <in apk> <out apk> | |
# re-signs an android application with the default debug signing key | |
inapk="$1" | |
outapk="$2" | |
cp "$inapk" "$outapk" | |
zip -d "$outapk" META-INF/\* # delete the existing signing | |
jarsigner -sigalg SHA1withRSA -digestalg SHA1 -storepass android -keypass android -keystore ~/.android/debug.keystore $outapk androiddebugkey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment