Mtkclient-NoRoot-Termux
Caution
WARNING: This tool deals with low-level device partitions. Incorrect usage can permanently HARD BRICK your device. This tool is currently in BETA TESTING. I am not responsible for any damages, data loss, or bricked phones resulting from its use. Proceed at your own risk and with extreme caution. Always backup your boot and vbmeta partitions before making changes.
Zero Root Required: Unlike the original mtkclient, this version is designed to run in a standard Termux environment without root access. Optimized for Mobile: All GUI, Windows-specific, and non-essential files have been stripped to keep the script small and fast. Enhanced Connection: Features a custom polling loop that looks for USB devices thousands of times per second to overcome Android's single-look limitation.
How to use the tool
- First run the command you want.
2.Then press Enter and wait for the text "Waiting for device connection...".
-
Then connect your target phone by holding its Volume Up and Volume Down buttons to the host phone via OTG or a type c to type c cable
-
if you are using a otg, tge otg should be connected to the host phone, not the target phone
-
Then quickly press OK on the Termux API popup as soon as it appears, as you only have ~3 seconds befor the target phone timeouts snd reboots.
-
Then the scripts will handle the rest.
First install Termux and Termux:api from Fdroid or GitHub, dont use termux from playstore, that is a outdated version and it doesn't have the nessary pakages for the tool to run
pkg update && pkg upgrade -y
pkg install python git termux-api libusb clang binutils -ypython3 -m venv ~/.venv
git clone https://github.com/sameenataj427-collab/MTKClient-NoRoot-Termux
cd MTKClient-NoRoot-Termux
. ~/.venv/bin/activate
pip install -r requirements.txt
pip install .Common Commands
Dump Boot and VBMeta
python3 mtk.py r boot,vbmeta boot.img,vbmeta.imgpython3 mtk.py e metadata,userdata,md_udcpython3 mtk.py daa seccfg unlockpython3 mtk.py oem lockpython3 mtk.py w boot patched_boot.imgpython3 mtk.py printgpt
python3 mtk.py e userdataThere are two types of flags that can be used; both have different formats to be used in:
Format: python3 mtk.py [command] --[flag]
-
--force: Bypasses signature or size mismatches to force a flash.
-
--reset: Commands the device to reboot normally once the process is complete.
-
--skip [partition]: Tells the script to ignore a specific partition during a bulk read/write.
Format: python3 mtk.py --[flag] [command]
1. --nobatt: Used for devices that require being connected without a battery to trigger BROM.
2. --stage2: Forces the SLA/DAA bypass payload for newer, secured MediaTek chipsets.
- --debugmode: Provides a full log of the connection process to find where it is failing.
THESE ARE ONLY THE MOST USED FLAGS IN BOOTH TYPES , I CAN ADD ALL OF THEM, IF I DID THE REPOSITORY WILL BE 200 TO 300 LINS LONG AND IMPOSSIBLE TO READ
For suggestions and bug reports contact sameenataj427@gmail.com. Thank you.