APK Signing Using Facebook Redex

Budi Oktaviyan
1 min readFeb 5, 2017

Welcome back to My Story. Today I’ll share something about how to make a compressed APK using Facebook Redex. Redex is an Android bytecode (dex) optimizer originally developed at Facebook. It provides a framework for reading, writing and analyzing .dex files, and a set of optimization passes that use this framework to improve bytecode. An APK optimized by Redex should be smaller and faster than its source.

Before we start to make a compressed APK using this tools, we have to build them from source. You can see the step of how to build Redex tools from Facebook Redex Website.

Once the tools already build, you can sign your APK using this command…

ANDROID_SDK=$ANDROID_HOME redex --sign --keystore <your_keystore_file> --keyalias <your_keyalias> --keypass <your_keypass> <your_apk_file> -o <path_to_your_new_signed_apk>

Then, you can see the different size and speed from your APK before and after using this tools :)

--

--

Budi Oktaviyan

The only way to do great work, is to love what you do