A docker image workflow to decompile android apk files.
Note
The dockerfile has been created to support arm64 systems by installing temurin for arm64 (aarch64). Before setting up the image check if your system is arm64, else change the url to install temurin for x86_64 (amd64).
Important
Do the steps below for x86_64 (amd64) systems only. In the Dockerfile, uncomment the part
# For x86 systems
# # Download and install Temurin (AdoptOpenJDK) 11
# RUN wget -qO- https://api.adoptopenjdk.net/v3/binary/latest/21/ga/linux/x64/jdk/hotspot/normal/adoptopenjdk | tar xvz -C /opt && \
# ln -s /opt/jdk-21.* /opt/java/openjdk
and comment the part
# For ARM systems
# Download and install Temurin (AdoptOpenJDK) 11
RUN wget -qO- https://api.adoptopenjdk.net/v3/binary/latest/21/ga/linux/aarch64/jdk/hotspot/normal/adoptopenjdk | tar xvz -C /opt && \
ln -s /opt/jdk-21.* /opt/java/openjdk
- Clone the repository
git clone https://github.com/dev-rvk/jadx_decompile.git
- Check with your system and follow the Important Notes section above.
- Build the image
docker build -t jadx_decompile .
- Run the image (Make sure you have the apk file in the uploads directory)
Example usage for test apk file
docker run -v ./uploads:/app/uploads -v ./output:/app/output jadx-decompile <name-of-apk>.apk
docker run -v ./uploads:/app/uploads -v ./output:/app/output jadx-decompile test.apk
- The output apk file will be decompiled in the output/ directory.