Unbranding a Huawei ME906s WWAN/4G module
(or rebranding it)
Before you ask: both the X1 Yoga and the X1 Carbon have NO ANTENNA, unless you have the 4G version. The SIM slot should work fine on all models (but it’s not my fault if it doesn’t)
Around one year ago I bought a new laptop, a Lenovo ThinkPad X1 Yoga (1st gen). To save some money I bought it on eBay; it was not the top model with the 4G module I wanted, but I thought I may live without it anyway.
Some weeks ago I was wandering through Lenovo’s parts lookup website and noticed my laptop supports two WWAN modules:
- Sierra EM7455
- Huawei ME906S
I decided to look one up on eBay and see how much it costs. I found the Huawei module for 35€. Without reading too much, I bought it.
I received it today and realized that:
- My laptop has no WWAN antenna.
- The module I received is HP-BRANDED. Which means it’s not in Lenovo’s whitelist.
I still haven’t solved the antenna issue - I’ll probably buy a cheap-ass one and tape it on top of the battery. Hopefully signal will be good enough.
UPDATE: I ended up buying this one from eBay. Signal is not the best I could get but it works perfectly.
I did, though, solve the whitelist issue.
It didn’t help, the modules are too different. Then I found an official firmware upgrade from Lenovo.
I hot-plugged the module and tried to run the updater on Windows. No such luck: the module wasn’t recognized.
I tried in way too many ways to extract the binaries from the executable. Usually either
Not this time. I ran the executables in a virtual machine, gathered the self-extracted files from Windows’ temporary files (hint: type
%localappdata% in Explorer’s path box), then switched back to GNU/Linux and used
binwalk to analyze them.
A very interesting string came to my eyes multiple times:
balong_modem.bin. I tried to look it up online and found interesting stuff, though nothing applied to my case.
I found balongflash and balong-usbdload + a bunch of articles that explained how to use them to flash some external USB modem by shorting some pins, assuming users already knew where to find the firmware images. Nope.
After trying every possible query containing
balong, I gave up and started to look for
HP lt4132 LTE/HSPA+ 4G Module, the name the device reported itself as. I found this interesting article which definitely didn’t help me unbrand my module, but it did help me ensure it was, somehow, working.
After reading the article, I stumbled upon this: the HP-branded firmware. I tried to download and analyze it (to download it, change
exe). The executables looked very similar: very similar size, same icon, similar filename, similar
At some point, a software I read of in a magazine a while back came to my mind: Resource Hacker. It’s a closed-source, freeware program to extract resources embedded in Windows executables. I ran it and compared Lenovo’s and HP’s update tools:
HP on the left - Lenovo on the right
Everything is identical, except for these two files (and a huge firmware blob). Looking closely at the XML you can notice the only difference between Lenovo and HP is that HP added two lines containing its rebranded device names (read: the installer only checks the device’s name, not the IDs).
I made some backups of both update binaries, opened Lenovo’s updater with Resource Hacker and swapped the XML with HP’s.
Do it yourself
- Note 1: it will likely not work on VirtualBox. You can, however, use it to see if the updater recognizes the device: remove any catchall USB filter from VBox and select the module; the updater will try to reboot the device into download mode, but VirtualBox won’t automatically reconnect it back to the VM, so nothing will happen.
- Note 2: keep a few copies of the patched executable. If flashing fails, delete the copy you used and use another. The updater writes something somewhere in it’s own directory and makes sure subsequent flashes fail.
- Note 3: you’ll have to make the executables yourself. Redistributing them is illegal.
- Note 4: the device is blacklisted in non-HP devices. To bypass the blacklist, plug it in while the computer is on or in standby, otherwise it will refuse to boot.
- Note 5: if you have an HP device, unbranding it will probably get you in the blacklist. You may be able to use HP’s updater to rebrand it (see below).
- Note 6: You take all the responsibility for what you do with your hardware. It worked on my machine, it’s not my responsibility if it doesn’t work on yours.
- Download the updaters from both Lenovo and HP.
- Run each installer and find where files are extracted. You’ll find one file. Copy it somewhere else.
- Run these new files too, one at a time. Go to
%localappdata%\Temp, you should find a directory named
XXXX.tmp, copy it somewhere else.
- In this directory you’ll find
UpdateWizard.exe. It contains everything we need. You’ll also find some drivers, they might be helpful. Install them.
- Using Resource Hacker (it doesn’t work well on Wine, use Windows) find the XML in
STRINGSin the Lenovo updater. Replace it with the one from HP’s
- Run the patched updater and… you’re done.
Update (Jun 2019) - Rebranding
User bubusan sent me an email earlier this week reporting that he successfully re-branded a Huawei-branded ME906s to HP.
He said he had to take the XML from the Lenovo updater and place it into the HP updater.
I haven’t tested it myself. As always, your mileage may vary.
Thank you bubusan for your feedback! :)