redex
redex copied to clipboard
Allow ReDex to take .dex file directly
Instead of forcing people to input an .apk as an argument, there could also be an option to pass a classes.dex file in place of the .apk. Some build systems would find this easier to work with over resigning the .apk.
There's actually a way to do this, by invoking redex-all. redex is just a python wrapper that does the grunt work of unpacking the APK and passing through the appropriate options. I'll add some instructions on how to do this to the README in the near future, but in the meantime you can probably figure it out by running redex-all -h
redex-all isn't installed by default, though. Accepting a dex directly from the python script and passing it along to the embedded redex-all binary would simplify those consuming from homebrew or make install.
I have a plan to make a simple tool that takes a single dex and a configuration, and then writes an optimized dex. Fortunately, we recently introduced redex-tool: https://github.com/facebook/redex/tree/master/tools/redex-tool, which easily allows us to build a simple tool. I can't give an ETA, but it won't be that long :) because I also want it for testing purpose etc.
Thanks for the update!
On Thu, Mar 23, 2017 at 12:55 AM Minjang Kim [email protected] wrote:
I have a plan to make a simple tool that takes a single dex and a configuration, and then writes an optimized dex. Fortunately, we recently introduced redex-tool: https://github.com/facebook/redex/tree/master/tools/redex-tool, which easily allows us to build a simple tool. I can't give an ETA, but it won't be that long :) because I also want it for testing purpose etc.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/redex/issues/170#issuecomment-288642660, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEETi-h_aUGvRuE4_4z4ExdM4k-nbNks5roiVvgaJpZM4JdyUh .
similar to #174