Trying to install redexed app fails with Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Tried with both debug & release apk.
You need to re-sign the APKs before install.
You can sign the ouput APK automatically with redex by providing proper extra params:
--sign Sign the apk after optimizing it
-s [KEYSTORE], --keystore [KEYSTORE]
-a [KEYALIAS], --keyalias [KEYALIAS]
-p [KEYPASS], --keypass [KEYPASS]
Or follow this to sign the APK manually http://developer.android.com/tools/publishing/app-signing.html#signing-manually
Auto signing with redex should be documented.
Yep, it's not that obvious. I suggest to quote the output of
redex -h
inside the README.md so you can get an idea of the possibile params.
Just to help those who arrive here to sign a debug apk and try redex :
http://stackoverflow.com/a/16711281/693752
jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -keypass android path/to/my.apk androiddebugkey
Ideal way of signing would be
redex in.apk -o out.apk --sign -s /path/to/secret.keystore -a
[KEYALIAS]-p[KEYPASS]
I've updated the README with your suggestions, thanks!
Most helpful comment
Ideal way of signing would be