[DEV][BETA] Introducing REDLOTUS - Open Source Huawei Update Tool for manual updates

Did you have TWRP installed when using Redlotus?


  • Total voters
    18
  • Poll closed .
Search This thread

dealth645

Member
May 7, 2017
14
6
@Lukx Thank you so much fo releasing your software! You were not the only one who was able to flash a firmware using it! I successfully unbricked (from Unlocked Bootloader but Locked FRP) and rebranded my Mate 9 from MHA-AL00 to MHA-L29C432B182 (v82230) thursday using your script, plus some xml mod for HiSuite, the update succeeded :) BUT it's important to note I flashed the C432 oeminfo using TWRP when the phone was still working! (the full update zip using no check recoveries didn't go well)
All the chinese firmwares or dload failed to install but when this B182 passed 5%, I knew it was going to flash it all! I think you need to care of the actual version of oeminfo to pass the verification fine. (use fastboot oem get-build-number to know the brand)

After that I could reunlock FRP to install TWRP again, and after that I used the no check recoveries from this awesome guy by manually flashing them in twrp using adb commands :
Code:
adb push recovery.img /tmp/recovery.img
adb push recovery2.img /tmp/recovery2.img
adb shell
dd if=/tmp/recovery.img of=/dev/block/sdd33 bs=1048576
dd if=/tmp/recovery2.img of=/dev/block/sdd30 bs=1048576
exit

and then after that i could flash "properly" after renaming correctly the public data and hw zips in this order (because public zip first format /data/hw_init and hw zip just adds files in it so if you reverse order, it will be like you didn't flashed hw zip !) typing the adequate commands to write :
Code:
adb push update_data_public.zip /data/update/HWOTA/update_data_public.zip
adb push update_all_hw.zip /data/update/HWOTA/update_all_hw.zip
adb shell
echo --update_package=/data/update/HWOTA/update_data_public.zip > /cache/recovery/command
echo --update_package=/data/update/HWOTA/update_all_hw.zip >> /cache/recovery/command
exit
adb reboot recovery

So the theming and OTA updates works again :D (I also flashed the two zips in the same order first in TWRP, don't know if it's important :p but the real thing that got the cust working is the patched recovery!)
Try it yourself, it works 100%, but I don't know if Huawei just authorised my device or if it's really your script that allowed me that @Lukx ?
Also it's amazing to notice that both of the FunkyHuawei methods failed, either eRecovery or Hisuite but not your script.. but FunkyHuawei support is amazing ;)
 
Last edited:
  • Like
Reactions: moshingostrich

anashusnan

Member
Oct 20, 2015
8
2
sorry for asking :D ... i have two questions :

1) do i need to unlock bootloader prior to manually update/install firmware?
2) has anyone succeed updated firmware using 'dload method' after unlock bootloader?

Thanks in advance ;)
 

dealth645

Member
May 7, 2017
14
6
sorry for asking :D ... i have two questions :

1) do i need to unlock bootloader prior to manually update/install firmware?
2) has anyone succeed updated firmware using 'dload method' after unlock bootloader?

Thanks in advance ;)

1) No you don't it's like OTA updates
2) I didn't but I think it's because my oeminfo was C432.
 

espaciosalter20

Senior Member
Jun 12, 2011
1,536
892
Bogotá, Colombia, Colombia
i'm stuck at make listen-hisuite script works... i'm going to attach debug file
EDIT:
Code:
> [email protected] listen-hisuite E:\huawei\redlotus-master
> node index.js -- --hosts

events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 0.0.0.0:80
    at Object.exports._errnoException (util.js:1050:11)
    at exports._exceptionWithHostPort (util.js:1073:20)
    at Server.setupListenHandle [as _listen2] (net.js:1243:19)
    at listenInCluster (net.js:1307:12)
    at doListen (net.js:1432:7)
    at _combinedTickCallback (internal/process/next_tick.js:83:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

EDIT 2:
finally solved stopping IIS. You can stop the service from the command line on Windows 7/Vista:


Tool run as it should, but at the end, it shows a "software failed!" on update screen at reboot... maybe, the update file wasn't compatible with my oeminfo despite comes from my carrier (Tigo LATAM)...
 

Attachments

  • 2017-05-15T22_30_42_920Z-debug.log
    3.7 KB · Views: 19
Last edited:

anashusnan

Member
Oct 20, 2015
8
2
1) No you don't it's like OTA updates
2) I didn't but I think it's because my oeminfo was C432.

Same goes with me, i tried to update my phone to the latest firmware using 'dload method' but failed after 5% :crying: , planning to try update using "REDLOTUS" method, hopefully it will goes well as i expected
:laugh:
 

dealth645

Member
May 7, 2017
14
6
i'm stuck at make listen-hisuite script works... i'm going to attach debug file
EDIT:
Code:
> [email protected] listen-hisuite E:\huawei\redlotus-master
> node index.js -- --hosts

events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 0.0.0.0:80
    at Object.exports._errnoException (util.js:1050:11)
    at exports._exceptionWithHostPort (util.js:1073:20)
    at Server.setupListenHandle [as _listen2] (net.js:1243:19)
    at listenInCluster (net.js:1307:12)
    at doListen (net.js:1432:7)
    at _combinedTickCallback (internal/process/next_tick.js:83:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

EDIT 2:
finally solved stopping IIS. You can stop the service from the command line on Windows 7/Vista:



Tool run as it should, but at the end, it shows a "software failed!" on update screen at reboot... maybe, the update file wasn't compatible with my oeminfo despite comes from my carrier (Tigo LATAM)...

What does "fastboot oem get-build-number" return ? C605 (Latin America) in build number ?

Same goes with me, i tried to update my phone to the latest firmware using 'dload method' but failed after 5% :crying: , planning to try update using "REDLOTUS" method, hopefully it will goes well as i expected
:laugh:
Again what's your oem region (by using "fastboot oem get-build-number") ? There's hope, it was hanging for me at 5% too for a lot of incompatible firmwares, which means it doesn't even want to start it. But with the right one it worked.
For both of you, you should first try to flash a full firmware from your region :) But @espaciosalter20 you're out of luck if it's C605 because there is only OTA not full firmwares available online, anyway you can maybe try this one or change your oeminfo if you can...
 
Last edited:

espaciosalter20

Senior Member
Jun 12, 2011
1,536
892
Bogotá, Colombia, Colombia
What does "fastboot oem get-build-number" return ? C605 (Latin America) in build number ?


Again what's your oem region (by using "fastboot oem get-build-number") ? There's hope, it was hanging for me at 5% too for a lot of incompatible firmwares, which means it doesn't even want to start it. But with the right one it worked.
For both of you, you should first try to flash a full firmware from your region :) But @espaciosalter20 you're out of luck if it's C605 because there is only OTA not full firmwares available online, anyway you can maybe try this one or change your oeminfo if you can...

i would change my oeminfo and debrand my p10 (BTW, i have a C45B101 build number) only if i could go back to full version of my firmware if someday i need to go back to my branded stock firmware for warranty, but i can't find a FullOTA of my sw version, so i'm afraid that i couldn't go back to original state. On firmware page i only find this very similar to my build (except last number is 3 instead of 4). I tried with this OTA to update my p10 with the failed result. I think i should wait if someday i could put my hands on a FullOTA rom to flash on my VTR-L09.
 

dealth645

Member
May 7, 2017
14
6
i would change my oeminfo and debrand my p10 (BTW, i have a C45B101 build number) only if i could go back to full version of my firmware if someday i need to go back to my branded stock firmware for warranty, but i can't find a FullOTA of my sw version, so i'm afraid that i couldn't go back to original state. On firmware page i only find this very similar to my build (except last number is 3 instead of 4). I tried with this OTA to update my p10 with the failed result. I think i should wait if someday i could put my hands on a FullOTA rom to flash on my VTR-L09.
Oh I didn't notice you have a P10. I also think you're stuck and should wait for a full OTA to be released.
 

anashusnan

Member
Oct 20, 2015
8
2
Successfully Updated to latest official firmware B133

I had succeed update my huawei p10 to the latest firmware b133 ;) ..at last, after a few trial n error i managed to update to the latest firmware by refering to the method in mate 9 forum :cowboy:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    Hey,
    I have mentioned it in a couple of threads already, now I feel it's time to release it:

    REDLOTUS
    important, may 6th: apparently I was the only person so far who was successful with this, do not rely on it yet please!
    REDLOTUS is an update tool which helps you to convince certain HUAWEI-Phones there is a new update available.

    I started developing it because I felt that funkyhuawei is a bit overpriced for some more trivial use cases, but mostly I do not feel comfortable opening up my network for potential man-in-the-middle attacks by routing all DNS requests to some unknown person. On the other hand, funkyhuawei is to be acknowledged for their remarkable chat support, and their broad resources and knowledge - all of which I can not offer personally.

    REDLOTUS is free and open source and self-hosted, while still simple enough to use.
    Simply speaking, REDLOTUS pretends to be a Huawei update server to HiSuite (and later, to eRecovery).

    It was successfully tested with my Huawei P10 VTR-L09, where I used it to re-flash the VTR-L09C432B123-Firmware after I had lost some functionality while flashing ;)

    Roadmap: Right now, this tool works only against HiSuite, but I am actively working on letting it work with eRecovery.

    The source code, roadmap, and precise instructions live on Github:

    Important, may 6th: apparently I was the only person so far who was successful with this, do not rely on it yet please!
    https://github.com/lukx/redlotus

    I wish you good luck with the tool.

    Special Thanks you's go to
    * @Jannomag, who was a helpful source of knowledge about the huawei update process
    * @duraaraa, who had carefully described some parts of the process in earlier posts of his
    2
    So finally gave up and hit CTRL-C and got this....

    I've the exact same problem. I tried to re-install node 7.3 insted of 7.10 but didn't help...

    error Windows_NT 6.1.7601
    error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "download" "http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1475/g104/v82108/f1/full/filelist.xml"
    error node v7.3.0
    error npm v3.10.10
    error code ELIFECYCLE
    error [email protected] download: `node download.js -- "http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1475/g104/v82108/f1/full/filelist.xml"`
    error Exit status 3221225786
    error Failed at the [email protected] download script 'node download.js -- "http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1475/g104/v82108/f1/full/filelist.xml"'.
    error Make sure you have the latest version of node.js and npm installed.
    error If you do, this is most likely a problem with the redlotus package,
    error not with npm itself.
    error Tell the author that this fails on your system:
    error node download.js -- "http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1475/g104/v82108/f1/full/filelist.xml"
    error You can get information on how to open an issue for this project with:
    error npm bugs redlotus
    error Or if that isn't available, you can get their info via:
    error npm owner ls redlotus
    error There is likely additional logging output above.
    1
    So finally gave up and hit CTRL-C and got this....
    1
    Hey @liomajor and @scook94, thank you for your extensive reports. It looks like I had messed with the download process yesterday when I should have gone to sleep already... Could one of you please run "git pull" and run the download again? It should give you a progress indicator, so when you see nothing within a minute or two, you can cancel right away.
    Thanks for your collaboration

    Haven't quite figured out to get a "git pull" to work without it complaining about overwritten files with the merge, so I've downloaded the .zip and unpacked that. Happy to report that everything is now working, downloads currently in progress. :good:
    1
    @DonDinero If you put a # at the beginning then everything after is ignored, it's treated as a "comment".