apkradar 2026.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 5
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
12
+ open-pull-requests-limit: 5
@@ -0,0 +1,36 @@
1
+ name: Bandit Security Scan
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ schedule:
8
+ - cron: '30 3 * * 1'
9
+ permissions:
10
+ contents: read
11
+ security-events: write
12
+ jobs:
13
+ bandit:
14
+ name: Bandit
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v7
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v7
21
+ with:
22
+ python-version: "3.12"
23
+ - name: Install Bandit
24
+ run: pip install bandit[sarif]
25
+ - name: Run Bandit
26
+ run: |
27
+ bandit -r apkradar/ \
28
+ -f sarif \
29
+ -o bandit-results.sarif \
30
+ --severity-level medium \
31
+ || true
32
+ - name: Upload Bandit results
33
+ uses: github/codeql-action/upload-sarif@v4
34
+ if: always()
35
+ with:
36
+ sarif_file: bandit-results.sarif
@@ -0,0 +1,28 @@
1
+ name: CodeQL
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ schedule:
8
+ - cron: '30 1 * * 1'
9
+ permissions:
10
+ contents: read
11
+ security-events: write
12
+ jobs:
13
+ analyze:
14
+ name: CodeQL
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v7
19
+ - name: Initialize CodeQL
20
+ uses: github/codeql-action/init@v4
21
+ with:
22
+ languages: python
23
+ - name: Autobuild
24
+ uses: github/codeql-action/autobuild@v4
25
+ - name: Perform CodeQL Analysis
26
+ uses: github/codeql-action/analyze@v4
27
+ with:
28
+ category: "/language:python"
@@ -0,0 +1,33 @@
1
+ name: CodSpeed
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ paths:
8
+ - 'apkradar/**'
9
+ - 'tests/**'
10
+ - 'pyproject.toml'
11
+ workflow_dispatch:
12
+ permissions:
13
+ contents: read
14
+ id-token: write
15
+ jobs:
16
+ benchmarks:
17
+ name: Run benchmarks
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.12"
25
+ - name: Install dependencies
26
+ run: |
27
+ pip install -e . # NOSONAR
28
+ pip install pytest-codspeed --only-binary :all:
29
+ - name: Run benchmarks
30
+ uses: CodSpeedHQ/action@v3
31
+ with:
32
+ mode: walltime
33
+ run: pytest tests/benchmarks/ --codspeed
@@ -0,0 +1,51 @@
1
+ name: Build and Push Docker Image
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ workflow_dispatch:
7
+ inputs:
8
+ version:
9
+ description: 'Version tag (e.g. v2026.09.1)'
10
+ required: true
11
+ default: 'v2026.09.1'
12
+ permissions:
13
+ contents: read
14
+ jobs:
15
+ docker:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v7
20
+ - name: Set up QEMU
21
+ uses: docker/setup-qemu-action@v3
22
+ - name: Set up Docker Buildx
23
+ uses: docker/setup-buildx-action@v3
24
+ - name: Login to Docker Hub
25
+ uses: docker/login-action@v4
26
+ with:
27
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
28
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
29
+ - name: Extract version
30
+ id: version
31
+ run: |
32
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
33
+ RAW="${{ github.event.inputs.version }}"
34
+ else
35
+ RAW="${GITHUB_REF#refs/tags/}"
36
+ fi
37
+ echo "VERSION=${RAW}" >> $GITHUB_OUTPUT
38
+ echo "PIP_VERSION=${RAW#v}" >> $GITHUB_OUTPUT
39
+ NORMALIZED=$(python3 -c "parts='${RAW#v}'.split('.'); print('.'.join(str(int(p)) for p in parts))")
40
+ echo "NORMALIZED=${NORMALIZED}" >> $GITHUB_OUTPUT
41
+ - name: Build and push
42
+ uses: docker/build-push-action@v7
43
+ with:
44
+ context: .
45
+ platforms: linux/amd64,linux/arm64
46
+ push: true
47
+ tags: |
48
+ maksimtech/apkradar:latest
49
+ maksimtech/apkradar:${{ steps.version.outputs.VERSION }}
50
+ build-args: |
51
+ APKRADAR_VERSION=${{ steps.version.outputs.NORMALIZED }}
@@ -0,0 +1,43 @@
1
+ name: Publish to PyPI
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ workflow_dispatch:
7
+ jobs:
8
+ build-and-publish:
9
+ name: Build and publish to PyPI
10
+ runs-on: ubuntu-latest
11
+ environment:
12
+ name: pypi
13
+ url: https://pypi.org/p/apkradar
14
+ permissions:
15
+ id-token: write
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v7
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v7
21
+ with:
22
+ python-version: "3.12"
23
+ - name: Install build dependencies
24
+ run: pip install --upgrade build hatchling # NOSONAR
25
+ - name: Build package
26
+ run: python -m build
27
+ - name: Import GPG key
28
+ run: |
29
+ echo "${{ secrets.GPG_PRIVATE_KEY }}" > /tmp/gpg_key.asc
30
+ gpg --batch --import /tmp/gpg_key.asc
31
+ rm /tmp/gpg_key.asc
32
+ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback --list-secret-keys
33
+ - name: Sign packages
34
+ run: |
35
+ for f in dist/*; do
36
+ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 \
37
+ --pinentry-mode loopback \
38
+ --armor --detach-sign "$f"
39
+ done
40
+ - name: Publish to PyPI
41
+ uses: pypa/gh-action-pypi-publish@release/v1
42
+ with:
43
+ verify-metadata: false
@@ -0,0 +1,17 @@
1
+ name: Release
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ permissions:
7
+ contents: write
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v7
14
+ - name: Create Release
15
+ uses: softprops/action-gh-release@v3
16
+ with:
17
+ generate_release_notes: true
@@ -0,0 +1,31 @@
1
+ name: SonarCloud Analysis
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ types: [opened, synchronize, reopened]
7
+ permissions:
8
+ contents: read
9
+ jobs:
10
+ sonarcloud:
11
+ name: SonarCloud
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v7
19
+ with:
20
+ python-version: "3.12"
21
+ - name: Install dependencies
22
+ run: |
23
+ pip install -e . # NOSONAR
24
+ pip install pytest pytest-cov
25
+ - name: Run tests with coverage
26
+ run: |
27
+ pytest tests/ --ignore=tests/benchmarks --cov=apkradar --cov-report=xml --cov-report=term-missing
28
+ - name: SonarQube Scan
29
+ uses: SonarSource/sonarqube-scan-action@v5
30
+ env:
31
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -0,0 +1,31 @@
1
+ name: Tests
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ permissions:
8
+ contents: read
9
+ jobs:
10
+ test:
11
+ name: Tests
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v7
17
+ with:
18
+ python-version: "3.12"
19
+ - name: Install dependencies
20
+ run: |
21
+ pip install -e ".[dev]" # NOSONAR
22
+ pip install pytest pytest-cov pytest-asyncio
23
+ - name: Run tests
24
+ run: |
25
+ pytest tests/ --ignore=tests/benchmarks --cov=apkradar --cov-branch --cov-report=xml --cov-report=term-missing
26
+ - name: Upload coverage to Codecov
27
+ uses: codecov/codecov-action@v4
28
+ with:
29
+ token: ${{ secrets.CODECOV_TOKEN }}
30
+ file: coverage.xml
31
+ fail_ci_if_error: false
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,37 @@
1
+ FROM python:3.12-slim-trixie
2
+
3
+ LABEL maintainer="maksimtech <github@maksimtech.com>"
4
+ LABEL org.opencontainers.image.title="APKRadar"
5
+ LABEL org.opencontainers.image.description="APK compliance auditor — GDPR art.9 — tracker detection, permissions analysis"
6
+ LABEL org.opencontainers.image.source="https://github.com/maksimtech/apkradar"
7
+ LABEL org.opencontainers.image.license="MIT"
8
+
9
+ RUN apt-get update && \
10
+ apt-get upgrade -y && \
11
+ apt-get install -y --no-install-recommends \
12
+ gnupg \
13
+ openjdk-17-jre-headless \
14
+ && apt-get clean && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+ ENV PYTHONDONTWRITEBYTECODE=1 \
18
+ PYTHONUNBUFFERED=1
19
+
20
+ WORKDIR /app
21
+
22
+ ARG APKRADAR_VERSION=2026.9.1
23
+
24
+ RUN pip install --no-cache-dir --root-user-action=ignore \
25
+ "apkradar==${APKRADAR_VERSION}"
26
+
27
+ RUN useradd -m -u 1000 apkradar && \
28
+ mkdir -p /home/apkradar/.apkradar && \
29
+ chown -R apkradar:apkradar /home/apkradar
30
+
31
+ USER apkradar
32
+ WORKDIR /home/apkradar
33
+
34
+ VOLUME ["/home/apkradar/.apkradar"]
35
+
36
+ ENTRYPOINT ["apkradar"]
37
+ CMD ["--help"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 maksimtech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.5
2
+ Name: apkradar
3
+ Version: 2026.9.1
4
+ Summary: APK compliance auditor — tracker detection, permissions analysis, GDPR art.9
5
+ Author-email: Massimo Moretti <massimo.moretti@maksimtech.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 maksimtech
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ License-File: LICENSE
28
+ Keywords: android,apk,compliance,gdpr,privacy,tracker
29
+ Classifier: Development Status :: 3 - Alpha
30
+ Classifier: Intended Audience :: Developers
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: Programming Language :: Python :: 3.12
34
+ Requires-Python: >=3.11
35
+ Requires-Dist: androguard>=4.0.0
36
+ Requires-Dist: cookieradar>=2026.9.4
37
+ Requires-Dist: httpx>=0.24.0
38
+ Requires-Dist: mailradar>=2026.9.4
39
+ Requires-Dist: rich>=13.0.0
40
+ Requires-Dist: typer>=0.9.0
41
+ Provides-Extra: dev
42
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
43
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
44
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
45
+ Description-Content-Type: text/markdown
46
+
47
+ # apkradar
48
+ APK compliance auditor — tracker detection, permissions analysis, GDPR art.9 — requires mailradar + cookieradar
@@ -0,0 +1,2 @@
1
+ # apkradar
2
+ APK compliance auditor — tracker detection, permissions analysis, GDPR art.9 — requires mailradar + cookieradar
@@ -0,0 +1,22 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ |---------|-----------|
7
+ | 2026.09.x | ✅ |
8
+
9
+ ## Reporting Vulnerabilities
10
+
11
+ Please report security issues to **security@maksimtech.com**
12
+ GPG public key: https://keys.openpgp.org/search?q=security@maksimtech.com
13
+
14
+ Do not open public GitHub issues for security vulnerabilities.
15
+
16
+ ## Known Open CVEs
17
+
18
+ All currently open CVEs affect Debian Trixie system packages.
19
+ These are unrelated to APKRadar's Python codebase and are
20
+ pending upstream fixes.
21
+
22
+ Last reviewed: 2026-09-12
@@ -0,0 +1 @@
1
+ __version__ = "2026.09.1"
@@ -0,0 +1,4 @@
1
+ from apkradar.cli import app
2
+
3
+ if __name__ == "__main__":
4
+ app()
File without changes