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

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
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.
There's a similar workaround:
https://forum.xda-developers.com/showpost.php?p=74143506&postcount=1065
 
  • Like
Reactions: LiamAtkins90

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
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.
By (GravityBox) Volume rockers, do you mean using Vol +/- to skip next/prev song while playing music in the background?

I'm using Frinky MusicController from GooglePlay, it does not require root or so and it works fine with both YouTube (playlists) and Music

I"m on this MR v2 Magisk Ed and the other tweaks can be (more or less) substituted:
- AdAway (only root needed), iYTBP Magisk module (both YT adaway and playing YT in background)
-‎ native Huawei and K-Settings for navigation bar and status bar icons
- ‎ForceDoze (only root needed) and (I tried but stopped using it) EnableDozeForGMS Magisk module to tweak doze mode
- K-Settings to flash (Camera flashlight) on calls and SMS, or even FlashOnCall app from GooglePlay (it can be configured to flash also on e.g. WhatsApp)

Btw, fact that Xposed breaks SafetyNet does not bother me that much, I'm not using any SafetyNet sensitive application.
The need (as you described) to disable/enable Xposed before/upon rebooting is not convenient but not that terrible, too.

Mostly, b391 is teasing me but I'll wait for MR v3, hoping we can get it before XMas v3:laugh:
 
Last edited:
  • Like
Reactions: jonathanhenry81

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
The need (as you described) to disable/enable Xposed before/upon rebooting is not convenient but not that terrible, too.

Mostly, b391 is teasing me but I'll wait for MR v3, hoping we can get it before XMas v3:laugh:
Hi there :)
You can also use the alternative workaround from my previous post.

MR v3 should come before XMas ;)
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
I've updated Magisk to 14.0 and Magisk Manager to 5.4.0. Now phone not passes SafetyNet test :( Am I idiot? What can I do now?
Updated both of them last ten days (Magisk v14.0, Manager v5.4), SafetyNet and everything working fine
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
How can I back to stock B186? Just flash B186 via DLOAD?
Do you mean b182 (MM) or b386 (N, Magic Rainbow is based on) or really some b186

IMO, @Tecalote has answered on similar questions (for going back to stock b386), you can search through the older posts
For b386, I would flash it's stock boot image (and stock recovery) before DLOADing FullOTA MF-PV b386
 
Last edited:

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
I've updated Magisk to 14.0 and Magisk Manager to 5.4.0. Now phone not passes SafetyNet test :( Am I idiot? What can I do now?
1) Make sure - A) ADB Debugging and B) USB Debugging is enabled in Developer Options and make sure - Unknown Sources is enabled in Security Settings
2) Open Playstore and disable Play Protect (you can find it before settings)
3) Make sure - systemless hosts is NOT enabled in settings section of Magisk Manager and force encryption and dm-verity is NOT enabled on first window of Magisk Manager
4) Go in Magisk Manager to Download section and download/install Busybox for Android NDK 1.27.1 (is same v but updated!) Reboot phone.
5) Delete in Magisk Manager Huawei Property Fix v 1.1 - and flash instead with TWRP the updated Huawei Property Fix v 1.2: https://drive.google.com/open?id=0B2D9GdWntw69NmdJVmhJaWNEOVU
6) Delete in Magisk Manager SELinux Permissive Script v 1 and flash with TWRP instead the updated SELinuxPermissive Script v 1.1 : https://forum.xda-developers.com/attachment.php?attachmentid=4287949&d=1506775762
7) Check safetynet status - if it works :good: You must not do more steps, but...
8) If it doesnt show now ctsProfile and basicIntegrity: tru - download and flash with TWRP updated Universal Safteynet Fix: https://forum.xda-developers.com/attachment.php?attachmentid=4265013&d=1504747397


How can I back to stock B186? Just flash B186 via DLOAD?
If you want to go back to b386 - open first post with your Browser (not with xda labs Forum app) and read 3) Flashable Firmware b386 c432 (download-Links) and 4) How to flash Firmware - click to show content. It is a full guide - dont miss any steps.
You should backup first your files from internal memory (DCIM, Downloads etc) and backup your stuff (Apps etc) - and after you can flash b386 with TWRP (recommended, because something which is deleted in MR v2 will not be restored if you are using dload method first) - do it first with TWRP-Method and after once again with dload method like @zgfg mentioned.
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
From
https://forum.xda-developers.com/showpost.php?p=74334660&postcount=60

safetynet check success
ctsprofile: false
basicintegrity: false

oh noes :(

playprotect says tis all good, turned it off for a good measure

all i have under magisk modules are:
busybox (installed 1.27.2 myself)
huawei property fix
magisk selinux permissive script.

not even sure where to go to enable viper4android.

u know what? i will just try the banking app with my own sim. if it works, i am calling it a day.
@Buratei, for ctsprofile and basicintegrity, you must have done something wrong, I hope @Tecalote could help you

On page 1, under 9 Features, see instructions how to enable V4A from the Advanced (K) Settings
 
Last edited:

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
  • Like
Reactions: Buratei

RandomQuezoPH

Senior Member
Sep 29, 2016
79
12
0
-
Guys, can you please tell me if is it safe or maybe lose something when I want to factory reset so I can reinstall apps again and have a freah MagicRainbow Rom again? Thanks in advance :)
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Guys, can you please tell me if is it safe or maybe lose something when I want to factory reset so I can reinstall apps again and have a freah MagicRainbow Rom again? Thanks in advance :)
Factoryreset isn't a good idea, you will loose several things which come preinstalled with data in the Rom.

Just delete Apps from settings you don't want /or want reinstall and make only a wipe of Dalvik and Cache with TWRP.

Or you can make a clean flash of the Rom again and reinstall after the Apps. For best results this is the better way - beginning completely new.
 
  • Like
Reactions: RandomQuezoPH

RandomQuezoPH

Senior Member
Sep 29, 2016
79
12
0
-
What will happen if I will delete internal storage during installing rom again? Cause I want to have that clean internal storage unlike now that it's messed up because of my last usage.
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
What will happen if I will delete internal storage during installing rom again? Cause I want to have that clean internal storage unlike now that it's messed up because of my last usage.
You should not wipe internal storage during Rom installation.
You can do it with an separate step.
Example:
If you have right now your current system, just boot to TWRP, go to wipe /advanced wipe and select only internal storage and wipe it.
After reboot phone to system. Then boot again to TWRP and allow system modification and do settings in TWRP.
TWRP store his settings on internal storage. After wipe internal storage the settings are lost and must be set new.
That's why it is not good to do it during Rom installation, it produces errors.
But it's no problem to do it as an separate step.
@zgfg Internal storage will not be cleaned with dload Firmware installing.
But internal storage get wiped with flashing FullOTA-MF-PV by TWRP
 
  • Like
Reactions: RandomQuezoPH

Buratei

Senior Member
Sep 12, 2012
152
16
0
thanks guys, i think i had a wrong version of busybox installed previously. got it all sorted out pretty quick. didnt get to test the banking apps yet (switching to a new carrier, dont have the right sized usim yet), but positive they will work fine.
 
  • Like
Reactions: Tecalote