Redex: Installation fails after redex

Created on 13 Apr 2016  路  7Comments  路  Source: facebook/redex

Trying to install redexed app fails with Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Tried with both debug & release apk.

Most helpful comment

Ideal way of signing would be

redex in.apk -o out.apk --sign -s /path/to/secret.keystore -a [KEYALIAS] -p [KEYPASS]

All 7 comments

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!

Was this page helpful?
0 / 5 - 0 ratings