Huawei P9 [ROM][Android 7.0][EMUI 5.0][European Firmware b386 based]*MagicRainbow* v2

Search This thread

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
magic-rainbow-png.566584

Huawei P9 Custom Rom

*MagicRainbow*
Version Two
Magisk Edition and Classic Edition​
Teamwork by Tecalote and KangV
461631-0a479047b7ce571665456c8d66dbaf16.jpg

based on Android 7.0 (N) EMUI 5.0 European Firmware b386

Projekt-_Magic-_Rainbow.png


I'm happy to present you my new ROM :cowboy: It is tested and works without any problems on EVA-L09 C432 and EVA-L19 C432.
Other models must be tested first, which Firmware is required to get Developer Options and Fingerprint to work. Please report!

German-Thread:https://www.android-hilfe.de/forum/root-custom-roms-modding-fuer-huawei-p9.2808/huawei-p9-rom-android-7-0-emui-5-0-magicrainbow-v2-by-tecalote.829450.html

1) Difference between Magisk and Classic Edition:

  • The Magisk Edition was made to have a safteynet capable device that still offers much more features than a Stock Firmware ... It has the same features as Classic Edition, but with the difference that you can bypass safeteynet .... Apps such as Pokemon Go, various banking apps and others - which does not work anymore on rooted devices should work in this Rom :cool:

481274-98e1405032eb2f2b15c2de08e5d92b67.jpg

  • The Classic Editon is rooted with SuperSU and has the same features, but safteynet cannot bypassed. However, who does not run apps on this "questionable" service will have the same joy with this Rom;)
481275-35dd9c522a804364be84eebfb591a936.jpg

2) Requirements for MagicRainbow - short overview:

Basically: You must already be on Android 7 (Nougat), Bootloader must be unlocked, latest TWRP flashed with special settings (explained below)
A) Your device must not be rooted for installing this ROM - it is even better, if you start from clean original Huawei Stock Firmware.
Firmware-Requirement:
EVA-L09 C432 and EVA-L19 C432 need original Huawei Firmware b386 installed (flashable Firmware available - see below). But b386 is not for all other cust and models avilable!
EVA-L29C636 and EVA-L19C636 has currently only b361 as flashable Firmware available. Higher Firmwares comes only with OTA.
You should be with the Firmware for your device nearly to b386 - if not then Fingerprint may not work and perhaps not the Developer Options (which is very important for this ROM to work properly)
B) If you are on Stock Firmware and your device is rooted, backup your stuff, unroot your device and make a factory reset.
C) If you come from any Custom Rom like MagicRainbow v1 (based on b386) or @dkionline BlueWei - you must go back to original Huawei Stock Firmware b386 (see section 4 - How do flash firmware) It is not enaugh, just wipe with TWRP and flash the Rom!
D) If you are on Stock Firmware b387 (make just unroot - if you have Root - and do a factory reset) - but I think you can install this Rom just with the Wipes and without going back to b386


3) Flashable Firmware b386 c432 (for EVA-L09 and EVA-L19):

4) How to flash Firmware - or GOING BACK TO STOCK:

The simplest, preferred method to flash b386 (In accordance with your device and model!) can be done with TWRP - whether you come from the b383 or b387, or from BlueWei or MagicRainbow v1 - but note, you cannot use this method to update from Android 6 to Android 7:


  • 1) Backup your apps with data (only User Apps, no System Apps, no Chat-Apps - Chat Apps should not be restored - but new installed with Playstore and new registered, use integrated Backup from Chat-Apps)
    2) Backup all important files and folders from your internal memory (DCIM, WhatsApp folder, Downloads etc)
    3) delete you Fingerprint and Google Account
    4) Copy update.zip and ...hw_eu/update_data_full_EVA...zip to your external SD (dont unzipp it and dont do it into dload folder)
    5) Bootloader must be unlocked
    6) Make sure that you enable in developer options OEM Unlock and 2) ADB Debugging and 3) USB Debugging - in this order (if its not enabled yet)
    7) TWRP must be installed
    8) Flash with TWRP (Huawei Firmware) update.zip - after it is flashed do not reboot - go back to main menu
    9) Flash with TWRP hw_eu/update_data_full_EVA...zip - after it is flashed do not reboot - down in the left corner klick on "wipe dalvik and cache"
    10) Do not reboot - go back to main menu - use Tab: Restart - but do not restart system - RESTART RECOVERY
    11) You are now in Huawei Stock Recovery - from there make 1) Wipe Cache Partition and 2) Factoryreset and 3) reboot to system
    12) Huawei Stock Firmware b386 is succesful installed :good:

    13) I would recommend to flash now the Firmware b386 once again, but now with dload-method. For this you must 1) unzipp update.zip on PC and 2) unzipp hw_eu...data.zip in a separate folder.
    14) Make a folder on your external SD with the name: dload - Copy first the unzipped file from update.zip into this folder - but ONLY the UPDATE.APP (not the other files)
    15) With VOL+ and VOL- (press in the middle down) and PowerButton flash b386
    16) After restart to system, delete update.app in dload folder and copy now the unzipped files from hw_eu...data.zip into dload folder - but now you need ALL files (update.app, META-INF and the data folder)
    17) flash it with the 3 Button Method

5) Important information for using this TWRP:

Made by @OldDroid v 3.1.1-1 (currently latest TWRP): https://www.androidfilehost.com/?fid=961840155545586361
A) Setup new flashed TWRP: allow system modification,
B) Open Settings Tab and configure the settings for your needs - example: I uncheck "prompt install TWRP app", I disable vibration and expand the screen timeout to 300 for seeing what TWRP shows me on screen, I set time zone and language...
C) Important in settings on last Tab - uncheck /disable "keep vendor partition mounted" - but leave ]enabled "exclude OEM-Path from data-wipe"
D) Have a look in main menu into Mount-Tab - For flashing Stock Firmware as shown above and for making Nandroid Backups with TWRP - you must not change anything in Mount!

E) But later, if you are ready to flash the ROM and you are going to wipe the partitions (explained below) - Immediately after the Advanced Wipe - before you want flash the ROM - you must go in main menu to: MOUNT and uncheck/disable everything in Mount - with the exception "Micro-SD" (this must be mounted!) If you dont do this step after wipe, before flashing ROM - the Rom would may not be flashed properly - and if so, it cannot work properly!!

481271-25cd251761e0315664663acfbc7491d6.jpg

6) Installing ROM

If you have MagicRainbow.zip already on external SD, do following steps:

  • Note: if you want boot sound to be played back in the future, then sound must be switched on before installing the Rom - if phone is in silent mode, there will be no boot sound in the future. Phone remembers the last status and this can not be changed afterwards!

A) In main menu of TWRP go to Wipe - do not use Factoryreset, use instead the Advanced Wipe
Wipe ONLY following partitions:
Dalvik / Art Cache
cache
Data
system

Do NOT wipe: vendor, internal memory, micro-SD
481253-5c2efafe54562fa65ecd9bd568f08bd7.jpg

B) After wipe you navigate back to the main menu and open: Mount - uncheck all with the exception of Micro SD card! This is an important step - (especially vendor should not be mounted), since otherwise there will be errors in the installation. My script mounts itself, what it needs :)

481270-89f9df5003e2ca18490babedadd98e39.jpg

C) Then navigate back to main menu and go to Install Tab - select MagicRainbow.zip and swype to flash
D) After flashing ROM, do not make a Wipe from Dalvik / Cache, just reboot. Reboot is relatively fast, but of course, the first boot takes a lot longer than usual - about 9 min

Differences during first boot: Classic-Edition interrupts the first boot process due to systemless rooting by SuperSU 2.82 SR1 and boot again - the Magisk edition does not need this additional loop.


7) Important for Magisk and Safetynet:

A) If you receive a root request during the first setup with Magisk Edition, please affirm it - no matter how strange it may seem to you!
B) After first setup dont open Magisk Manager and - before you doing anything else - go to settings and activate developer options.
Inside enable 1) ADB debugging and 2) USB debugging
( in this order! - not the other way)
C) After got to settings / expanded settings and enable in security: "unknown sources"
D) Immidiatly restart your P9 - this is an important step to keep safetynet green. After reboot you can open Magisk Manager.
E) Do not change anything in the settings or in the preinstalled module of Magisk - it is already set everything correctly! Also dont download module which you dont know for what they are and what they doing...
But I would recommend to download and install following two modules: Huawei Safetynet Fix and BusyBox 1.27.2
Please do it with following instruction: https://xdaforums.com/showpost.php?p=73733872&postcount=564
F) Do not activate in Magisk Manager settings systemless hosts!
AdAway does not need this setting to work!
G) Start AdAway, download and activate hosts and reboot your Phone. After reboot open AdAway again, hosts are not activated yet, download hosts again and reboot your Phone a second time. Now hosts are activated (green) and safetynet stays also green.

It is not much to say to the Classic Edition, which you know already from MagicRainbow v1 b383 - but 1) ADB Debugging and 2) USB Debugging USB must also be enabled after the first setup and then restart the device before you do anything else! If you open AdAway and download and enable hosts, reboot your Phone. After reboot open AdAway again. If hosts are not activated yet, install again hosts and reboot. After it will work, cause its configured by an init.d script.


8) Important information to PMPlus:

The app PMPlus activates "auto-launch" on second page in the Phone Manager - so you have a very powerful Autostart Manager, which would otherwise not exist. This is optional, however - if you want to be sure that everything works smoothly, and does not want to adjust everything manually here, leave your fingers off. Note: If auto-launch is activated in phone manager, you can not undo this change, just by reinstalling the Rom!
Whoever wants it anyway:
A) Simply start PMPlus and go to Install, after succesful installed messeage, close this app! Autostart Manager is activated now in Phone Manager!.
B) You can then delete the app PMPlus.
C) But please note : All Autostarts are set to 0 and you have to manually enable the most important apps in auto-launch
D) Magisk Manager must be enabled in auto-launch, in the Magisk Edition - if you do not enabel, Root cannot work!
E) SuperSU must be enabled in auto-launch - in the Classic Edition - if it is not enabled, Root cannot work!
F) In both Roms Chat-Apps which should receive push notifications - must be enabled in auto-launch - and some apps must also enabled in "App activation" - which is a part of "auto-launch"


481272-e9632e4a6bdff6f7fa099b9a86a3b6aa.jpg

9) Features and Information:

  • Callrecorder - for manual and automated call recording
    Viper4Android - Advanced Settings /more settings / Viper4Android Installation-Pool from here you can install: None, old viper and new viper - after reboot you have the App Symbol on Homescreen. Open it to configure Viper4Android.
    Classic Edition ROOTED with SuperSU 2.82 SR1
    Magis Edition ROOTED with Magisk 13.3
    AdAway as ad blocker - look at Point 7 for further information
    BusyBox 1.27.1
    System deodexed
    KangV-Settings (Advanced Settings on Homescreen) in nougat style - with the 4in1 restart menu and much more ....
    Titanium Backup - you can use external SD with storage SD-Card and dont need Document Provider
    MiXplorer - powerful Root Explorer which comes with PDF Reader, VLC Codecs and Archive Plugin, change language in settings
    Debloaded - almost GApps from system removed - but Core GApps are integrated - so dont flash any GApps - you can install missing GApps with Playstore.
    Callrecorder.png

    464517-09769d38687429e6650c7b3de23ca4c4.jpg


    Viper4_Android.png

    Full access to the external SD You can work on external SD with enabled Full Permissions - Example: TitaniumBackup automatically selects the external SD as the preferred location.
    Optional: Path to the internal memory interchangeable with the external storage! To do this, you only need to use MiXplorer and navigate to /data. There is a file with the name: SDPath - open this file with text editor of MiXplorer. At the moment, the internal memory is set as default (ext_SD = 0). If you change the entry to: ext_SD = 1 and save it, all apps will only use the external storage after one-time reboot. Before you install apps like WhatsApp, think about it. Because if you like that all Apps store media and everything only on your external SD then enable this option. Example: The folder of WhatsApp will be created automatically on external SD ....

Pfad_zu_extern_ndern_5.png

10)Disable Statusbar Lunar:

The Rom is European, but the Advanced Settings are made by KangV. He comes from China, thats why the Lunar component is built into Advanced Settings (these are the only Chinese letters in this Rom). To disable the chinese letters, go to Advanced Settings /Notification settings and disable the checkmark "Show statusbar lunar"
One known BUG: Do not use the "hide navigation bar" in Advanced Settings, it works with chinese models like AL10 - but not europaen models at the moment.

11) Restore orignial Huawei Bootanimation (if you dont like my integrated one):
Flash this zip with TWRP: https://xdaforums.com/attachment.php?attachmentid=4262925&d=1504567957
Information: https://xdaforums.com/showpost.php?p=73667280&postcount=541


12) DOWNLOAD *MagicRainbow* ROM v2:

P9-b386-MagicRainbow_Classic.zip: https://www.androidfilehost.com/?fid=889764386195921575
MD5 (please check after download): b350f2a37c88bd31c8373c57a4012344

P9-b386-MagicRainbow_Magisk.zip: https://www.androidfilehost.com/?fid=889764386195921598
MD5 (please check after download): 1587eeb1575d252f265f852ef3026dfa


Previous Version - MagicRainbow ROM v1 (based on b383, SuperSU EMUI 2.79 installed):
Requirement before installing this ROM:
EVA-L09 C432 and EVA-L19 C432 need Firmware b383 installed
EVA-L19 C636 need Firmware b381 installed
EVA-L19 C185 need Firmware b385 installed
P9_b383_Magic-Rainbow_v1.zip:
https://www.androidfilehost.com/?fid=457095661767158149
MD5: 7c81a2684f45e0615972f12197552635
After first setup you must update SuperSU to Version 2.82 EMUI: https://www.androidfilehost.com/?fid=673368273298962637

:cool: HAVE MUCH FUN WITH THIS ROM :)

438081-f3dc149a662ce7517283231f8b0ab954.jpg

Many thanks to KangV for his great K-Settings Framework :cool:

If you like Advanced Settings by KangV - you can donate him:KangV: https://www.paypal.me/KangVIP

If you like *Magic-Rainbow* ROM, you can spent me some glass of wine :) https://www.paypal.me/Tecalote

Many thanks and credits to other great Developers:

@OldDroid - TWRP with DECRYPTION SUPPORT for P9 https://xdaforums.com/p9/development/twrp-t3565703

@guitardedhero(Viper/Atmos) https://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137

@HootanParsa (MiXplorer) and @YashdSaraf (BusyBox arm64)

@kishorerprem - SDCard-Write access

@Chainfire - SuperSU

@topjohnwu (systemless Xposed Framework and Magisk)

@dkionline - Custom Roms for P9

@Blackball - Custom Roms for P8 - P9 - P 10

@mr.mrcn - Dark Bloom for EMUI 5.0 Theme

:cool:


[/LIST]
 

Attachments

  • 4in1-Reboot-Menu.jpg
    4in1-Reboot-Menu.jpg
    19.2 KB · Views: 5,364
  • 6a.png
    6a.png
    157.5 KB · Views: 5,298
  • Entwickler-Options.png
    Entwickler-Options.png
    161.6 KB · Views: 4,864
  • VoLTE.png
    VoLTE.png
    138.3 KB · Views: 4,552
  • ChangeSDpath2.jpg
    ChangeSDpath2.jpg
    224.6 KB · Views: 4,407
  • ChangeSDpath3.jpg
    ChangeSDpath3.jpg
    223.1 KB · Views: 4,314
  • ChangeSDpath4.jpg
    ChangeSDpath4.jpg
    96.7 KB · Views: 4,244
  • ChangeSDpath5.jpg
    ChangeSDpath5.jpg
    124.9 KB · Views: 4,146
Last edited:

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
If you have in "About phone" build-number EVA-L09 or EVA-L19 b182c900 you dont receive the OTA Update to Nougat. You must change it to b182c432.
Here is described, what you have to do - please make every step careful and dont worry!

For EVA-L09 download this file: [url]https://www.androidfilehost.com/?fid=457095661767158957[/URL]
MD5 (please check after downloading): 21a70ae3b07b72277bf935bf4ed90320

For EVA-L19 download this file: [url]https://www.androidfilehost.com/?fid=817550096634767353[/URL]
MD5 (please check after downloading): 838d9634e22acce029c383ec780dd745

And you need for changing OEMinfo on b182 TWRP for Android 6 (not the one from OP = for Android 7) Download it here: [url]https://www.androidfilehost.com/?fid=457095661767122229[/URL]

Steps:
1) Your Bootloader must be open! Backup important files or folder from your internal memory (cause it will be completely wiped, except external SD will stay untouched)
2) Firmware b182 must be in dload folder (update.app 3,06 GB) Take the one for your device For EVA-L09 download full Firmware b182: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1079/g104/v63880/f1/full/update.zip
EVA-L19 can use same b182 - the Firmware works for both.
3) Unzipp oeminfo.emmc.zip - you get: oeminfo.emmc.win - this is the file what you need!
4) Store this file in following path on root of your external SD: \TWRP\BACKUPS\SNxxxxxxxxxxxxxx\C432\ (SNxxx folder must named with Serial Number of your phone and inside this folder copy the oeminfo.emmc.win
5) Enable Developer Options in Settings, go inside and enable OEM Unlock and USB-Debugging - after go to Advanced Settings /Security and allow "Unknown Sources"
6) Connect your Phone with USB to PC and wait until Windows installs the driver.
7) With Minimal ADB and Fastboot program for PC in administrative mode - boot the phone into fastboot mode and flash TWRP for Android 6.

https://www.androidfilehost.com/?fid=457095661767122229
(TWRP img must be in Minimal ADB and Fastboot Program Folder. You start the Program with right click as Administrator. You enter
adb devices
- you should get your SN and device. If on the screen pop up a request to allow connection, grant permission for always from this PC. Now:
adb reboot bootloder
-phone restart into Bootloader /Fastboot Mode. Bootloader must be unlocked and FRP unlocked.
You enter:
fastboot devices
- and get SN device, then
fastboot flash recovery Name-of-TWRP.img

8) If TWRP is succesful flashed disconnect USB from your Device and boot immidiatly after into TWRP. For this press Vol+ and Power Button. Stay holding this position until TWRP is booted (can take some minutes)
When TWRP is booted, allow Write Permissions for system.
9) In main menu and choose the button: RESTORE
10) Navigate to the C432 folder and restore oeminfo. (from folder C432 !) This changes oeminfo from b900 to c432!
11) Go back to main menu and reboot your phone - but not to system. You must press Vol+ and Vol- (in the middle) down until EMUI Software Installing begin and b182 will flashed again (it must be in dload folder!) If you see on screen text with red colour - ignore it, just press Vol+ and Vol- down, if it does not help, press also Power Button to reboot, but keep pressing Vol+ and Vol- because b182 must flashed again on this point!
12) If it was not successful and you receive after reboot a white screen and you will be promted to enter "the" password, dont worry, just use your password for Google. Phone reboots and make a factoryreset with EMUI low-level wipe. TWRP will be overwritten with Stock Recovery. Thats normal.
13) soon flashing again b182 was successful you reboot to system and perform from there another Factoryreset from settings /advanced settings /backup restore /Factoryreset with wipe of internal storage.
14) SIM Card must be inserted - you can leave it in your phone from beginning.
15) Just make a short setup and you will see: You receive now the OTA Update to Nougat
:cowboy:
 
Last edited:
May i instal this from b378?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

---------- Post added at 11:59 AM ---------- Previous post was at 11:56 AM ----------

I have rooted b378 with adaway viper4android can i install on them or i must update to b383?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

---------- Post added at 12:00 PM ---------- Previous post was at 11:59 AM ----------

Why rom is virus?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka
 

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
May i instal this from b378?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

---------- Post added at 11:59 AM ---------- Previous post was at 11:56 AM ----------

I have rooted b378 with adaway viper4android can i install on them or i must update to b383?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

---------- Post added at 12:00 PM ---------- Previous post was at 11:59 AM ----------

Why rom is virus?

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

Please read OP #1 before asking questions which are already answered :)
Well, you have to go back to Stock Firmware first. If you don't do this Rom will work too, but without Fingerprint Scanner.
Everything is working only if you are make the steps before flashing.
0) Backup your stuff
1) download the firmware and data zip from Links in OP for EVA-L09.
2) install it how it's mentioned in OP
3) Make the necessary wipes. (and only this - see OP)
4) Flash Magic-Rainbow

ROM doesn't have any Virus! It's on actual security Patch Level
 
  • Like
Reactions: scaniathe

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
I have stock but only rooted

Wysłane z mojego EVA-L09 przy użyciu Tapatalka

Yes, but you are on b378 and if you want to have full working nice Magic-Rainbow Rom, you must update to Stock b383 first as I have described in Original Post.
After you must do the Wipes I have told in OP.
Root is not necessary for installing my Rom

It's up to you... :)
 
  • Like
Reactions: scaniathe

ch.7amada

Senior Member
Feb 1, 2014
120
20
I installed the rom and it is amazing
Everything is working perfectly
Thanks for this amazing rom
One question: anyone knows where bootanimation.zip is located??
 
  • Like
Reactions: Tecalote

mihairimia

Senior Member
Apr 27, 2010
178
26
Thank you for the rom. I just installed it. I would like to flash magisk but I get an error on recovery as it cant be installed. Is there another way to do it?
 
  • Like
Reactions: Tecalote

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
i have stock B378 and rooted with boot.img. how to update with this magic-rainbow rom ?

Hello :) First thing you should do : Take the time to read slowly Original Post (OP) #1.
You will find the answer detailed for your question.

But in short words :
1) Download the b383 Stock Firmware related to your device which is linked in OP.
2) Backup your data and Apps and contacts etc.
3) Flash b378 Stock Recovery with ADB.
4) Unzipp downloaded Stock Firmware and update yours as described in OP to Stock b383.
5) After make the Wipe which is described in OP (and not another)
6) Flash Magic Rainbow :)

I wish you success :cowboy: and let me know and feel free to ask if something isn't clear
 
  • Like
Reactions: lorvix

Tecalote

Senior Member
Aug 6, 2015
4,119
3,150
62
Leipzig
Honor Magic4 Pro
Thank you for the rom. I just installed it. I would like to flash magisk but I get an error on recovery as it cant be installed. Is there another way to do it?

Of course, this Rom makes the Rooting with SuperSU, that's why you get the Error.
Some days ago I finished the development for this Rom. At this time, TWRP wasn't able to Root with Magisk.
But now it is!
I will release a Magisk Version of same Rom. But this week I have a lot of work - so I will do that probably during next week.
If you can wait for it :)
 
  • Like
Reactions: mihairimia

thecleanse

Member
May 4, 2017
27
3
Great

Amazing rom ... all running perfectly for me.
K-setting is a great plus.
I'm testing all its features :)

Happiness is here.
Thank you for your hard work.
 
  • Like
Reactions: Tecalote

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    magic-rainbow-png.566584

    Huawei P9 Custom Rom

    *MagicRainbow*
    Version Two
    Magisk Edition and Classic Edition​
    Teamwork by Tecalote and KangV
    461631-0a479047b7ce571665456c8d66dbaf16.jpg

    based on Android 7.0 (N) EMUI 5.0 European Firmware b386

    Projekt-_Magic-_Rainbow.png


    I'm happy to present you my new ROM :cowboy: It is tested and works without any problems on EVA-L09 C432 and EVA-L19 C432.
    Other models must be tested first, which Firmware is required to get Developer Options and Fingerprint to work. Please report!

    German-Thread:https://www.android-hilfe.de/forum/root-custom-roms-modding-fuer-huawei-p9.2808/huawei-p9-rom-android-7-0-emui-5-0-magicrainbow-v2-by-tecalote.829450.html

    1) Difference between Magisk and Classic Edition:

    • The Magisk Edition was made to have a safteynet capable device that still offers much more features than a Stock Firmware ... It has the same features as Classic Edition, but with the difference that you can bypass safeteynet .... Apps such as Pokemon Go, various banking apps and others - which does not work anymore on rooted devices should work in this Rom :cool:

    481274-98e1405032eb2f2b15c2de08e5d92b67.jpg

    • The Classic Editon is rooted with SuperSU and has the same features, but safteynet cannot bypassed. However, who does not run apps on this "questionable" service will have the same joy with this Rom;)
    481275-35dd9c522a804364be84eebfb591a936.jpg

    2) Requirements for MagicRainbow - short overview:

    Basically: You must already be on Android 7 (Nougat), Bootloader must be unlocked, latest TWRP flashed with special settings (explained below)
    A) Your device must not be rooted for installing this ROM - it is even better, if you start from clean original Huawei Stock Firmware.
    Firmware-Requirement:
    EVA-L09 C432 and EVA-L19 C432 need original Huawei Firmware b386 installed (flashable Firmware available - see below). But b386 is not for all other cust and models avilable!
    EVA-L29C636 and EVA-L19C636 has currently only b361 as flashable Firmware available. Higher Firmwares comes only with OTA.
    You should be with the Firmware for your device nearly to b386 - if not then Fingerprint may not work and perhaps not the Developer Options (which is very important for this ROM to work properly)
    B) If you are on Stock Firmware and your device is rooted, backup your stuff, unroot your device and make a factory reset.
    C) If you come from any Custom Rom like MagicRainbow v1 (based on b386) or @dkionline BlueWei - you must go back to original Huawei Stock Firmware b386 (see section 4 - How do flash firmware) It is not enaugh, just wipe with TWRP and flash the Rom!
    D) If you are on Stock Firmware b387 (make just unroot - if you have Root - and do a factory reset) - but I think you can install this Rom just with the Wipes and without going back to b386


    3) Flashable Firmware b386 c432 (for EVA-L09 and EVA-L19):

    4) How to flash Firmware - or GOING BACK TO STOCK:

    The simplest, preferred method to flash b386 (In accordance with your device and model!) can be done with TWRP - whether you come from the b383 or b387, or from BlueWei or MagicRainbow v1 - but note, you cannot use this method to update from Android 6 to Android 7:


    • 1) Backup your apps with data (only User Apps, no System Apps, no Chat-Apps - Chat Apps should not be restored - but new installed with Playstore and new registered, use integrated Backup from Chat-Apps)
      2) Backup all important files and folders from your internal memory (DCIM, WhatsApp folder, Downloads etc)
      3) delete you Fingerprint and Google Account
      4) Copy update.zip and ...hw_eu/update_data_full_EVA...zip to your external SD (dont unzipp it and dont do it into dload folder)
      5) Bootloader must be unlocked
      6) Make sure that you enable in developer options OEM Unlock and 2) ADB Debugging and 3) USB Debugging - in this order (if its not enabled yet)
      7) TWRP must be installed
      8) Flash with TWRP (Huawei Firmware) update.zip - after it is flashed do not reboot - go back to main menu
      9) Flash with TWRP hw_eu/update_data_full_EVA...zip - after it is flashed do not reboot - down in the left corner klick on "wipe dalvik and cache"
      10) Do not reboot - go back to main menu - use Tab: Restart - but do not restart system - RESTART RECOVERY
      11) You are now in Huawei Stock Recovery - from there make 1) Wipe Cache Partition and 2) Factoryreset and 3) reboot to system
      12) Huawei Stock Firmware b386 is succesful installed :good:

      13) I would recommend to flash now the Firmware b386 once again, but now with dload-method. For this you must 1) unzipp update.zip on PC and 2) unzipp hw_eu...data.zip in a separate folder.
      14) Make a folder on your external SD with the name: dload - Copy first the unzipped file from update.zip into this folder - but ONLY the UPDATE.APP (not the other files)
      15) With VOL+ and VOL- (press in the middle down) and PowerButton flash b386
      16) After restart to system, delete update.app in dload folder and copy now the unzipped files from hw_eu...data.zip into dload folder - but now you need ALL files (update.app, META-INF and the data folder)
      17) flash it with the 3 Button Method

    5) Important information for using this TWRP:

    Made by @OldDroid v 3.1.1-1 (currently latest TWRP): https://www.androidfilehost.com/?fid=961840155545586361
    A) Setup new flashed TWRP: allow system modification,
    B) Open Settings Tab and configure the settings for your needs - example: I uncheck "prompt install TWRP app", I disable vibration and expand the screen timeout to 300 for seeing what TWRP shows me on screen, I set time zone and language...
    C) Important in settings on last Tab - uncheck /disable "keep vendor partition mounted" - but leave ]enabled "exclude OEM-Path from data-wipe"
    D) Have a look in main menu into Mount-Tab - For flashing Stock Firmware as shown above and for making Nandroid Backups with TWRP - you must not change anything in Mount!

    E) But later, if you are ready to flash the ROM and you are going to wipe the partitions (explained below) - Immediately after the Advanced Wipe - before you want flash the ROM - you must go in main menu to: MOUNT and uncheck/disable everything in Mount - with the exception "Micro-SD" (this must be mounted!) If you dont do this step after wipe, before flashing ROM - the Rom would may not be flashed properly - and if so, it cannot work properly!!

    481271-25cd251761e0315664663acfbc7491d6.jpg

    6) Installing ROM

    If you have MagicRainbow.zip already on external SD, do following steps:

    • Note: if you want boot sound to be played back in the future, then sound must be switched on before installing the Rom - if phone is in silent mode, there will be no boot sound in the future. Phone remembers the last status and this can not be changed afterwards!

    A) In main menu of TWRP go to Wipe - do not use Factoryreset, use instead the Advanced Wipe
    Wipe ONLY following partitions:
    Dalvik / Art Cache
    cache
    Data
    system

    Do NOT wipe: vendor, internal memory, micro-SD
    481253-5c2efafe54562fa65ecd9bd568f08bd7.jpg

    B) After wipe you navigate back to the main menu and open: Mount - uncheck all with the exception of Micro SD card! This is an important step - (especially vendor should not be mounted), since otherwise there will be errors in the installation. My script mounts itself, what it needs :)

    481270-89f9df5003e2ca18490babedadd98e39.jpg

    C) Then navigate back to main menu and go to Install Tab - select MagicRainbow.zip and swype to flash
    D) After flashing ROM, do not make a Wipe from Dalvik / Cache, just reboot. Reboot is relatively fast, but of course, the first boot takes a lot longer than usual - about 9 min

    Differences during first boot: Classic-Edition interrupts the first boot process due to systemless rooting by SuperSU 2.82 SR1 and boot again - the Magisk edition does not need this additional loop.


    7) Important for Magisk and Safetynet:

    A) If you receive a root request during the first setup with Magisk Edition, please affirm it - no matter how strange it may seem to you!
    B) After first setup dont open Magisk Manager and - before you doing anything else - go to settings and activate developer options.
    Inside enable 1) ADB debugging and 2) USB debugging
    ( in this order! - not the other way)
    C) After got to settings / expanded settings and enable in security: "unknown sources"
    D) Immidiatly restart your P9 - this is an important step to keep safetynet green. After reboot you can open Magisk Manager.
    E) Do not change anything in the settings or in the preinstalled module of Magisk - it is already set everything correctly! Also dont download module which you dont know for what they are and what they doing...
    But I would recommend to download and install following two modules: Huawei Safetynet Fix and BusyBox 1.27.2
    Please do it with following instruction: https://xdaforums.com/showpost.php?p=73733872&postcount=564
    F) Do not activate in Magisk Manager settings systemless hosts!
    AdAway does not need this setting to work!
    G) Start AdAway, download and activate hosts and reboot your Phone. After reboot open AdAway again, hosts are not activated yet, download hosts again and reboot your Phone a second time. Now hosts are activated (green) and safetynet stays also green.

    It is not much to say to the Classic Edition, which you know already from MagicRainbow v1 b383 - but 1) ADB Debugging and 2) USB Debugging USB must also be enabled after the first setup and then restart the device before you do anything else! If you open AdAway and download and enable hosts, reboot your Phone. After reboot open AdAway again. If hosts are not activated yet, install again hosts and reboot. After it will work, cause its configured by an init.d script.


    8) Important information to PMPlus:

    The app PMPlus activates "auto-launch" on second page in the Phone Manager - so you have a very powerful Autostart Manager, which would otherwise not exist. This is optional, however - if you want to be sure that everything works smoothly, and does not want to adjust everything manually here, leave your fingers off. Note: If auto-launch is activated in phone manager, you can not undo this change, just by reinstalling the Rom!
    Whoever wants it anyway:
    A) Simply start PMPlus and go to Install, after succesful installed messeage, close this app! Autostart Manager is activated now in Phone Manager!.
    B) You can then delete the app PMPlus.
    C) But please note : All Autostarts are set to 0 and you have to manually enable the most important apps in auto-launch
    D) Magisk Manager must be enabled in auto-launch, in the Magisk Edition - if you do not enabel, Root cannot work!
    E) SuperSU must be enabled in auto-launch - in the Classic Edition - if it is not enabled, Root cannot work!
    F) In both Roms Chat-Apps which should receive push notifications - must be enabled in auto-launch - and some apps must also enabled in "App activation" - which is a part of "auto-launch"


    481272-e9632e4a6bdff6f7fa099b9a86a3b6aa.jpg

    9) Features and Information:

    • Callrecorder - for manual and automated call recording
      Viper4Android - Advanced Settings /more settings / Viper4Android Installation-Pool from here you can install: None, old viper and new viper - after reboot you have the App Symbol on Homescreen. Open it to configure Viper4Android.
      Classic Edition ROOTED with SuperSU 2.82 SR1
      Magis Edition ROOTED with Magisk 13.3
      AdAway as ad blocker - look at Point 7 for further information
      BusyBox 1.27.1
      System deodexed
      KangV-Settings (Advanced Settings on Homescreen) in nougat style - with the 4in1 restart menu and much more ....
      Titanium Backup - you can use external SD with storage SD-Card and dont need Document Provider
      MiXplorer - powerful Root Explorer which comes with PDF Reader, VLC Codecs and Archive Plugin, change language in settings
      Debloaded - almost GApps from system removed - but Core GApps are integrated - so dont flash any GApps - you can install missing GApps with Playstore.
      Callrecorder.png

      464517-09769d38687429e6650c7b3de23ca4c4.jpg


      Viper4_Android.png

      Full access to the external SD You can work on external SD with enabled Full Permissions - Example: TitaniumBackup automatically selects the external SD as the preferred location.
      Optional: Path to the internal memory interchangeable with the external storage! To do this, you only need to use MiXplorer and navigate to /data. There is a file with the name: SDPath - open this file with text editor of MiXplorer. At the moment, the internal memory is set as default (ext_SD = 0). If you change the entry to: ext_SD = 1 and save it, all apps will only use the external storage after one-time reboot. Before you install apps like WhatsApp, think about it. Because if you like that all Apps store media and everything only on your external SD then enable this option. Example: The folder of WhatsApp will be created automatically on external SD ....

    Pfad_zu_extern_ndern_5.png

    10)Disable Statusbar Lunar:

    The Rom is European, but the Advanced Settings are made by KangV. He comes from China, thats why the Lunar component is built into Advanced Settings (these are the only Chinese letters in this Rom). To disable the chinese letters, go to Advanced Settings /Notification settings and disable the checkmark "Show statusbar lunar"
    One known BUG: Do not use the "hide navigation bar" in Advanced Settings, it works with chinese models like AL10 - but not europaen models at the moment.

    11) Restore orignial Huawei Bootanimation (if you dont like my integrated one):
    Flash this zip with TWRP: https://xdaforums.com/attachment.php?attachmentid=4262925&d=1504567957
    Information: https://xdaforums.com/showpost.php?p=73667280&postcount=541


    12) DOWNLOAD *MagicRainbow* ROM v2:

    P9-b386-MagicRainbow_Classic.zip: https://www.androidfilehost.com/?fid=889764386195921575
    MD5 (please check after download): b350f2a37c88bd31c8373c57a4012344

    P9-b386-MagicRainbow_Magisk.zip: https://www.androidfilehost.com/?fid=889764386195921598
    MD5 (please check after download): 1587eeb1575d252f265f852ef3026dfa


    Previous Version - MagicRainbow ROM v1 (based on b383, SuperSU EMUI 2.79 installed):
    Requirement before installing this ROM:
    EVA-L09 C432 and EVA-L19 C432 need Firmware b383 installed
    EVA-L19 C636 need Firmware b381 installed
    EVA-L19 C185 need Firmware b385 installed
    P9_b383_Magic-Rainbow_v1.zip:
    https://www.androidfilehost.com/?fid=457095661767158149
    MD5: 7c81a2684f45e0615972f12197552635
    After first setup you must update SuperSU to Version 2.82 EMUI: https://www.androidfilehost.com/?fid=673368273298962637

    :cool: HAVE MUCH FUN WITH THIS ROM :)

    438081-f3dc149a662ce7517283231f8b0ab954.jpg

    Many thanks to KangV for his great K-Settings Framework :cool:

    If you like Advanced Settings by KangV - you can donate him:KangV: https://www.paypal.me/KangVIP

    If you like *Magic-Rainbow* ROM, you can spent me some glass of wine :) https://www.paypal.me/Tecalote

    Many thanks and credits to other great Developers:

    @OldDroid - TWRP with DECRYPTION SUPPORT for P9 https://xdaforums.com/p9/development/twrp-t3565703

    @guitardedhero(Viper/Atmos) https://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137

    @HootanParsa (MiXplorer) and @YashdSaraf (BusyBox arm64)

    @kishorerprem - SDCard-Write access

    @Chainfire - SuperSU

    @topjohnwu (systemless Xposed Framework and Magisk)

    @dkionline - Custom Roms for P9

    @Blackball - Custom Roms for P8 - P9 - P 10

    @mr.mrcn - Dark Bloom for EMUI 5.0 Theme

    :cool:


    [/LIST]
    11
    If you have in "About phone" build-number EVA-L09 or EVA-L19 b182c900 you dont receive the OTA Update to Nougat. You must change it to b182c432.
    Here is described, what you have to do - please make every step careful and dont worry!

    For EVA-L09 download this file: [url]https://www.androidfilehost.com/?fid=457095661767158957[/URL]
    MD5 (please check after downloading): 21a70ae3b07b72277bf935bf4ed90320

    For EVA-L19 download this file: [url]https://www.androidfilehost.com/?fid=817550096634767353[/URL]
    MD5 (please check after downloading): 838d9634e22acce029c383ec780dd745

    And you need for changing OEMinfo on b182 TWRP for Android 6 (not the one from OP = for Android 7) Download it here: [url]https://www.androidfilehost.com/?fid=457095661767122229[/URL]

    Steps:
    1) Your Bootloader must be open! Backup important files or folder from your internal memory (cause it will be completely wiped, except external SD will stay untouched)
    2) Firmware b182 must be in dload folder (update.app 3,06 GB) Take the one for your device For EVA-L09 download full Firmware b182: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1079/g104/v63880/f1/full/update.zip
    EVA-L19 can use same b182 - the Firmware works for both.
    3) Unzipp oeminfo.emmc.zip - you get: oeminfo.emmc.win - this is the file what you need!
    4) Store this file in following path on root of your external SD: \TWRP\BACKUPS\SNxxxxxxxxxxxxxx\C432\ (SNxxx folder must named with Serial Number of your phone and inside this folder copy the oeminfo.emmc.win
    5) Enable Developer Options in Settings, go inside and enable OEM Unlock and USB-Debugging - after go to Advanced Settings /Security and allow "Unknown Sources"
    6) Connect your Phone with USB to PC and wait until Windows installs the driver.
    7) With Minimal ADB and Fastboot program for PC in administrative mode - boot the phone into fastboot mode and flash TWRP for Android 6.

    https://www.androidfilehost.com/?fid=457095661767122229
    (TWRP img must be in Minimal ADB and Fastboot Program Folder. You start the Program with right click as Administrator. You enter
    adb devices
    - you should get your SN and device. If on the screen pop up a request to allow connection, grant permission for always from this PC. Now:
    adb reboot bootloder
    -phone restart into Bootloader /Fastboot Mode. Bootloader must be unlocked and FRP unlocked.
    You enter:
    fastboot devices
    - and get SN device, then
    fastboot flash recovery Name-of-TWRP.img

    8) If TWRP is succesful flashed disconnect USB from your Device and boot immidiatly after into TWRP. For this press Vol+ and Power Button. Stay holding this position until TWRP is booted (can take some minutes)
    When TWRP is booted, allow Write Permissions for system.
    9) In main menu and choose the button: RESTORE
    10) Navigate to the C432 folder and restore oeminfo. (from folder C432 !) This changes oeminfo from b900 to c432!
    11) Go back to main menu and reboot your phone - but not to system. You must press Vol+ and Vol- (in the middle) down until EMUI Software Installing begin and b182 will flashed again (it must be in dload folder!) If you see on screen text with red colour - ignore it, just press Vol+ and Vol- down, if it does not help, press also Power Button to reboot, but keep pressing Vol+ and Vol- because b182 must flashed again on this point!
    12) If it was not successful and you receive after reboot a white screen and you will be promted to enter "the" password, dont worry, just use your password for Google. Phone reboots and make a factoryreset with EMUI low-level wipe. TWRP will be overwritten with Stock Recovery. Thats normal.
    13) soon flashing again b182 was successful you reboot to system and perform from there another Factoryreset from settings /advanced settings /backup restore /Factoryreset with wipe of internal storage.
    14) SIM Card must be inserted - you can leave it in your phone from beginning.
    15) Just make a short setup and you will see: You receive now the OTA Update to Nougat
    :cowboy:
    6
    just give me beta, im not afride from bugs, bricks, got experience and easy can revieve phone if somthing going vrong :) cant wait anymore for v3 :p

    It looks like it has no bugs. :)
    Five people has tested (inner circle) - so it will come very soon.
    I make a new Thread for some necessary information.
    So I think it will be online on Tuesday next week.
    :eek:
    6
    MagicRainbow v3 is final
    I made the German Thread today and I make the Thread on xda tomorrow. I had some last changes to make today for the ROM -
    Example: There is a FIX inside of SuperSU Edition for Xposed Framework to stay alive and I made data-patch-files for different models and cust ... and so on....


    So if you cannot wait until the new Thread is online on xda - just go to the German Thread and read the instructions with Google Translator ;)

    https://www.android-hilfe.de/forum/root-custom-roms-modding-fuer-huawei-p9.2808/huawei-p9-rom-android-7-0-emui-5-0-1-magicrainbow-v3-by-tecalote.859343.html
    5
    Update for MagicRainbow v2

    Its time to update some components in MagicRainbow v2

    Guide:

    • 1) Open Magisk Manager
      2) Uninstall "Universal Safetynet Module" - if you have it installed! - klick on recycle bin symbol and after restart your phone!
      3) With Restart Menu reboot to Recovery (TWRP) and flash Huawei-Safetynet-Fix-by-Macleod.zip and restart Phone - DONT INSTALL THIS MODUL FROM MAGISK-MANAGER DIRECTLY
      Download: https://www.androidfilehost.com/?fid=961840155545594407

      4) Open Magisk Manager again and install Osm0sis BusyBox 1.27.2 stable directly from Magisk-Manager
      See description: https://xdaforums.com/showpost.php?p=73750869&postcount=578

      The updates bring more stability to the Rom and solve some issues.
      Universal Safetynet Fix had the issue to identify your Phone as a Xianomi Device instead of P9....
      Busybox 1.27.2 is more powerful and let the phone work more properly. I have the impression Battery Life is even better.

      BTW: I am working on a new Rom, which will based on b396 . New MagicRainbwow v3 will be a complete Rom with all Partitions, not only system and boot - for more compatibility with different p9 devices. But dont wait yet too much, I am very busy and I want to make this new Rom in slow steps without pressure from waiting users :D
      Greetings to all and have a nice sunday :cowboy: