Skip to content

Instantly share code, notes, and snippets.

@doublerebel
Created September 4, 2013 21:07
Show Gist options
  • Save doublerebel/6442899 to your computer and use it in GitHub Desktop.
Save doublerebel/6442899 to your computer and use it in GitHub Desktop.
Sign apk with Android default debug keystore. Required for TestFlight module to recognize build as debug. Titanium Mobile signs with its own tirocks keystore by default.
cp app-unsigned.apk temp.apk
jarsigner -verbose -keystore ~/.android/debug.keystore -digestalg SHA1 -sigalg MD5withRSA -storepass android -keypass android temp.apk androiddebugkey
$ANDROID_SDK/tools/zipalign -v 4 temp.apk temp.apkz
mv temp.apkz $1 && rm temp.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment