Windows tool for servicing Android phones over USB: flashing firmware, removing FRP locks, repairing IMEI, and reading or writing device partitions. Written in C# with WinForms on .NET Framework 4.7.2. Supports MediaTek, Qualcomm (EDL), Samsung (Odin), Spreadtrum/Unisoc, Huawei Kirin and Motorola devices.
Legal note: only use this on devices you own or are authorized to service. Bypassing FRP on stolen phones, or unlocking devices without permission, is illegal in most countries. Tunlocker Tool Pro is copyright Tfast Digital Agency (https://tfastdigital.com/).
Latest build: TunlockerToolPro-v2.0.0-win-x64.zip
All versions: https://github.com/tfastdigital/Tunlocker-Tool-Pro/releases
Extract the zip anywhere, run Tunlocker Tool.exe and log in. No installation needed. Windows Defender sometimes flags phone tools as PUP; if it blocks the file, add the folder to Defender exclusions. The exe is not code-signed.
Login takes the username (email) and password of your licensed account. The client encrypts the request and sends it to https://api.tfastdigital.com/api/server (loginapi/). The server answers with your license state: credit balance, license type (CREDIT LICENSE or annual), expiry dates, and any model or function restrictions.
Demo login for testing:
- Username: info@tfastdigital.com
- Password: tfastdigital
More accounts are issued by Tfast Digital Agency:
- Panel: https://panel.tfastdigital.com/OperationTools/Index
- Telegram: https://t.me/tfasthub
- WhatsApp: +256 751 399 620 (https://wa.me/256751399620)
The login protocol is documented in docs/BACKEND_GUIDE.md.
- MediaTek: BROM and preloader support via a C# port of mtkclient (
mtkclient2/) - Qualcomm: EDL (Sahara/Firehose) in
EDL.cs - Samsung: Odin protocol in
OdinClient/ - Spreadtrum/Unisoc: SPD/ResearchDownload in
SPD/andSPDR.cs - Huawei/Honor: Kirin over DIAGNOS in
HuaweiUnlocker/andkirin.cs - Motorola: fastboot/ADB flows in
Android_Qualcomm.csandAndroidCommands.cs - FRP removal, firmware flashing (scatter files), partition read/write/erase
- IMEI repair and certificate files (
qcert3.cs,Cert.cs) - Read-only Ext4 parser for pulling files off partitions (
Operations/Ext4/) - ADB/fastboot automation (bundled adb.exe and fastboot.exe)
- AES and CRC32 helpers (
AESS.cs,Force/Crc32/)
Needs the .NET SDK 8.0 or newer on Windows (tested with 10.0.301). The project targets net472 but builds fine with the SDK.
git clone https://github.com/tfastdigital/Tunlocker-Tool-Pro.git
cd Tunlocker-Tool-Pro
dotnet build "Tunlocker Tool.sln" -c DebugOutput: bin\Debug\net472\Tunlocker Tool.exe. Or open Tunlocker Tool.sln in Visual Studio 2022 and press F5.
The build prints a lot of warnings (old code) but no errors.
Tunlocker-Tool-Pro/
├── Tunlocker Tool.sln / Tunlocker Tool.csproj
├── motoulocked/
│ ├── Form1.cs # main window, most of the UI logic
│ ├── mtkclient2/ # C# port of mtkclient (MediaTek)
│ ├── OdinClient/ # Samsung protocol
│ ├── SPD/ # Spreadtrum protocol
│ ├── HuaweiUnlocker/ # Kirin tools
│ ├── EDL.cs, flash.cs, FRP.cs # Qualcomm EDL, flashing, FRP
│ ├── kirin.cs, SPDR.cs # Huawei and Spreadtrum flows
│ ├── core/ # API models: apilogin, tokdata, etc.
│ ├── AESS.cs, encryptor.cs # crypto helpers
│ ├── ProcessConnection.cs # ADB/fastboot process control
│ └── Operations/Ext4/ # Ext4 filesystem parser
├── Res/ # third-party DLLs (Guna.UI2, FireSharp, libcurl)
└── docs/ # protocols, file formats, security, glossary, backend, resources
dotnet pack "Tunlocker Tool.csproj" -c Release -o packagescreates packages/TunlockerToolPro.2.0.0.nupkg. Pushing a tag like v2.0.0 makes GitHub Actions push the nupkg to GitHub Packages and create a release (workflow in .github/workflows/build-and-package.yml). Release zips are attached manually (see Download above).
The nupkg and zip include the third-party DLLs from Res/. Check their licenses before redistributing.
The tool talks to https://api.tfastdigital.com/api/server. Endpoints: loginapi/, Balancepdate/, ban/, svcrtfile/, getcrtfile/, info2/, info1val2/, infovar2/, Optionapi/. It also reads messages from Firebase Realtime Database and downloads payloads from Firebase Storage.
The request encryption, the login handshake, the data models, and a guide to running your own server are in docs/BACKEND_GUIDE.md.
- docs/FEATURES.md: every feature, how it works, which files implement it
- docs/WORKFLOW.md: what happens when the tool runs, end to end
- docs/PROTOCOLS.md: the wire protocols (Sahara/Firehose, Odin, BROM/DA, ResearchDownload) with state machines
- docs/FILE_FORMATS.md: binary data structures (GPT, PIT, PAC, scatter, sparse, seccfg, ext4) with field tables
- docs/SECURITY_CONCEPTS.md: verified boot, FRP, bootloader lock, IMEI — why the locks exist
- docs/GLOSSARY.md: every acronym and term in one place
- docs/LEARNING_PATH.md: study plan for the codebase, beginner to shipping a change
- docs/LAB_SETUP.md: safe practice environment — test phones, drivers, backups, recovering a brick
- docs/LEGAL_AND_ETHICS.md: authorized use, what's legitimate vs. prohibited, records to keep
- docs/BACKEND_GUIDE.md: server API, request encryption, Firebase, self hosting
- docs/RESOURCES.md: annotated research references, specs, books, communities
- docs/STARTUP_GUIDE.md: the business side, licensing, hosting, support
Also in the repo root: CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md.
- Website: https://tfastdigital.com/
- Telegram: https://t.me/tfasthub
- YouTube: https://www.youtube.com/@TfastDigital
- TikTok: https://www.tiktok.com/@tfasthub
- WhatsApp: +256 751 399 620
- mtkclient: the open-source MediaTek tool this repo's MTK code is ported from
- Android partition layout
- ADB documentation
- Fastboot protocol
- Ext4 on-disk format
- CRC32 (zlib)
- AES FIPS-197
- Windows Forms documentation
The full list of references, books and communities is in docs/RESOURCES.md.
If you are new to the code, open Form1.cs and follow one operation (for example "read device info") through ProcessConnection down to the USB layer. Then compare mtkclient2/ with the original Python mtkclient.
Pull requests are welcome. Keep it legal (no malware, no bypass tools for devices you don't own) and don't commit bin/, obj/ or .vs/.
- Tunlocker Tool Pro: Tfast Digital Agency, https://tfastdigital.com/
- mtkclient by B. Kerler
- HZHControls
- Guna.UI2
- FireSharp
- Newtonsoft.Json
MIT. Third-party libraries keep their own licenses.