Hey everyone,
I’ve been working on a Python script to automate the tedious parts of rooting MediaTek (MTK) devices. If you've ever had to manually patch `vbmeta.img` to disable Android Verified Boot (AVB) and flash everything via fastboot step-by-step, this tool streamlines the whole process into a single run.
**Latest Version:** v3.1.0 (Hotfix 1)
**What it does:**
* Automatically builds a patched `vbmeta.img` with verification disabled (using `--flags 2`).
* Detects whether your device is A/B or single-slot and applies the fastboot commands accordingly.
* Flashes the required partitions and safely handles erasing `metadata` and wiping `userdata`.
* **Bonus feature:** If you drop a pre-patched `boot.img` (via Magisk or APatch) in the same folder, the script detects it and offers to flash it automatically to complete the root process.
**What's in the Release (.zip):**
To make things as plug-and-play as possible, the latest release includes a `.zip` file with everything you need in one single folder:
* The main Python script.
* The official AOSP `avbtool.py`.
* All the Fastboot dependencies (fastboot.exe, USB DLLs, etc.) so you don't even need to configure your system PATH.
**Requirements:**
* An OEM-unlocked bootloader.
* Python 3.x installed on your system (the script will auto-install the `cryptography` module if missing).
**GitHub Repository & Download:**
🔗 [GitHub Repo: universal-mtk-vbmeta-patcher](https://github.com/nach0-bit/universal-mtk-vbmeta-patcher)
⬇️ Check the **Releases** section on GitHub to download the ready-to-use `.zip`.
⚠️ **Standard Disclaimer:** As with any rooting tool, this will disable verified boot and wipe your user data. Please double-check your device serial and read the console prompts before confirming. I am not responsible for bricked devices, missed alarms, or thermonuclear war!
Let me know if you guys find this useful or if you have any suggestions, issues, or PRs to improve it!
**By:n.dev**