Skip to content

Instantly share code, notes, and snippets.

@diegoperini
Forked from doublerebel/signasdebug.sh
Last active May 20, 2021 11:07
Show Gist options
  • Save diegoperini/f577ad4c6c5df2462f1eeec13cc4fd72 to your computer and use it in GitHub Desktop.
Save diegoperini/f577ad4c6c5df2462f1eeec13cc4fd72 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
~/Library/Android/sdk/build-tools/30.0.3/zipalign -v 4 temp.apk temp.apkz
mv temp.apkz app-signed.apk && rm temp.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment