apk-patchx 7.9.2025.1__py3-none-any.whl
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.
- apk_patchx/__init__.py +14 -0
- apk_patchx/cli.py +273 -0
- apk_patchx/exceptions.py +41 -0
- apk_patchx/services/__init__.py +1 -0
- apk_patchx/services/adb.py +98 -0
- apk_patchx/services/android_sdk.py +145 -0
- apk_patchx/services/apktool.py +150 -0
- apk_patchx/services/frida.py +311 -0
- apk_patchx/services/patch_dex.py +119 -0
- apk_patchx/services/patch_smali.py +145 -0
- apk_patchx/services/signing.py +106 -0
- apk_patchx/services/split_merge.py +146 -0
- apk_patchx/utils/__init__.py +1 -0
- apk_patchx/utils/core.py +77 -0
- apk_patchx/utils/manifest.py +140 -0
- apk_patchx/utils/py.typed +0 -0
- apk_patchx/utils/versions.py +65 -0
- apk_patchx-7.9.2025.1.dist-info/METADATA +110 -0
- apk_patchx-7.9.2025.1.dist-info/RECORD +22 -0
- apk_patchx-7.9.2025.1.dist-info/WHEEL +4 -0
- apk_patchx-7.9.2025.1.dist-info/entry_points.txt +3 -0
- apk_patchx-7.9.2025.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,110 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: apk-patchx
|
3
|
+
Version: 7.9.2025.1
|
4
|
+
Summary: Android APK manipulation toolkit with Frida gadget injection support
|
5
|
+
Keywords: android,apk,reverse-engineering,frida,patching
|
6
|
+
Author: APKPatcher Contributors
|
7
|
+
Requires-Python: >=3.8
|
8
|
+
Description-Content-Type: text/markdown
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
10
|
+
Classifier: Environment :: Console
|
11
|
+
Classifier: Intended Audience :: Developers
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
14
|
+
Classifier: Operating System :: MacOS
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
22
|
+
Classifier: Topic :: Security
|
23
|
+
Classifier: Topic :: Software Development :: Build Tools
|
24
|
+
Classifier: Topic :: System :: Software Distribution
|
25
|
+
License-File: LICENSE
|
26
|
+
Requires-Dist: click>=8.0.0
|
27
|
+
Requires-Dist: requests>=2.25.0
|
28
|
+
Requires-Dist: tqdm>=4.60.0
|
29
|
+
Requires-Dist: colorama>=0.4.4
|
30
|
+
Project-URL: Homepage, https://github.com/kaifcodec/apk-patchx
|
31
|
+
Project-URL: Issues, https://github.com/kaifcodec/apk-patchx/issues
|
32
|
+
Project-URL: Repository, https://github.com/kaifcodec/apk-patchx.git
|
33
|
+
|
34
|
+
# APKPatcher
|
35
|
+
|
36
|
+
A powerful command-line tool for Android APK manipulation, including Frida gadget injection, APK decoding/building, and package management.
|
37
|
+
|
38
|
+
## Features
|
39
|
+
|
40
|
+
- **APK Management**: Pull, decode, build, and sign APK files
|
41
|
+
- **Frida Integration**: Inject Frida gadgets for runtime manipulation
|
42
|
+
- **Split APK Support**: Automatically merge split APKs into single files
|
43
|
+
- **Package Renaming**: Change APK package names
|
44
|
+
- **Auto-bootstrap**: Automatically downloads and manages required tools
|
45
|
+
|
46
|
+
## Installation
|
47
|
+
|
48
|
+
```bash
|
49
|
+
pip install apkpatcher
|
50
|
+
```
|
51
|
+
|
52
|
+
## Usage
|
53
|
+
|
54
|
+
### Pull APK from device
|
55
|
+
```bash
|
56
|
+
apkpatcher pull com.example.app
|
57
|
+
```
|
58
|
+
|
59
|
+
### Decode APK
|
60
|
+
```bash
|
61
|
+
apkpatcher decode app.apk
|
62
|
+
```
|
63
|
+
|
64
|
+
### Build APK from source
|
65
|
+
```bash
|
66
|
+
apkpatcher build app_src/
|
67
|
+
```
|
68
|
+
|
69
|
+
### Patch APK with Frida gadget
|
70
|
+
```bash
|
71
|
+
apkpatcher patch app.apk --arch arm64
|
72
|
+
```
|
73
|
+
|
74
|
+
### Rename APK package
|
75
|
+
```bash
|
76
|
+
apkpatcher rename app.apk com.newpackage.name
|
77
|
+
```
|
78
|
+
|
79
|
+
### Sign APK
|
80
|
+
```bash
|
81
|
+
apkpatcher sign app.apk
|
82
|
+
```
|
83
|
+
|
84
|
+
## Architecture Support
|
85
|
+
|
86
|
+
- ARM (`arm`)
|
87
|
+
- ARM64 (`arm64`)
|
88
|
+
- x86 (`x86`)
|
89
|
+
- x86_64 (`x86_64`)
|
90
|
+
|
91
|
+
## Requirements
|
92
|
+
|
93
|
+
- Python 3.8+
|
94
|
+
- Java Runtime Environment (JRE 8+)
|
95
|
+
- ADB (for device operations)
|
96
|
+
|
97
|
+
## Tool Management
|
98
|
+
|
99
|
+
APKPatcher automatically downloads and manages required tools in `~/.apkpatcher/tools/`:
|
100
|
+
|
101
|
+
- apktool
|
102
|
+
- Android SDK build-tools
|
103
|
+
- Platform tools (adb)
|
104
|
+
- dexpatch
|
105
|
+
- Frida gadgets
|
106
|
+
|
107
|
+
## License
|
108
|
+
|
109
|
+
MIT License - see LICENSE file for details.
|
110
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
apk_patchx/__init__.py,sha256=m10S0nYjOv4ckmaPbZbXKR_LM1MJ8VJsGRer3TqrU2c,345
|
2
|
+
apk_patchx/cli.py,sha256=Wtol0GEYGcGWe1Bj93vcutBnfguLS3uVpptFlbgoxb4,9654
|
3
|
+
apk_patchx/exceptions.py,sha256=15lNGnf_3YBLP4IFUdIZgEJxvvbAA7DMETunwtx8Eik,790
|
4
|
+
apk_patchx/services/__init__.py,sha256=uhE0HQWrx7w01_mCfDFpksSie3s5fjkF5GL1sbvkN_o,38
|
5
|
+
apk_patchx/services/adb.py,sha256=qI1dFf09U8x-m9C_sxVqMWl8hdPcbI7BtKASge4-7AM,3550
|
6
|
+
apk_patchx/services/android_sdk.py,sha256=N9fk3inVGB6xU2JNY3jXMX5N1z3Ji1ZKHG7hxhpbp4s,4874
|
7
|
+
apk_patchx/services/apktool.py,sha256=TlJC8ck9w85ZU4GFxT9nVAEO-2c5f9xBI8H7dXov7OA,5211
|
8
|
+
apk_patchx/services/frida.py,sha256=SA2OCmVJT2OMT2XrrLDHf2alLkfLe8OdTrOYLZAo7yY,11718
|
9
|
+
apk_patchx/services/patch_dex.py,sha256=CyopPW14rhq_357WP_0CjpLX-4pNc04I0hOkMbavDfc,3890
|
10
|
+
apk_patchx/services/patch_smali.py,sha256=OkdPtvin5cE0_IvHf4EmatIXRuVuXznSemyRMXSJ3m8,4548
|
11
|
+
apk_patchx/services/signing.py,sha256=GwT6mFyJdv0QJTpnUgsJ5tH_JBnqU3vW0Uu242UAQKg,3484
|
12
|
+
apk_patchx/services/split_merge.py,sha256=7azCN3aEn8P0vfCFKnlmPuTmMwO15JAneD2SFp4CHSc,5429
|
13
|
+
apk_patchx/utils/__init__.py,sha256=0e3XbwXHMW2osRDxWbvsM_OzJN2tg-6tGCK5zMeTGTw,39
|
14
|
+
apk_patchx/utils/core.py,sha256=SsBzNWSC50388MTvTq4vNGbG1VRba8BpdE24Hg_Syhk,2400
|
15
|
+
apk_patchx/utils/manifest.py,sha256=BTUeDUgtzHsfgGSr01-GgloTU9YhANU7M2CyGFNpIiw,4833
|
16
|
+
apk_patchx/utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
|
+
apk_patchx/utils/versions.py,sha256=mR8Tm6YceqgqioSA80fqO1_GJvNoBcBU9wEzRlIP18w,1762
|
18
|
+
apk_patchx-7.9.2025.1.dist-info/entry_points.txt,sha256=kIhrN6o-ANMa1-Wa5zXmDeMk2_FcDByHgh7UGmXMjCg,50
|
19
|
+
apk_patchx-7.9.2025.1.dist-info/licenses/LICENSE,sha256=DJU-he8Ob3g_K6vuP4KBzG0nYLQtepaQwgOIq_hI8Is,1080
|
20
|
+
apk_patchx-7.9.2025.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
21
|
+
apk_patchx-7.9.2025.1.dist-info/METADATA,sha256=KPNnnLQN8q5V9eNNO61sRRYi8T7WSqkan_FEzLrQ0b8,2793
|
22
|
+
apk_patchx-7.9.2025.1.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 APKPatcher Contributors
|
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.
|