yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Guides, News, & Discussion] :
New TWRP will come!

MTP Works (Need to Disable and Enable MTP in mount!)

ADB works! now we can adb remount ;)

Edit it's live in op
[Huawei P9 Guides, News, & Discussion] :
Please report back on MTP and tell if it'll work for you guys.

Else send me your boot.img
[Huawei P9 Guides, News, & Discussion] Atarii:
Thanks for you work as always LastStandingDroid :)

However, just installed the new image and tried both MTP and ADB, but neither working :( (even after disable/enable MTP)
[Huawei P9 Guides, News, & Discussion] :
Send me you boot image then :)
[Huawei P9 Guides, News, & Discussion] Atarii:
PMed it over :)
[Huawei P9 Guides, News, & Discussion] :
link in op updated thanks [MENTION=4081738]Atarii[/MENTION] for testing the twrp version
[Huawei P9 Guides, News, & Discussion] :
The only thing we need now is to get data not being forced to rely on system because if system isn't mounted it will unmount.

This is probably my fault

edit fixed
[Huawei P9 Guides, News, & Discussion] :
New recovery live in OP

fixed MTP automount

Fixed data unmount and is now not reliable on system [MENTION=4081738]Atarii[/MENTION] my guinea-pig u dare to test ^^?
[Huawei P9 Guides, News, & Discussion] dkionline:
So, test supersu then and check if it works.
[Huawei P9 Guides, News, & Discussion] Atarii:
New version with MTP automount works great :good:

Side note; do you know why encrypted /data is not supported - has the encryption scheme changed in Nougat?
[Huawei P9 Guides, News, & Discussion] :
No I reverted mount files

Because this twrp does not support decrypt option
[Huawei P9 Guides, News, & Discussion] Atarii:
Yea I meant as in do you know why this version of TWRP doesn't support it? Paul O'Brien (Modaco) added data decryption support for MM (patch here) and that was merged into the official TWRP P9 branch. So I wonder if Nougat changed the encryption method (and so the patch needs updating) or if it's just missing
[Huawei P9 Guides, News, & Discussion] dkionline:
The problem is, the new stock image have 2 fstab, for ext4 and f2fs. But data is f2fs anyway.
[Huawei P9 Guides, News, & Discussion] :
Ah i see i haven't checked it tbh since I use decrypted already.

No was in m as well
[Huawei P9 Guides, News, & Discussion] :
Interesting thus who runs encrypted data can now wipe with f2fs without issues no need to flash data fix

supersu is flashing even with stock sbin mount
[Huawei P9 Guides, News, & Discussion] and-roid007:
you mean we can achieve root by flashing supersu instead of phh's one?
[Huawei P9 Guides, News, & Discussion] :
Nah seems like it was a temp bug or something I guess if data isn't working it'll flash
[Huawei P9 Guides, News, & Discussion] and-roid007:
sorry i did not understand it well
[Huawei P9 Guides, News, & Discussion] :
It worked for some reason next time it didn't not sure why
[Huawei P9 Guides, News, & Discussion] :
Can someone try to only format data partition with f2fs? I was able to format it in twrp without flashing any datafix
[Huawei P9 Guides, News, & Discussion] Atarii:
Hmm I converted my ext4 /data to f2fs but had already set up (ran data fix) before. Didn't need to flash after convert though
[Huawei P9 Guides, News, & Discussion] :
Well I downgraded and tried to see if I could get decrypt working (wasn't successfull) but I could wipe data so it was later detected. I want info if it works for thus who have data issue
[Huawei P9 Guides, News, & Discussion] :
Ouch i see why we can't use super su or magisk ?

Our kernel doesn't support loop devices ?
[Huawei P9 Guides, News, & Discussion] dkionline:
^^ without load_boot, all Su things got removed after reboot.
[Huawei P9 Guides, News, & Discussion] :
Not sure what you mean
[Huawei P9 Guides, News, & Discussion] robgriff:
[MENTION=4435346]LastStandingDroid[/MENTION] what ROM are you using? Can you please post a link?
[Huawei P9 Guides, News, & Discussion] :
Stock update from HwOUC which Swedish beta testers got
[Huawei P9 Guides, News, & Discussion] gkm223:
Do it work on Mate 8 ?? Or there is any twrp for N for Mate 8??
[Huawei P9 Guides, News, & Discussion] :
Uhm i dont know is there?
[Huawei P9 Guides, News, & Discussion] and-roid007:
i have flashed properdata fix and then resize it but now i have 123 MB just

solved it by changing filesystem to f2fs
[Huawei P9 Guides, News, & Discussion] :
I thought I said before it isn't needed to flash it anymore.
[Huawei P9 Guides, News, & Discussion] and-roid007:
yes you are right... my phone suddenly reboot and forced me to factory reset,after that i tried flashed update_data file and it flashed successfully but i stuck at logo, then i decided to full wipe and repeat but still no success

edit: i decided to get back to 6 and then 7(if it success).

edit1 : updated successfully but error encryption failed(reset device)=>factory reset automatically.

edit2: i had make a mistake: flashing twrp n on android 6.device stuck at "enter recovery", so i pluged in usb and pressed power button, when it reboots pressed volume down and enter fastboot then flashed twrp M and flashed update.zip then update_data and everything is ok till now/

[MENTION=4435346]LastStandingDroid[/MENTION] it is needed to flash properdata fix for first time, is it needed to flash supersu? cuz i have problem booting up device
[Huawei P9 Guides, News, & Discussion] :
Yes flash https://mega.nz/#!exoBzDrR!8ukn9S5RV9i4ki_otpsdPN_zbs0QeMCOvwq-2vb3eeE

You should be able to format data with f2fs but if you do you have to flash su

I removed mount related parts and that so it won't mount su

And it'll succeed to patch without issue
[Huawei P9 Guides, News, & Discussion] and-roid007:
flash twrp N

flash properdatafix and change filesystem to f2fs and then resize

flash update.zip, update_data

flash supersu

reboot

i have done these but no success.
[Huawei P9 Guides, News, & Discussion] Arnys:
same here.. Whatever i do, every time is 2 outcome:

1: my device isnt booting. It stuck at logon huawei simbol, where is turning on sound, but nothing of thease are here, only black screan for hours.

2: device is booting on, but my phone isnt showing data, internal storage is broken or somthing, system just isnt showing it. But at twrp i can access data , and sucefuly can flash it with any zips. Just when booting in system, data files are mising!
[Huawei P9 Guides, News, & Discussion] Atarii:
It sounds like SuperSu isn't flashing correctly - did you mount partitions before installing the SuperSu zip? You need to manually mount /data, /vendor, /product, /data etc. before, you can tell it worked as there'll be more log lines during install and then su.img will be present in /data.

Here's roughly the steps I did:

Unlocked bootloader

Installed latest TWRP from this thread (twrp-2016-12-01.zip) via fastboot

Reboot into TWRP recovery

Install properdatafix.zip

Reboot recovery

Attempt to resize/wipe /data (this took a few goes as I kept getting Error 4. Rebooting once out of TWRP seemed to fix it)

Install update_data_full_hw_eu file; for reference to others use this one: http://xdaforums.com/showpost.php?p=69666045&postcount=76

Mount all partitions (/data, /vendor, /system, /product etc) and then install SuperSU (SR4-SuperSU-v2.78-SR4-20161115184928.zip)

Remove su.img from /data (this will only be present if you mounted correctly before preciously step)

Boot :)

If it goes wrong, install the 322 N system build in TWRP and try again
[Huawei P9 Guides, News, & Discussion] and-roid007:
can you please upload twrp-2016-12-01.zip?
[Huawei P9 Guides, News, & Discussion] Atarii:
Sorry I don't have it any more, that was just the one I first used when I wrote the instructions. I've since flashed newer ones and am now on the latest (in first post)
[Huawei P9 Guides, News, & Discussion] and-roid007:
i have the latest one,mounted every partition to flash supersu but no success
[Huawei P9 Guides, News, & Discussion] Atarii:
Do you get extra logging with the partitons pre-mounted? Is su.img in /data after flash (use file manager in TWRP)
[Huawei P9 Guides, News, & Discussion] and-roid007:
no,there is no su in /data.

i have flashed supersu-sr5 but there is no su.img in /data(there is supersu.apk)

phone passed the logo but there is nothing except black screen!!!

edit: i have successfully flashed android n and update_hw zip file via twrp M but it failed on latest version of twrp N.

edit : [MENTION=4435346]LastStandingDroid[/MENTION] i appreciate your hard work but i have a suggestion :

providing changelog and link to every version of twrp may be helpful.
[Huawei P9 Guides, News, & Discussion] :
Try re flash system
[Huawei P9 Guides, News, & Discussion] dkionline:
i say it last time. Without modification it wont root properly. It needs kernel changes aswell.

I work today on both twrp and kernel and see what i can do.
[Huawei P9 Guides, News, & Discussion] :
Without any modification of what exactly? The su package patches boot and so does phh su.
[Huawei P9 Guides, News, & Discussion] and-roid007:
why in the latest version of twrp when we flash supersu there is no su.img in /data?
[Huawei P9 Guides, News, & Discussion] :
Because I removed the mount related info for it
[Huawei P9 Guides, News, & Discussion] and-roid007:
and that cause system to not boot properly? (assume that you have no firmware installed)
[Huawei P9 Guides, News, & Discussion] and-roid007:
after flashing twrp the /data cant be mounted. (i flashed android via twrp M).
[Huawei P9 Guides, News, & Discussion] :
No that's the cause it won't boot if you have su.img in data folder

Because we can't decrypt it yet.
[Huawei P9 Guides, News, & Discussion] and-roid007:
yes there isnt su.img.but why? is it related to mount?
[Huawei P9 Guides, News, & Discussion] :
No because I removed the lines in zip to not create and mount it. So there isn't any issue by your side

Edit I see it didn't work scratch that ?
[Huawei P9 Guides, News, & Discussion] :
[MENTION=4940322]and-roid007[/MENTION] ill fix a twrp that'll fix su flash.
[Huawei P9 Guides, News, & Discussion] paratox:
twrp-2016-12-01.zip
[Huawei P9 Guides, News, & Discussion] cesarguaro:
hi... i flashed this zip but my phones doesnt boot... i have to flashed an old twrp.img throught fastboot and after that it boot..!!! i´m on android 6 B182.... which version of android is this version on this forum?

Thanks :)

---------- Post added at 03:15 PM ---------- Previous post was at 02:37 PM ----------

another question... this will help to flash from beta nougat B322 to B330 on a P9 device?
[Huawei P9 Guides, News, & Discussion] :
I assume B182 is m can't be to sure I don't know how Huawei is splitting up their devices firmware details
[Huawei P9 Guides, News, & Discussion] Arnys:
ok. flashed SR4-SuperSU-v2.78-SR4-20161115184928 and only with this su version appeared su.img at data. duno why, but its not work for me with SR5-SuperSU-v2.78-SR5-20161130091551

used twrp-2016-12-01.

flashed properdatafix.zip.

rebooted twrpN recovery, mounted all partitions, changed data from ext4 to f2fs (

rebooted twrpN recovery, again mounted all, flashed update_data_full_hw_eu.zip

rebooted to system, system didnt boot , stuck at logon screan.

force restart holding power button + volume up , booting in twrp recovery, mounted all, flashing SR4-SuperSU-v2.78-SR4-20161115184928.zip (duno if needet, before this flashed paid apk cracked SuperSU Pro-2.78.zip)

rebooting system, got loop like 5 times, then booting in twrpN recovery, mount data, file manager /data deleting su.img, rebooting in system successfull..

now i got working twrpN (fixed data) with working Nuget EVA-L19c432b322.

Root is working, but cant instal V4A+2.5.0.5 viper4android. Got driver status: Abnormal and unsuported :)
[Huawei P9 Guides, News, & Discussion] Atarii:
Great job :good: got there in the end. Did you check the first post for viper4android steps?
[Huawei P9 Guides, News, & Discussion] cesarguaro:
Yes B182 is MM yet... i supposed it´s only for N... but the most important question is if i can flash B330 (N) beta 2 on B322 (N) Beta 1.... just to update to the latest beta for P9
[Huawei P9 Guides, News, & Discussion] Arnys:
jeah. maybe i something missunderstood.. seLinux = permissive, tried different things with audio_efects.conf.. no succes.. :)
[Huawei P9 Guides, News, & Discussion] :
Great if u can share your boot image it'll help others to skip the long procedure if they mess up with the system partition ;)

Use

viper.zip4.4 MB

https://mega.nz/#!f8wlzIrB!vVCAv-xqWB8lOrcQTgIyFL0WS7MFsE9iFb08E1YKV2Y

Yes this recovery is only for N yes u can update from first version to second

Use package provided above should work without issues

Or 2.4.x .version

https://mega.nz/#!KtZmyLxR!zeebWWxk7a2UkC5QU1SbNeILtWz4alA7XcJOzDE6LLQ

Installs the audio effect to vendor/etc as well now just need to install busybox and set se linux to permissive
[Huawei P9 Guides, News, & Discussion] cesarguaro:
hi firends.---- could someone upload the properdatafix.zip file? i can´t find it anywhere
[Huawei P9 Guides, News, & Discussion] Arnys:
Viper now works, ty :good:

Where i can find boot image?

Here you can find it https://files.fm/u/p86dv6ff
[Huawei P9 Guides, News, & Discussion] mnv12345:
Hi, twrpN does not mount /data on dl00c17b365, what may i do to fix?
[Huawei P9 Guides, News, & Discussion] :
Wipe the data partition instead. I removed it since it isn't needed anymore.

Great

You're running encrypted partition were working on it!

On other side

New Test release will come. Soon
[Huawei P9 Guides, News, & Discussion] :
Back it up using twrp

Edit flashable chainfire su thanks to hacker007
[Huawei P9 Guides, News, & Discussion] dkionline:
Please check that: flash this kernel, then SuperSU 2.79. Lets see if that works.
[Huawei P9 Guides, News, & Discussion] :
Scratch that it won't boot
[Huawei P9 Guides, News, & Discussion] and-roid007:
[MENTION=4435346]LastStandingDroid[/MENTION] can we flash newest supersu in OP to achieve root?
[Huawei P9 Guides, News, & Discussion] :
Yes if you're on previous version of twrp and not latest (3.0.3)
[Huawei P9 Guides, News, & Discussion] :
I'll build a new version with mate 8 files. If it doesn't work now it is something wrong
[Huawei P9 Guides, News, & Discussion] and-roid007:
i have mounted everything but twrp show error 1.

edit: i had phh superuser and removed it, then flashed latest supersu and now device stuck at logo....
[Huawei P9 Guides, News, & Discussion] :
Su.img is in data folder
[Huawei P9 Guides, News, & Discussion] and-roid007:
there is no su.img in /data but stock_boot_....img.gz is available.
[Huawei P9 Guides, News, & Discussion] :
What zip did you flash? Stock su package? If so that's strange
[Huawei P9 Guides, News, & Discussion] and-roid007:
no,the latest supersu in OP
[Huawei P9 Guides, News, & Discussion] :
Hmm strange. Did you have phh before?

Try phh first then this one. Or use https://mega.nz/#!Php3nbzJ!gqVGRlNkw5_wkAoN8k-OshkZ8WWxjLC4t3mZfjsMh6s

It can flash supersu stock package in recovery. Then flash the modified phh should work.
[Huawei P9 Guides, News, & Discussion] and-roid007:
fixed it by flashing phh one.thanks anyway
[Huawei P9 Guides, News, & Discussion] mnv12345:
Hi, I got root, installed su r275 version and pph, gave root access for titanium backup, tried to remove some system apps and got error "app did not found". Is titanium backup working for someone on emiu 5?

---------- Post added at 07:33 PM ---------- Previous post was at 07:15 PM ----------

Installed SuperSU-v2.79-201612051815-EMUI5.0 and busybox. Now titanium backup is working
[Huawei P9 Guides, News, & Discussion] paratox:
i think since i flashed the new emui superSU logcat isn`t working anymore. or maybe viperARISE is the reason. could you test if logcat is working on your side?
[Huawei P9 Guides, News, & Discussion] :
If I recall logcat works just fine
[Huawei P9 Guides, News, & Discussion] mnv12345:
Logcat is working
[Huawei P9 Guides, News, & Discussion] :
Try auto allow the app. Se linux has same issue on first run. Then it works great
[Huawei P9 Guides, News, & Discussion] maliniaka:
could somebody tell me how to rollback from android n to the mm? I installed the twrpN and i cant go to the b136 from dload method :(
[Huawei P9 Guides, News, & Discussion] :
I think u need 320 as lowest
[Huawei P9 Guides, News, & Discussion] maliniaka:
I found the rollback package, I will try it in next hour but thanks!

Edit:1 it works!
[Huawei P9 Guides, News, & Discussion] :
Added how to decrypt storage post 2 it'll wipe internal storage
[Huawei P9 Guides, News, & Discussion] :
Last thing for this year http://xdaforums.com/showthread.php?p=70326001
[Huawei P9 Guides, News, & Discussion] dkionline:
https://xdaforums.com/htc-10/development/root-supersu-2-71-forceencrypt-verity-t3373258

Maybe that?
[Huawei P9 Guides, News, & Discussion] mihairimia:
I installed latest release B360. I flashed succesfully TWRP from this thread and phh su as instructed in first post and also su .apk. Its all good but SU asks for update. Normal doesn't do anything and via twrp it cant mount /data to flash it and right after I loose root. Is this expected behaviour?
[Huawei P9 Guides, News, & Discussion] dkionline:
[MENTION=2534019]mihairimia[/MENTION] you have to wipe data in twrp, but then you loose all stored in data folder. Its better to wait for a twrp flashable stock rom, then make a wipe.
[Huawei P9 Guides, News, & Discussion] :
Or flash phh instead
[Huawei P9 Guides, News, & Discussion] mihairimia:
/data fails to mount even after wipe, reinstall from scratch and root with phh. Any. zip that I try to flash is failing because of this.
[Huawei P9 Guides, News, & Discussion] wendo30:
Help!!! Rollback MM

Hi. First, I'm from Spain, forgive my English.

I have a P9 AL10 (dual sim) with android 7 in the "Test-Keys" version. I do not know how I can rollback to a stable version of MM. I installed the TWRP-N from this post, but, I do not know how to continue ... what files do I need? which are the steps to follow?.

Thank you
[Huawei P9 Guides, News, & Discussion] M.KK:
Thanks

Can it work in P9 PLUS?
[Huawei P9 Guides, News, & Discussion] :
Probably because of boot I can't tell atm tried change partition format?

U need the update.app from any stock firmware

Doubt u can try
[Huawei P9 Guides, News, & Discussion] Sebastiaanlabr:
Hello! I just updated my P9 to Nougat. Hicare app did it for me, after that, i flashed this recovery, and i try to root my phone. But it seems like its not rooted correctly, i have to flash the properdatafix?
[Huawei P9 Guides, News, & Discussion] :
I doubt u have to. But what zip did u try?
[Huawei P9 Guides, News, & Discussion] Sebastiaanlabr:
First phn. Seems to have root but failed with adaway and root explorer. After SuperSU, the same. Ask for a binary update with no success.
[Huawei P9 Guides, News, & Discussion] mihairimia:
Some applications show root is enabled like rebooter or root essentials. Some like adaway or ad-free just don't work. I found out that is related to /system being readonly. I did not find a working way to mount it rw. On the other hand I confirm it asks for update and can't install it. We really miss a comprehensive guide to achieve root on N.
[Huawei P9 Guides, News, & Discussion] :
Adaway must use vendor/etc/hosts

And if u get su binary update u failed to flash supersu

U need a modified boot it isn't root that's the issue
[Huawei P9 Guides, News, & Discussion] dkionline:
[MENTION=4435346]LastStandingDroid[/MENTION], some libs in system/lib64 are newly in vendor/lib64. Its not only switching fstabs.
[Huawei P9 Guides, News, & Discussion] Atarii:
Ah yes, I noticed this when you mount /vendor in TWRP and open Terminal - it complains about ipv6 libraries in that directory
[Huawei P9 Guides, News, & Discussion] colthekid:
Ok, so this thread has lost me now!!! :confused::silly:

Can someone just confirm the order we need to do stuff in as I tried going to nougat (B360 from B182) this evening. Update seemed ok and booted fine but then I got royally screwed when I tried to install SuperSU (refused to boot after that - stuck on boot animation) and was forced to return to B182. No problems as I had a backup, but annoying!

So I did...

Installed B360 update and rebooted a few times - No problems

Installed Twrp from OP and rebooted into system - No problems

Flashed chainfires SuperSU from OP - The proverbial hit the fan! :p

Flashed Phh su from OP to hopefully salvage the situation, but still no joy

On looking back I think I missed a datafix? although I was sure I'd read that that was no longer needed?
[Huawei P9 Guides, News, & Discussion] :
Twrp can wipe the data partition now and the image is gone from my mega.

U could try to just use phh zip since it seems like supersu with phh script isn't patching the boot properly.
[Huawei P9 Guides, News, & Discussion] colthekid:
So after reading the thread again, if I've got this correct...

Update to B360 and check it boots ok

Flash TWRP

Wipe/repair data as per post #2

Reboot TWRP (if needed) & mount all partitions

Flash update_full_hw_eu.zip for B360

Flash phh superuser zip

Reboot (& hope!!!!) :laugh:

Install phh superuser apk

Have I missed anything obvious?
[Huawei P9 Guides, News, & Discussion] :
I don't think so but if you encounter issues u can ask in telegram app I'm available there much
[Huawei P9 Guides, News, & Discussion] DroidXAce:
After "Select change FS", You have to select what?

EXT2/3/4, FAT, exFAT, F2FS ?

I get the following errors :

Failed to mount '/cust' (Invalid argument)

Failed to mount '/data' (Invalid argument)

Failed to mount '/version' (Invalid argument)
[Huawei P9 Guides, News, & Discussion] :
You can use f2fs or ext4

Format cust data and version and reflash firmware after wipe. Just make sure u get a patched boot after else u won't be able to boot
[Huawei P9 Guides, News, & Discussion] DroidXAce:
The partition is already in EXT4
[Huawei P9 Guides, News, & Discussion] colthekid:
Just a thought and apologies for being a little off topic, but with all the problems involved in obtaining root in nougat would it not be easier to start a "Warehouse" thread & provide a flashable zip with a working pre-rooted boot image and all other necessary su files for the different P9 versions (like the stock firmware thread here...https://xdaforums.com/p9/development/rom-stock-rom-eva-l19c636b168-t3419586 )? Or indeed a pre rooted stock rom image (like a custom rom is)?

Bit beyond my skills to create the zips I think, but shouldn't be too onerous for people to provide their boot images and other files for someone to then list.... L09CXXXB360, L19CXXXB360 etc

Or am I talking b***ocks? :silly:
[Huawei P9 Guides, News, & Discussion] mihairimia:
[MENTION=4435346]LastStandingDroid[/MENTION] - how can we make sure we get a patched boot? Where to look?
[Huawei P9 Guides, News, & Discussion] :
I have one already but if you have honor 8 and assuming p9 as well you could use phh or chainfire su by hacker to get a patched boot. Else I'll write a tutorial about it later

It could be easier it also would be good to have a tutorial for it.

By flashing phh or hacker modified chainfire su

Here's a tutorial

https://xdaforums.com/showthread.php?p=70524940
[Huawei P9 Guides, News, & Discussion] sewkanteam:
hi all I need help pls now

I am on Twrp now and ı dont want reboot coz ıt will be bricked ım sure :=)

SO ım on huaweı NXT-TL00

I did all steps and all works clear ı thınk . I formatted data /system / cust

I can ınstall

Superuser

Twrp

Supersu

only thınk ı cant ınstall is update.zip

I want go back MM whıch firmware ı have to download for go back MM ?? please some1 link me or tell me the firmware ı have to downloand .

Coz ı can still still My micro SD card and İnternal card.
[Huawei P9 Guides, News, & Discussion] maliniaka:
Where can I found boot.img?