Repo: SebastianSimon/huawei-update-extractor
Language: C++/Qt
Purpose: Extracts system.img, kernel.img, and recovery.img from official Huawei UPDATE.APP files.
Use case: Developers porting custom ROMs (LineageOS, GSI) need to extract stock partitions. HFE supports encrypted APP files from Android 8-12.
Let's walk through a realistic scenario using a popular tool: get_local_token.py for Huawei HG8145V5 routers.
Goal: Enable telnet to change the router’s region settings.
Step 1: Find the tool.
Search GitHub for huawei get_local_token.py. Clone the repo: huawei tool github
git clone https://github.com/a-dar/huawei-tools.git
Step 2: Install dependencies.
pip install requests beautifulsoup4
Step 3: Connect to your router via Ethernet (do not use Wi-Fi to prevent disconnection).
Navigate to 192.168.100.1 and log in as user/user (or whatever your credentials are).
Step 4: Run the script.
python get_local_token.py --ip 192.168.100.1 --username user --password user
Step 5: The script will output a session_token and open a web page. Copy the token into the web form. Step 2: Install dependencies
Step 6: Once authenticated as an admin, use another tool (like enable_telnet.py) to permanently enable telnet on the WAN port.
Result: You can now connect via telnet 192.168.100.1 and run su with the calculated root password.
This process automates what used to take 30 minutes of manual browser debugger work.
Using tools from GitHub comes with responsibility. Step 3: Connect to your router via Ethernet
Pro-tip: Before running any huawei_tool.py or unlock.bat, read the source code. Look for requests.post() or urllib calls—these might be exfiltrating your data.
If GitHub is down or the tool is removed (DMCA takedowns happen frequently), try these backup sources:
| Tool Name | Purpose | Activity Status | |-----------|---------|----------------| | PotatoNV | Unlock bootloader on Kirin 620/650/655/658/659/925/935/950 | Active (limited models) | | Huawei-Firmware-Extractor | Extract system.img from UPDATE.APP | Archived but works | | HW-ROM-Manager | Manage firmware files | Outdated | | HCU-Client (unofficial mirrors) | Read/write Huawei device info | Requires paid HCU service | | FRP_Huawei | Remove FRP on older models (Android 5–7) | Many repos, test carefully | | HuaweiLoader | Bootloader unlocking tool (deprecated by Huawei policy) | Archived |
🔍 How to find them: Search GitHub for
huawei tool,potatonv,hw-tool,huawei-bootloader.