Huawei P9 [ROM][Android 7.0][EMUI 5.0.1][European Firmware b394]*MagicRainbow* v3

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
EVA-l09c432B378
Vendor country is hw/eu
bootloader unlocked
buildnumber MagicRainbow-3-byTecalote

---------- Post added at 10:43 AM ---------- Previous post was at 10:14 AM ----------

Install failed :/
You can download the b378 Firmware from here:
http://update.hicloud.com:8180/TDS/data/files/p3/s15/G753/g104/v75049/f1/full/update.zip

http://update.hicloud.com:8180/TDS/...04/v75049/f1/full/hw/eu/update_full_hw_eu.zip

http://update.hicloud.com:8180/TDS/...49/f1/full/public/update_data_full_public.zip

You can flash this FullOTA-MF Firmware for your device with this method:
https://forum.xda-developers.com/sho...56&postcount=3

It works with TWRP by flashing only the update script (and FullOTA-MF Firmware / zip files renaming see Guide/ must be together with the Nocheck EMUI Recovery in the HWOTA folder on external SD)
External SD required - and you must do it exactly as described in this Link! So you have to read it and do it step by step.

If it doesn't work you can download prepared b394 instead and try it with this similar method:
https://forum.xda-developers.com/showpost.php?p=74913874&postcount=3
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
You can download the b378 Firmware from here:
http://update.hicloud.com:8180/TDS/data/files/p3/s15/G753/g104/v75049/f1/full/update.zip

http://update.hicloud.com:8180/TDS/...04/v75049/f1/full/hw/eu/update_full_hw_eu.zip

http://update.hicloud.com:8180/TDS/...49/f1/full/public/update_data_full_public.zip

You can flash this FullOTA-MF Firmware for your device with this method:
https://forum.xda-developers.com/sho...56&postcount=3

It works with TWRP by flashing only the update script (and FullOTA-MF Firmware / zip files renaming see Guide/ must be together with the Nocheck EMUI Recovery in the HWOTA folder on external SD)
External SD required - and you must do it exactly as described in this Link! So you have to read it and do it step by step.

If it doesn't work you can download prepared b394 instead and try it with this similar method:
https://forum.xda-developers.com/showpost.php?p=74913874&postcount=3
Actually, in his post #761, @Tecalote gave you two links

1st link was broken, it should have been (post #3 in MR v4 thread)
https://forum.xda-developers.com/showpost.php?p=75787156&postcount=3

2nd link works, it is (just repeating, post #3 in this thread, MR v3)
https://forum.xda-developers.com/showpost.php?p=74913874&postcount=3
 
Last edited:
  • Like
Reactions: Tecalote

Xander1611

Member
Feb 25, 2016
17
0
0
Actually, in his post #761, @Tecalote gave you two links

1st link was broken, it should have been (post #3 in MR v4 thread)
https://forum.xda-developers.com/showpost.php?p=75787156&postcount=3

2nd link works, it is (just repeating, post #3 in this thread, MR v3)
https://forum.xda-developers.com/showpost.php?p=74913874&postcount=3
Hi sorry for the delay i was going crazy that it didn't work but i did every thing from what was there and it says software install failed i only flashed the HWOTAUpdateScript, i don't get it
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Here is a picture of the HWOTA folder
Something is wrong, please carefully read instructions
https://forum.xda-developers.com/showpost.php?p=75787156&postcount=3

Per instructions, all three update*.zip files and HWOTAUpdateSCRIPT.zip must be ZIP files - but on your screenshot only two of them have ZIP extensions?!

Either you have unzipped the other two (must not), or you are using like Windows 10 and Windoze hide ZIP extensions.
But then those two files you see them with .zip extensions, they must actually be named .zip.zip (double ZIP extensions or what)

Instead from Windoze (please forget screenshots from Windows, they depend on your Explorer settings on the PC), look how do you see HWOTA folder and its file names and extensions from e.g. MiXPlorer on the phone - all four files must not be unzipped, each must have single .zip extension

TWRP must properly see their names and extensions (TWRP will flash).
You can also make screenshot from TWRP by shortly and simultaneously pressing Vol- and Pow buttons, screenshot will be saved to SD card, to the Pictures/Screenshots folder
 
Last edited:
  • Like
Reactions: Tecalote

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Here is a picture of the HWOTA folder
As @zgfg said:
There are two possibilities. Windows doesn't show by default the file extensions.
Example: If you have a Word Document with the name "holiday" you will see in Windows Explorer only "holiday" and not "holiday.doc" or "holiday.docx" -
You can only see the file extensions, if you manually enable this in the settings for Windows Explorer:
https://www.howtohaven.com/system/show-file-extensions-in-windows-explorer.shtml

You have on your SD (Screenshot) two zip files with .zip at the end of the name, "update_full_hw.zip" and "update.zip"
- but all the other files not.
So I guess, you haven't enabled showing file extensions.
That means, you have "update.zip.zip" and "update_data_full_public.zip.zip"
This doesn't work!

So you can eighter:
- delete .zip from the two files
or: Enable to show file extension and rename update.zip.zip
to:
update.zip
update_data_full_public.zip.zip
to:
update_data_full_public.zip
 

DanialMus

Senior Member
Dec 22, 2015
62
13
0
Hi Tecalote.

Recently, I have accidently format data after error on updating Magisk. Now, I can't boot to OS. The worse cases I don't have any backup and lost my unlock code. But i still got TWRP.

I have tried to reflash the MRv3 ROM zip, it's succeed. But when i flash the patch zip (mine is L19 C636), it failed. I can boot to system, but no Huawei camera installed.

Any idea of what should i do now?
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Hi Tecalote.

Recently, I have accidently format data after error on updating Magisk. Now, I can't boot to OS. The worse cases I don't have any backup and lost my unlock code. But i still got TWRP.

I have tried to reflash the MRv3 ROM zip, it's succeed. But when i flash the patch zip (mine is L19 C636), it failed. I can boot to system, but no Huawei camera installed.

Any idea of what should i do now?
Do you mean Magisk v19.x update?
Unfortunately, it has a bug on Huawei P9 (also Plus and Lite models with stock Nougat, nothing specific for Magic Rainbow), asking for Storage Password for Storageand then claiming that Storage is corrupted, and requesting Factory Reset.

If you just rebooted to TWRP and restored backup of your patched Boot image, you would be able to continue using Magisk v18.1 (with no questions for Storage password, no issues about 'corrupted' Storage)

See e.g.:
https://forum.xda-developers.com/showpost.php?p=79493919&postcount=33309

Unfortunately, now it's too late...

Btw, why don't you consider newer Magic Rainbow v4:
https://forum.xda-developers.com/p9/development/rom-huawei-p9-magicrainbow-v4-t3759292

or rebranding to AL10c00 and upgrading to Oreo b540:
https://forum.xda-developers.com/p9/development/rebrand-update-tool-hwota7-p9-eva-t3820849

PS: You could not just flash Magic Rainbow
You had to install the stock firmware first.
IMO, that's the reason you are missing Camera and so.

In the Magic Rainbow v4 thread, post #3, you have HWOTA method how to flash the stock firmware from TWRP.
There is also a newer version HWOTA7 in the post #2 in the HWOTA7/Oreo thread (you don't need to rebrand to Chinese AL10c00, it can be used generally for flashing stock Nougat firmwares) but its script will be asking you for the Boootloader code

However, if you go with the newest firmwares, then you definitely go with MR v4, not v3
 
Last edited:
  • Like
Reactions: ogisha and Tecalote

DanialMus

Senior Member
Dec 22, 2015
62
13
0
@zgfg

I think I will go with the HWOTA method. Based on the V4 Post #3, step 5 ask me to Search for the correct FullOTA-MF .

I can't remember my last firmware before flashing V3. Any solution?

EDIT:
My bad. I have found the source for firmware which is https://pro-teammt.ru/online-firmware-database-ru/.
But I can't click on the filelist. No list of firmware popped out like the instruction.
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
@zgfg

I think I will go with the HWOTA method. Based on the V4 Post #3, step 5 ask me to Search for the correct FullOTA-MF .

I can't remember my last firmware before flashing V3. Any solution?
Most important that you stay with L19c636 (you wrote it was your model and cust).
At the time of MR v3 it was b394 (see the title)., it should update then by OTA to your latest b399

But maybe you can directly flash b399 by HWOTA

With b399 you will be good for MR v4.
But some of the latest firmwares automatically lock the Bootloader (even on OTA update)
 

DanialMus

Senior Member
Dec 22, 2015
62
13
0
Most important that you stay with L19c636 (you wrote it was your model and cust).
At the time of MR v3 it was b394 (see the title)., it should update then by OTA to your latest b399

But maybe you can directly flash b399 by HWOTA

With b399 you will be good for MR v4.
But some of the latest firmwares automatically lock the Bootloader (even on OTA update)
I have finished flashing HWOTAUpdateSCRIPT.zip. The phone reboots to EMUI recovery and finished installing the firmware until 100%. The phone gets to reboot. After Huawei logo appeared, the screen went blank until now.

Where did I went wrong?
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
I have finished flashing HWOTAUpdateSCRIPT.zip. The phone reboots to EMUI recovery and finished installing the firmware until 100%. The phone gets to reboot. After Huawei logo appeared, the screen went blank until now.

Where did I went wrong?
Some people make mistake with file naming.
Windows 10 hide extensions by default and they rename update*.zip files to have double .zip.zip extension.
If one is wrongly named or not present at the proper path, script fails to flash.

You can try to reflash.

You can try with eRecovery:
- switch off, connect to the charger (!) and boot while keeping to press Vol+
- in eRecovery, select to install the latest firmware and recovery
 
  • Like
Reactions: DanialMus

DanialMus

Senior Member
Dec 22, 2015
62
13
0
Some people make mistake with file naming.
Windows 10 hide extensions by default and they rename update*.zip files to have double .zip.zip extension.
If one is wrongly named or not present at the proper path, script fails to flash.

You can try to reflash.

You can try with eRecovery:
- switch off, connect to the charger (!) and boot while keeping to press Vol+
- in eRecovery, select to install the latest firmware and recovery
I forced the phone to reboot to system by holding power button. Finally, the system boot successfully. Thanks mate!

Now, I can flash to V4 right? With the patch zip, since mine is L19C636.
 
  • Like
Reactions: zgfg

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
I forced the phone to reboot to system by holding power button. Finally, the system boot successfully. Thanks mate!

Now, I can flash to V4 right? With the patch zip, since mine is L19C636.
For MR v4 you must be (please double,-check) on b398 or newer.
Double-check if you have all apps like camera and so.
If needed you can reinstall by eRecovery and/or Factory reset + Wipe cache (must not have TWRP while Factory Resetting).

I have MR v4, but on L09c432, hence double-check which patches apply to your L19c636

MR v4 comes with Magisk v16.1 or so.
Search for (Magisk) v18 in the MR v4 thread, you will find my posts how to update Magisk to v18 (Direct method will not work).

You will need to find/download Magisk v18.1 and manually update to by TWRP.
Then stay on Magisk v18.1, unless you want to have storage/password issues with v19 again :)
 
  • Like
Reactions: DanialMus

DanialMus

Senior Member
Dec 22, 2015
62
13
0
For MR v4 you must be (please double,-check) on b398 or newer.
Double-check if you have all apps like camera and so.
If needed you can reinstall by eRecovery and/or Factory reset + Wipe cache (must not have TWRP while Factory Resetting).

I have MR v4, but on L09c432, hence double-check which patches apply to your L19c636

MR v4 comes with Magisk v16.1 or so.
Search for (Magisk) v18 in the MR v4 thread, you will find my posts how to update Magisk to v18 (Direct method will not work).

You will need to find/download Magisk v18.1 and manually update to by TWRP.
Then stay on Magisk v18.1, unless you want to have storage/password issues with v19 again :)
What should I do if Magisk asked to update from 18 to 19? You have said something about restoring patched boot image. But i have no idea what it is.

Mind to explain to me?
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
What should I do if Magisk asked to update from 18 to 19? You have said something about restoring patched boot image. But i have no idea what it is.

Mind to explain to me?
In the Magisk Manager, Settings, disable Check Updates.

From TWRP, make Nandroid backup (all partitions except Cache and Dalwik) - do it already upon installing MR v4, Before you attempt to update Magisk to v18

If you have problems with new Magisk, restore Boot partition and you will have older Magisk back (Boot partition gets patched by Magisk).
Usually that is enough, only if you still have problems with Magisk modules, then restore also System and/or Data.

It is also possible in Magisk Manager, when opting to Update Magisk, not to take Direct method but to patch Boot file (for Oreo it is named Ramdisk file/partition).
Then Magisk will patch it and save it to Download folder as IMG file.
You will boot to TWRP and install the patched Boot file - if there are problems you reboot to TWRP and reinstall the older patched Boot image, with the previous Magisk version.

MR v4 installation zip, when unzipped, contains its initial Boot image.
About dumping Boot image from the running system (e.g. from MR v4 when you install it with the initial Magisk v16), see;
https://forum.xda-developers.com/showpost.php?p=79457797&postcount=1728
(this was an answer to another P9 Nougat user who also followed request from Magisk v19.1 to do Factory reset because of 'corrupted' Storage
 
Last edited:
  • Like
Reactions: DanialMus

ogisha

Senior Member
May 24, 2012
492
293
0
Hi Tecalote.

Recently, I have accidently format data after error on updating Magisk. Now, I can't boot to OS. The worse cases I don't have any backup and lost my unlock code. But i still got TWRP.

I have tried to reflash the MRv3 ROM zip, it's succeed. But when i flash the patch zip (mine is L19 C636), it failed. I can boot to system, but no Huawei camera installed.

Any idea of what should i do now?
If you are on stock, download Magisk 18.1 and save if to external sdcard, then reboot to twrp and flash if.

Everything will be as it was. No storage nor data will be encrypted and no unlock code will be asked.

Regards.