yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
See my other post, where I have linked the respective image files.

General remark: You don't flash zips via fastboot.

It is really key to follow the instructions in the linked thread carefully - don't "interpret" things.

I haven't looked up the place in the rebrand-thread, where the Switch-TWRP-to-EMUI-Recovery.zip is mentioned, but I would assume, that this ZIP would be flashed via TWRP.

Further:

The thread describes in its OP the update to firmware b540; in Summer 2020, there has been an update by HUAWEI to b550.

So, depending on what you did before - make sure you know whether you are on b540 or b550 and in any case use the proper firmware files.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
now i'm doing the factory reset after flashed recovery and lineage, but now, when i do a factory reset, at 23%, it refuses to continue, infact it displays a red "!"
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Try to wipe cache and the do again.

Can you pls. make a photo of this and post here?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
That is ZIP file, must be flashed from TWRP (you still have it at the moment you want to switch from TWRP to stock Recovery), not from Fastboot.

ZIP files CAN NEVER be flashed from Fastboot

Once you flashef, reboot to Recovery it must boot then to stock Recovery, no more to TWRP
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
sorry for the quality of the image, this huawei was my main phone, so i have to use a crappy one

View attachment 52705711View attachment 52705772View attachment 52705693View attachment 52705674View attachment 52705655View attachment 52705736
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
i used the img that @MSe1969 said before
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Np, from recovery you cannot take nice screenshots :)

As I thought, this is normal. Simply now pick the 3rd option and wipe the cache partition.

Afterwards, you can normally reboot and it should work -

assuming the below statements are correct:

- You had a working EMUI 8 (incl. SIM recognition), but you still had TWRP as recovery and you have flashed my system.img

- You did a direct reboot (no wiping), and had the trouble you've described before

- You have flashed Stock recovery, based on my and zgfg's advice

- You have wiped /data (aka factory reset) and wiped cache in stock recovery
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
you said everything correct.

i did as you told me and everything works fine, now i'm doing the get started config.

thank you so much!!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] gandooo:
In setting when i set on 3G, it doesn't work. So i disable atuomatic network selection and manually set the network on 3G and use the internet but after a while the network and internet switch back to 2G itself.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
Thank you OP for updates! Hi, I'm not new to flashing but this is the first time I'll be flashing on huawei. Currently, I'm still in EMUI 4, bl unlocked, from what I gathered I have to flash EMUI 8 first, but from where and do we have twrp treble for P9? And is it possible to flash any gsi roms or we can only flash what we have in here?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi, this is all described in the OP, also with the fitting links. But once again in short:

- Your starting point is EMUI 4, so you first need to get to EMUI 5 (Android 7), by applying the offered Stock OTA updates or via eRecovery.

- If both does not help you to get to EMUI 5, you'll need to search the net on your own...

- Make sure you have your BL unlock key handy, as it could even be, that your BL gets locked again

- If you are on EMUI 5, follow all the instructions step-by-step in the linked thread (i.e. rebrand your device to Chinese, flash the EMUI 8 update, flash the further stuff, until you get a fully working EMUI 8 Stock ROM, which also recognizes your SIM card).

- Apply all Stock updates, which will be offered to you then (I expect two, maybe three!)

- Then, you are in a position to flash

any

GSI

Now to your specific questions:

- There are misc. TWRP versions for the P9 out there, for the rebrand & upgrade to EMUI 8 exercise you'll even have to use them temporarily, but when all is finished, I do not recommend to use TWRP! (I like TWRP and it is a pitty, that it does not work properly with the P9, but is is as it is. I will therefore not support any issues resulting from the use of it!)

- Although you can use any GSI, the camera will only work on those ROMs with a specific patch for the P9 camera, which more or less leaves you with either my ROM or the OpenKirin ROMs for this device, also because they have a specialized power profile
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
One thing I'm most afraid of updating is it might lock my bl again. Does my code stay the same or does it change? Will rebranding also relock bl? As we know, our bl code is very precious right now.

Could you please reupload recovery if you have backups for our device P9 that I will be needing from updating to rebranding to flashing gsi? I tried to download one but is unfortunately not available anymore as the posts were already years old and xda recently migrated.

And, if I'm already done in everything, like I'm already using this rom, which recovery do you recommend?

I've customized a lot of different brands, and Huawei is the hardest and trickiest to tinker... Just for unlocking bl I've spent 2 years..

Also, I'm guessing by your response, I think magisk is not available to us?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Your Bootloader code stays the same for a lifetime of your Huawei phone - no matter which EMUI version you go for
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Bootloader unlock key:

Quote from the OP: "

You need your unlock key handy: During this process, the bootloader will be automatically locked several times, so you need the key a couple of times to unlock again!

"

In addition: @zgfg has also given you the unlock code explanation.

Stock recovery:

See e.g. here https://sourceforge.net/projects/lin16-microg/files/treble_p9eva/EMUI8.0_Stock/

Magisk:

This ROM comes with the LineageOS root solution, you can enable it in the developer settings.

If you prefer Magisk, visit the Openkirin pages and follow their instructions, which are valid also for my ROM
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
Okay but the thing is I did not got it the official way, I used the changing bl key, nevertheless it unlocked.

Thanks, will try it all later, whether it will work on me or not, might still be worth a try.

I was thinking of flashing twrp and use magisk first, then after few weeks I will flash this, but it seems huawei made it complicated, cannot flash anything normal just like other device, have to go through many steps just to get it working the way I want.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
When is the next update? I am looking forward to it because it is already April 11th
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New update with April Security patches available

Hi all,

a new update is available for download:

https://sourceforge.net/projects/lin16-microg/files/treble_p9eva/treble_arm64_a_lineage16_20210409_system.img.zip/download

ASB Security string 2021-04-01

Bromite System Webview 90.0.4430.59

F-Droid 1.12

AuroraStore 4.0.4 with AuroraServices 1.1.0

Happy flashing

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] brookie229:
Just discovered this thread and wish to thank the OP for his work. Nice to see an updated security rom for the P9. I have not yet flashed but will attempt soon. I'm not very experienced (have only done this a couple of times on other devices) . I have the EVA-L29 version which HAS successfully been rebranded to EVA-AL10 8.0.0.552 (C00) and both sims are functional (although I only need one sim anyway). Everything works fine on this phone but I want to update the security level patches using this rom (thanks again, for that). Am I understanding correctly that BEFORE flashing I should delete or uninstall all apps that I use a fingerprint for security? Looks like I can just straight out download, unzip and flash. Thanks again!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
@MSe1969 Since there's no more firmware available and I am still in the launched firmware of P9 (the oldest) and is not getting ota. Can I jump from Android 6 to rebranded EMUI 8 or jump to the only P9 firmware I have found B390 which I do not know its Android version? I'm asking because in other brand some fw is required. Do I still have luck in trying this custom rom?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
No, HWOTA-7 thread, it's OP instrucrtions (and actually the way how HWOTA-7 method works by utilizing the TWRP for Android 7 - thus the '7' in its name) strictly reauires EMUI 5.1 (Android 7 = Nougat)

Btw, b390 should be Nougat (it's definitely Nougat if you are asking about c432 cust), no more Marshmallow (MM was up to b210 or b300 if making a rollback from Nougat to MM)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
You need to purge your saved fingerprints, not the apps using them.

If you flash my ROM over Stock ROM or a different ROM via fastboot, you must boot into recovery and wipe the /data partition (factory reset) and afterwards cache.

Make sure to flash stock recovery (no TWRP)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
I understand I need to be in Nougat. I am not sure and is asking

1. if I can update directly from c636b168 to B390? Since it's the only one fw I can find right now. I don't know why ota doesn't work on my device. In some phones, if major updates, there's prerequisite rom needed.

2. And if ever I have successfully updated from B390 can I rebrand from there?

3. I also have twrp and root right now upon searching I understand I have to restore stock recovery and unroot if I am updating to B390 right?

4. I haven't thoroughly read about rebranding but my hunch says fw is not available anymore and if I'm lucky to be in this step, could you please reupload the files? Huawei recently deleted all their fws.

I am sorry for asking a lot of questions, just making sure before I proceed as I don't have UPDATE.APP. I am really looking forward to have this rom installed as I suffered from terrible connectivity issue and is driving me crazy.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
I don't know do you mean c432b390 or c636b390 - it's different but important

You can not 'update' from c636b182 to c432b390 - you must always stay on the same cust

You either need to find Nougat version for c636, or you must first rebrand from c636 MM to c432 MM to be able then to update to c432b390 Nougat

That's the whole story about custs and rebranding (your Bootloader must be unlocked for rebranding) - please google about, there were many old posts and thread(s)/instructions here in XDA forum about rebranding and updating from MM to Nougat, etc

(That is not the same ss rebranding to Chinese Oreo - that will be the later step once you already succesfully update to Nougat either with c636, c432 or with any other cust

So again, you must do two steps:

- update c636 to Nougat or rebrand to c432 and then update to Nougat

-later, use HWOTA-7 thread to rebrand and update from Nougat to Chinese Oreo)

I really don't have any files for c636, I never used it.

And I was finished with my P9 two years ago, and sorry I really won't/cannot help about rebranding from c636 to c432 or so

PS: Go to the HWOTA-7 thread, last post - somebody asked and I dumped all things for Huawei P9 I still found on my PCs to my Mega account.

It should cover all files you will need for HWOTA-7 steps (rebranding from Nougat to Chinese Oreo) - but you will have to read and follow OP instrucrtions by the original developer in the HWOTA-7 thread

For c636, you could try searching for firmwares (but again, I never played with c636 and cannot recommend you any.firmware) at:

1) https://androidhost.ru/search.html

enter eva-l09c636 (if you have l09) or eva-l19c636 if you have l19 - but sometimes it's worth even to download a firmware for l19, unpack, and check if you find inside also a stuff for l09 or vice versa

2) https://support.halabtech.com/index.php?a=downloads&b=folder&id=14393

They have complicated subscription/download rules (at least they had 2-3 years ago when I onced used them), but if you cannot find c636 firmwares anywhere else, maybe you will find there - under the E series, EVA

Good luck

Sorry guys but you see that Huawei stopped providing firmwares for P9, Firmware Finder closed their store, it's two years too late for trying to upgrade from Marshmallow to Nougat now - Huawei was releasing MM firmwares 2016-2017 and Nougat firmwares 2017-2020, now is already 2021, and the whole official/unofficial support, community, everything is practically dead by now 😥
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
I am aware it has to be the same. have the L19 C636B180 and was able to get the copy of C636B390.

I just want to make sure before trying everything is B390 enough to be able to rebrand? I don't know what is the last rom available for P9. Is being Nougat enough or I have to be in last Nougat rom available?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Last offered OTA Version is recommended, but "being Nougat" (aka EMUI 5) should be enough, as updates within one major version do not alter the underlying file system and partition structure.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Once again, upgrading build NUMBER Bxx has nothing with rebranding

Rebending means changing CUST Cyy

Updating Bxx with a different Cyy may result with:

- update failure

- or brick

So it's up to you if you think that b390 for c432 and c636 are the 'same' and that you will 'rebrand' just by using that firmware

Please google about rebranding, search on XDA P9 forum old posts, read the old threads, etc

If I recall correctly (again, it's been long ago when I was playing with P9 and Huawei), rebranding generally consists of installing the appropriate TWRP (there are different TWRP ports for P9 for MM, N and O), then flashing through TWRP an oeminfo backup from that different cust you want to rebrand to (like oeminfo for c432 for MM in your case), then installing the corresoonding firmware (like c432 but again MM build, not yet b390 Nougat) for that new cust, then wiping Data and only then rebooting (rebooting earlier may result in brick)

So again, don't use my 'guide' as above, this was just trying to explain you that rebranding is not that 'easy' as flashing different Cyy firmware - because oeminfo is not contained in the firmware and will not change just by flashing the firmware. Even worse, if you stay with c636 oeminfo and you flash c432 firmware you may brick your phone.

Also, do upon changing the oeminfo you must still stay on the same Android version bcs oeminfo image differs from MM, N and O - only upon successful rebranding from c636 MM to c432 MM you can update to c432 b390 N

My advice is again to take your time and study/learn about, find the proper guides - but if you think you know better and you can do it simpler way (just by flashing your b390 firmware, whatever it is), do it on your own risk and good luck
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
@danipan - I searched instead of you (?), please for the beginning study the following guide about rebranding (it contains TWRP for P9 for MM and oeminfo for P9 c432 MM):

https://xdaforums.com/t/huawei-p9-r...6-based-magicrainbow-v2.3601064/post-72153575

Read also (use Chrome and the built-in translator) the following tutorial - it includes rebranding at MM to c432:

[ TUTORIAL ] 28/05/2018 [TODO EN UNO] Huawei P9 (EVA-L09) *Nougat Oficial B502* - Desbloquear Bootloader - Firmwares - TWRP - Root - Cambiar CUST - Rollback y Mucho más...

[ TUTORIAL ] 28/05/2018 [TODO EN UNO] Huawei P9 (EVA-L09) *Nougat Oficial B502* - Desbloquear Bootloader - Firmwares - TWRP - Root - Cambiar CUST - Rollback y Mucho más... ROMs y desarrollo Huawei P9

www.htcmania.com

More about custs, build numbering schemes etc, find at:

Firmware Update - Was bedeutet CUST, EMUI und Co. | HUAWEI.blog

Für alle die wissen wollen was die Software / Firmware Informationen bei Ihrem Huawei Gerät bedeuten. Haben wir diese mal aufgeschlüsselt und beschrieben. Wir erklären dir, wie du bei deinem Huawei das Branding entfernst und wie du deine Firmware manuell updaten kannst.

www.huaweiblog.de

https://xdaforums.com/8-lite/how-to/huawei-regional-codes-t3740473
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] danipan:
Thanks, I thought rebranding is just about changing device model.

This will be much easier if huawei did not delete fw servers. My original plan is to update to Nougat C636 then rebrand (switching cust), if I cannot find fw files, and twrp needed then I'll just update it to N file I've found.

Just making sure I won't get bricked if I'm just updating fw from c636b180 to c636b390 right? - not related to rebranding
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
TWRP for MM is in the rebranding guide I gave you today

TWRP versions for N and O (two different TWRP versions) are in the HWOTA-7 OP posts.

All three are also on my Mega account I mentioned

TWRP versions for MM and N are also in the Spanish guide I gave you earlier today - just read the things

If your b390 is really b636, it should work. But you have everything for rebranding to c432, it's not a big deal
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] engsalam10:
View attachment 5281269i am getting this error even i can flash open kirin rom normally
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
If you scroll back to page 11 of this thread, you'll see, that this issue has already been reported by somebody else. Unfortunately, I don't have a solution, as I am not able to reproduce this issue with my device. However, I think I know today a little bit more than end of last year and I have an idea - I assume, that there might be, for whatever reason, a (slightly) different partition scheme with your device (e.g. there may be "different P9's" and Openkirin considers that already...):

Please connect to your device via adb shell and enter the following commands:

Step 1

mount | grep "system type"

You should get an output like the below:

HWEVA:/ $ mount | grep "system type"
/dev/block/mmcblk0p52 on /system type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)

Copy / note down the string after "/dev/block/", which - in above case - is "mmcblk0p52"

Step 2:

Now, enter the command cat /proc/partitions | grep mmcblk0p52 and - if the above would be different from "mmcblk0p52" - replace the expression after "grep" with "your string":

HWEVA:/ $ cat /proc/partitions | grep mmcblk0p52
259 4 2031616 mmcblk0p52

I would like to see the output of both commands posted here. If my assumption is correct, the figure of the 2nd command shows something lower than 2031616 . . .
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] twinstef:
I had exactly the same problem - so i flash openkirin LOS with success, i root with magisk and i add microg manually. My phone : P9 Plus EMUI8 / VIE-AL10 8.0.0.550(C00) Chinese Model - p9 Plus Chinese is n't supported by your rom ?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Please execute the OS commands, which I have outlined in my last post on your phone. I need to see the results, maybe your phone has a smaller system partition size...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Interim Test build with altered target partition size

Hello @NeWONEx @1stapus @engsalam10 @twinstef

you have all reported a "remote: sparse flash write failure" issue, when attempting to flash my ROM via fastboot, whilst you had no issue in flashing the EMUI 8 Openkirin image. I have now analyzed the Openkirin sparse image and have reduced my target partition size definition to match the value, which is used for the Openkirin builds.

I have created a test build with the adapted size values. Could you please try to flash that build on your devices and report back?

Further, please provide the following information of your devices here:

1. The exact device type - e.g. P9 Plus, P9-EVA, ...

2. The build number - e.g. EVA-AL10 8.0.0.550(C00), VIE-AL10 8.0.0.550(C00), ...

3. The output of the above mentioned 'adb shell' commands

Thanks!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] brookie229:
Thanks - will do with the fingerprints.

I'm still not clear with the procedure (I'm new to this) and especially the step order. I'm on stock Oreo EVA-AL 10 (a rebranded L-29). If I'm reading correctly:

1. Boot into recovery and factory reset

2. Flash your ROM using Fastboot (I have no TWRP on device)

3. Wipe Cache

4. Don't understand "flash stock recovery"

Sorry about my newbie question but I don't want to wreck my device - maybe this procedure is NOT for me, lol.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
As you don't have TWRP, the item "flash stock recovery" does not apply to you.

You do:

1. Reboot to bootloader and flash the system.IMG of my ROM with fastboot.

2. Reboot to recovery

3. Factory reset in recovery

4. Wipe cache in recovery

5. Reboot
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] brookie229:
Thank you very much! Everything so far looks great. Do you have a PayPal account? I'd like to buy you a coffee or beer.(y):)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
I need to ask a question even if it is not directly about this rom. Because the installation of the rom worked well and the OS does what I need with no workarounds, which is really great.

The one thing I miss to my old setup, where I had Playstore, is the easy update function for all downloaded app with Aurora. Do I have to check every installed app manualy if there are any new updates?

Havend found any clear answer yet...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Aurora has a section, where you can see, if updates for your installed apps are available and from there, you can even say "update all"
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Bottom to the right, HUGE LETTERS. :oops:

Now I can see. :geek:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Another thing, does this ROM have some kind of global ad-blocker? Does not matter which browser I use (ffox, standard one), some websites (like local newspater) tell me to switch off the ad-blocker. Shure I had not switched it on andno difference using WLAN or mobile network.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, the /system/etc/hosts file contains a comprehensive list of blocked ad servers. (In fact coming from AdAway), see OP.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
You could rename /system/etc/hosts to hosts.bak and create an 'empty' hosts file instead with only few lines like (and you must reboot afterwards):

127.0.0.1 localhost

127.0.0.0 localhost.localdomain

::1 localhost
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Great! So I thought right. Will hava a look on this host file.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Great! That worked. But now I dont have the benefit of the "up-to-date" adblock list, right?

Can I manually add excuses/whitelist for the one website I was looking for? I cant figure out which of the adresses is blocking the newspaper webiste.