Skip to content
This repository was archived by the owner on Jul 27, 2024. It is now read-only.

Commit 90156cd

Browse files
Update Docker image
1 parent b2a39bb commit 90156cd

File tree

6 files changed

+52
-16
lines changed

6 files changed

+52
-16
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NOTE:
1212

1313
### Description
1414

15-
<!-- Please include relevant motivation and context. If this PR fixes a bug or resolves a feature request, be sure to include a link to that issue (insert text below this line) -->
15+
<!-- Please include relevant motivation and context. If this PR fixes a bug or implements a feature request, be sure to include a link to that issue (insert text below this line) -->
1616

1717

1818

@@ -29,7 +29,7 @@ NOTE:
2929
* [ ] Bug fix (non-breaking change which fixes an issue)
3030
* [ ] New feature (non-breaking change which adds functionality)
3131
* [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
32-
* [ ] Other (e.g., refactoring, documentation, etc.)
32+
* [ ] Other (e.g., refactoring, documentation etc.)
3333

3434

3535

.github/workflows/ubuntu.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,36 @@ jobs:
5959
uses: codecov/codecov-action@v1
6060
with:
6161
fail_ci_if_error: false
62+
63+
publish:
64+
# Run only if the previous job succeeds (only master branch or new tags, no pull requests).
65+
if: (endsWith(github.ref, '/master') || startsWith(github.ref, 'refs/tags/v')) && contains(github.event_name, 'pull_request') == false
66+
needs: test
67+
name: Push updated version to Docker Hub
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- name: Checkout repository
72+
uses: actions/checkout@v2
73+
74+
- name: Login to DockerHub
75+
uses: docker/login-action@v1
76+
with:
77+
username: claudiugeorgiu
78+
password: ${{ secrets.DOCKERHUB_TOKEN }}
79+
80+
- name: Docker meta
81+
id: meta
82+
uses: docker/metadata-action@v3
83+
with:
84+
images: claudiugeorgiu/obfuscapk
85+
tags: |
86+
type=raw,value=latest
87+
type=semver,pattern={{version}}
88+
89+
- name: Build and push
90+
uses: docker/build-push-action@v2
91+
with:
92+
context: ./src/
93+
push: true
94+
tags: ${{ steps.meta.outputs.tags }}

.idea/Obfuscapk.iml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[![Ubuntu Build Status](https://github.com/ClaudiuGeorgiu/Obfuscapk/workflows/Ubuntu/badge.svg)](https://github.com/ClaudiuGeorgiu/Obfuscapk/actions?query=workflow%3AUbuntu)
77
[![Windows Build Status](https://github.com/ClaudiuGeorgiu/Obfuscapk/workflows/Windows/badge.svg)](https://github.com/ClaudiuGeorgiu/Obfuscapk/actions?query=workflow%3AWindows)
88
[![MacOS Build Status](https://github.com/ClaudiuGeorgiu/Obfuscapk/workflows/MacOS/badge.svg)](https://github.com/ClaudiuGeorgiu/Obfuscapk/actions?query=workflow%3AMacOS)
9-
[![Docker Hub](https://img.shields.io/docker/cloud/build/claudiugeorgiu/obfuscapk)](https://hub.docker.com/r/claudiugeorgiu/obfuscapk)
109
[![Python Version](https://img.shields.io/badge/Python-3.7%2B-green.svg?logo=python&logoColor=white)](https://www.python.org/downloads/)
1110
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ClaudiuGeorgiu/Obfuscapk/blob/master/LICENSE)
1211

@@ -119,13 +118,13 @@ have a recent version of Docker installed:
119118

120119
```Shell
121120
$ docker --version
122-
Docker version 19.03.0, build aeac949
121+
Docker version 20.10.7, build f0df350
123122
```
124123

125124
#### Official Docker Hub image
126125

127126
The [official Obfuscapk Docker image](https://hub.docker.com/r/claudiugeorgiu/obfuscapk)
128-
is available on Docker Hub:
127+
is available on Docker Hub (automatically built from this repository):
129128

130129
```Shell
131130
$ # Download the Docker image.
@@ -500,8 +499,8 @@ functionality.
500499
> This technique analyzes the existing code looking for method invocations of the app,
501500
> ignoring the calls to the Android framework (see `AdvancedReflection`). If it finds
502501
> an instruction with a suitable method invocation (i.e., no constructor methods,
503-
> public visibility, enough free registers, etc.) such invocation is redirected to
504-
> a custom method that will invoke the original method using the Reflection APIs.
502+
> public visibility, enough free registers etc.) such invocation is redirected to a
503+
> custom method that will invoke the original method using the Reflection APIs.
505504
506505
### [Reorder](https://github.com/ClaudiuGeorgiu/Obfuscapk/tree/master/src/obfuscapk/obfuscators/reorder) \[Code]
507506

src/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
FROM python:3.9.0-slim-buster
1+
FROM python:3.10.1-slim-bullseye
22

3-
ENV APKTOOL_VERSION="2.5.0"
3+
ENV APKTOOL_VERSION="2.6.0"
44
ENV ANDROID_HOME="/android-sdk-linux"
5-
ENV BUILD_TOOLS_VERSION="30.0.3"
6-
ENV PATH="${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}"
5+
ENV BUILD_TOOLS_VERSION="32.0.0"
6+
ENV PATH="${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/cmdline-tools/bin:${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}"
77

88
# Install the needed tools.
9-
RUN bash -c 'for i in {1..8}; do mkdir -p "/usr/share/man/man$i"; done' && \
9+
RUN apt update && \
1010
# Java JDK (needed for apktool).
11-
apt update && apt install --no-install-recommends -y openjdk-11-jdk-headless wget unzip && \
11+
apt install --no-install-recommends -y openjdk-11-jdk-headless wget unzip && \
1212
# Android SDK (needed for zipalign and apksigner).
1313
mkdir -p "${ANDROID_HOME}" && \
14-
wget -q "https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip" -O android-sdk.zip && \
14+
wget -q "https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip" -O android-sdk.zip && \
1515
unzip -q android-sdk.zip -d "${ANDROID_HOME}" && rm android-sdk.zip && \
1616
yes | sdkmanager --sdk_root="${ANDROID_HOME}" "build-tools;${BUILD_TOOLS_VERSION}" && \
1717
# Apktool.
1818
wget -q "https://github.com/iBotPeaches/Apktool/master/scripts/linux/apktool" \
1919
-O /usr/local/bin/apktool && chmod a+x /usr/local/bin/apktool && \
2020
wget -q "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_${APKTOOL_VERSION}.jar" \
2121
-O /usr/local/bin/apktool.jar && chmod a+x /usr/local/bin/apktool.jar && \
22+
# BundleDecompiler.
23+
wget -q "https://github.com/TamilanPeriyasamy/BundleDecompiler/master/build/libs/BundleDecompiler-0.0.2.jar" \
24+
-O /usr/local/bin/BundleDecompiler.jar && chmod a+x /usr/local/bin/BundleDecompiler.jar && \
2225
# Clean.
2326
apt remove --purge -y wget unzip && \
2427
apt autoremove --purge -y && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 commit comments

Comments
 (0)