Skip to content

Instantly share code, notes, and snippets.

@tcoffin
Created April 30, 2014 15:33
Show Gist options
  • Save tcoffin/5c434b6dd3cee3d95506 to your computer and use it in GitHub Desktop.
Save tcoffin/5c434b6dd3cee3d95506 to your computer and use it in GitHub Desktop.
resign android application with developer key
#!/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