yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] nellinodj:
Possible debrand Vodafone?
[P8 Lite (2017) Development] nujke71:
hi, i try to install recovery but on cmd is says there is not such file like recovery.img,phone is on fastboot,recovery.img put in adb tools folder,run command likee it says but it is always same no file like recovery.img,any help,thanks

model P9 Lite 2017

firmware PRA-LX1C432B106
[P8 Lite (2017) Development] boofman:
Double check the name of the file..there might be another suffix out there, like recovery.img.img
[P8 Lite (2017) Development] nujke71:
yes,that was it,now i have recovery and root,thanks
[P8 Lite (2017) Development] halbarinho:
Hi I have followed the installation and its ok, but developer and security options dont work. Why??

Many thanks and great job.
[P8 Lite (2017) Development] YSFYoussef480:
Flash The Stock Boot Image !

https://xdaforums.com/p8lite/p8-lit...-to-root-huawei-p8-lite-2017-android-t3582179
[P8 Lite (2017) Development] haky 86:
How to Backup Your Firmware:

Reboot to TWRP by press on Vol up .

Go to Mount.

Uncheck the following partitions: Cache, Data & System.

Back to main menu and click on Backup, choose all partitions and swipe to start backup firmware to sdcard then.
[P8 Lite (2017) Development] Cha0sgr:
Thanks for the guide!

I rooted my P8 Lite 2017 without any problems :)

Just for reference my build number is PRA-LX1C02B140 vodafone branded.

I am new to android so I had a lot of 'unknown words' before I could proceed with your guide.

I'd love to see some custom roms for this phone since Huawei decided it was 'wise' to completely remove the SIP accounts and Phone Encrypt options from the menus. Unless there's a way to bring them back now that I have root!
[P8 Lite (2017) Development] haky 86:
Actually I'm trying to port aosp 7 by using prebuilt kernel since Huawei decide to remove all sources, let's see how will succeed :)
[P8 Lite (2017) Development] Edas:
Hi there!

Thanks for posting this guide.

I have a problem when I do this step: "now run the command: fastboot flash recovery recovery.img && fastboot reboot"

Basically, nothing happens. The file name is ok (recovery.img), I have also put it in adb directory (where fastboot.exe is) but nothing happens. The P8 is still in fastboot screen and I have no error message in computer. Do you have any idea about why this doesn't work with me?

Btw, I have already unlocked the bootloader, so now both phone and frp are unlocked.

Thanks in advance.
[P8 Lite (2017) Development] haky 86:
If you have windows 8/10 you need to disable driver signature if the device is not recognized by fastboot and also make sure to unlock the bootloader & frp.
[P8 Lite (2017) Development] Edas:
Thanks for trying to help.

I have Windows 10 and I have removed adb, HiSuite and all the drivers from my system. Then I followed the steps to disable the driver signature (http://packard-bell-scandic.custhelp.com/app/answers/detail/a_id/38288/~/windows-10%3A-disable-signed-driver-enforcement) and then I installed everything again (I'm using adb-setup-1.4.3 and HiSuite_5.0.2.300_OVE - I think it's the latest version of both).

In fastmode I have this:

PHONE Unlocked

FRP Unlock

So, I understand that both bootloader and frp are unlocked (I have done it via adb yesterday and was ok)

It seems adb commands work in windows because if I run the command fastboot reboot, it reboots the phone, so for sure the adb is working. The problem is that when I run any other command like fastboot flash recovery recovery.img && fastboot reboot, it simply doesn't do nothing both in windows and in android (it keeps the fastboot&rescue mode screen without any changes).

Btw, I don't know if it is relevant or not, but I don't have any SD card mounted on it.

Am I doing something wrong? Do you have any idea? Is there any other way to flash twrp? I really need to remove this vodafone rom out of my cellphone.

I would really appreciate your help if possible.
[P8 Lite (2017) Development] haky 86:
Try to install this tool

http://hak86.altervista.org/install-android-fastboot-tools-using-windows/

once cmd is opened do the following command

fastboot flash recovery (type space one time and drag the image into cmd then press enter)

P.S. : i did on linux and windows without problems ;)
[P8 Lite (2017) Development] actinhic:
[MENTION=4883214]haky 86[/MENTION]

Good morning

A huge thanks for this recovery!

Backups work with only extsdcard mounted...

adb works also well on mac with the drag and drop procedure.

Pushed boot-root image through twrp as magisk and supersu are not working and my internal memory is now encrypted...

Do you see what this could be (first huawei, coming from samsung)?

Nice day

PS: C109B110 firmware (orange europe)
[P8 Lite (2017) Development] haky 86:
because it's encryption related to kernel I think, that Huawei didn't release yet for our phone.
[P8 Lite (2017) Development] Edas:
It worked!! Many thanks! I'll proceed with the installation.
[P8 Lite (2017) Development] superiyezi:
Nice job man!
[P8 Lite (2017) Development] nellinodj:
Pleas backup twrp vodafone

---------- Post added at 12:03 AM ---------- Previous post was at 12:03 AM ----------

Firmware
[P8 Lite (2017) Development] haky 86:
They should backup all firmware, single, dual & vodafone like did on p8 lite 2015.
[P8 Lite (2017) Development] satelit1:
Hallo. Please full backup Huawei P8 Lite 2017 TWRP for PRA-LX1 C432

Thanks
[P8 Lite (2017) Development] skytcher:
Does Magisk work?
[P8 Lite (2017) Development] 0000729399:
Yes but I'm having problems with it.

What about backupping data partition failure? did anybody has notice that?

I can't do it.
[P8 Lite (2017) Development] Manuele1000:
What kind of problems do you have with magisk?

Edit: Does magisk disable developper and security options like Supersu?

And... With my PRA-LX1 I can backup, restore, wipe, format, etc, everything, /Data partition included. I don't know why, but I understood that everything works so well!
[P8 Lite (2017) Development] ruky87:
I'm also interested to the question... Because I need also to hide root to use some banking apps.

In the TWRP page for P9 (thi link https://xdaforums.com/p9/development/twrp-t3565703) there is a new TWRP version that can be used to install Magisk. The pra-lx1 modified TWRP implements the same features? Or it will implement the features soon?

The P9 TWRP can not be used with our pra-lx1, right?

Another question, I have this firmware version: pra-lx1c55b105 (TIM Italy), can I install SuperSU without problems? Someone has the full firmware image for this version?
[P8 Lite (2017) Development] erj22:
good afternoon sir, please be gentle on me :) is this your phone unit?

http://consumer.huawei.com/eg-en/mobile-phones/gr3-2017/index.htm
[P8 Lite (2017) Development] boofman:
Yes, that's the one. Though mine says PRA-LX2, but the instructions and files for the LX1 here works..
[P8 Lite (2017) Development] ruky87:
The same for me. I can't backup data! I need help... The error is createTarFork() process ended with ERROR: 255

I want to backup data before doing modifications. I think there is a bug in this TWRP.

The backup process starts but it stops with this error at more or less 50%

EDIT: Checking the log, the error is:

I:addFile '/data/misc/bluedroid/hwZxKBz+5ECMRiS4GOfiAB' including root: 1

==> set selinux context: u:object_r:bluetooth_data_file:s0

I:Error adding file '/data/misc/bluedroid/hwZxKBz+5ECMRiS4GOfiAB' to '/external_sd/TWRP/BACKUPS/57UDU17307007710/2017-05-21--08-37-33_NRD90M_test-keys/data.f2fs.win000'

Error creating backup.
[P8 Lite (2017) Development] actinhic:
Good evening

Uncheck cache, data and system ?

Tried berlin.recovery.img ? (this recovery works well too) ...
[P8 Lite (2017) Development] ruky87:
Only data checked, without compression. I tried to wipe data and then do a backup: it worked. But if I turn on the smartphone, do the initialization (accounts, google login, etc...), and then reboot to do another backup of data partition... TWRP gives the error, same file...

I searched on google, this is a common problem, the common solution is to delete the file that causes the error, but this should not the good answer and I don't want to delete anything.

I didn't tried the berlin recovery... What are the differences? If there was already a working recovery, why we need to use this one?

I want to try to install Magisk now, someone already installed it and can give me some advice?
[P8 Lite (2017) Development] actinhic:
Uncheck data before backup.

I use revolution recovery or berlin (oldroid's thread - honor 6). haky 86 said he waits for the kernel sources so let's wait.

With berlin recovery , magisk v12 worked for me, I don't know why... but lost sound... I don't understand why our data are f2fs and not ext4, tried to change but after a reboot f2fs is back...
[P8 Lite (2017) Development] haky 86:
it's f2fs by default..i fetch same problem while backup data..most probably is related to FBE (File Based Encryption) system related to kernel, if Huawei didn't release it, this device is dead for me and will sell soon as possible..
[P8 Lite (2017) Development] Manuele1000:
Hey dude I have a kernel that gives you root, works well, disable encryption and lots of other features. If you want it tell me. It is a boot.img that needs to be flashed with twrp. The twrp in this thread, the first thread for the precision.
[P8 Lite (2017) Development] erj22:
same phone unit here! gonna try this one of these days. information are saved!
[P8 Lite (2017) Development] boofman:
Yes, try it, it worked for me, but YMMV

Also, unless Huawei releases sources for our phones, I think this would be the end of the Development for us, as there is nothing more we can do.
[P8 Lite (2017) Development] ruky87:
This is my situation now:

- My PRA-LX1 was branded Tim (Italy), mono SIM. Now I debranded it and it is European with firmware PRA-LX1C432B110, dual SIM enabled and working (second sim with null IMEI, but can make calls). New firware Installed easily with FunkyHuawei service (that saved me when I bricked).

- TWRP Intalled and working (this one). But it is impossible to backup /data (error reading some files). I don't know if backup and restore work for other partitions, I used the recovery for debrand (replacing oeminfo)

((( Someone else has the same configuration? I saw that there are other firmware with a greater "B" number, someone updated to a new version and did the root? )))

I tried to install Magisk, I had some good results and some problems... The root seems working, tested with a root checker. When I enable the Hide feature, the root is successfully hidden, but if I reboot the device with the feature enabled it is impossible to unlock the screen (after entering the SIM PIN). The device freezes, opening apps with the lock-screen shortcuts doesn't work, the screen goes black if try to unlock. The only solution to debrick was to remove Magisk with the remove zip file.

Who installed Magisk, can help me to analyze the source of the problem? I know I can root with the provided SuperSU, but the hiding feature of Magisk is useful to make some bank applications work... I'm interested also about Magisk modules. Someone tried also the systemless host and the magisk Busybox with our device.

Next steps for me will be rooting, installing Viper, Busybox, Titanium, and Substratum (someone use this?)

Thanks for the TWRP!

I hope there will be improvements, I know the PRA-LX1 is too new.
[P8 Lite (2017) Development] haky 86:
Reserved

FBE (File Based Encryption) has been fixed.

Now you can backup the F2FS data partition without troubles, I backup the partition without errors, after restore the system, and internal storage was fine, without that strange characters, so I need confirm from you guys.

if work, we need some that can upload single sim firmware that can be restored over twrp, thanks :)
[P8 Lite (2017) Development] redhaos:
Greetings. Unfortunately on Honor 8 lite, the reservation of the data section does not work. Unchek in mount. Go to backup. Error. After go to mount and there data check again. Firmware PRA-TL10C10B100
[P8 Lite (2017) Development] actinhic:
A huge thanks ! Let's test...
[P8 Lite (2017) Development] ruky87:
I have the usual createTarFork() error while creating the data backup. The sdcard folder is empty.

I think there are some other problems... Someone else has the same behavior?
[P8 Lite (2017) Development] actinhic:
Tested backup without mount procedure, all is perfect ! Restoring is also perfect. Last issue: I can't install magisk... but I keep on trying.

A huge huge thanks
[P8 Lite (2017) Development] haky 86:
thanks for report, that mean the encryption is disabled automatically I still don't understand how is happend:confused:

that's why i can backup everything..:cyclops:
[P8 Lite (2017) Development] ruky87:
Why I can not make and restore /data backups? How can I disable/enable the encryption?

I can install Magisk v12, the v13 didn't work for me, impossible to load the system. I installed v12 without superSU, using MagiskSU and the root is working perfectly. I have problems with the Hide feature, I had to disable it deleting the enable script in the magisk folder, otherwise it was impossible to unlock the device after the reboot. I can start the enable script manually after the reboot, but sometimes hide works, and sometimes not. And I don't understand why...

Modules are working good!

EDIT:

Now I have Magisk partially working:

- Root works, also with Titanium bakup

- Busybox is systemless

- Host is systemless

- For MagiskHide feature, I had to launch the enable script manually after boot. I removed the enable script from the magisk .core folder so the device can start successfully (otherwise you can unlock the device after PIN). I had other problems with MagiskHide with this PRA-LX1, sometimes Hide stops working, this is because the process needs the kernel log, that is disabled on Huawei devices (and you have to turn on USB debug). To get MagiskHide working I made some changes in the starting script and then used the SManager (https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=it) to manage the scripts. I noticed that sometimes the root is lost, I'm trying to find the cause. For now I created 2 shortcuts with SManager for enabling and disabling MagiskHide when needed (eg. HomeBanking applications, games...). However, when the root "is lost", some apps like root file manager are still working, others like Titanium stop working and you need to reboot (it can't find su). I think that if you need only root and hiding root only sometimes and on demand, you can use Magisk. I'll keep experimenting!

Maybe someone can help me to solve these issues and get Magisk and MagiskHide full working.
[P8 Lite (2017) Development] nujke71:
Hi i need help, i updated the supersu on play store and now i can not update the binaries in supersu and it is not working how it should, i was uninstall the supersu and try to reinstall SuperSU-v2.79-201612051815-EMUI5.0.zip. with twrp, but it will not installed, does anyone know why i can not install again the supersu,trying to install from external sd card,because internal storage does not showing anything in twrp
[P8 Lite (2017) Development] Manuele1000:
With twrp, before flashing the supersu.zip, use advanced file manager, go to /system/bin, xbin, and vendor, and erase the file called "su", this way you will completely remove the root and then you will be able to flash the supersu.zip package. Good luck!
[P8 Lite (2017) Development] Vinnipinni:
Root is getting lost because of magisk BusyBox. This causes a troubles on a lot of firmwares. EMUI is one of them.
[P8 Lite (2017) Development] nujke71:
thanks,but there is not such file like "su" and nothing like this
[P8 Lite (2017) Development] Manuele1000:
In this case, can you try to flash the supersu.zip and, when it fails, copy the log (you can find the options in the advanced section) then post it here. I want to see what is the error that you get.
[P8 Lite (2017) Development] atf2m4:
Does this work in p8 lite(India) [Prague-AL00]?
[P8 Lite (2017) Development] nujke71:
i tried to flash again,but i did not delete su app from phone and now is back to SuperSU-v2.79 and not 2.80,like it was when i update from play store,working again ok,in play store now give me again update to 2.80 but this time i will not update it,so for others do not update supersu
[P8 Lite (2017) Development] Manuele1000:
Sure, good advise. I never tried to update the supersu, thank you for the advice because, if in the future I will want to update, now I know that it's unuseless. 2.79 vs 2.80, I can't see any important improvement so, keep the 2.79 without any problem. Best regards
[P8 Lite (2017) Development] haky 86:
Reserved

2017-29-05:

Updated to 3.1.1-2.

Still can't find a way to disable FBE to enable backup the F2FS Partition.

I'll try to port OmniROM 7.0 Nougat on our phone, no eta please.

https://mega.nz/#!xCRXzJCS!BWjMqo9eOcmxgjzzSxSIKUjseG7edhxw6ZVkCAtLEE0 | 23.9 MB | .
[P8 Lite (2017) Development] Manuele1000:
Hey, good job, but what does this update do?
[P8 Lite (2017) Development] JStrel:
I managed to unlock frp and oem, then I flashed twrp successfully.

But I can't access twrp recovery, I think it is superseded by the Huawei recovery tool, which is the only thing that pops and only allows me to download a recovery image from Huawei server.

Any tips ?

PRA-LX1C530B111 (France, operator Bouygues Telecom)
[P8 Lite (2017) Development] miststudent2011:
Have you unlocked your bootloader?

Try to access twrp manually by disconnecting phone from PC after flashing twrp and later shutdown your phone and switch on your device by clicking Power and Vol+ buttons it will take you to TWRP.
[P8 Lite (2017) Development] JStrel:
I'm ashamed, my problem wasn't one, thanks for the tip !

edit:

vol+ and power did the trick :)

However I have a new problem, which google couldn't help me solve: error 255 while backing up with TWRP.

Here's the log:

TWRP 3.1.1/PRALX1C530B111/Operator Bouygues Telecom
[P8 Lite (2017) Development] miststudent2011:
If you want some one to reply you just quote them like this or mention them like [MENTION=7773372]miststudent2011[/MENTION] so that they can get notified and try to reply you.

Coming to your problem this is caused due to permission error if you are trying to backup to your external SD card first mount SD card in twrp and back up phone.

Or

First wipe davcache and check back up .

If above fail try to backup to pc using adb sideload feature.
[P8 Lite (2017) Development] JStrel:
Thanks for the advices.

Will try these and report as soon as I get home.

edit:

well [MENTION=7773372]miststudent2011[/MENTION], I made sure I had the SD card mounted and nothing else but the backup failed with the same error.

Wiping davcache didn't help either.

Finally I'm trying to use adb to backup but I can't manage to fully backup (the .ab file doesn't get much bigger than a few mb with "-all -shared -apk -system").
[P8 Lite (2017) Development] miststudent2011:
Initially it will be in few mb as the process proceeds it grews bigger ,just don't disturb it let it finish the whole process.

Edit: what command are you using to backup
[P8 Lite (2017) Development] JStrel:
I did wait until the process ended, and did the manipulation several time, adding parameter each time to finish with -apk -all -shared -system. Finally I couldn't get a image bigger than 90mb after the backup ran its course.

I won't bother you anymore. I'll hold my desire to tinker with my device and wait until either there is a new twrp image from OP, or twrp officially supports the p8 lite 2017.

Thanks for the help :)
[P8 Lite (2017) Development] YSFYoussef480:
Data Partition (F2FS) Backup

So Can I Backup The Data Partition (F2FS) In The New TWRP 3.1.1-2 Update?!
[P8 Lite (2017) Development] :
Thanks for this thread.

Can i flash magisk instead SuperSu to obtain root? Why is there an "edited" version of supersu for EMUI?
[P8 Lite (2017) Development] Dragoboss:
Huawei, or more specifically, the software called EMUI has a special 'verification check' that runs on the filesystem upon start-up. It is named 'Noverity'. It scans whether the filesystem is correct and whether the files on there are the right ones and are valid.

This special version alters or bypasses this noverity / verification check, preventing certain boot-up problems or system lock-outs.

I myself had problems with rooting in the first place, however I have also tried Magisk, which installed fine, even though I still didn't have root after the fact (did not have root with SuperSu either, but that is a specific issue in my own handset).

My assumption is that Magisk installer should work fine. However, to be 100% sure my advice is the following:

First flash the special SuperSu version, then flash Magisk over it, replacing SuperSu.

This way it uses the base version SuperSu leaves behind however you use Magisk as root manager after that.
[P8 Lite (2017) Development] :
Do you know if anyone have tried that successfully?
[P8 Lite (2017) Development] Dragoboss:
I do not, however if Magisk turns out not to work properly they offer a flashable full uninstaller zip, so you likely wouldn't end up having any leftovers if you uninstall it through that zip.

Then again this is all guessing work and if nobody tries we'll never know and can only assume.

Edit: to give you just a tad more insight in that special supersu version, here is a link to Tecalote's thread.
[P8 Lite (2017) Development] JStrel:
I'm not sure I understand, but magisk works fine. I flashed it with twrp and had no issue.
[P8 Lite (2017) Development] :
Yes that's what i wanted to know!
[P8 Lite (2017) Development] Manuele1000:
Bug report

Hi, I want to report a bug.

I know that it is present since the first version of this TWRP for the P8LITE2017. Well, the bug is related to the boot partition/kernel. TWRP can backup boot and restore it too, yes, but the backup will be corrupted! I did lots of tests, for example, to backup boot, flash a new Boot.img through fastboot and then tried to restore the backup. Well, the restore works, but you'll notice that audio doesn't work, No video, can't open settings, no file manager, and can't open camera. So I think that TWRP can backup BOOT but not the drivers. If the boot was corrupted, you can see the bootanimation to change in a white "ANDROID". A little tricks that I can't explain, is: SUPERSU.ZIP Package (the last one), when flashed, will restore corrupted kernel! Yes, if you flash supersu.zip on a corrupted kernel, it will fix it. And if you do unroot, the kernel will be corrupted another time.

[MENTION=4883214]haky 86[/MENTION], try this:

On Huawei p8 lite 2017, with your TWRP, try to backup BOOT

Then change BOOT in any ways (for example, flash other BOOT through fastboot)

Then restore the previous BOOT backup

And then you'll see what I mean. I hope you'll fix this!
[P8 Lite (2017) Development] 0000729399:
I do have the same problem, I've tested It a lot but there's no way out: boot backup doesn't work. When I restore the boot partition using a twrp nandroid backup, the system seems to be corrupted: audio, microphone, camera, NFC are completely down.
[P8 Lite (2017) Development] embryo74:
The same for me, I'm not using the phone because of this problem... I'll try this solution of SuperSU!

Inviato dal mio ASUS_Z00A utilizzando Tapatalk
[P8 Lite (2017) Development] haky 86:
Huawei is release some emui 5.0 kernels, it's the linux 4.1.18, i'm compiling it let me see it, if will boot i'm gonna to make lineage14.1

EDIT: got a bootloop, it's for hi3660 so i think will be released in within days for our phone
[P8 Lite (2017) Development] :
Waiting, it would be awesome to have Lineage 14.1 on this phone. :D.
[P8 Lite (2017) Development] :
http://imgur.com/49fcpGO

Hello,

I can't flash magisk because everything is ENCRYPTED... how do i solve this? I never encrypted.

Edit: more info

Device: huawei p8 lite 2017 PRA-LX1C432B115

• every time i boot in recovery TWRP always asks me "keep system read only" even if i check "never show this screen during boot again", also doesn't save any preferences

• can't adb sideload (it gets stuck on "starting adb sideload")

• can't backup anything (permission denied)