yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Questions & Answers] Buratei:
ah i see.....

it actually took some struggle to get to fastboot even before i flashed recovery2.img, dont remember exactly what key combination it was for sure. guess i just gotta keep trying...

https://xdaforums.com/showthread.php?t=2735529

this guy says fastboot commands worked under certain mode even when phone's LCD screen was stuck at the huawei logo....

https://xdaforums.com/p9-plus/help/enter-recovery-fastboot-help-t3565683

wait, so there is actually a "recovery" partion and a separate "recovery2" partition? well then, I must have overwrote the contents of the recovery partition with a file that was supposed to be flashed in the recovery2 partition instead...
[Huawei P9 Questions & Answers] Buratei:
I get a feeling what I described with the "EDIT" heading just above is something that has replaced the fastboot mode. Seeing how there was nothing done to the phone otherwise, quite possibly a side effect of flashing recovery2.img in the wrong recovery partition. The only thing left for me to try is taking out the battery for a while, but I doubt that would do any good. IIRC, DC phoneix needs the phone to be recognized by a host computer, so it won't do much for me either. sucks...

https://www.google.co.kr/amp/s/amp....idsid/mate_9_bricked_no_fastboot_or_recovery/

pretty much what's happening to me, so i tried to mimick him the best i could for some time. still a no go.

EDIT2: i just remebered at one point i had switched to a longer usb-c cable that came as a matching set from a wall wart charging unit. this was done because i was on a very short cable that required the phone to be propped up to avoid it from haning on the cable. there is very real chance that cable is wired for power only. cant wait to get off work and test that theory!
[Huawei P9 Questions & Answers] Buratei:
dayyeeeeeem all this trouble and sleepless nights over a friggin cable! why the farq do they make chargers with detachable cables if the cables can't transfer data? so easy to fool someone with em stupid cables, really gotta ban those evil things!!!! :o:confused::silly::victory:

now that I let it out of my system, time to get back to business. Don't really wanna mess anything up any more lol

so here is a recap of the state it is in and how we got there (to the best of my knowledge)

- I had fudged it up by flashing b386 (or some other EMUI 5.0 variant) hw package first

- tried going back to B136 by separately flashing extracted img files (system, boot, cust, recovery, userdata, cache) in the respective partitions but it got me trapped in a bootloop

- phone/FRP unlocked

- twrp is flashable, but can't do much with it -> flashed recovery2 in a wrong partition (recovery)

- switched to a power-only cable and mistakenly believed recovery2 is what prevented me from entering fastboot

- now I can enter (actually I could have all this time, but let's not go there :D) fastboot by using the correct type of usb-c cable and holding the vol- button before hooking it up to a computer

Since I stay at a remote location during the weekdays, I need to gather necessary files (B136, B180, rollback, a working B386, etc) to return to MM and ultimately and hopefully upgrade to Nougat.

If memory serves me right, I did attempt force flashing B386 main on top of the hw rom, so I probably have to flash the rollback image. But in order to get there, I will need a working recovery first and foremost as I can't even do a force flash as is.

Then I need to figure out how to upgrade to Nougat (EMUI 5.0), seeing how the links given in the Nougat upgrade guide have gone kaput. Are you supposed the find the URL thru firmware finder and feed that into the firmware updater 2.0?

EDIT: flashed recovery, recovery2, boot, system, in that order. Finally able to get back in erecovery. Next up, rollback package here I come!

EDIT2: both B136 and rollback fail at 4% or so. if power is plugged in, they get stuck at 5%

should I try my luck with a nougat rom instead?

or should I just charge it up some more and give the rollback package another go?
[Huawei P9 Questions & Answers] kukubau:
Read my tutorial carefully. Where did I write B136?!?!?!?

Flash the B386 *.img files and only those, not any other version. Flash the rollback firmware for your phone and THEN flash B182 or the corresponding version for your phone. If B136 is that fw, than yes, flash it. If not, stop experimenting!

You only need to flash B182 fw, the update packages you will get them via OTA system updates. Huawei stopped releasing full fw packages that are fully functional, or at least the ones that you find using Firmware Finder are incomplete.

The first Nougat OTA update is B376, then comes B383, B386 and finally B388 which was approved last week. There will be released a B390 fw in a few weeks time.
[Huawei P9 Questions & Answers] Buratei:
My bad, my mind lapsed back to the older debranding guide.

http://www.google.co.kr/url?sa=t&rc...ugat-update/&usg=AOvVaw2dSEuIVnxIF1op2N15XXVz

Luckily B386 is available for download from the above link, but it lists two files:

◾update.zip

◾update_data_full_EVA-L09_hw_eu.zip

I take it you extract the img files from the former?

What do you mean by running system update 3 times, like run it once, reboot, rinse and repeat?

Last time I had a working installation of b182 the system update just kept saying everything was up to date :(
[Huawei P9 Questions & Answers] Buratei:
following this guide to the T now...

does not boot after flashing the img files, moved onto force flashing the rollback file. I get stuck at the "your device is booting now..." message on the "your device has been unlocked" page... cannot enter erecovery either

back when i was experimenting with b136 and b182, I was able to enter erecovery and get force flash screen to come on (albeit getting stuck at 5% or failing at 4% depending on pc connection or lack thereof)

EDIT: sorry I just had to go with my gut feeling with a bit more research....

I had a feeling oeminfo was somehow messed up, so installed twrp (not sure mm or nougat, probably the former) and flashed oeminfo

rebooted and got the red warning screen about failing a verification. still undeterred, proceeded to re-unlock and manually flash b136

I started off with the cable plugged in, got stuck at 5%. unplugged it and somehow started moving past 5% all the way up to 99%.

at the end of a long stall, failed update notice came up leaving me no choice but to reboot

upon reboot, I am back in b136!!!! wowzers!

well I guess I will force flash to b182 for now and I should be getting some form of EMUI5.0 via OTA update, right?

please get back to me about doing the update three times thing!

yet another edit: tried b182 force flash, stuck at 5% again. did OTA b166 instead and it went through OK. checked just to see if b182 would be offered via OTA - sadly no. b166 is the newest I could get this way. also, my bootloader is still showing a yellow warning page, not a deal breaker though.

extra edit: b182 went through fine. I could stop now or keep messing with it to get into Nougat. not taking chances any more, will await your input to proceed any further!

nevermind, i see what you mean by x3 ota update, it all makes sense now. so the reason my ota update isnt being pushed is I am too far behind the update queue (if there is a such thing) i assume?
[Huawei P9 Questions & Answers] kukubau:
Use Firmware Finder android app to force B378, B383, B386, B388 updates, you can find it in the store. The app is very straightforward to use, you can use the DNS or the proxy method.

You may want to do a factory reset after flashing B182. System update might work from itself this way without using Firmware Finder. Nevertheless if you did everything right, you should receive B378 update via OTA anytime soon. Don't forget to unlock the bootloader after doing the factory reset.

Update queue doesn't have anything to do with it. Those updates are supposed to be received via OTA updates in that order.
[Huawei P9 Questions & Answers] Buratei:
I get a "reset failed!" message if I attempt a factory reset :crying:

I noticed there are 3 version of each build on the firmware finder. which one should I go with? Remind me why the bootloader needs to be unlocked again? I thought you would rather have it locked if you aren't doing any custom mod work (e.g. letting OTA updates to do the job)?
[Huawei P9 Questions & Answers] Buratei:
flashed a 2.27gb b378fw, ended up with NRD90M test-keys again. what should i do?! I mean, I know the rollback procedure can take me back to debranded b182. it's just that i dont seem to get OTA updates or find a right version to flash in firmware finder. maybe call it quits and be happy with a working b182 phone?
[Huawei P9 Questions & Answers] zgfg:
Few replies to this and previous post.

You can try one more rollback, but to b182, do not improvise again with b136.

And don't mess up with TWRP - unlock bootloader and install TWRP only when you come to your final build version (either b182 MM or eg b386/b391 N) where you will decide to stay - OTAs will not work with TWRP flashed

If you rollback to L19 c432 b182, then you must choose L19 (c432) b38x from Firmware Finder - if you rolled back to L09 (c432) b182, you must stick with L09

I would suggest to stick with L09 or L19, the same you originally had on your phone, actually depending on do you have single (L09) or dual SIM (L19) hardware

From Firmware Finder, choose FulOTA-MF-PV updates (exactly as that, PV means Public Version), you do have them for b378, b383 and b386, both for L09 and L19

If you do everything right, OTAs should start coming by themselves, already from b182 to b378-b383-b386, or at least eg from (DLOAD installed) b378 to b383-b386

At the end you may even end up with OTA updates to b391 or now the latest b393 (available for L09, not for L19 - for L19, b390 is the latest available)
[Huawei P9 Questions & Answers] Buratei:
any particular reason to flash TWRP if I am willing to stay stock I may ask? I already rolled back to B182, no signs of OTAs yet.

mine is a single sim, haven't flashed anything L19 yet!

I have just reverted back from a less than ideal (test-keys) b378 flash... last weekend, I think I tried b386 (could be wrong) and still ended up with a test-keys install. When I did that firmware finder asked me which files out of two choices to download and I chose both, and followed through with an install by the proxy method. Since you were saying it's better to stay at b182 if L09, I will leave firmware finder alone for now.

right, which is why I am puzzled and not sure what to do. if OTA updates do appear, does it involve some wait or they do so immediately? I tried a factory reset but it stops prematurely with a failure.
[Huawei P9 Questions & Answers] zgfg:
Of course, if you don't want root or custom ROMs, no need for TWRP, stay all on stock

Btw, did you ask through HiSuite if there is OTA available

Also, you can ask from Settings / Huawei ID (don't know is that option available in b182 Settings)
[Huawei P9 Questions & Answers] Buratei:
nope haven't tried those, will report back after I give them a go!

EDIT: HiSuite thinks b182 is the newest possible for my L09. I guess my huawei ID is the same one I used to get the bootloader unlock code. will try that shortly.
[Huawei P9 Questions & Answers] kukubau:
FULLOTA-MF-PV or

FULLOTA-MF if there's no PV update.

You'll get OTA updates with the bootloader unlocked just fine.

1. Flash the L19 Rollback package once more, do a factory reset just thereafter and unlock the bootloader using the code you got from Huawei website.

2. Flash L19C432B182 and force the next OTA updates using Firmware Finder. After you receive the OTA update in system update and it starts downloading, change the network settings to default before it completes to 100%, by changing the DNS server back.
[Huawei P9 Questions & Answers] Buratei:
any reason to prefer DNS over proxy? proxy worked for me... kind of, except the test-keys bit. I am already back in b182. why would I need to unlock again?

I am a bit hesitant to try firmware finder in the fear of getting another test-keys install. It would help if there is a good explanation for what causes that.

here is my theory:

everyone of the nougat roms I have downloaded/installed seem to come in two files as one package, the main update and update_data_full_hw_eu. I peeped into the latter with the extractor and found cust.img within. So I am guessing some sort of a mismatch between the old cust partition contents left unupgraded and the rest of the upgraded stuff. Huawei's built-in update app (the one found under settings) should handle all this by itself (perhaps by installing the both files), right? It didn't for me for some reason...
[Huawei P9 Questions & Answers] zgfg:
Yes, same Huawei ID.

Btw, I have two IDs, one as from Hong Kong (at the time being it was not possible to register as from EU on Huawei portal for the unlocking codes) and another from my country.

I can register with both but I also don't receive OTAs further than b386. However, I have TWRP and custom ROM (Magic Rainbow v2) and I'm still happy with
[Huawei P9 Questions & Answers] Buratei:
not like I am hellbent on staying stock either, I was actually thinking lineageOS when I first bought the phone. then I learned that with lineageOS you have to live with the CM camera app supposedly not as good as huawei's on this phone. that, and all the banking apps must work (must be near stock, or magisk which isn't 100% either). How is the camera bundled in Magic Rainbow v2? Even with most custom roms, don't you first have to update to nougat anyway for the latest and the greatest?

I am just setting this thing up for my friend, and her priority is the camera. It has become a bit of my personal vendetta to put nougat on this thing, but I starting to lose patience :(
[Huawei P9 Questions & Answers] zgfg:
Magic Rainbow v2 is stock b386 (stock Camera and other apps), cleaned of bloatware, with Kang Settings, Viper4Android and rooted with Magisk.

I have it for 2+ months, everything runs perfect (incl. Magisk modules like YutubeBackground, but I didn't try Xposed)

With several tweaks I was able to reduce idle time battery consumption almost down to MM level.

Btw, expecting MagicRainbow v3 this year, based on b391/b393
[Huawei P9 Questions & Answers] Buratei:
sounds great, sign me up for that :D

gives me all the more reason to somehow upgrade to b386

I am reading the installation guide as I am typing, looks like NRD90M test-keys install won't work for this?
[Huawei P9 Questions & Answers] zgfg:
You should need to start off the proper stock b386:

https://xdaforums.com/p9/development/rom-huawei-p9-magic-rainbow-t3601064
[Huawei P9 Questions & Answers] kukubau:
You need stock recovery to receive the latest OTA updates.
[Huawei P9 Questions & Answers] zgfg:
Of course, but ATM I'm ok with the custom ROM MR v2 :)

For [MENTION=4842109]Buratei[/MENTION] - you can try with another incarnation of the same roll-back procedure

https://xdaforums.com/p9/development/root-supersu-2-81-emui-5-t3612258/post73131443#post73131443

Skip steps 7 and 8.

Under 9, you should receive OTA upgrades b182->b378->b383->b386.

Step 12 is optional, if you want SU Root over b386 (it should work for b391 as well, if you receive it by OTA)
[Huawei P9 Questions & Answers] Buratei:
ugh... I could, but looks like every step in the linked procedure is identical to what I have done except for steps 7 and 8 which you are telling me to skip, unless there are multiple versions of b182 firmware (doubt it). but wth, got nothing better to do so I am open to experiment again :)

the link for b300 is broken. Since I am already on another b182, I will try flashing the b182 from your link on top of it and see how it goes.

-> no OTA update offered, factory reset fails at about 60%.
[Huawei P9 Questions & Answers] Buratei:
man... I finally got myself in on b386!

turns out I almost had it on my first try, just had to get the openkirin version of TWRP and flash the update_data_full_EVA-L09_hw_eu.zip file from there. looks like getting through NRD90M test-keys is part of the natural process, you need to follow through with the second half of the business.

everything works, cust info is showing correctly as it should! thanks guys :D

now I am onto installing magic rainbow v2, hopefully this isn't a mistake ripe with more bootloops :o
[Huawei P9 Questions & Answers] zgfg:
Did you finally receive Nougat by OTA or you flashed manually?

I hope you had no issues with MR - be careful, every single detail is important, ike TWRP mounting options, enabling ADB and USB Debugging for Magisk, proper BusyBox, etc

Share your results in the MR discussion
[Huawei P9 Questions & Answers] Buratei:
i am working on my car at the same time (got to get it done by tonite) so i cant spare too much time for posting for now

i had to do it manually, but like i said there were two phases to it. for the first half, i had to rely on firmware finder as OTA updates were foerever MIA. did it by proxy and got the familiar NRD90M test-keys. Instead going back to the death spiral of rollback and repeat, i got the full update firmware file off the internet. this was inspired by a youtube clip by a guy named MOS. he was urging to flash that separately, preferrably by the nougat compatible version of twrp. that was the second phase of the install and everything went picture prefect.

when i was doing the MR install, i followed instructions very strictly, except i didnt have enough time to acknowedge the magisk prompt on the very first boot. hopefully i didnt break the safetynet flag, will find out once i install some banking apps.
[Huawei P9 Questions & Answers] zgfg:
Inside Magisk, click to check SafetyNet status, everything must show in green.

Also, in GooglePlay, check the status of PlayProtect (later, turn the BigBrother better off)

Check also SuperUser and Modules under Magisk. Inspect by eg JRummy RootChecker if Root and BusyBox are ok

When you enable Viper4Android (and restart), enable Master switch for eg Phone Speakers and check Driver Status, while Music is playing, it must show Supported and Processing Yes
[Huawei P9 Questions & Answers] Buratei:
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.
[Huawei P9 Questions & Answers] zgfg:
Response moved to Magic Rainbow group:

https://xdaforums.com/showpost.php?p=74334922&postcount=771

Discussion does not fit here anymore :)
[Huawei P9 Questions & Answers] Tecalote:
Hello :)

For safetynet issues check following:

https://xdaforums.com/showpost.php?p=74265463&postcount=768
[Huawei P9 Questions & Answers] kukubau:
Can you please point to the right guide for installing Magisk on P9?

Thanks.
[Huawei P9 Questions & Answers] Tecalote:
Its easy to do.

Just make sure you have unmodified Stock boot.img installed.

You should have b386 or b390 or b391 installed.

Disable in TWRP in Settings automount of vendor and uncheck vendor in Mount tab

Flash Magisk v14:

http://tiny.cc/latestmagisk

Boot to system without wipe of Dalvik/Cache

You should be find Magisk Manager somewhere on Homescreen.

If not, install Magisk Manager apk

https://github.com/topjohnwu/MagiskManager/releases/download/v5.4.0/MagiskManager-v5.4.0.apk

Next steps are written here

https://xdaforums.com/showpost.php?p=74265463&postcount=768
[Huawei P9 Questions & Answers] zgfg:
To recover stock Recovery (over the TWRP recovery), is it enough to exctract and flash only ecovery:

fastboot flash recovery recovery.img

or both, recovery and recovery2 are needed:

fastboot flash recovery recovery.img

fastboot flash recovery2 recovery2.img

Also, when extracting, is it ok to use Unknown Profile (there is no Profile for EVA-L09c432)

Thanks
[Huawei P9 Questions & Answers] Tecalote:
Are you going back to Stock Firmware now?

I am asking, because the way going back from MR v2 should be down in a special way.

Dload method at first is not recommended!

Because it will not restore some essential parts which are needed for updating Firmware.

That's why you would not need to flash Stock Recovery.

You should flash FullOTA-MF-PV b386 with TWRP like I have guided in my OP Point 4) Do it exactly as guided.

Then you would have Stock Recovery automatically and the clean Firmware for OTA.

After you are on b386 with this method, I would recommend to do it after also with dload method. Just to be sure, everything is absolutely clean.

But just answering your question without the context - Stock Recovery is only RECOVERY.IMG (recovery2.img is not required since you haven't modified it)

And RECOVERY.IMG must be the one from current system. I recommend to flash it only with ADB (and not with TWRP by using img! )

But as I said - you can skip this if you want to go back to Stock Firmware b386 from MR.

In this case use steps 4) from MR Thread OP
[Huawei P9 Questions & Answers] zgfg:
Ok, thanks, I thought also that TWRP ovewrites Recovery, not Recovery2.

ATM I'm not (yet) going to stock, but I'm comsidering various options.

When I will go, I can flash through TWRP my backup of the original/clean stock b386, having only my Google acc and home WiFi - if I additionally reflash stock recovery.img, it would become working stock b386 ready to acquire OTA b391.

I was thinking also of another path - getting back to stock b386 as above, but keeping TWRP and then flashing b391 through TWRP.

Both options end-up with stock b391 and stock recovery - in any case I will have to flash TWRP again (not a big deal but I was thinking about minimizing a number of steps).

I''d like end up with b391 (or even b393) +TWRP, In that case I can follow your instructions to flash and configure Magisk with BusyBox.

I can easily add AdAway.

I could try V4A as Magisk module, or I can find in another thread your link for its TWRP flashable ZIP installation.

I don't terribly need K-Settings, and I can use Quarantine to freeze unwanted apps.

With some interesting DIY, I was thinking of making my own, modified, b391/b393, with many features as from your MR :)
[Huawei P9 Questions & Answers] Tecalote:
Sure, you can do! Anyway MR v3 will come and have all the features of b392 (including camera and all the other features of b390, b391)..

But one thing you can't do: you could not flash later Firmware than b386 with TWRP.

B390, b391, b392 is not flashable with TWRP - because only FullOTA-MF-PV Version are flashable with TWRP.

Not FullOTA.. And there's no FullOTA-MF-PV for higher Firmware...

You decide :)
[Huawei P9 Questions & Answers] zgfg:
Ok, there is really no FullOTA-MF-PV for b391, but if I go to stock b386, OTA will make it to b391.

And b393 does not bring any new feature over b391, just a newer Security patch.

Hence I can start playing off as described with b391+TWRP, my only concern is that P9 is my daily driver and I don't want to risk having q non-responsive phone for several hours or longer, specially if I make something wrong.

That's stopping me, plus a fact that MR v2 runs smoothly, and that I have configured things for about 0.7% bqttery consumption during idle-time.

Mostly just a curiosity for the pro upgrading, and hard reasons on the con side
[Huawei P9 Questions & Answers] Tecalote:
Okay I have seen you decided to change your Rom to BlueWei, wish you good experience. :)

Dkionline Rom are also pretty good.

He has more time to update Roms earlier than I can (cause haven't much time)