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.
-
First down the tool feom the steps below
-
Then run the command you want and press enter
3.After the text "Waiting for device connection..." Appears, completely power off your target phone
-
Then hold booth volume buttons of your target phone, and by holdong then connect it to the host phone
-
If you are using a otg, the otg should be connected to the host phone, not the target phone, amd if its a type c to type c cable, any sode of the cable can be connect to the phones
-
Then quickly press OK on the Termux API popup as soon as it appears, as you only have ~3 seconds befor the target phone times out and reboots.
-
And if your timing is perfect, Then the scripts will handle the rest.
-
The flashing will go on for atleast 2 to 5 minutes
-
After it finishes, you can unplug and reboot the phone safely
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 .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'T 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.