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
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm

# Add the Debian testing repository to get GCC 13
RUN echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y gcc-13 \
g++-13 \
git \
cmake \
ninja-build \
build-essential \
pkg-config \
libicu-dev \
libcapstone-dev && \
apt-get clean && \
uv pip install --system pyelftools requests && \
# Set GCC 13 as the default compiler
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-13

COPY . /app
WORKDIR /app
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ brew install llvm@16 cmake ninja pkg-config icu4c capstone
pip3 install pyelftools requests
```

### Docker

You can also run Blutter from docker. First build the docker image.

```sh
docker build -t blutter .
```

Then you can run it as follows:

```sh
docker run -v /path/to/app/lib/arm64-v8a:/arm64-v8a -v /path/to/outdir:/app/outdir -t blutter:latest python3 blutter.py /arm64-v8a /outdir
```
Where the first volume is the path to the lib directory of the apk and the second volume is the path to the output directory.

This volume mounts the lib directory of the apk to the `/arm64-v8a` directory in the container and the output directory to the `/app/outdir` directory in the container.

## Usage
Extract "lib" directory from apk file
```
Expand Down