[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Huawei P9 Custom Rom - for EVA-L09 - EVA-L19 - EVA-L29 ​

​

*MagicRainbow*​

Version 4

as usual in two Editions:

Magisk Edition and SuperSU Edition​

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-1-magicrainbow-v4-by-tecalote.859343.html

I'm happy to present you my fourth version of MagicRainbow ROM for P9-EVA :cowboy:

Requirements:

P9 EVA-L09 - EVA-L19 - EVA-L29 - without mobile provider branding (like Vodafone)

unlocked Bootloader

minimum official Huawei background firmware b394

TWRP 3.1.1-1 by oldDroid - extended Version: https://www.androidfilehost.com/?fid=673791459329067086

Note: In Settings of TWRP on the last Tab disable "keep vendor mounted" but enable "Exclude OEM-Path from data wipe"

Phone must be encrypted because this ROM is based on EMUI (TWRP has encryption support) - if your data partition is decrypted, ROM cannot be installed properly because the script mount your data as encrypted. If you come from EMUI based ROM or official Firmware data is encrypted by default

Developer Options enabled, in these settings enabled OEM-Unlock and: A) ADB Debugging in charging mode - B) USB Debugging (in this order, or it will not stay enabled)

Changelog:

European Firmware b398 based for EVA-L09 - with patch.zips for L19-c432 – L19-c185 – L19-c636 – L29-c636 – L09-c636 – L09-c185 Note: EVA-L09 need no patch, but the other models/cust need this patch immediately after flashing the Rom without Reboot to system - but with reboot of TWRP (for fixing the mountpoints after ROM installing)

Magisk-Edition: Magisk v16 - preinstalled modules (required):SELinux Permissive-Script 1.2 - Busybox 1.28.1 by osmOsis - Huawei Property Fix 1.3 - KernelAudiutorReborn allows to emulate init.d

Safetynet-Workaround look in the description for Magisk

SuperSU-Edition: SuperSU 2.82 SR5 - init.d Support - modified launch_daemonsu.sh for SELinux Permissive - BusyBox 1.28.1 by osmOsis

"Advanced Settings" - made personally by KangV well known as "K-Settings" - ported in MRv4 from chinese Firmware b399 - optional flashable zip separate for SuperSU-Editon and for Magisk-Edition - please support this project in credits section. These settings allow you the maximum of customization. In SuperSU-Edition you can enable in Advanced-Settings /more settings/Xposed Framework last v89 by rovo89 (and of course, a lot of more...)

Note: If you enable Xposed Framework - after reboot (which takes bit longer than usual) you must reboot your phone once again (only one times) and Xposed will be and stay enabled (you can disable Xposed with same settings)

In Magisk-Edition this setting is not active

(cause it breaks safetynet)

To disable chinese letters after flashing this mod in statusbar - open Advanced Settings /Notification settings and disable "Show statusbar Lunar"

Known BUG: Dont use "Hide navigation bar" - it works only on chinese Brands.

In Europe you should not use: "Disable Google Services"

Note: Do not change DPI in developer options (this can brick your device) if you use KangV Settings - change DPI only with KangV Advanced Settings!

Note: Do not flash KangV-Settings before first reboot to System. You can do it after first setup, but dont change the EMUI Launcher to alternative Launcher (example: Nova Launcher) before you have flashed KangV-Settings (if you decide to use KangV Mod)

​

With KangV Advanced Settings PMPlusApp will be installed (this App dont work on Stock Roms) With PMPlus you can enable in Phonemanager (on second page) the feature: Auto-Launch It is a powerful Autostart-Manager (which can help you also to save battery) that gives you full auto launch control over all Apps - but you must manually allow them to start automatically or not, on boot or in the background.

Note: If you enable this mod - you must enable important Apps into auto launch, example: Magisk Manager /SuperSU must be enabled in "Auto Launch" - and additional in Secondary launch management!, if not you cannot manage Root-Requests! WhatsApp, Viber, Telegram - all these apps you must enable in "Auto Launch" or they do not work properly. Some Apps like Amazon needs also an extra setting in "Auto Launch, called "App secondary launch" (this will only be displayed if you use apps that need it)

To enable this mod open PMPlus, use install button, soon it is succesful installed - close PMPlus and uninstall this App. After open Phone Manager and on second page you will find "Auto Launch"

Note: This mod is not uninstall able, once enabled!

Both Edition of MRv4-ROM have modified services.jar - the maximum of acces to external SD is enabled (TitaniumBackup dont neeed "DocumentProvider" but can use Filesystem storage - Ext. SD Card)

App-Twin: more apps than usual are enabled for cloning (WhatsApp, Telegram, Skype and a lot of more...)

Only the main Google (Core) Apps are installed in system, all others are installed so that they can be uninstalled via Settings /Apps. Same with added Apps - all of them uninstall able via Settings /Apps. If you need more Google Apps you can install them with Playstore (dont flash any GApps)

Added: Facebook Lite and Skype Lite (both can work in 2G/3G and 4G and saves a lot of battery

VIPER4AndroidFX and Dolby/Atmos with preinstalled Driver

Some beautiful Designs included: IOS11 - Sky Blue - Galaxya - XDA Exklusive - AegeanSea - Blue Pixel - Mate 10 (Mountains)

Security-Patch-Level: 01.02.2018

Installation-Guide:

1) Your official Huawei Background-Firmware must be updated to minimal b394 (which is available for all models/cust) - for updating use please my Post from MRv3 #3: https://xdaforums.com/showpost.php?p=74913874&postcount=3

Note: Your Fingerprint HWEVA/xxx/xxx:user/release-keys (which you can see with apps like "My Device") on MagicRainbow v3 will show you ...b394 - but that does not mean your background official Firmware is b394 ! You see this information, because MagicRainbow v3 is based on b394 same as MagicRainbow v4 is based on b398.

But important is - which build was your last official Firmware. For example: If you had flashed MRv3 over MRv2 (which was based on b386) your background Firmware is b386 ! And this Firmware is too old and cannot be compatible with the Custom ROM MagicRainbow v4 which is based on b398. Custom ROM and Background Firmware should be similar the same build. Personally, I always update first to the last available firmware for my device before flashing my own Custom Rom :D

But if you have updated your Firmware to b394 - before you have installed MagicRainbow v3 - or if you come right now from Stock Firmware b394, b395, b397... then there is no need to update the firmware now and you can flash the MagicRainbow v4 directly - but with Unroot (if your Phone is rooted) AND with the neccesary wipes!

2) Before update your Firmware (or for clean flash) you must backup your apps and data (you can use Huawei Backup and/or TitaniumBackup - in every case make backup only from user-apps and not from system apps/components)

Backup also the important folders from your internal storage (WhatsApp folder, DCIM and so on...) - and copy them back to internal storage after updating the Firmware...

For Chat/Net-Call Apps like Viber, WhatsApp use inside Chat-Backup on GoogleDrive. If you reinstall these apps and registrate them new with your phone number, backup will be found automatically and you are able to restore chat-history.

3) For the next steps I now assume that your firmware is up to date Download now all Files you need - ROM.zip - patch.zip (if you need it for

different cust/model than EVA-L09c432

) - KangV-Settings.zip and copy it to your external SD.

4) Delete on your Phone your Fingerprint(s) and PIN(s)

5) If your device has Root - flash Unroot with TWRP - for Magisk: http://tiny.cc/latestuninstaller - for SuperSU flash UPDATE-unSU-signed.zip from this site: https://xdaforums.com/showpost.php?p=63615067

6) Go back to main menu in TWRP and use WIPE /Advanced Wipe - for clean flash wipe: Dalvik/ART-Cache, Cache, data, system, vendor - for dirty flash exclude: data from wipe

7) Flash ROM - next step (8) is only important if you have another model/cust than EVA-L09c432

8) If you have another (like L19c432, L29c636.....) - you must REBOOT TWRP now (TWRP /Reboot /RECOVERY) - dont reboot to system! After TWRP is rebooted, go to install and flash the RIGHT patch.zip which match your model/cust. (EVA-L09c432 dont need this step.) In every case: no need to wipe Dalvik/Cache after the flashings

9) Reboot phone (first start needs about 10 minutes) - dont flash KangV Settings before first Reboot to system

10) Setup your Phone - disable "send systemdata to Google" (save battery)

11) Disable “automatic system updates” in developer options (save battery)

Safetynet-Workaround in Magisk-Edition:

1) If you made clean flash - during first setup at the point you enable your Google Account - disable "sending system-data"

2) After first setup safetynet check with Magisk Manager will show you - ctsProfile and basicIntegrity=false - so dont check now :laugh:

3) Enable Developer Options and in these settings enable A) ADB Debugging in charging mode - B) USB Debugging (in this order, or it will not stay enabled)

4) Reboot your Phone - after reboot, cts-profile and basicIntegrity=true :cowboy:

- Now we go to make Playstore certified:

5) Open Playstore and disable Play Protect

6) SET YOUR PHONE INTO FLIGHT-MODE!

7) Open native settings /apps and (right down) more: Show system processes - click on every following app and delete in storage-section: cache and data (some of them show you: manage space - in this case use "Delete all data"):

Google App

Google Play services for Instant Apps

Google Playstore

Google Play-Services

Google Services Framework

Huawei ID or Huawei Mobile Services (which is the same)

8) Reboot your Phone

9) If you get a message after Restart "Your backup-account is not set yet" - DONT enable it now!

10) DISABLE FLIGHT-MODE NOW - and wait until you have full network-access (open Browser for testing)

11) Now you can enable your backup-account (message is shown in statusbar)

12) Open Playstore - If you are facing a problem when you open Playstore (showing just a blank site) - open Settings /Apps /Playstore /storage - but this time wipe only Cache inside, after Reboot your Phone. Soon P9 is restartet, Playstore should work proberly and it should be certified :cowboy:

13) If you are using Apps (like banking apps and so on) which requires safetynet - enable them in Magisk Hide - BEFORE you start these apps first time - after reboot phone and then you can start these apps first time.

Note: If you did all these steps and ctsProfile /or basicIntegrity is false (red) - one User of this Rom (L19c432) found a trick which solved his issue: https://xdaforums.com/showpost.php?p=75796309&postcount=595

14) If you use in Phonemanager "Auto-Lauch" (enabled with PMPlus - see description KangV Advanced settings) - you must enable Magisk-Manager in Auto-Launch and in Secondary launch management!

15) You can update to newest Magisk 16.1 using following method: https://xdaforums.com/showpost.php?p=75845280&postcount=87

Download ROM:

ROM - MagicRainbow-4_magisk.zip: https://www.androidfilehost.com/?fid=746010030569959046

MD5: c0856ddabf79312376ec5f90e52087ab

KangV-Settings_magisk.zip: https://www.androidfilehost.com/?fid=746010030569959103

MD5: 47ec7117a403af004e43c42cecde2b36

ROM - MagicRainbow-4_supersu.zip: https://www.androidfilehost.com/?fid=746010030569959091

MD5: 0ba05c096f4caa09afbe373d2986801d

KangV-Settings_supersu.zip: https://www.androidfilehost.com/?fid=673956719939824958

MD5: 4e197148bd00f4bb14ae7253d3f00a91

Download Patches (EVA-L09c432 dont need this!)

MD5-checksum is also shown on Android Filehost during download, please check your downloaded files if they match with this checksum.

Note: A very required point is - If you have another model/cust than EVA-L09-C432 and you must flash Patch.zip do it with following steps:

1) After flashing Rom - go back to main menu of TWRP, go to Restart /but NOT system - Restart RECOVERY

2) Then flash patch.zip and after reboot Phone first time. If you don't restart Recovery between, patch will not installed properly and some apps may not work then.

Information: I have decided to make new patch.zips because there are problems with safetynet (in the Magisk Edition). Once these are done, I will post the new links here.

L19-c432-patch.zip: https://www.androidfilehost.com/?fid=890129502657588204

L19-c185-patch.zip: https://www.androidfilehost.com/?fid=746010030569959118

L19-c636-patch.zip: https://www.androidfilehost.com/?fid=890129502657588206

L29-c636-patch.zip: https://www.androidfilehost.com/?fid=673956719939824987

L09-c636-patch.zip: https://www.androidfilehost.com/?fid=890129502657588201

L09-c185-patch.zip: https://www.androidfilehost.com/?fid=818070582850497993

:cool: HAVE MUCH FUN WITH THIS ROM :)

Many thanks to KangV for Advanced-Settings :cool:

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

If you like *Magic-Rainbow* ROM and want to support the project, feel free to donate :) https://www.paypal.me/Tecalote

Many thanks and credits:

[MENTION=4960686]OldDroid[/MENTION] - TWRP with DECRYPTION SUPPORT for P9

[MENTION=4445176]guitardedhero[/MENTION](Viper/Atmos)

[MENTION=4070451]HootanParsa[/MENTION] (MiXplorer)

[MENTION=631273]Chainfire[/MENTION] - SuperSU

[MENTION=4470081]topjohnwu[/MENTION] (systemless Xposed Framework and Magisk)

[MENTION=4900664]dkionline[/MENTION] - Custom Roms for P9

[MENTION=477335]Blackball[/MENTION] - Custom Roms for P8 - P9 - P 10 - P10Plus - Mate 9

[MENTION=4544860]osm0sis[/MENTION] – BusyBox for Android NDK

[MENTION=5787964] SuperR.[/MENTION] – Best Kitchen I have ever seen

:cool:

​

XDA:DevDB Information

MagicRainbow, ROM for the Huawei P9

Contributors

Tecalote

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 4.x

ROM Firmware Required: official Firmware b394 up to b398

Based On: EMUI (encrypted)

Version Information

Status: Stable

Current Stable Version: MagicRainbow v4.0

Stable Release Date: 2018-03-05

Created 2018-03-06

Last Updated 2018-03-14