yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] tnhh:
Problem solved! Just in case anyone else ends up making the same silly mistakes as me...

Formatting userdata doesn't seem to work; this seems to be a common problem on Huawei devices.

> fastboot format userdata
FAILED (remote: Command not allowed)

But flashing the stock recovery (I used the recovery found in the SRK tool from http://xdaforums.com/p9/development/tool-srk-tool-huawei-bootloader-root-t3374068) did work.

Thanks for all your help!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paratox:
[MENTION=220328]paulobrien[/MENTION] any news for data decryption?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
And you try to format data ? Not factory reset ? Format . it must work . it works for any other phones with Android 6 . but then you will need to flash custom ROM .

Отправлено с моего HTC One_M8 через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] umair9001:
[MENTION=220328]paulobrien[/MENTION] after upgrading to L19C185B138, this recovery is working. It is now asking for password, which i believe is to decrypt the data partition.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Decryption reverse engineered, coming soon!

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paratox:
[MENTION=220328]paulobrien[/MENTION] you are our huawei p9 hero! without your work the device would only be half as good as it is now! :good::D
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
First post updated with RC1 build. WITH DECRYPTION SUPPORT! :)

​​​​​​​P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] tnhh:
It works! Thanks.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] umair9001:
Tested and working..although backup seems to failed..it says system backup failed error 255
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
Fails on data partition backup to external sd card (internal memory backup fine)

Same 255 error as above
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
Maybe because of size ? More then 4 gigs ?

Отправлено с моего SM-G930F через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Odd, i'll check it out.

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
I doubt it, I think TWRP splits the backup files automatically.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
So, for now, what can we have after bootloader unlock ? Root ? Xposed ? Or nothing?

Отправлено с моего EVA-L09 через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Root and Xposed should work fine. I Rooted no problem with the latest supersu Beta.

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
And xposed ? Somebody tried ?

Отправлено с моего EVA-L09 через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
Xposed works fine with the latest version, you just have to add

ro.config.hwtheme=0

ro.config.hw_theme=0

To system/build.prop

Then reboot
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] ghoogen:
I will be submitting the files for official TWRP support shortly, but in the mean time you can check out the build below. Flash using 'fastboot flash recovery' and, of course, use at your own risk.

Enjoy! :)

DOWNLOAD - twrp-3.0.2-0-eva-modaco-rc1.img- MD5: 2a627288d0d7e1fefa3af304809ae7f0

P[/QUOTE]

How to flash on EVA-L09 ?

thanks

---------- Post added at 03:43 PM ---------- Previous post was at 03:17 PM ----------

How to flash on EVA-L09 ?

thanks[/QUOTE]

I've already found it, and it worked
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] emilrune:
Learn to quote/reply.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] clouds5:
Great news :) I felt kinda naked not having the ability to do a backup :eek:

Now let's see what I need to modify to enable double tap to wake :cool:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] umair9001:
Disabled compression before taking a backup and it went through successfully
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] clouds5:
Backup fails at creating a backup of the data partition with error 255 when creating it on the SD card. On the internal storage it doesn't even begin. Do I have to manually mount anything or am I missing some other setting?

I've attached pics of the log and error messages.

Compression is disabled.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] clouds5:
Tried to create a backup again today and it went fine^^ (on the internal storage at least, still getting error 255 on sd card)

[e] another report: sometimes it's not possibel to unmount /system after a backup.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] akeshnet:
Still error even on internal memory!!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
No errors for me. Made a backup on internal memory and on SD card too . But have an error 255 too , just rebooted in recovery again and worked . For every reboot just one backup. Good work, thanks. Now just a couple custom ROMs and I'm happy.

Отправлено с моего EVA-L09 через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Updated to RC3 with various fixes.

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paratox:
error 255 is also in rc3 present. just tried to backup on external sd with compression and got the error.

on internal without compression it sometimes worked on rc1 but also not always.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] akeshnet:
Where is the rc3 update!??
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
In the OP, it's just named slightly incorrectly as rc13!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] engineer000:
thanks, I was able to backup on internal storage and flash new world custom rom posted here.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TheFusi0n:
I think the problem is the compression. Without compression no problems on internal storage and externe sd.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] ghoogen:
Again, error 255 with rc3, Firmware EVA L09C432B136.

with Xposed-v85.1-sdk23-arm64-custom-build-by-wanam 20.160530 installed

Backup without compression to external SD card

Log and screendump TWRP map attached

Greetings
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] samteeee:
@OP

Great work Paul.

Would this work on P9 Plus VIE-L09?

Thank you.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Probably not, there is a Plus TWRP in the device's forum tho!

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] umair9001:
today tried flashing open GApps (aroma version) and it used to get stuck on the welcome screen immediately after clicking the next button.

also, backup was failing when data partition was selected..this was backing up on sd card..
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] il0:
I'm having the same problem on EVA-L09. Also the other guide doesn't work - same thing, the twrp upload & write goes succesfully, but after rebooting it goes to EMUI recovery...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] crubbish:
If I remember correctly you need to boot to custom recovery straight after flashing it (before you reboot device): adb reboot recovery. This way TWRP should stick. Has been this way on P7 and P8 as well.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] BTaylor927:
I had that issue, the fix was to flash stock recovery, restore to the stock ROM provided by Paul and then flash the recovery. I assume something in the newer versions stops it installing properly?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] phyvax:
I found a solution:

In fact twrp already install when you see the process success, but the right way to access twrp is press VOL up + Power when phone is off.

If you power on the phone and press vol up for 3 second as what the screen prompt you , you will go into stock recovery.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] emilrune:
I got another issue; I can install this TWRP 3.0.2.0 no problem, but as Soon as I Boot to it, it crashes after a few seconds. I rue The Day I need TWRP for restoring a backup...:rolleyes:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] master':
Your battery is low, plug charge and try again ;)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] twicejr:
Only, calling doesn't work when installing a privacy manager, for example.. :confused:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
No need to alter the build.prop anymore, change it back & use [MENTION=3562083]wanam[/MENTION] 's version here... http://xdaforums.com/p9/development/xposed-huawei-theming-engine-support-t3388995
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
[MENTION=220328]paulobrien[/MENTION]

Hi,

Are you still developing this TWRP for the P9 as it's been over a month since the rc3 update?

I assume you may be having trouble solving the error 255 issue, if so, can any of us on here assist in any way? (Not that I'd personally be much help with coding I'm afraid, but you never know!)

I did manage to find and install a TWRP from a Chinese forum (Lol at google translate!), but it had the same issue, so was probably only yours repackaged.

Cheers

Col.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
Hi mate!

Yes, I am - I've been working on getting a raft of TWRP releases officially supported for Huawei devices, including the P9 / Eva - http://www.modaco.com/news/android/...ilable-for-8-more-huawei-honor-devices-r1654/

This has been my top priority recently, because official support means things are smoother going forward for fixes, TWRP updates and much more.

With regards to error 255 I am still investigating - it seems to affect a whole load of devices, not just Huaweis, so I'm still working on it.

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] phyvax:
Big big thanks for your great effort...i cant wait to see a perfect working twrp for P9...cheer up my frez;);)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] lorddm:
Hi all. Today Im first time try make backup from TWRP and I see size of Data partition over 22 gigabytes. What is it? In Internal storage busy around 6 gigabytes.

Any ideas?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] darthkir:
Working perfectly on my L19. Finally, I can see my internal storage along with my micro SD in TWRP :D

Thanks a bunch, youre a legend!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] umair9001:
[MENTION=220328]paulobrien[/MENTION] the version uploaded here and on the TWRP site is having a small difference in size. Which is the most recent one?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] raber111:
Any chance to get TWRP working on Nougat?

Отправлено с моего NEXT через Tapatalk
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Salamender:
Hi Paul :)

I've installed your Recovery with SRK Tool and when i try to make a Backup, i have this error :

I've made a backup and this error appear. When i reboot my P9, the backup isn't in the internal memory but the size take by the backup are occuped, (5.6GB) when i reboot to Recovery, the backup isn't noticeable in the internal memory...

I tried to make a backup in external SD but i have the error 255.

The error said me the TWRP folder isn't created, i have to create it ?

Thanks.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] suemer:
i a known issue...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Hey,

after research the issues i found a solution for the "not found" error.

Explain:

If you boot from coldboot (Hardware keys) to TWRP /data/media/ is mounted as /sdcard ( internal storage ) which is wrong, should be /data/media/0. If you reboot to TWRP (from xposed etc) /data/media/0 is mounted correctly as /sdcard/. Sometimes remount "data" in TWRP fix this, but that's not how it should work.

Little Fix

[MENTION=220328]paulobrien[/MENTION]

twrp.fstab mount data after system

fstab.hi3650 mount userdata after secure_storage

BordConfig.mk (only to be sure, maybe could be deleted)

# Paths
TW_INTERNAL_STORAGE_PATH := "/data/media/0"
TW_INTERNAL_STORAGE_MOUNT_POINT := "sdcard"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"

On my tests i always get "/system busy" error after backing up system.

Error 255 could be permission error. http://xdaforums.com/showthread.php?t=2236620&page=48

[MENTION=535343]all[/MENTION]: Please check /data/media for TWRP directory, if there is one move it to /data/media/0 (internal storage) or external SD.

Testimage at evening or paul is quicker :)

*EDIT:

Link: https://drive.google.com/open?id=0B8GmpA94-ppYSnRMNW83enZ4UDQ
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] aceclift:
I tested the updated recovery that you linked...... and the backup worked perfectly for me with no errors backing up to the external sd card. it through the error at the end of unmounting system but that isn't anything to worry about. Backups to the sd card are working with this new build you uploaded
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] paulobrien:
I noticed this too on another device I'm working on. Well spotted!

P
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
The recovery referred in this thread is not backing up Data partition and it always throws mounting error when attempting to backup data partition. I found the version (tweaked) which backup every partition. Didn't note down the source. I am sharing through multiupload if anyone is interested.

Here is the link: http://www.multiupfile.com/f/1be708ac77

You are not bricking the phone by trying it via fastboot. You can give an attempt.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
Neither of these 2 recoverys worked for me, still getting the 255 error when backing up to external SD card.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Flashed via flashify, looks really good (like "original", with usb mounting).

After backup "can't open ......", rebackup system "error 255", soo... not really better.

[MENTION=1176451]colthekid[/MENTION]: Try the following. Shut down device, leave it for 30 seconds. Fire up with Volume + and Power. Backup to internal, move later to external. Only first backup will be good, second one in one session will cause errors...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
Nope still no joy... 255 error either way
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
You are correct. I did only one backup so far which was just before flashing magisk v3, systemless magisk xposed and SuperSu 2.76 flashed.

After reading your reply i tried backing up incl data partition and getting 255 error. This recovery is 2mb more than the same version posted in modoco. What is this 2mb extra does then?...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
I don't know, maybe libs...

________________________________

But have a look at the pictures.

First one backup data to internal

second one backup all other (include recovery) to internal

third one backup system to external

My tests yesterday showed me i can backup 4-5 times in a row without errors, so i'm on a good way ;)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
Which TWRP version are you using. Did you try with the one I shared (few posts above). I could only do successful backup incl data partition just after flashing TWRP (version I shared) and then on I can't get it complete both internal and external drives.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
My own version, after hours of compiling and testing this is the result
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
Do you mind sharing TWRP that you compiled. Thanks in advance.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
And that would be a +1 from me.

Also if you now have a completely working version then you probably should let [MENTION=220328]paulobrien[/MENTION] know, so he won't have to waste anymore time trying to solve issues on the P9 and possibly may assist him with developing TWRP's for other Huawei phones.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Sure, all of you can have it. At first i want to test things (backups takes some time) and post about it, to show it could be done.

It's not bug free, like you see above, but bug less. Backup to external is almost a problem errors appears randomly and i don't know where to look at, where is the exact problem. But you can backup to internal and move it to external. I've not tested how restore goes.

Image at evening.

[MENTION=220328]paulobrien[/MENTION] if you don't have enough time to develop for the P9, leave it and i do my very best with your good work so far.

*EDIT:

Downloadlink https://drive.google.com/open?id=0B8GmpA94-ppYZjBvdkVfUnVINFU

Flash via fastboot, but first remove /data/media/0/TWRP/.twrps only to be sure. You have to set settings in twrp again. On first boot allow system to be read/write.

Only backup to internal storage works for me so far without problem.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] mihairimia:
Hello, is it normal not to be able to see/browse what is on the internal partition from TWRP?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Internal Storage is mounted unter /data/media/0 as symlink under /sdcard. If you can't browse it, try my last version (2 Post above), Internal storage is only mounted under /data/media/0, maybe in the future symlink under /sdcard.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] mihairimia:
Thank you, it works as you said.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
Bad luck. I get 255 error. i followed your instruction but no success.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Sorry for you.

Which mods do you have installed?

SU? Which? Original, Systemless or Magisk?

Xposed? Which Version? Developer?

At first delete all backups in TWRP/backups (internal and external) or backup them to a harddisk/PC. Try to take a new backup, if it fails, go in TWRP to Advance and "Copy log", it will be copied to external sd card under twrp/recovery.log or twrp/backups/recovery.log, post it. Maybe something is wrong with you system/data files.

_______________

Had to restore a system backup, all went good, only restored "system". :)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
Magisk, Magisk SU and unofficial magisk xposed 86.4 by topjohnwu
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Same as me.

Have you tried backing up only one partition? Only backup system or data?

Do you have a L09 or L19?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
Backing up everything all one go. Should I try data only separate? Mine is L09
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Try it. I have a "data only" backup and a "all other without data" backup, both without errors. I don't know why "system and data" backups produce errors.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] dkionline:
[MENTION=4956786]baduncle[/MENTION], if u want a faster fix, then make a pullrequest in source: https://github.com/TeamWin/android_device_huawei_eva
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] smohanv:
I am still using the one I shared before. It takes back up of all system and data. I did backup of system files at first go (external memory) and reboot in to recovery and backed up data in to internal memory. All works file. I moved data backup to external memory using file explorer.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Salamender:
I tried to flash your Recovery but it doesn't work...

Any ideas ?

Thanks.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] dkionline:
Bootloader unlocked?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Salamender:
LOL, i forgot i've recently flash B136 ROM and my BL was relocked :laugh:

Thanks bro !
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Ridingboot:
No success

Hello, thanks fort this link, but i have no luck so far, still teh same problem you had ...huawei erecovery ..... someone any other ideas ? THanks
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] FedoraMan:
Hey, little question: I see that this post is for P9 Eva-L19, but my phone is Eva-L09. Does twrp also work for this phone? I'm kinda reluctant to try, since my other phone got bricked (without me knowing it).
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] dkionline:
This is for L09
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] FedoraMan:
Ok, thanks
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
Try flashing with admin rights.

[MENTION=4900664]dkionline[/MENTION]: I don't have a github account. And only to change the device tree doesn't work, i have changed the recovery source too.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] FedoraMan:
I don't know if you've tried it yet, but after you flash it (if done by fastboot), reboot to recovery using fastboot. I heard that the p7, 8 and 9 try to dismiss a custom recovery program if you don't reboot to it right after flashing it.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] andreas5232:
Unfortunately I encounter an issue when trying to backup the data partition of my EVA-L09 to sdcard.

createTarFork() process ended with ERROR: 255

The TWRP Log shows the following:

I:addFile '/data/data/com.google.android.gsf/files/signatures/sig-1940717675' including root: 1
I:Error adding file '/data/data/com.google.android.gsf/files/signatures/sig-1940717675' to '/external_sd/TWRP/BACKUPS/MWS0216713004601/2016-10-03--16-06-11_EVA-C900B170//data.f2fs.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/MWS0216713004601/2016-10-03--16-06-11_EVA-C900B170/data.info'
createTarFork() process ended with ERROR: 255
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] baduncle:
"jo"

Always backup to internal and copy to external if needed, backup to sdcard "always" give that error. Have you read the hole thread?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] andreas5232:
At least I thought, I did.

Only seen one post mentioning the "255" error code and didn't find any info that this is a known bug.

Thanks paulobrien for the awesome work! :good:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] colthekid:
Ok, so I've been using your TWRP for a while with no major issues. Backup Boot & System first, then separately backup Data, all to internal memory. Then copy it to my external SD Card

Having come from HTC's where there was only ever those 3 partitions that you needed to backup (Cache was never needed IMO) I've noticed with the P9, there are also other partitions ... 3rdmodem, Cust & OEMinfo. OEMinfo I'm aware of, but the other 2...?

Should these also be backed up (and restored if necessary)?

The reason I ask is I decided to do a wipe and reflash from B136 onwards, but restoring the data partition so all my apps etc would still be there. Well it restored the apps....But not their data!??? Ended up having to restore my Titanium Backup.

Anyone else had similar? Is their data held on one of the other partitions or is this a glitch with TWRP?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] angelosabatini:
P9 Plus : I cannot boot to TWRP . I tried many times, even if it says that both the stock recovery and TWRP are installed (SRK Tool) I cannot shut it down completely from fastboot mode and it keeps going back to stock recovery.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] aceclift:
If your using the adb commands then no it won't shutdown or work. need to enter "fastboot recovery" and will reboot the device into TWRP