Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/warnyul/docker-redex

Facebook's bytecode optimizer for Android apps.
https://github.com/warnyul/docker-redex

android-sdk apk-optimizer bytecode-optimizer docker facebook-redex redex

Last synced: 23 days ago
JSON representation

Facebook's bytecode optimizer for Android apps.

Awesome Lists containing this project

README

        

# docker-redex
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/warnyul/redex/latest) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/warnyul/redex/latest) ![MicroBadger Layers (tag)](https://img.shields.io/microbadger/layers/warnyul/redex/latest) [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)

Docker image for [Facebook's ReDex](https://fbredex.com) Android Bytecode Optimizer.

## Usage

You can run ReDex with a single command:
```
docker run --rm -v "$(pwd)":"$(pwd)" -w "$(pwd)" warnyul/redex redex -o ./redex.apk ./myapp.apk
```

If you would like to pass `android.jar` or `proguard` files to redex, you could do it without install the SDK on your machine.
You can find Android SDK in /opt/android-sdk-linux folder

```
docker run --rm -v "$(pwd)":"$(pwd)" -w "$(pwd)" warnyul/redex redex \
-o ./redex.apk \
-j /opt/android-sdk-linux/platforms/android-34/android.jar \
-P /opt/android-sdk-linux/tools/proguard/proguard-android-optimize.txt \
./myapp.apk
```

## Build

```
git clone https://github.com/warnyul/docker-redex.git
cd docker-redex
# Use -u to update redex to the latest commit before build it.
./build.sh -u
```

All image will be tagged with the redex's commit hash to identify builds.

## License

Copyright 2020-2024 Balázs Varga

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.