yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Discussion] AmySakuraChan:
i got managed to unzip the file. now i have the problem that TWRP is not showing the backup :( i have in external sd card the folder TWRP>Backup>2017-07-08--LX1.OTA.starting.update.to.B164 but twrp shows no files in either internal or ext_sd all empty window. even no other files on internal/ext sd are shown
[P8 Lite (2017) Discussion] :
You didn't place the backup properly. See #402.
[P8 Lite (2017) Discussion] AmySakuraChan:
i did. i controlled and thats the way i did place the backup but twrp shows empty window in estore screen.

but got managed to rescue the phone by flashing system.img, boot.img and recovery/2.img and download latest stock via erecovery.

and 1 more question: can i use the b170 firmware to install magisk? or just with b164 and need to use super su method for b170?
[P8 Lite (2017) Discussion] :
SU and magisk both go on the B170. You can test if this works with the 164.
[P8 Lite (2017) Discussion] tim.tim:
Many thanks to the OP!

my phone is Honor 8 Lite, model PRA-AL00, rom version B190,

I confirm this rooting method works perfectly on this phone.

Its boot image patched upon first flash, two days later I did a factory reset, lost root.

So I flashed it again, according to the log, it can detect that boot already patched, but modifies it again.

Is it possible to change the flash script, if boot already patched, then leave it as is ?
[P8 Lite (2017) Discussion] :
You can change that, I can't
[P8 Lite (2017) Discussion] luigi_bros86:
Hello dears,

I am facing the same problem. I can see that Aciupapa's answer worked and he says to Unlock the bootloader again.

As long as I type "fastboot oem unlock [code (the same that I used the first time some months ago)]" I get "command not allowed".

I can type "fastboot reboot bootloader" and "fastboot devices" which it sees my device. But it seems that I can't do nothing else.

How can I unlock the bootloader again?

I don't remember if developer options was enabled. I ended up in this situation here just by chance.

Attached a picture. You can have a look where I am. Phone locked, FRP lock.

Thank you so much.
[P8 Lite (2017) Discussion] Zzrman:
Maybe reboot and and go to the developer options and see if Oem unlock is checked....
[P8 Lite (2017) Discussion] :
Hi guys my friend got Android 8.0 in mate 9 mha-l29c636

By going to hicare and registering in beta user
[P8 Lite (2017) Discussion] :
[MENTION=7677904]luigi_bros86[/MENTION]

OEM unlock is usually already on. The slider for usb debugging usually resets itself automatically. That's why it needs to be activated two or three times. Move it to the right, go back one menu, then forward again and activate. Repeat that two or three times. If the FRP lock doesn't open, also delete the google account, display unlockcode and delete fingerprint.
[P8 Lite (2017) Discussion] luigi_bros86:
I was not clear indeed. I can't switch the phone on anymore.

If I switch it on I get to recovery mode but I can only reboot the phone or I can shut it down.

If I connect the cable I can get there as illustrated in the picture (which I guess it is the bootloader).

Does anybody have any advise to give me that I can follow?

Thank you again.
[P8 Lite (2017) Discussion] :
do you have telegram???

message to me to help you

[MENTION=1304522]ali_[/MENTION]unique78
[P8 Lite (2017) Discussion] :
did you enable enable oemunlck in developer option??????
[P8 Lite (2017) Discussion] :
What exactly did you last do before this disorder occurred?
[P8 Lite (2017) Discussion] luigi_bros86:
Hi ChinHon,

Sorry to repeat it again. I was not clear indeed. I can't switch the phone on anymore.

I can just boot it in EMUI and if I try to download Huawei recovery it fails...

If I connect the USB cable I can boot it into fastboot mode as illustrated in the picture.

I tried several times to flash the stock recovery but i got this error FAILED: remote command not allowed....so now i can't just do anything.

Does anybody have any advise to give me that I can follow?

Thank you again.
[P8 Lite (2017) Discussion] :
try to flash stock rom

with firmware finder

dns+erecovery method

for going to erecovery:

plug the cable and hold volume up and power

to go into erecovery

for more information install firmware finder desktop version

as i said before if you have access to telegram plz send a message to me for guiding

my id:

[MENTION=1304522]ali_[/MENTION]unique78
[P8 Lite (2017) Discussion] luigi_bros86:
A few weeks ago I posted in this conversation that I was not able to get notifications.

If you remember you gave me some advices which I followed.

Anyway I was not getting notifications since months already.

Yesterday I tried to recover it with the image K-ROM-V3.3 (which I found in this conversation if I am not wrong. Anyway you adviced me to to install V3.3).

After the recovery it got stuck in the recovery mode.

Huawei recovery worked with me a few minutes ago so I am able to use my phone now with the original firmware. In the past it failed all the time so this is why I didn't try immediately to do it because I was sure that it was not working. Instead I tried it because I didn't have no options and it went through.

So next step is now to do again the UNLOCK/ROOT/TWRP procedure which a few months ago I had problems and the data partitions was deleted. For this reason I was forced to install K-ROM-V3.3.

Well I don't know if I root it. For sure not now. I have to see if I feel to risk again.

Ciao ciao guys. I am noticing a lot o f messages from all of you.

Thank you for your support.

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

Thank you. Indeed recovery is the only thing that worked. I didn't even tried because in the past it failed all the time and I resolved the problems in other ways.

I was able to recovery flash the boot and everything.

Today instead it was the opposite. I couln't do anything apart the recovery stuff.

Thank you guys.

Next days I will try again all the procedure to unlock/root/twrp the phone.

BYEEE
[P8 Lite (2017) Discussion] Traceur017:
Is the backup rom in the op for the nfc version??
[P8 Lite (2017) Discussion] :
Do you mean rescue rom or k-rom?
[P8 Lite (2017) Discussion] Traceur017:
Both of them
[P8 Lite (2017) Discussion] :
Both are for nfc and dualsim. However, the recue rom is not usable. It is only there to achieve ota updates. The k-rom is suitable for all pra versions. Make sure that both of them follow the instructions 100%. Do it only if you know how to get out of a brick. The danger is high with the smallest error during setup.
[P8 Lite (2017) Discussion] Traceur017:
K-rom doesn't have any bug???
[P8 Lite (2017) Discussion] :
No bugs !
[P8 Lite (2017) Discussion] boofman:
Been using it for quite some time now..stable as stock, but better features
[P8 Lite (2017) Discussion] Zzrman:
Hi, I would like to install xposed framework via Magisk but I am afraid to brick the phone..... Have anyone did it? Is it risky to try?

Thanks
[P8 Lite (2017) Discussion] Aleksandr1357:
Hi I got a problem with my PRA-LX3, I installed SU just fine but noticed i dont have Play Store app, I did have Gmail, Maps and others... Then I installed open gapps pico to have play store and now I open it, shows checking info text for a couple of seconds and then the app closes. Not sure what to do now, ive flashed:

SuperSU-v2.82-EMUI5-KangV-Roms.zip

open_gapps-arm64-7.0-pico-20171101.zip

with some TWRP image that worked with my phone... (not sure if this twrp could be the problem)

Now i cant use google apps at all and im stuck, can i get some help please?:crying:

Edit: noticed that other apps close suddenly: Uninstall app, busybox free
[P8 Lite (2017) Discussion] :
Hi it installs without breaking but most of madules don't work at all

---------- Post added at 10:42 AM ---------- Previous post was at 10:35 AM ----------

Hello friend there are many ways for fixing it

1.extract rom of your phone and flash system.img

2.flash rom again with firmware finder+erecovery

3.flash unsu for uninstalling super su and root your phone by this one

https://drive.google.com/file/d/0By-NOo-lCyxBVnJhalZNOFhkbGM/view?usp=sharing

4.uninstall gapps again and install an another version

If it didn't fix by these ways or had any question just comment
[P8 Lite (2017) Discussion] Zzrman:
Thank you, OK so I'll not install it.

Regards
[P8 Lite (2017) Discussion] Aleksandr1357:
Hi, thanks for the reply, I really dont understand options 1 and 2, tried 3 and 4 but didnt work. Since not only gapps is not working, but neither some other not related apps wouldnt this be a problem with the rom?

Could you elaborate a bit on the first 2 options?
[P8 Lite (2017) Discussion] andreyshch:
Hi guys, I finally decided to root it with magisk, after a few errors and tries, I finally made it work, the only thing that doesn't work is the 3,5 jack headphone, I mean, when I connect the headphones the music keeps making sound with the speaker, maybe it's because I installed Viper4Android, I don't know. Any suggestion?

*EDIT* I finally managed to make it work, sorry
[P8 Lite (2017) Discussion] andreyshch:
Any person who installed magisk can tell me if the safetynet pass works?
[P8 Lite (2017) Discussion] Zzrman:
No.... False
[P8 Lite (2017) Discussion] :
Now we continue with the right thread. There are also other users who can help. I have to do my job for a few hours now. Have a look around here and in the thread for v3 and v3.3, when I'm back we go through everything step by step. Be patient and don't be hasty. If I can't do it today, we'll continue tomorrow.
[P8 Lite (2017) Discussion] jackulus:
Take your time. I'm very grateful for help and ready to go :).
[P8 Lite (2017) Discussion] :
Sorry, I can't do it today. I had to go to London. I'll be back tomorrow afternoon, and then I'll get back to you.
[P8 Lite (2017) Discussion] jackulus:
Sure. Apparently, there is also disruptive, violent and unpredictible part of our life which makes it almost impossible to spend entire time in front of mobile's or/and PC's screens.. Hopefully... ;). CU tomorrow :).
[P8 Lite (2017) Discussion] :
I have some time right now. And now write a detailed guide on how to secure your firmware.

Only the stock rom. Your apps with settings will be lost. In case of emergency please have the huawei bootloader code ready.

1. Activate the oem unlocking in the device settings.

2. Activate the usb-debug mode there. You have to repeat two or three times because it will reset itself several times.

3. Switch off the unit.

4. Connect to the pc.

5. Start the bootloader with power and vol.-

6. Flash the recovery with adb: fastboot flash recovery recovery.img.

7. Flash with adb the TWRP: fastboot flash recovery2 prague311.img.

7.1 In the future you will start with vol.+ and power and usb connection to TWRP and with vol.+ and power without usb connection to the stock recovery.

8. Start now the device directly by key combi into the stock recovery and make a factoryreset.

9. Start now by key combi and usb to TWRP and make a factoryreset again. No reboot durig this two steps.

10. Now you can create a complete backup. Make sure you choose the extSd for this.

11. Reboot now and see if everything's okay.

12. Delete all old TWRP backups except the one you just created. You can now make correct backups and restorings.

13. Don't do factoryreset in the future. That's forbidden from now on. If it gets stuck, restore the 1st backup (that from before). It puts everything back on stock.

14. If you do an ota update at some point, TWRP will be overwritten automatically. Then flash TWRP to recovery2 again and repeat the whole procedure.

I wish you every success in this action.

Just take it easy, and follow the instructions carefully.

;)
[P8 Lite (2017) Discussion] :
It works perfectly for me.
[P8 Lite (2017) Discussion] Wire1122:
How can I pass safetynet? Becouse I get ok but failed on the 2 options
[P8 Lite (2017) Discussion] jackulus:
So far so good :). My device led by my shaking hands throughout the hole procedure survived. Booted up in spite of two factory resets ;). I'd like to cheer 'yahoo' for the first time but I have a question (what a doubtful man). The size of data partition reported by TWRP was 0 KB. - after factory reset (I didn't check it before reset). In fact, respective data files from the backup seem to be empty of real data even though TWRP spent some time on data partition - a have an impression, that backup indicator was progressing. In the system I can see some minor changes, e.g. no sample music or pictures but it operates properly in my opinion. Is this correct situation ? During unsuccessful backups before data partition was about 1.5 GB heavy, so sth is diffrent but may be it has no negative impact. I hope. In RESCUE-BOX prepared by you (rescue nandroid backup of B164) I saw non-zero data part of backup. So I'm uncertain at this moment and this is my question: is my result OK ? For me, the system in such a state as now is perfect (supposing I can get back to this point when I mess sth). I proceeded entire procedure without problems, I think..

Edit: Now, I tried to make TWRP backup once more and it tries to backup ca 1 GB data partition and stops as used to do before at '/data/misc/bluedroid/fjWPw3suXemiZ3zxY2F8' file.
[P8 Lite (2017) Discussion] :
I'm glad it all worked out. Some of the Kirin processor devices are not backed up under nougat during backup. Pictures, music or documents. Almost everything copied or downloaded from the user to the data partition. That's why I told you to back it up. I don't know why, but I do have a backup. The PRA is and remains a mystery. You can view the internal memory with an explorer app. It is under storage/ emulated/ 0, in TWRP you have to mount the datapartition in the menu and then you can see it under sdcard. My rescue rom is not a real rom, it's just to force an ota update to save the device. You can return to this state when you restore the first complete backup.
[P8 Lite (2017) Discussion] jackulus:
I'm still not sure - foregive me. At /storage/emulated/0 I can see nothing, at /data/media/0 I can see some encrypted items but may be it's not crucial info. All user data (internal SD) are not problem for me - I can backup them by TB or Huawei BackupApp. in the future. Now I have a brand new and thus empty system. The crucial info/confirmation for me is whether my nandroid backup is valid even though there is no real data backed up in 'data.f2fs.win' file ? Can I restore the state I have now in case of trouble from it ? Should I make any kind of "magic" then ? Or just reboot into TWRP and restore backup ? All partitions (this probably depends from type and scale of disaster) ?
[P8 Lite (2017) Discussion] :
The encrypted data will probably disappear with your next backup. If not, ignore that in the future. It has no negative effect. You'll see if it'll be perfect later on. This cannot be foreseen at the PRA. I'm all right. Just do it.

But then like this:

Create backup.

Factoryreset in recovery.

Factoryreset in TWRP.

Restoring with TWRP.

Do not boot into the system between the steps.

That works.
[P8 Lite (2017) Discussion] jackulus:
So, you are saying in other words, that it is OK. Yahoooo !!! :good::cool: And THANK YOU so much... It is not that common to find so much support as you are giving. And great knowledge to share.. :)

Well, what about partitions to be restored in emergency ? I understand, that having my backup I should (as you stated above):

- boot into recovery and make factory reset

- boot into TWRP and proceed factory reset

- restore my backup immediately - what partitions ? All ? Even "empty" data ?

I have also some further questions but I don't want you to feel obliged answering them, if you are fed up with my enquiries (at least atm ;)). I submit them but help me pls, whenever you can - if ever.

I consider three possible ways to go for me with this phone:

A. Just rooting my B161 firmware as described in your thread and debloating it. In this case I understand I can use Magisk (it means for me I can use AP and banking app hunting for root). And what probably most important V4A as magisk's module. Tuning with third party root apps is also - I hope - possible.

B. Try your K-Rom V.3.3. It means for me lots of fancy options and great tuning possibilities. And V4A right from the box. But no AP and banking app.

C. Try another ROM (this P10 port I mentioned once) - no point to discuss it here.

Are my assumptions about your software/mods correct ?

The next of my doubts: I still can not find reliable explanation about SIM duality of my device. PRA-LX1 is described on many pages (including my vendor site) as dual SIM. The stock firmware functionality doesn't reflect that or - maybe it will, when I install the second SIM card ? In fact, I don't need dual SIM at all, I'm just not sure which firmware I can use, in case if I decide to change the original one.

And the last one ;), just from curiosity. Is there a way to relock this device (after stock restoration), due to service needs ?

Have a wonderful evening, thanks a lot one more time! :)
[P8 Lite (2017) Discussion] :
I've had enough of that right now.

;) :o

I recommend you to keep your current firmware.

With restoring,"0" partitions must also be restored.

We'll discuss everything else at another time.

Have a look at them here in the forum. You can get a lot of answers. Use the very good search function.
[P8 Lite (2017) Discussion] dannyzamora:
Same problem here :S
[P8 Lite (2017) Discussion] :
This is my configuration for the positive safetynet status:

B182

Root/ Magisk v14

Magisk Manager v5.3.0

TWRP to recovery2 partition.

Stock recovery to recovery partition.
[P8 Lite (2017) Discussion] dannyzamora:
Same here, but cant pass safetynet, im update magisk manager to 5.4.0 from 5.3.0 and nothing :(

Can try to install another time the magisk 14.0 via magisk manager with the install button and directly install?
[P8 Lite (2017) Discussion] :
With twrp directly.
[P8 Lite (2017) Discussion] dannyzamora:
Installed Magisk another time via TWRP and same problem, cant pass safetynet, im try to download netflix app in playstore but cant :(

Can try to install another busybox in the playstore? or the busybox not the problem?, i dont know where is the problem.

PD. Sry my bad english!
[P8 Lite (2017) Discussion] :
Busybox is not the problem. With me it's green, with and without busybox. It must be some kind of app that makes it negative for you.
[P8 Lite (2017) Discussion] Wire1122:
Which apps?
[P8 Lite (2017) Discussion] :
You'll have to find out for yourself. Make a HW backup. Then uninstall everything. Then the safetynet test. It's green. Step by step restore the apps. That's how you find the sinner.
[P8 Lite (2017) Discussion] dannyzamora:
I only have this apps with root access

Its the AdAway app fu***** the safetynet? im try to disable but nothing... or for remove any bloatware apps with TB?

PD. Can i make a factory reset in the stock recovery directly or in the restore menu? im have the twrp in the e-recovery.
[P8 Lite (2017) Discussion] jackulus:
+1

And as far as I remember I checked SN status just after factory reset and magisk flashing - with no apps installed.

There are some basic checks to be done as it is advised in magisk thread. For example USB ADB enabled and/or developer options enabled. I tried to disable them but no effect.

In general not passing SN means that Google doesn't trust my device. What is your certifiation status in Google Play Store options ? My, is unfortunately - uncerified. I don't know why - device/bootloader is unlocked ? But ChinHon has unlocked device too... What about others ? I'm on B161 firmware, clean system after rooting with magisk.
[P8 Lite (2017) Discussion] :
I've been removing titanium for a long time. Instead, I use Romtoolbox for all changes in the system. Adaway doesn't bother the SN. Factoryreset only in the stock recovery. Only before restoring it is done in TWRP afterwards.
[P8 Lite (2017) Discussion] dannyzamora:
I dont understand this sorry "Only before restoring it is done in TWRP afterwards"

Need any before the factoryreset in the stock recovery? Or just factoryreset in stock recovery and start with the rom cleaned?

Google translator its soo bad :(

Thanks you for all help and your time!
[P8 Lite (2017) Discussion] :
https://www.deepl.com/translator
[P8 Lite (2017) Discussion] dannyzamora:
Thanks you! Nice translator!

One ultimate question.. what options need mark in twrp for make a full backup? mark all options but give me errors in data and another partitions.
[P8 Lite (2017) Discussion] jackulus:
Pls, have a look at my story - may be you have similar questions. I got excellent guide by ChinHon about how to make reliable TWRP backup. If you will follow this way, I'd like to highlight one step that I underestimated and made mistake. I have a fresh, clean B161 system without my/user data. I assumed, that after factory reset this state will be the same and I don't need to make any copy of user data or applications. Wrong! After just system factory reset, probably it could be true but following TWRP's factory reset removes some data (I don't know exactly which one) but e.g. my Themes App doesn't work properly - I can't change themes (can do this but no effect). So, if you want to be 100% sure you stay untouched after the whole backup procedure make app backup with Huawei Backup utility.
[P8 Lite (2017) Discussion] :
I have often described how to create a complete backup. It's all here in the thread.
[P8 Lite (2017) Discussion] dannyzamora:
Thx! i see this tutorial but i dont understand all and dude in this steps...

8. Start now the device directly by key combi into the stock recovery and make a factoryreset.

9. Start now by key combi and usb to TWRP and make a factoryreset again. No reboot durig this two steps.

10. Now you can create a complete backup. Make sure you choose the extSd for this.

If i make a factoryreset in the stock recovery and in twrp another factoryreset.. i can boot fine after this steps? i see in too post "never factoryreset in twrp" and read later this in the same post:

13. Don't do factoryreset in the future. That's forbidden from now on. If it gets stuck, restore the 1st backup (that from before). It puts everything back on stock.

Why cant make a factoryrecet in the step 13 if i want in the future but can make factoryreset in the steps 8-9? sorry but no understand this... hahahaha X)
[P8 Lite (2017) Discussion] jackulus:
Ad. 8-10

I had the same doubts but... You will boot after that. At least I did. The point is to follow this procedure exactly, especially don't boot the system between two factory resets.

Ad. 13

It means (as far as I understand) don't do "standalone" factory resets, assuming that you will be still using the system after this reset. But if the factory reset is a part of the procedure of making full backup (or restore it in emergency) it is allowed. And remember of data backup, don't make the same mistake as me.
[P8 Lite (2017) Discussion] dannyzamora:
Ok, thx!!

- If i want a factoryreset for start with the stock rom cleaned, just factoryreset only in the stock recovery and can boot with the stock rom cleaned? no more steps needed?

- If i want to restore a twrp backup or create a first backup with twrp, factoryreset in stock recovery and twrp (without boot system between), later can create the full backup with twrp and restart stock rom cleaned without problems?

Omg im crazy with this hahahaha, sorry!
[P8 Lite (2017) Discussion] jackulus:
Yes, according to my limited knowledge and own experience.

If you need more trustworthy confirmation, ask the author of this thread..:)
[P8 Lite (2017) Discussion] :
Because the recovery is not perfect, the procedure described above is necessary for it to be able to backup and restore. However, it remains faulty. Factoryresets executed after that time will permanently damage the data partition. The firmware must then be completely renewed. Since the eRecovery method usually doesn't work, the method with the rescue rom has to be used. That costs a lot of time.
[P8 Lite (2017) Discussion] dannyzamora:
What options need mark in twrp for make a full backup? All?
[P8 Lite (2017) Discussion] :
All without caches.