https://github.com/AkinaLTS/APatchTool
(Aka. APatchAutoPatchTool) A script for automating the installation of APatch.
https://github.com/AkinaLTS/APatchTool
apatch automation root shell shell-script shell-scripts
Last synced: about 1 month ago
JSON representation
(Aka. APatchAutoPatchTool) A script for automating the installation of APatch.
- Host: GitHub
- URL: https://github.com/AkinaLTS/APatchTool
- Owner: AkinaLTS
- License: apache-2.0
- Created: 2024-02-14T12:45:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-22T12:25:17.000Z (3 months ago)
- Last Synced: 2025-04-01T04:08:55.107Z (about 2 months ago)
- Topics: apatch, automation, root, shell, shell-script, shell-scripts
- Language: Shell
- Homepage:
- Size: 2.11 MB
- Stars: 23
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# APatchTool
## What is this
A script automating the process of patching the kernel with [KernelPatch](https://github.com/bmax121/KernelPatch), and supports the following features:
- User-specified image path or get from current Android device.
- User-specified KernelPatch version. Or default, latest release.
- User-specified SuperKey. [What is SuperKey?](https://apatch.dev/faq.html#what-is-superkey)
- Supports directly install.
- Supports OTA updates.
- Supports embedding KPMs.## Usage
### Android
- Open Termux
- Prepare
```sh
cd ${HOME}
curl -LO https://raw.githubusercontent.com/AkinaAcct/APatchAutoPatchTool/main/AAP.sh
chmod +x AAP.sh
```- Run
Usage:
```sh
./AAP.sh -h
```### Linux
> [!NOTE]
> This should work. If you encounter any problems, please submit an issue with logs provided by debug mode.- Just like in Termux:
```sh
cd ${HOME}
curl -LO https://raw.githubusercontent.com/AkinaAcct/APatchAutoPatchTool/main/AAP.sh
chmod +x AAP.sh
```- Run
Usage:
```sh
./AAP.sh -h
```---
If you have issues or need feedback, please run `AAP.sh` in debug mode. To enable debug mode, run:
```sh
APTOOLDEBUG=1 ./AAP.sh [ARGS]
```---
If you encounter any issues, please submit an issue on github.
---
## Credits
- [Magisk](https://github.com/topjohnwu/magisk): For magiskboot
- [KernelPatch](https://github.com/bmax121/KernelPatch): For kptools and kpimg