redex icon indicating copy to clipboard operation
redex copied to clipboard

Allow ReDex to take .dex file directly

Open SamMaier opened this issue 9 years ago • 5 comments

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.

SamMaier avatar Aug 05 '16 15:08 SamMaier

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

bertmaher avatar Sep 26 '16 23:09 bertmaher

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.

JakeWharton avatar Mar 23 '17 07:03 JakeWharton

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.

minjang avatar Mar 23 '17 07:03 minjang

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 .

JakeWharton avatar Mar 23 '17 08:03 JakeWharton

similar to #174

justinjhendrick avatar Jun 27 '17 18:06 justinjhendrick