Failed TWRP install on P10 - Huawei P10 Questions & Answers

Hi all,
I got problem installing TWRP recovery on P10 buil number VTR-L29C432B171.
First of all i unlocked bootloader with Minimal ADB an Fastboot. Now bootloader shows "Phone Unlocked" and "FRP lock".
When i try fastboot flash recovery... it shows FAILED (remote: command not allowed).
Any suggestions?

you have to activate OEM unlock in settings/developers options

virusdunil said:
you have to activate OEM unlock in settings/developers options
Click to expand...
Click to collapse
This setting is inactive (grayed out) after unlocking.

Finally problem solved.
There was somethig wrong with adb interface driver. After unlocking bootloader i have to reset developer settings to defaults to get usb debbuging work again. After this OEM unlock setting resets to, but because it stays inactive its imposible to turn it on. So i relocked bootloader and used Huawei Multitool drivers to unlock again and install TWRP.

Related

About OEM unlock

Hello everyone
I am Japanese.
"Enable OEM lock release" on P10 lite is grayed out (not selectable) and can not be changed.
Are you familiar with causes and measures?
am-kazu said:
Hello everyone
I am Japanese.
"Enable OEM lock release" on P10 lite is grayed out (not selectable) and can not be changed.
Are you familiar with causes and measures?
Click to expand...
Click to collapse
Hi,
When you reboot your phone, there should be an unlocked bootloader screen (white and yellow text).
If not, start into Fastboot (power off phone, power it on with holding volume down). What does the bootloader status say?
You can also test it with the fastboot command "fastboot oem get-bootinfo".
The oem unlock slider is normally greyed out, when the bootloader is unlocked.
If you have still FRP locked, you can try "fastboot oem relock BOOTLOADERCODE". If this doesn't work, you have to make a factory reset.
Thank you for your reply!
When "fastboot oem relock BOOTLOADERCODE" was executed, it was solved satisfactorily!
Thank you very much!

[Solution]BL unlocked&FRP Locked-Fastboot FAILED (remote: Command not allowed)

Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with except andfastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
The OEM Unlock option now is greyed out and ACTIVE
Sucess!
After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.
Click to expand...
Click to collapse
Can i have your permission to add this guide to the unified help thread (FAQ post> "error: command not allowed") in this subforum. I will credit you by mention ofc.
fu**ing great, if I try to relock its says stat not match!!!!! Anyone ?
title
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Thank you very much! I spent many hours looking for a solution to this problem!
Your solution is incredible! Can I share your steps in Spanish for more people? I live in Mexico and I know more people with this problem. And of course I give you the credits for this magnificent solution. I'm sorry for my English, I know I write badly in this language
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
My phone its f***
What i do
Honor 7x
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
Me too
Any idea?
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
I have a solution for you both.
I mistakenly followed the instructions above but made the mistake of not skipping everything. I got the message "Data partition corrupted do you want to format the partition" or something similar, DO NOT FORMAT ANYTHING, it should boot up normaly. I'm a bit rusty in my rooting ways u_u
Now, I got exactly the same situation as you both "Relocked" and "FRP Locked". I was able to get into the eRecovery and this is way to restore your phone.
1.- You need to get the Huawei Firmware Finder (Team MT) (https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146)
2.- Unzip it and run FirmwareFinderRewrite.exe
3.- Go to the tab that says Common Base
4.- Search for the update that you know it works in my case was VNS-L31C432B388 (I tried to use VNS-L31C432B404 but its still "not active" whatever that means). Look for the FullOTA and copy the change log address (in my case: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1258/g104/v91282/f1/full/changelog.xml)
5.- In the icons above the Tabs pres on the cloud with a page infront, the tooltip should say Proxy
6.- Copy the changelog addres in the section Firmware for install and press Set.
7.- Press Register for Update
8.- Follow the instructions bellow this (Change your DNS temporarily)
9.- In your phone go to the eRecovery.
10.- Connect to WLAN and it should find a package.
10a.- In case it doesn't find it, go back to step 4. You probably got 2 packages with the same name. I do not enterily understand the differences but I assume one is for one region and the other for other region.
11.- Wait until it restores and be happy.
If you can not change the DNS in you router, as it was my case. You can set a hotspot with your laptop/desktop and change the DNS there but you still need and active internet conection.
I connected my cellphone to my laptop via WLAN and my laptop to the router via Ethernet which provides internet. I change both DNS's for both connections.
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
tootysa said:
My phone its f***
What i do
Honor 7x
Click to expand...
Click to collapse
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
Kucharskov said:
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
Click to expand...
Click to collapse
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Man it's not working for me to relock the bootloader. its the same result. what can i do?
really need your help sir
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
Sir please help me , I need step by step tutorial from you please I need your facebook account name and I will pm you.
I'm on stock ROM and already do factory reset. But the bootloader still unlocked. When I'm trying to lock, its failed. Can someone help me?
my phone seems to be stuck at emui circled been about 5mins like that
honor 9 lite
Alexander33 said:
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Click to expand...
Click to collapse
If you have this situation : phone Relocked --> its mean that the phone has been unlocked before and then relocked
If you have this situation : phone locked --> its mean that the phone has never been unlocked before
it's a security from huawei to know if the phone still have a warranty
I have the same situation : phone relocked and frp lock (P20 lite with ANE-LX1 C652 )
because i relocked the bootloader without leaving the frp unlocked.
When you relock the bootloader ( relock phone) the phone will do an automatic factory reset, and if he fail with, you can't unlock bootloader again because of the frp lock, and you can not unlock frp from developper option because the phone won't start.
I tried the Firmware Finder solution to get erecovery working with DNS, i found an update for (ANE-LX1 C652 not FullOTA) and i register it for download, the phone start downloading, after finish downloading i get a fail install error.
i tried register many version C432 C185 ..... but the erecovery is not reconizing them i think that i need a FullOTA for my ANE-LX1 C652.
Installing update with sdcard dload, always fail .
re
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
markraiem said:
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
Click to expand...
Click to collapse
The warning will always appear as long as the Bootloader is unlocked. read the first 3 conditions . If you are on stock and can boot on stock, delete fingerprints and any PINs and Google accounts, then Factory Reset and this should set you to FPR Unlocked, BL Unlocked. Here just lock the bootloader back and then reboot normally and use the device as you normally do, the moment you add your Google Account and/or Fingerprint the FRP will lock back. If you want to continue flashing custom ROMs etc. follow the tutorial but read all the comments (relevant ones) before you do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Settings -> Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Click to expand...
Click to collapse
if that applies to you, you can try my tutorial, otherwise I have no other suggestion for you, I quit tampering with my Huawei long ago, stock is quite fine for me.
I don't have the code, how do i lock and unlock bootloader? thx
to me puts
PHONE Locked
FRP Lock
phone stuck on recovery mode

[SOLVED] Huawei P10 FRP Lock | Can't do anything

Hello xda-community!
I have a problem with my Huawei P10. I flashed the treble LinageOS v4 firmware and because of some problems I wanted to flash another treble firmware or go back to stock, but it is not possible with TWRP (E: unknown command) or ADB (FAILED (remote: Command not allowed)), because FRP is locked and I get an error while flashing. (In OS the OEM-Unlock is greyed out)
Now I don't know what to do and how to unlock FRP.
Thanks for any help
Boot your rom then make sure usb debugging is turned on
ej8989 said:
Boot your rom then make sure usb debugging is turned on
Click to expand...
Click to collapse
Thanks for the answer. USB debugging is turned on and my device will be recognized by my pc.
After a very long research I found a tutorial which brought me back to stock:
https://forum.xda-developers.com/p1...-stock-erecovery-dns-ff-t3730077#post75085397

New Xiaomi A2 global bricked???

I was trying to install Camera2 on it. Unlocked it with developer options ->Unlock OEM
After try some things I reset factory the cellphone and decide to forget camera2 things...
So I went to developer options and LOCKED OEM.
After that I reboot in fastboot mode and did fastboot oem lock
Now the cellphone is locked in a bootloop saying that my deveice loaded a differente operational system and a screen to visit miui.com/unlock.
The unlock aplication doesn't work. Says that I can't unlock the device.
So that means I lost my crazy brand new phone? THere's any solution? The Test Point solution will work? Is that the only solution???
Thiank you for any response.
foxdanger said:
I was trying to install Camera2 on it. Unlocked it with developer options ->Unlock OEM
After try some things I reset factory the cellphone and decide to forget camera2 things...
So I went to developer options and LOCKED OEM.
After that I reboot in fastboot mode and did fastboot oem lock
Now the cellphone is locked in a bootloop saying that my deveice loaded a differente operational system and a screen to visit miui.com/unlock.
The unlock aplication doesn't work. Says that I can't unlock the device.
So that means I lost my crazy brand new phone? THere's any solution? The Test Point solution will work? Is that the only solution???
Thiank you for any response.
Click to expand...
Click to collapse
"So I went to developer option and LOCKED OEM" can you be a little more clear. Because unlocking the bootloader locks the OEM unlock option in the developer settings.
Possible cause of your bootloop is the change in your build.prop file.
I did a similar mistake as well. My phone was stuck in a bootloop. My mistake was that I installed Magisk and forgot to uninstall it through the Magisk manager before locking the bootloader and so the system were not in their stock state.
What I did was, I just booted my phone into fastboot.
Unlocked the bootloader again by using "fastboot OEM unlock". Went into fastboot again. Checked the current active slot by "fastboot getvar current-slot" and flashed the stock boot image from the stock pie rom found on Mi website.
Njaiker said:
"So I went to developer option and LOCKED OEM" can you be a little more clear. Because unlocking the bootloader locks the OEM unlock option in the developer settings.
Possible cause of your bootloop is the change in your build.prop file.
I did a similar mistake as well. My phone was stuck in a bootloop. My mistake was that I installed Magisk and forgot to uninstall it through the Magisk manager before locking the bootloader and so the system were not in their stock state.
What I did was, I just booted my phone into fastboot.
Unlocked the bootloader again by using "fastboot OEM unlock". Went into fastboot again. Checked the current active slot by "fastboot getvar current-slot" and flashed the stock boot image from the stock pie rom found on Mi website.
Click to expand...
Click to collapse
What I did was with the phone working I entered on configuration, developer, and turned of the oem lock option.
Than I reboot in fastboot and did fastboot oem lock.
This made the cellphone unbootable. Bootloop saying that I'm trying to start a different operational system.
And I can't make fastboot unlock because I turned off the option in the system, so I can't send fastboot commands like oem edl, unlock, unlock-critical and etc...
I can't do nothing :/
I don't know how the option was working, but was... I know it should be locked, but this time wasn't. Was after I factory reset the cellphone
Your fault that you locked bootloader on a modified system. Do a research next time

Failed to get unlock data

Hey guys.
Is it possible to root without unlocking bootloader? I ask this, because every time I tried to unlock the bootloader I get the warning "Failed to get unlock data"
- I'm using Android 11
- "OEM Unlock" and "USB Debugging": checked
- Drivers and adb: installed
- Tested on all computer usb ports
Fastboot recognizes commands (example: fastboot reboot bootloader). However, it does not return the code to unlock the bootloader.
Thanks for help!

Categories

Resources