yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Guides, News, & Discussion] Tecalote:
Normally there's no error flashing odm restore, except you made a TWRP Backup before and didn't restart phone to TWRP before flashing the zip.

Error 7 is normally only, if you flash Network Patch before restoring odm.
[Huawei P9 Guides, News, & Discussion] kristiansja:
i know with the network patch, but shopuld refalshing the firmware fix this? anyways testing pie on openkirin
[Huawei P9 Guides, News, & Discussion] Tecalote:
You can go back from OpenKirin with eRecovery Method (Links two posts before)

then doing Factoryreset, flash odm, flash network patch.

It can't be flashed while you are on Openkirin Rom.
[Huawei P9 Guides, News, & Discussion] mmiyahki:
I have a problem when i had an ota update to b540. Now the phone is not reading my sim card after that. Any solution for that? Or should i just need to go back to nougat all over again..
[Huawei P9 Guides, News, & Discussion] zgfg:
You must apply Network patch

You can check posts from a week ago, to find instructions for NW patch v2.5
[Huawei P9 Guides, News, & Discussion] mmiyahki:
How can i install the twrp again. Its been gone since i updated to oreo. Sorry kinda noob with these things..
[Huawei P9 Guides, News, & Discussion] zgfg:
For TWRP the same procedure as in OP posts at the beginning of the thread
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Hi over there in Europe,

Thank you for network Patch, I hope the limitation that I have in Australia is because of the limitations of the networks, it seems that a P9 in the area where I am atm in Queensland does not offer any 2G anymore, so I cannot have benefit of the SIM2 it cannot connect to 3G or 4G, i heared other people stating here that this is a known issue.

1) could you please just confirm that nwp 1.2 and 2.5 both work with 2 active simcards?

2) i am keen on getting google llc messages app integrated into p9, just with every switch off of the phone the messaging gets default app again, how can i change this (im am not - yet - rooted)

3) does anyone succeeded in using google llc phone app on the non rooted p9?

if yes how did you succeed, it is not available in the play store.

thanks so much for your help and time.
[Huawei P9 Guides, News, & Discussion] zgfg:
Confirming (1), I have dual SIM P9 and with b528, b535, b539, b540 and the corresponding network patches I had always (and still have with b540 Patch02 and NW patch v2.5) both SIM cards working

However, one SIM card connects to 4G (or 3G) and the other only to 2G.

You can choose which SIM will support 4G/3G and the other is automatically limited to 2G - the same as with Nougat (hardware limitation)

Hence for two SIM cards working, you must have provider with 2G
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Thank you [MENTION=7786725]zgfg[/MENTION]
[Huawei P9 Guides, News, & Discussion] nabilhashriq:
if i already update to b540 (patch02) before i update my NW patch to version 2.5, can i perform same step as per mention by [MENTION=6870018]Tecalote[/MENTION]?
[Huawei P9 Guides, News, & Discussion] zgfg:
Network Patch v2.6

Use instructions by [MENTION=6870018]Tecalote[/MENTION] for his Network patch v2.5 and Face Unlock v1.5:

https://xdaforums.com/showpost.php?p=78959825&postcount=1471

In fact, you can use the newer Network patch v2.6 (he will release these days) instead of v2.5 - follow the same instructions but for NW patch v2.6 you don't need to flash ODM restore zip (ODM is already integrated into the NW patch v2.6).

Face Unlock v1.5 remains the same.

Here you can find the new NW patch v2.6, Face Unlock v1.5 and Ramdisk for b540 Patch02 patched for Magisk v18.1 (Preserved Encryption and AVB enabled):

https://mega.nz/#F!JwkVyRya!Rb7OUE0z3PEpXBRxGOM-vQ

In short:

- flash TWRP for Oreo from Fastboot and boot to TWRP

- flash NW patch v2.6 from TWRP, be careful there is a version for original single SIM (L09) and original dual SIM (L19) P9

- reboot to System

- reboot to TWRP and flash Face Unlock v1.5 (this step is optional) and reboot to System

- reboot to TWRP and flash patched Ramdisk for Magisk v18.1 (this step is optional), reboot to System and installl Magisk Manager v7.0.0, install BusyBox from Magisk Manager

ChangeLog for NW patch v2.6 compared to v2.5:

ODM integrated, more Chinese apps and services removed, clean-up

PS: MD5 hashes

EVA-L09_b540-SingleSIM_NetworkPatch-v2.6.zip:

8662c7129945f5bc2236e8f87031b793

EVA-L19_b540-DualSIM_NetworkPatch-v2.6.zip:.

46dc8f974cb345027746d88ac141f6e1

VIE-EVA-FaceUnlock-Oreo-v1.5.zip:

973d006c55fa812d722b653a57c844c0

AL10c00b540_Patch02-Magisk_v18_1_Encrypt_AVB-Ramdisk.img:

5ababc2ddca80d0c0ab82ff5b06cc7aa

You can use HashCalc to compare MD5 hashes for your dowmloaded files, to make sure you don't brick the phone by flashing corrupt patches:

https://play.google.com/store/apps/details?id=com.gmail.kevinhhldev.hashcalc
[Huawei P9 Guides, News, & Discussion] nabilhashriq:
very well explaination. kudos [MENTION=7786725]zgfg[/MENTION]. anyway may i know b540 recovery same as b540 patch02 recovery?
[Huawei P9 Guides, News, & Discussion] zgfg:
All needed b540 stock partitions are on my Mega, appropriately named

Yes, Ramdisk-Recovery is the same for b540 and b540 Patch02 (for that reason I didn't upload two versions of Recovery - one to be named b540 and another b540-Patch02)
[Huawei P9 Guides, News, & Discussion] Tecalote:
[MENTION=7786725]zgfg[/MENTION] Thanks for posting beforehand....

But the Network Patch for rebranded EVA-L29 to EVA-AL10 is not yet in your Mega folder and will come during the Thread Update (it is also already released).

However, thanks for testing the patch for EVA-L19 and thanks to fenie for testing patch for EVA-L09, which I had released during the weekend and uploaded to our working place.

I will try to update the Thread after my daily job in the evening/night time during this week. :)
[Huawei P9 Guides, News, & Discussion] mfPPC:
Is it beneficial to apply NW 2.6 if you already have 2.5?
[Huawei P9 Guides, News, & Discussion] zgfg:
As commented above

>> ODM integrated, more Chinese apps and services removed, clean-up

So up to you, or you can wait when [MENTION=6870018]Tecalote[/MENTION] officially releases
[Huawei P9 Guides, News, & Discussion] daveh077:
Can you tell us which additional chinese apps were removed in 2.6 compared to 2.5?
[Huawei P9 Guides, News, & Discussion] zgfg:
AutoNavi Location Services and I think Find My Phone (not 100% sure since I had it quarantined)

You can wait for official release to clarify
[Huawei P9 Guides, News, & Discussion] daveh077:
Cool. Are there any chinese apps left?
[Huawei P9 Guides, News, & Discussion] zgfg:
AFAIK, all not neededChinese apps removed

Btw, you can also install and check :)
[Huawei P9 Guides, News, & Discussion] daveh077:
I'm away on business so don't want to risk modifying my phone :)
[Huawei P9 Guides, News, & Discussion] zgfg:
Factory Reset, About box, Badges

When you update by OTA to b540 Patch02, Settings / About box will show that installed build is indeed b540 Patch02 - see Screenshot 1

But once you apply NW patch (v1.5, v2.5 or v2.6), About box will no more display Patch02 but only b540 - see Screenshot 2

If you want to check do you really have Patch02 installed or not, you must check by System Update, see Screenshot 3 - if disabled, you must enable HwOUC.apk as described:

https://xdaforums.com/showpost.php?p=78948095&postcount=1463

However, if you perform Factory Reset (from e.g. Settings), About box will again show that Patch02 is installed

- Before going to Factory Reset, you must revert to stock Kernel (if using ECO Kernels), stock Ramdisk (Uninstall Magisk if using it) and stock Recovery (if using TWRP) - otherwise you risk to brick the phone

- Factory Reset preserves NW patch (SIM card will continue to work) and Face Unlock if it was previously installed (you will only need to enroll your face once again).

- After Factory Reset you only need to reinstall or restore your applications and settings (use the stock Backup application).

Optionally, flash TWRP and root (again)

- If you flash the NW patch again (you don't need to), then About box will again loose the information about Patch02, and will only show b540

---

There is one more flip-flop case:

- Badges with Dots (default Oreo style) for Clean OTA b540 (with or without Patch02), see Screenshots 4, 5 (Settings / Applications / Notifications) and 6

- Badges with Numbers (Nougat style, actually more informative) upon you flash NW patch, see Screenshots 7 and 8

- Badges with Dots again if you apply Factory Reset

- Badges with Numbers if you re-flash NW patch (you don't need to)

- Badges with Numbers also if you restore Settings / Phone Managers from the Backup app, from a Backup made before Factory Reset was applied (when Badges with Numbers were enforced by previous flashing of NW patch)

Unfortunately there is no setting Option to switch between Badges with Numbers or Dots, and it is unknown why NW patching / Factory Reset flips the Badges between Numbers and Dots
[Huawei P9 Guides, News, & Discussion] Hermanos01:
Magisk is not working after update.
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Did you do Windows or MacOS upgrade?

pls be more accurate, we cant read your thoughts ;)
[Huawei P9 Guides, News, & Discussion] Wattsensi:
I was on OpenKirin LineageOS after rebranding and updating to B535, but I reflashed B535 system and recovery_ramdisk, booted into EMUI, wiped ghost fingerprints (EMUI can detect them!!!) and will install b540 patch02. Currently downloading the B540 OTA.

---------- Post added at 00:47 ---------- Previous post was at 00:18 ----------

UPDATE: B535 recovery won't let me install B540 OTA. Using B535 Patch2
[Huawei P9 Guides, News, & Discussion] zgfg:
For Patch02 you must use Magisk (v18.1) with both Encryption and AVB

E.g.

AL10c00b540_Patch02-Magisk_v18_1_Encrypt_AVB-Ramdisk.img:

https://mega.nz/#F!JwkVyRya!Rb7OUE0z3PEpXBRxGOM-vQ

---------- Post added at 07:36 AM ---------- Previous post was at 06:38 AM ----------

Right procedure for going back from OpenKirin to EMUI was described here

https://xdaforums.com/showpost.php?p=77897170&postcount=829

An old post, mentioning b528, etc - doesn't matter, Reinstall latest from eRecovery will now install b540 Patch02

Also, at the end when you come back to stock Oreo, use the new NW patch v2.5 or v2.6 (instructions in the posts from last two weeks)
[Huawei P9 Guides, News, & Discussion] nabilhashriq:
my phone not showing any imei after updating to 2.6 i downloaded from your mega folder. its kind of weird but i still can use my line provider.

i will try roll back to b540 and try it again
[Huawei P9 Guides, News, & Discussion] Wattsensi:
Nevermind, didn't see your post sorry. Eventually I installed B540 full OTA after Huawei's updater retried with the full non-incremental OTA. Installed Patch02 OTA. Installed TWRP and flashed the latest 2.6 network patch, so my RIL is now working. I will now go to OpenKirin LineageOS 15.1 (I personally prefer Oreo to Pie for now) and install your Magisk. Thanks to your efforts and Tecalote's, having an OG Huawei P9 is now truly enjoyable with the power of Project Treble. My P9 truly feels like a Google Pixel when running AOSP!

EDIT: Lineage won't boot on B540 Patch02. Boot loop. Already wiped /data many times with Pretoriano80's TWRP. Also tried Huawei's recovery to do wipe data/factory reset but failed. I don't know how to fix it. I will try your patched ramdisk.

EDIT: Ramdisk does nothing. I am stuck in a soft brick for an undefined time...

EDIT: Tried fastboot -w. Now stuck on device is booting now. Please help me.

EDIT: Wiped data with TWRP. Back to square one...

EDIT: Finally solved by replacing TWRP with the B540 EMUI recovery and doing a factory reset.
[Huawei P9 Guides, News, & Discussion] zgfg:
Procedure for installing OpenKirin

https://openkirin.net/user_guide/openkirin-rom-installation-instructions/

In short

- Do not use TWRP !!!!!

- Flash the ROM by Fastboot (not by TWRP)

- From stock Recovery do Wipe Data/Factory Reset

- Reboot to System (OK ROM)
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Hi All

1) I am curious on rooting

why?

- I want to get rid of the factory messaging app (it switches back to messaging on each reboot) I would like to use Messages by Google LLC

- App Quarantine only can remove Messaging when Phone is rooted

PS: Phone is also installed, the original Dialer/Phone does not interfere like the Messaging App after a reboot, that works like a charm, found it somewhere in the xda site as an apk

So which post in this thread is the best for rooting a never rooted Android 8.0 EVA-AL10 that is on patch 2 with network patch 2.5 and all the other things?

2) I would like to see System Updater again, why is it gone? did I remove it or someone else :)

- my System Updater is not existent on my phone? I tried the stuff in the link above but also my /system does not contain more than a tmp folder

- if I check HUAWEI Account Center in Settings and Check for Updates, my Phone is on latest version

Gratefully THANKS to all of you
[Huawei P9 Guides, News, & Discussion] zgfg:
Without root you cannot access System to enable HwOUC

Everything about

- new NW patches

- rooting b540, specially b540 Patch02

- enabling HWoUC

- making Factory reset to see if Patch02 is installed directly from About

was described through the posts in the last two-three weeks, please scroll back and read

Also, as part of his new patches, [MENTION=6870018]Tecalote[/MENTION] has provided two simple ZIPs (installable by TWRP), to enable/disable System Update (in which case you don't need to have root to manually enable HwOUC.apk) - please scroll back and find his post

In his post you will find a link to his comprehensive guide about updating to b540, installing patches, rooting, everything, on AndroidHilfe

Guide is in German but if you use Chrome (eg from the phone), it can automatically translate you to English
[Huawei P9 Guides, News, & Discussion] ant0nwax:
ahh thx, i did not know that its that easy, i fid not understand that enable ota enables system updates.

for rooting i also did not find an exact walkthrough

i will try to read these days again
[Huawei P9 Guides, News, & Discussion] zgfg:
I have just edited my previous post, pls read it again, second half, for more info
[Huawei P9 Guides, News, & Discussion] XforceDA:
Hello, I'm sorry for not answering. I was on vacation.

All problems was solved. My P9 was on B535, BUT, I promise that in "about phone" appeared B540 after the first flash.

I followed first and second post, completly. And I downloaded the new links for B540 in update posts.

My P9 perfectly runing 8.0.0(patch02).

Thank you for all.
[Huawei P9 Guides, News, & Discussion] Wattsensi:
Thank you, it worked!

---------- Post added at 14:35 ---------- Previous post was at 14:32 ----------

Thank you! I finally escaped that nasty brick. Now running OmniRom Pie.
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Awesome, is the camera working?

---------- Post added at 11:02 PM ---------- Previous post was at 10:49 PM ----------

Hi there,

I succeeded in enabling OTA, System Update is available and shows 540 PATCH 02

Still I would like to try to root, in order to

- Quarantine Messaging Factory App

- Solve: WIFI: if there is more than one WIFI saved and reachable, and I want to decide which WIFI it shall used, I did not find a possibility yet without rooting on Android 7, I did not try on Android 8 because I cannot at the moment.

Questions about rooting:

- is TWRP as recovery ramdisk needed as precondition for rooting? or can I root with Enabled OTA? I did not find an answer on that question in the initial posts.

- if I understand right the steps are: 1) boot to bootloader, 2) flash recovery ramdisk EVA-b540_Patch02-Magisk_v18.1_Encrypt_AVB-Ramdisk.img, 3) boot to system and install MagiskManager-v7.0.0.apk, 4) install in magisk Busybox for Android NDK (osmosis), 5) be careful with some magisk modules because they could soft-brick your phone

- do you experience any NON working apps with EMUI 8.0 and magisk, like google pay, other banking apps, they used to check this stuff, also the trusted device in device policy is interesting for me... please could you share your experience?

Thanks m8ts
[Huawei P9 Guides, News, & Discussion] Wattsensi:
In EMUI 8, it's perfect and issue-free.

In OpenKirin AOSP, yeah, mostly flawless. Beauty mode and immediate preview are broken in Pie though so if you use it you should wait until the next patch. Also OK doesn't have NFC in P9 so if you use NFC you should wait too.

You can root by flashing the Magisk-enabled ramdisk for B540 Patch02 that is somewhere in this thread.

Don't know about WiFi. Works out of the box for me.

Are you planning to go to OpenKirin? Stay away from TWRP. It breaks the filesystem of /data and cannot read EMUI's encryption.

If you were watching this thread, I found about it the hard way. Flash B540's recovery to recovery_ramdisk if you have TWRP. Do a factory reset after flashing an OpenKirin ROM. I do not recommend using TWRP with B540 at all, even with EMUI. TWRP cannot properly encrypt or read encrypted data in Huawei P9. Use only stock recovery tools. TWRP might do for temporary usage to flash a ZIP but with Magisk I don't see the need.

Yeah, that's a good procedure to get Magisk on B540. I never needed to install busybox though. Maybe EMUI 8 needs it. I only tried OpenKirin.

Never got any app-related issues in any EMUI 8 nor OpenKirin ROM. B540 is more stable and complete than B535, and any app works there.

Install B540 (the incremental OTA may fail at first), then install B540 Patch02 OTA, reboot to system and test B540, then flash TWRP, download the Network Patch 2.6 to an external SD then boot to TWRP, flash the patch (does not alter /data), reboot to Fastboot, replace TWRP with Huawei Recovery, reboot to system. NFC and LTE will be enabled for you.

You can flash the modified B540 ramdisk with the special Magisk at this point.

You should have B540 Patch02 EMUI 8 and Magisk+root.

Ask zdfg for more information, he/she knows better.
[Huawei P9 Guides, News, & Discussion] zgfg:
1) TWRP has nothing with rooting.

But for installing Network patch (and optionally Face Unlock), you must have TWRP installed at that time

For rooting, Ramdisk patched with Magisk, you can flash either from Fastboot, or from TWRP.

If you would like to flash ECO Kernel, again you can flash from Fastboot or from TWRP

And when/if you want/need (see below) go back to stock Kernel, Ramdisk and Recovery itself, you can flash them again from TWRP (or Fastboot)

Hence TWRP is just convenient to keep, because you don't need PC later for flashing via Fastboot

2) For the installation od Open Kirin, you must revert back to stock Recovery

But even if you plan to go Open Kirin, you must flash NW patch before (which means that at that time you must have TWRP), otherwise SIM card(s) / Mobile connection will not work

3) Before going for OTA (this was at least twenty times repeated in this thread), you must revert back to stock Recovery (which means, you must not have TWRP), stock Ramdisk (which means you must uninstall Magisk) and stock Kernel (if you played with ECO Kernel).

Same, if you ever want to do Factory Reset.

Otherwise you can brick the phone. But who knows if/when there would be a new OTA after b540 Patch02

For that reason it is safer to keep OTA disabled (if you did rooting, have TWRP, etc), to make sure you don't initiate/allow OTA by mistake before you revert the mentioned partitions back to stock

3) Not using GooglevPay but it must work with NW patch v2.6 (it didn't with old v1.5)

Sharing location and location history now also work with NW patches v2.5 / v2.6.

WiFi+ and 4G+ now also work fine

AFAIK, only syncing Google Calendar and VoLTE/VoWiFi (if you have that service with your provider) still don't work

This is for AL10c00b540 patched with NW v2.5/v2.6

What works / does not with Open Kirin/Treble ROMs, depends on which ROM you use and you must ask their users - there is another thread for OK ROMs

And you can always go back from OK to stock Oreo, or from this Oreo back to stock Nougat if you find missing or not liking something
[Huawei P9 Guides, News, & Discussion] xxxvego:
Hello, yesterday I set up Google Pay any to pay contactlessly by phone. I added a MasterCard Revolut virtual card and I received information that the card was added and you can pay online but you can not be contactless. "We could not complete the payment setup in stores. It may have been rooted or modified in a different way."

I have a "certified device" on Google Play, selected Google Pay and the Google Play Store in Magisk Hide. What else can I do to make contactless payments work with Google Pay?
[Huawei P9 Guides, News, & Discussion] Tecalote:
It's an issue by Magisk v18/18.1/18.2 and reported.

That's why there's a new Thread:

https://xdaforums.com/apps/magisk/discussion-google-pay-magisk-discussion-t3906703

You can try it instead with Magisk 17.1 (ofc, you would need patched ramdisk.img with Magisk 17.1)
[Huawei P9 Guides, News, & Discussion] xxxvego:
I have another problem, I have old version in Google Play Store. Is there any way to have the latest versions app from Google Play Store?
[Huawei P9 Guides, News, & Discussion] Tecalote:
You can download from here:

https://www.androidfilehost.com/?w=files&flid=290476
[Huawei P9 Guides, News, & Discussion] xxxvego:
Thank you !

One question more, where I can set lockscreen pattern?
[Huawei P9 Guides, News, & Discussion] lozza69er:
Newer version of the play store (13.9.17) is out. Google, play store 13.9.17 apk for the latest release. ;)
[Huawei P9 Guides, News, & Discussion] xxxvego:
After installing play store from your link I have on Certificate Play Protect "The device is not certified".

In Magisk SafetyNet checking "The service is not responding." How to fix it? ;/
[Huawei P9 Guides, News, & Discussion] ant0nwax:
Off topic: Thanks for all the discussion, I think rooting is not worth if you would like to use banking on a phone, I succeded with two different banking apps on a Note 4 running Oreo 8.1/LineageOS 15.1, and each try needed me 2 weeks of work, a plastic NFC card is way more convenient for contactless payment, GooglePay i actually never succeeded. Actually my EVA-L19 has no NFC.

Back to Topic:

Is it worth to try the Android 9/Pie? can someone Post a link to a walkthrough or is there none yet? I would just like to start reading and not mix up threads for that topic. this should be about EMUI 8 and not Pie and also not OpenKirin imho.
[Huawei P9 Guides, News, & Discussion] zgfg:
HowTo get Device Certifind, it was described here

https://xdaforums.com/showpost.php?p=78763850&postcount=1375

To get Device Certified in Pkaystore:

- enable AirPlane mode

- open Settings / Apps, enable System processes

- for Google Play Services, Google Services Framework and Google app (if installed) open Storage and Clear Cache

- for Google Play Store app open Storage and Clear Data

- reboot, switch off Airplane, make sure it connects to WLAN, open Playstore and enable Play Protect, it must show green

- I had to reboot again, open Playstore and its Settings, and Device Certified was finally shown (you may turn off Play Protect now)
[Huawei P9 Guides, News, & Discussion] Tecalote:
Post #2: https://xdaforums.com/showpost.php?p=77161313&postcount=2

= updated for b540

Update for Post #1, #3, #4 , #5 → will come soon.

HWOTA7 will get an update (with oeminfo for EVA-L29 - currently not included)

HWOTA8 will be focused (for how to manually update any Oreo Firmware on EVA to newest)

Root Guide will be updated → For installing older versions of Magisk I will show you an alternative way to Root with Magisk (instead flashing patched ramdisk.img)

And more....
[Huawei P9 Guides, News, & Discussion] xxxvego:
I do this steps and still "device is not certificated". Today I will reinstall Magisk and try again.
[Huawei P9 Guides, News, & Discussion] zgfg:
In the Root guide post #4 there are instructions how to manually certify by editing

<boolean name="device-google-certified"value="true">

in

data/data/com.android.vending/shared_pref/finsky.xml

https://xdaforums.com/showpost.php?p=77161300&postcount=4