Visit the project page for DIY unlocking and tools: https://frpunlocking.com. This tool is needed to get the Unlock key from Realme servers and save it for later use.
- Realme Bootloader Unlock Toolkit
- Requirements
- Usage
- Realme Server Response Codes Explained
- Security Note
- Reference
Before running the script, make sure you have Python 3.8+ installed. You can install the required dependencies using:
pip install -r requirements.txtRequired Python packages:
cryptography– for decrypting the unlock tokenrequests– used to send the unlock key via webhookcffipycparser
Using a virtual environment (recommended alternative) If you plan to install multiple packages or manage dependencies cleanly, you might find it easier to use a virtual environment in your folder:
Create a virtual environment inside your local folder ie. C:\send:
cd C:\send
python -m venv venvActivate the environment:
C:\sendInstall cryptography (now it goes into C:\send):
pip install cffi>=1.17.0 cryptography>=44.0.0 pycparser>=2.22 requests>=2.25.0Run your script:
python send.pyThis way, your dependencies remain isolated to that specific virtual environment, and you don’t need to manually insert paths.
After capturing the ADB log output (bl.txt) when apply with Realme Deeptest GT5 APK using:
adb logcat > bl.txtRun the script using:
python send.pyMake sure to configure your webhook URL and keys appropriately in the script or via environment variables (future version).
I am not responsible if you brick your device, erase data, kill your SD card, install malware, burn the battery, trigger thermonuclear war, or get fired because an alarm app failed.
You must be the rightful owner of the device you are modifying and have the legal right to alter its software.
All guides, binaries, and source code are provided “AS IS,” without any express or implied warranty. You apply them at your own risk. If you blame me for messing up your device, I will laugh at you.
For the full terms, see our Legal Notice.
When submitting your unlock request or parsing bl.txt output, you may encounter server responses like the following:
{"code": -1008, "message": "未提交申请,请先提交解锁申请"}Translation:
No application submitted. Please submit an unlock request first.
Resolution:
Make sure you have submitted your unlock application in the Deeptest GT5 app and generated logs via ADB.
{"code": -1003, "message": "申请不成功,30天内不能重复申请"}Translation:
Application unsuccessful. You cannot apply again within 30 days.
Resolution:
Wait 30 days or use a different HeyTap account to retry the unlock process.
{"code": 200, "message": "SUCCESS", "data": {"unlockCode": "your-unlock-key"}}Meaning:
The unlock key has been successfully issued. The unlockCode contains the full bootloader unlock token.
Next step:
Use this key with:
fastboot flashing unlockto complete the unlock process.
Some server responses may contain a UNIX timestamp, indicating when the device is eligible for unlocking.
Interpretation:
This marks the expected time after which the bootloader can be safely unlocked.
Use tools like unixtimestamp.com to convert it to a human-readable format.
Always handle bootloader unlock keys with care. Consider storing them securely and never share them publicly. Unlocking your device may void the warranty and disable certain security features.
Based on: