Repolode
facebook

facebook/redex

A bytecode optimizer for Android apps that rewrites .dex files to make APKs smaller and faster.

Stars
6,314
Forks
681
Open issues
74
Last commit
23 hours ago

What is it?

ReDex is an Android bytecode (dex) optimizer originally developed at Facebook. It provides a framework for reading, writing, and analyzing .dex files, along with a set of optimization passes built on that framework.

The goal is to take an existing APK and produce an optimized version that is smaller and faster than the original. Because it works on the compiled bytecode, it can be applied to an app after it has been built, without changes to the app's source code.

The project is licensed under MIT and its full documentation is hosted on its project website.

Key features

  • 01Reads, writes, and analyzes Android .dex files.
  • 02Applies optimization passes to bytecode of an existing APK.
  • 03Works on compiled output, so no app source changes are required.
  • 04Released under the MIT license.

Use cases

  • Reducing the size of a release APK after it is built.
  • Improving runtime performance of an Android app without changing its code.
  • Building custom bytecode analysis or transformation tools for dex files.

Topics

FAQ

What is redex?
A bytecode optimizer for Android apps that rewrites .dex files to make APKs smaller and faster. ReDex is an Android bytecode (dex) optimizer originally developed at Facebook. It provides a framework for reading, writing, and analyzing .dex files, along with a set of optimization passes built on that framework.
Is redex free to use? What license does it have?
redex is open source under the MIT license. Check the license terms before using it in commercial products.
Is redex still maintained?
Actively maintained. The last commit to redex was on Oct 21, 2026.
What can I use redex for?
Reducing the size of a release APK after it is built. Improving runtime performance of an Android app without changing its code. Building custom bytecode analysis or transformation tools for dex files.
Where can I get redex?
The source code and installation instructions are on GitHub: https://github.com/facebook/redex

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects