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

scaniathe

Senior Member
Jun 12, 2014
376
81
58
Wadowice
Same trouble.
Bootloader unlock
But can't install twrp b391 or b182 same result...
Strange
try flash twrp from linux manjaro live

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

---------- Post added at 08:20 PM ---------- Previous post was at 08:18 PM ----------

adb devices, adb reboot bootloader, fastboot devices when show device number fastboot flash recovery name. img. Remember. First reboot must be quick. Fast unplug usb cable and fast push 2 buttons :)

Wysłane z mojego EVA-L09 przy użyciu Tapatalka
 
  • Like
Reactions: Tecalote

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Just got notificatoon for Magisk Manager 5.4.0 (so far using 5.3.0), is it safe to install?

---------- Post added at 12:35 AM ---------- Previous post was at 12:13 AM ----------

Same trouble.
Bootloader unlock
But can't install twrp b391 or b182 same result...
Strange
Have you tried
fastboot OEM relock <code you got for unlocking>

and later to unlock the bootloader again
 
  • Like
Reactions: Tecalote

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Just got notificatoon for Magisk Manager 5.4.0 (so far using 5.3.0), is it safe to install?
Its absolutely safe to install ;)
 

Attachments

Phiver13

Member
Aug 3, 2016
45
3
8
Marseille
Just got notificatoon for Magisk Manager 5.4.0 (so far using 5.3.0), is it safe to install?

---------- Post added at 12:35 AM ---------- Previous post was at 12:13 AM ----------


Have you tried
fastboot OEM relock <code you got for unlocking>

and later to unlock the bootloader again
Yes i do
But now I can't unlock again :(
Bootloader and frp locked
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Any chance of ksettings in a flash zip for us stock users ?
If I would provide such a zip (which is always Firmware based - means K-Settings for b386 cannot work on b391) - you would not be longer on Stock Firmware.
Your Stock Firmware would be deep modified.
But it's not really possible unless you have odexed Firmware.
System must be deodexed for running K-Settings.
If you deodex your System and change the necessary files with flashable K-Settings - it would be easier to flash Custom Rom which has already integrated.

Perhaps the structure of MR v3 will be
1) modified Stock Firmware, slightly debloaded and system deodexed as usual
2) including all Partitions with Tweaks
3) KangV Mod as optional flashable zip.
4) One Edition with SuperSU 2.82 SR5 and perhaps with suhide light (new released one)
One Edition with newest Magisk
Xposed Framework installable, but with loosing safetynet of course
That's my plan :)
 

LiamAtkins90

Senior Member
Sep 26, 2013
909
308
93
Gorleston-On-Sea
If I would provide such a zip (which is always Firmware based - means K-Settings for b386 cannot work on b391) - you would not be longer on Stock Firmware.
Your Stock Firmware would be deep modified.
But it's not really possible unless you have odexed Firmware.
System must be deodexed for running K-Settings.
If you deodex your System and change the necessary files with flashable K-Settings - it would be easier to flash Custom Rom which has already integrated.

Perhaps the structure of MR v3 will be
1) modified Stock Firmware, slightly debloaded and system deodexed as usual
2) including all Partitions with Tweaks
3) KangV Mod as optional flashable zip.
4) One Edition with SuperSU 2.82 SR5 and perhaps with suhide light (new released one)
One Edition with newest Magisk
Xposed Framework installable, but with loosing safetynet of course
That's my plan :)

Thank you so much for your explanation, I will probably install the next version when it's released. I recently updated my device to N after my carrier (UK EE) did not provide even 1 update in one whole year :eek:
So I unbranded and used FF to update to B391 :)
I recently had trouble with Xposed, possible clash with the theme engine.. not looked into it yet.
Thanks again my friend, will be eagerly awaiting your next installment. ?
 
  • Like
Reactions: Tecalote

LiamAtkins90

Senior Member
Sep 26, 2013
909
308
93
Gorleston-On-Sea
Cus I a newbee and I don't know what are those things. But I just want a custom rom which is better performance than stock one.
Not necessarily.... The difference is marginal..
You can do stuff like zipalign with a simple script.
AOSP on the P9 is somewhat broken and the camera is naff.... So the best option is stock or stock based ROMs.
Back to topic, if you have a recovery it's easy to get things moving just make sure to backup everything prior to modding.
If you want to flash this ROM just follow OP instructions,
If you want to debloat and install X like I mentioned, download an app called System App Uninstaller which is pretty straight forward on what you can uninstall without leaving the system unstable... And grab Xposed from the official thread (with the uninstaller zip) and APK file and follow them steps. :D it's less work going the Xposed + debloat way, but at the end of the day it's your choice and I don't want to take anything away from the Devs work he's done a fantastic job.. it's just a pain that Huawei make us jump through all these hoops to get the device to be mod friendly. :)
 
  • Like
Reactions: tuilakhang

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Can I flash it from L19C636B391?
Hi there :)
b391 is EMUI 5.0.1 and the Rom is based on EMUI 5.0.
It is questionable if this would work - I don't think so.

For the moment it is better for you to Root your Firmware and do some customization by yourself (similar as @LiamAtkins90 mentioned)
Your Bootloader must be open
For Root just flash TWRP: https://forum.xda-developers.com/p9/development/twrp-t3565703
and then SuperSU SR5:
http://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip

or alternate Root Magisk
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Finally flash Busybox:
https://forum.xda-developers.com/attachment.php?attachmentid=4252596&d=1503713259

Sometime in the coming months I will release a new Rom MagicRaibow v3 and this can be flashed even on your model

MagicRaibow v2 is from August 2017 and I haven't the time to create every 3- 4 months a new Rom , but I am working on a pretty good new Version. ;)
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
I want to try xposed, but I think I better wait sitting and with a little patience
I heard from several Users, Xposed has some bugs on P9. For some reason it might work, for other not. After some small changes (like change Design with Design App) and after some reboots, Xposed Installer says "Xposed installed, but not active"
And some other issues.
So it seems v88.1 isn't stable working yet.
Perhaps the systemless variant is better.

But you can try. If it doesn't work for you, you can flash Uninstaller.zip.

If you are rooted with SuperSU, you need the classic variant of Xposed Framework.
1) Install Xposed Installer apk
https://forum.xda-developers.com/attachment.php?attachmentid=4296364&d=1507476413
2) Flash this Xposed version:
http://dl-xda.xposed.info/framework/sdk24/arm64/xposed-v88.1-sdk24-arm64.zip
3) Before Reboot wipe Dalvik and Cache (first reboot needs longer time to create new Dalvik)
4) With Installer apk you can download and manage modules
If Xposed don't work properly you can deactivate module and flash uninstaller.zip
http://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20160829-arm64.zip
I recommend wipe Dalvik and Cache after.

If you are rooted with Magisk
1) Install special Xposed Installer apk for Magisk:
https://forum.xda-developers.com/attachment.php?attachmentid=4297539
2) Open now Magisk Manager and in Download Section, download and install Xposed Framework SDK24 v88.1 ported by topjohnwu - or you can instead flash with TWRP the zip:
https://forum.xda-developers.com/attachment.php?attachmentid=4301304
3) I recommend to wipe Dalvik and Cache after
First Reboot needs a while
4) With Xposed Installer you can download and manage modules

If systemless Xposed doesn't work properly for you deactivate module with Xposed Installer and uninstall Xposed Framework directly from Magisk Manager, Section modules
I recommend wipe Dalvik and Cache after.

Xposed Framework breaks safetynet even if you uninstall Xposed Framework.
If you want have green safetynet back you must reinstall the Rom (or if you are on Stock - the Firmware) :)

Magisk Xposed Thread by topjohnwu:
https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268

Classic Xposed Thread by rovo89:
https://forum.xda-developers.com/showpost.php?p=58828974&postcount=1
 
Last edited:

dfani511

Senior Member
Jan 12, 2012
65
2
28
Hello, I have an EVA-AL29 P9 china with 64GB+4GB ram , I didn't find a way to change oeminfo to EVA-L29, I installed some firmware of L09 and I think I change oeminfo to some L09 .
I used for a while with fRomFuture NW4 but sometimes it gets freeze and reboot :(.

Can you help me to install Magic-Rainbow please ?
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hello, I have an EVA-AL29 P9 china with 64GB+4GB ram , I didn't find a way to change oeminfo to EVA-L29, I installed some firmware of L09 and I think I change oeminfo to some L09 .
I used for a while with fRomFuture NW4 but sometimes it gets freeze and reboot :(.

Can you help me to install Magic-Rainbow please ?

Best thing would be to find oeminfo from EVA-L29C636
Please wait for MagicRaibow v3.
I will make it compatible with this model.
In the moment you can't install MagicRaibow, because you must go back from FF NewWorld to Stock Firmware with oeminfo I said, otherwise you would not receive Nougat OTA.
And Android 7 is required.
 

LiamAtkins90

Senior Member
Sep 26, 2013
909
308
93
Gorleston-On-Sea
I want to try xposed, but I think I better wait sitting and with a little patience

Xposed is buggy with the P9 but Gravitybox works (centre clock, navbar button actions, volume rockers, haven't tested anything else,) adway and YT adaway work, Amplify works too.... It does give errors when rebooting, to fix this, just untick the modules before rebooting and retick them and reboot again... Only way I've found to get from the "installed but not active" toast, without actually flashing the Uninstaller and starting over... This way above, preserves your modules settings etc.. not ideal, but not a deal breaker.