Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apktool/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM gradle:8.11.1-jdk17-alpine AS build

WORKDIR /src

COPY . .

RUN gradle build shadowJar proguard


FROM openjdk:11

WORKDIR /data

COPY --from=build /src/brut.apktool/apktool-cli/build/libs/apktool-cli.jar /

ENTRYPOINT ["java", "-Xmx1024M", "-Dfile.encoding=utf-8", "-Djdk.util.zip.disableZip64ExtraFieldValidation=true", "-Djdk.nio.zipfs.allowDotZipEntry=true", "-jar", "/apktool-cli.jar"]
27 changes: 27 additions & 0 deletions apktool/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Apktool

A tool for reverse engineering Android apk files

Official project [link](https://github.com/iBotPeaches/Apktool)

## Usage

Build image

```bash
docker build --platform=linux/amd64 -t apktool -f Dockerfile .
```

Decompile APK that's named `test.apk`

```bash
docker run --rm --name apktool-temp --platform=linux/amd64 -v $(pwd):/data/ -it apktool d test.apk
```

Pack it back

```bash
docker run --rm --name apktool-temp --platform=linux/amd64 -v $(pwd):/data/ -it apktool b test -o patched_test.apk
```

Or use prebuilt image `vadimbelous/apktool`: https://hub.docker.com/r/vadimbelous/apktool