yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
I would go back to Stock Rom (to the last original Firmware which you have installed before Rom - it was b398 you said)

Do it with HWOTA method from this post using b398 for c432 and L09:

https://xdaforums.com/showpost.php?p=74913874&postcount=3

Delete before your Fingerprint(s) PINs and all Accounts, also delete Google Account.

After Stock Firmware is booted to the system, make Factoryreset from settings with wipe of internal storage.

Make then short setup without any Account or Fingerprint.

Enable Developer Options and it there:

1) ADB Debugging in charging Mode

2) USB Debugging (in this order, not USB Debugging before ADB Debugging)

OEM Unlock nust be enabled.

Flash TWRP from OP - and do the steps from OP.

During setup you make now your accounts (Google, Huawei-ID) and if you like, Fingerprint.

Flash KangV Settings after the first Reboot and setup.

If you decide to change your Launcher, do it after flashing KangV Settings.

Wish you success ;)

Btw: Don't restore any system settings or System Apps from Backup of previous system(s)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
Thnx! I'll try this!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] PetoNHL:
https://xdaforums.com/showpost.php?p=75796309&postcount=595

after this "trick" my play store keeps crashing when i want check updates... any idea how to fix, without delete the fingerprint file? i already tried to delete cash and data but it didnt helped
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You must set your phone in flight mode, before you delete data and cache on Google Play Apps and Services (see Post #1 Safetynet Workaround)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] ferchachi:
Tested magisk Rom 2days with your instructions with no problems. it's a great and stable Rom with

Today I flash super su Rom with no problems too all seems to work well.

Have a question can I flash Magisk Rom over super su Rom? Or I must unroot my device first?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
AFAIK, you must install MR vX always from stock - to get clean results as you had.

You can easily go back to stock by flashing the corresponding HWOTA.zip
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] RandomQuezoPH:
Hisuite still works after flash?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You must Unroot (see OP Post #1 - update.unsu.zip flashing with TWRP.. )

I tested it from Magisk to SuperSU and back to Magisk - just do steps from OP
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Of course, why not?

But I do Backup always with Huawei Backup App on phone to external SD
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] scaniathe:
I install today. But i have problems. When i install hwotazip b397 i have black screen before bootanimation :( but i take factory reset lowlevel and everything is fine. I be on rooted b397 i unroot and factory reset after i reinstall hwotazip and black screen but now everything is ok. Rom working perfect.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] polosmoke:
Hi, I'm with stock rom 397, root and twrp. How can I apply the hwota method to 398 without losing the information I have on my cell phone?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] scaniathe:
Install and dont factory reset
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You can use Huawei Backup on Phone to Backup your Apps with data, and contacts, calendar, nearly everything to external SD.

Read from Post #1 (OP) Installation-Guide Point 2)

After setup MagicRainbow v4 you can restore with Huawei Backup.

But don't backup system apps or system settings (like Phonemanager or System UI..)

Backup also your important folders from internal storage (WhatsApp, DCIM, Downloads..) and copy them back to internal storage before restoring backup.

Chat Apps must be re registered - for WhatsApp and Viber Chat History you can make from inside app settings - Chat Backup on Google Drive - which will be found for restoring after new registration with Phone Number. Don't Backup and restore such apps, then Push Notifications will not work!

Telegram stores everything on his server..
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] polosmoke:
Ok, and apply hwota 398 and do not perform factory reset?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] ferchachi:
Can I flash dirty
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Yes you must perform Factoryreset from settings / advanced settings /backup restore /data factory reset /reset phone - with wipe of internal storage - if you like to have a full working good Rom without any issues...

I posted the procedure several times in the new Thread. :o
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Which Firmware to you have currently (Build Number) or which Custom Rom?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Newbies please read first Post #1 (OP)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] ferchachi:
It's done come back to Magick Rom, I did clean install, and it's OK new all seems working fine thanks for your support
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Magisk Update to v16.1

Important information to all Users of Magisk Edition - Update by [MENTION=4470081]topjohnwu[/MENTION] is ready:

1) Open settings /apps /Magisk Manager /permissions - make sure Magisk Manager has allowed Permission for storage - after close all open Apps in the background.

2) Open Magisk Manager - you should get notification for updating Magisk Manager to v 5.6.2

click on install

3) Magisk Manager is downloading in the background, wait and click on install

4) Open menu settings from Magisk Manager and change Update Channel from Stable to Beta - then go back to main window of Manager

5) You get notification to update Magisk to v16.1 - click on install and choose DIRECT INSTALL METHOD

6) Wait until Magisk is downloaded and flashed - soon flashing is successful, you see buttons for : Save Log and Reboot. Save Log first and after Reboot

7) After reboot open settings of Magisk Manager and change back the update channel from Beta to Stable

Changelog: https://xdaforums.com/showpost.php?p=75844810&postcount=40
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
it's my turn. and now get to work. I'll start with the updates, before I should unroot? =)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
If you doing Firmware Updates (for example from MRv3 to Stock b394 and then b397, after b398 - Unroot is not required.

After you are on latest Firmware for your device only the Factoryreset with wipe of internal storage is recommended..

Unroot is just required for example:

You are Stock b397, rooted.. Then Unroot and Wipes and flash Rom..

The downloads from Android Filehost are very difficult at the moment - I heard it from Users from German Forum and tried it by myself

Every download get aborted after some minutes, with Firefox it's possible to retry..

Very important is to check md5 after download at the moment

I hope Filehost will fix soon
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
I have already downloaded you files several days ago, but I have not downloaded MD5 file

and also c185 only has B396 last update
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Yes, c185 has no newer Firmware yet.

Don't forget to flash patch.zip for c185 before first Reboot of new flashed Rom (but with Restart Recovery=TWRP between)

If you go to the download Links again you can see md5 on Filehost
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jordi1910:
What partitions should I backup in TWRP (3.1.1-1 by oldDroid) to have full copy of v4 ROM ?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
If you are using my extended TWRP from OP (which has some more partition to backup) - backup all of them you see, if you choose Backup in TWRP.

BTW: change name of the Backup manually (if it's set automatically, you have the name - something with test-keys..)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jordi1910:
Thank you, yes I have your extended TWRP and I was confused as on v3 I only had 3 or 4 partitions to backup and now there is 9 of them.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
I have a problem, then I update B394. I do not know how to do the next B396 update. because I already lost the TWR. and I can not install it again. =(
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You must check, if Bootloader is closed now.

Boot to Fastboot Mode, look if FRP is unlocked (red) and if Bootloader is unlocked (red)

It can be, it shows you unlocked, but its locked - then you must Unlock Bootloader again! =Factoryreset (low level wipe must be performed 100% - if not, you must do it from settings /advanced settings /backup restore /data factory reset /reset phone with wipe of internal storage

Be sure Developer Options are enabled - and inside:

1) OEM Unlock (if it's disabled and greyed out - you have a problem and further steps required to solve this - tell me and I say you what to do)

Enable also this order:

2) ADB Debugging in charging mode

3) USB Debugging (don't enable USB Debugging before ADB Debugging - it will not stay enabled)

If FRP (Factoryreset Protection =OEM Unlock) is unlocked and Bootloader is really unlocked, you should be able to flash TWRP.

Please read also Installation Guide from OP!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
(Yes Bootloader is closed)

I can diable or enable OEM

and i have the tutorial how to unlock bootloader but have a problem with drivers =( windows 10
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
OEM Unlock must be enabled in Developer Options = FRP Unlock (in Fastboot)

Windows 10 make sometimes problems - but you can do following:

ADB Debugging and USB Debugging in developer options enabled

Install last HiSuite on PC: http://consumer.huawei.com/minisite/HiSuite_en/

Open HiSuite and connect device with USB to PC. Look on Display of your Phone and confirm the permission (same if you connect without HiSuite later - you must confirm the RSA-Fingeprint request. )

HiSuite should install the right driver, wait until your phone is connected and you have access to internal storage and external SD with Windows Explorer.

Close HiSuite (even in the Background on PC) or ADB will not work.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
Unlock Bootloader now, and now is ther first started of TWRP. dont remember if need some configuration TWRP.... i tried the next update and have an error flashing Hwota.update.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
I wrote in OP (in Post #1) the configuration of TWRP - in settings (last Tab after language settings) disable "Keep vendor partition mounted"

But let enabled "Exclude OEM Path from data wipe.

Have you checked md5 of HWOTA b396?

Now you must delete HWOTA folder on external SD - because the inside zips will be deleted.

Unzipp HWOTA.zip again on PC and you should receive HWOTA folder (which contains: nocheckrecovery, hwota_update.zip, and a folder with a number (this contains the three Firmware zips)

Copy the HWOTA folder as it is to the main directory of your external SD - without subfolder between.

Try again - it should work
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
I am not available during next hours. It's 01:25 am here and I have to go to sleep now.

I am on work at 8 am
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
MD5 its ok i Checked

in TWRP Prompt To Instal TWRP app if not instaled its disable???

the second attempt gives me error when tried flash update
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Yes, this you can disable.

Which error do you receive?

If one installation fails - you can't use same HWOTA folder, because the inside folder with the number is empty then (Firmware deleted)

That's why you must Unzipp HWOTA.zip again and copy the unzipped HWOTA folder to external SD.

But old HWOTA folder must be deleted before on external SD!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
[MENTION=6246572]jonathanhenry81[/MENTION] Read one post before this..

If you do everything right and it would not work, it's maybe possible that b395 is required before updating to b396..

I haven't made yet.

In this case you should flash b394 once again.

After doing Factoryreset from settings /advanced settings /backup restore /data factory reset - reset phone with wipe of internal storage.

This should be enaugh to receive official OTA to higher Firmware (but your SIM must be inserted)

I am not available now during next hours - see Post #101
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
tomorrow when you have time . please helpme ... good night.

this error

failed to unmount data (Device or resource busy)

....

....

...

Invalid zip file format

error installing zip file /external_sd/HWOTA/hwota_update.zip
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Okay, thanks for reporting me. Maybe the zip for c185 b397 has something or something with the upload - I can make it new and upload in the evening after work (late)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
Yesterday I followed this tutorial. Everything went well! ( I just forgot to delete my Google account ?).

#The message from SuperSU still appears after a reboot... But it's very random.

#In Magisk the hide option doesn't stay activated?

After the complete setup I did a security check and both were false. Then I saw that Magisk hide wasn't activated. I rechecked it and rebooted. But after reboot again unchecked. See picture...

#i found something odd. I installed substratum. (followed your tutorial from the Mr3 thread). After playing around with substratum I noticed that the play store stopped working. Then I deleted the module in Magisk and the play store started working again?? Then updated the substratum app re-installed the Magisk module and from then on everything works perfectly ?

#in the KangV settings there is an option to change the dpi. I was already changing the dpi in my roms with the developer options to 480. But when I use the option in KangV or the development option the dpi is automatically re changed to 360 after reboot? In Stock rom it stayed at 480?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
[MENTION=4889360]curtricias[/MENTION] Thanks for Feedback :)

Does Magisk Hide now stay enabled (after your deleting and reinstalling modules)?

You are the first, which had this issue..

ctsProfile and basicIntegrity false is normal after first Reboot - that's why I recommend in OP to enable Developer Options and in there:

A) ADB Debugging in charging mode

B) USB Debugging

One Reboot and after it is =true

For change dpi I must make test after work on my phone, I reply later.

The message (SuperSU not instaled) occurs only to some User - question: Did you install this time the KangV Settings (as I recommended) after first setup?

Just want to know to understand, because I am thinking, it occurs only if flashing KangV Settings directly after Rom (instead after first setup)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
You're very welcome ?

No, the problem with Magisk hide still exists...

About the SuperSU message.

I followed your recommendations and did first the setup of mr4.

After that I went back to recovery and installed the Kangv mod.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You rebooted the Phone after flashing Rom, made setup with Google Account, Huawei-ID and doing the steps from OP with Magisk.

After you flashed KangV Settings? (This would be the right steps)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
Early in the morning, update the B395 using OTA using firmware finder. all good. but then try to do the same with firmware finder but this time the B396 and I could not update either. then try already having the B395 clean, install the B396 of the Post MRV4 and still gave me an error when trying to flash hwota_update.zip

just in this moment open firmware finder.... and have new full ota firmware B397 but firmware finder have a option

and when I use that option -Check firmware access- it says ... this firmware is not approved for installation
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
In this case just install MRv4 over b395 - this should work without any issues (with steps from OP)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] simionpetrus:
I resolved it by cleaning all data in settings/apps/ 0 Google play services
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] sripathi6:
Can I install xposed SDK24 by magisk? Is it bug free?

What are all the modules available for EMUI?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
Do you mean this?

[/HIDE]

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:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
[MENTION=2758132]curtri[/MENTION]cias after you flash kangV settig .you make wipe dalvi cache tellme please
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
Yes I did that.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
now, already installed MRV4. but in magisk I have the error ctr false. after doing everything in op
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Yes, this can be - the problem is, the Rom is based on EVA-L09 b398 c432 and I had to use the patch zip from c185 b397 (cause b398 not exists)

- did you already flash the patch.zip before first Reboot with restart of TWRP between?

There's a workaround, tested by [MENTION=6696258]NervReaper[/MENTION]

https://xdaforums.com/showpost.php?p=75796309&postcount=595

You can try, but do this step carefully - it must be a file without .extension and with the right permission in right directory
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
[MENTION=6246572]jonathanhenry81[/MENTION] - read one post before this - just wanted to add, before doing this modification, make sure USB Debugging is enabled

Cause if you you didn't enable ADB Debugging before USB Debugging - USB Debugging stays not enabled and then safetynet is false..
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
[MENTION=6870018]Tecalote[/MENTION] yes the order of enable is ADB first then usb debug then reboot. But then open magisk en ctr false again.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Have you read this post too? It's another workaround for Magisk (cause Universal Safetynet Fix does not work)

https://xdaforums.com/showpost.php?p=75866048&postcount=119

Sorry for troubles, but I own EVA-L09 and can't debrand to each cust to test Magisk..

Soon a newer Firmware comes out I can update the patch.zip for c185..
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
[MENTION=6246572]jonathanhenry81[/MENTION] - okay you wrote me with PM (I haven't seen before)

"I don't know if ctrl it's necesary.. Because I use xposed and I'm going to install.. From magisk. I don't remember what version of xposed I need flash."

So, if you use Xposed Framework, ctsProfile and BasicIntegrity can be false - because Xposed Framework breaks safetynet by default (there is no more way to bypass)

You install Xposed Framework from Magisk Manager SDK 24 v89.2. First Reboot needs longer than usual.

After reboot you must install the Xposed Installer (for the modules) - download it from this site:

https://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268

It's in attachments of the first Post #1 - the third one "XposedInstaller_3.1.5-Magisk.apk"

Sorry for posting your message here, but it's also interesting for User, which want systemless Xposed by Magisk (on Magisk Edition)

[MENTION=4392465]sripathi6[/MENTION] You also did ask for this...

But which modules works on EMUI - you must find out by testing - here's a list of modules which should work generally on Android 7 (but not all of them will work on EMUI) : https://xdaforums.com/xposed/unofficial-list-modules-nougat-xposed-t3639615
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
On my phone 480 DPI is enabled by default. If I open KangV setting /Tune DPI I see 480 (that means 480 is currently set - and I must nothing change and not reboot) - I could reduce it if I would like.. Then I would do reboot.

If you using KangV Settings you should use it primarily for changing something like DPI instead of Developer Options for example.

Same with Battery settings, KangV Settings has taken control over it and you cannot change it in Phonemanager..

Cause KangV Settings take of many parts the full control and permission, so they wouldn't work on another place (like Developer Options)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
You can do following - open settings /apps/ Magisk Manager /storage and delete data and cache.

After you must reboot phone, open Magisk Manager and Magisk Hide should stay enabled.

But you must new hide the different apps -

for safetynet should be enabled in Magisk Hide:

Android system Web View

Chrome (if installed)

com.android.cts.ctsshim

com.android.cts.priv.ctshim

Files (com.huawei.hidisk)

Google

Google Play Services for Instant Apps

Google Playstore

Google Services Framework

HiCare (if installed)

Huawei ID (com.huawei.hwid)

NFC-Service (on Devices with NFC)

Information (com.huawei.installapkfrommcc)

And if course, your Banking Apps (PayPal..)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
I answered here: https://xdaforums.com/showpost.php?p=75867354&postcount=123

Xposed SDK 24 v89.2 by topjohnwu should be 99% Bug free (have you ever seen something with 100% bug free?) ;)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jonathanhenry81:
Well, after having spent a long night yesterday trying to update stock c185B396. and I think that update is not possible even in the c185. neither through OTA.

update up to version c395; but since that update is enough to flash MRV4.

at this moment I have MRV4. I have a problem with safenet, but I do not need that because I use exposed and several modules and a magisk module too.

I clarify that I did not have any problem with google apps, all the app work well.

good as the fence will comment something new.

for the moment everything is fine

thanks [MENTION=6870018]Tecalote[/MENTION]; thanks to all those who made this new version possible.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NervReaper:
after a few more tests I found that it's a firmware certification issue. B398 isn't certificated for L19, so CTS shows false, but B394 it's. so i changed B398 for B394 in this line "ro.build.fingerprint=HUAWEI/EVA-L19/HWEVA:7.0/HUAWEIEVA-L19/C432B398:user/release-keys" and everything works as should be.

I edit the local.prop stored on C432L19 patch and reinstall the ROM just to be sure and it's ok, play store show certificated too without any additional step. So replacing the last certificated firmware version in local.prop file for any patch must be sufficient to fix any safety net issue.

I hope this help.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] curtricias:
OK. I did this. But... . ?

After I deleted the data and cache and the reboot I noticed that the Magisk hide button was available. I also selected Magisk hide in the options and hide the apps you said. (most of them were already hidden). After that I rebooted. I did a safetynet check and the result was false...

The Magisk hide button wasn't visible and the option hide was unchecked again.