Flash Recovery -> FAILED (remote: Command not allowed) - Huawei P9 Lite Questions & Answers

Hello Guys,
After serveral month with TWRP & other stuff I've flashed stock B161 today.
Now I want to flash TWRP because of SuperSU.
I opened Minimal ADB&Fastboot (Work's fine the last month) and booted in bootloader. Then I've typed:
fastboot flash recovery recovery.img
And got the alert:
FAILED (remote: Command not allowed)
Yes, Bootloader is unlocked.
OEM-Unlock is activated to.
Thanks for every help und sorry for bad english.

Playleyx said:
Hello Guys,
After serveral month with TWRP & other stuff I've flashed stock B161 today.
Now I want to flash TWRP because of SuperSU.
I opened Minimal ADB&Fastboot (Work's fine the last month) and booted in bootloader. Then I've typed:
fastboot flash recovery recovery.img
And got the alert:
FAILED (remote: Command not allowed)
Yes, Bootloader is unlocked.
OEM-Unlock is activated to.
Thanks for every help und sorry for bad english.
Click to expand...
Click to collapse
it's some kind of bug i think, it says it's unlocked, but it isn't, try unlocking again. it's only unlocked if you get a warning everytime you boot up the phone

mjz2cool said:
it's some kind of bug i think, it says it's unlocked, but it isn't, try unlocking again. it's only unlocked if you get a warning everytime you boot up the phone
Click to expand...
Click to collapse
My phone in fastboot show me bootloader unlocked but when boot up the phone that warning message dont show up.what that mean??its unlock or not????

Hipom said:
My phone in fastboot show me bootloader unlocked but when boot up the phone that warning message dont show up.what that mean??its unlock or not????
Click to expand...
Click to collapse
it's not unlocked if it says command not allowed.
try unlocking again, it should work after that
when you flash a stock rom, the bootloader gets locked again, but for some reason it still says unlocked in fastboot mode. it's probably to prevent you from restoring warranty after unlocking your device

Thank you!
You are right, the warning-message isn't there anymore.
I will try to unlock it again tomorrow, I hope that it work without problems.

Playleyx said:
Thank you!
You are right, the warning-message isn't there anymore.
I will try to unlock it again tomorrow, I hope that it work without problems.
Click to expand...
Click to collapse
Its works?
I have same problems ((((

Same problem
shmagiGEO said:
Its works?
I have same problems ((((
Click to expand...
Click to collapse
How did you do it ???

Playleyx said:
Thank you!
You are right, the warning-message isn't there anymore.
I will try to unlock it again tomorrow, I hope that it work without problems.
Click to expand...
Click to collapse
hello, i also have the same problem with huawei gt3 nmo l31 device. did you resolve the problem. please tell me if something worked

umunais said:
hello, i also have the same problem with huawei gt3 nmo l31 device. did you resolve the problem. please tell me if something worked
Click to expand...
Click to collapse
Yes it works. I had the same problem last night. L21 P9lite

umunais said:
hello, i also have the same problem with huawei gt3 nmo l31 device. did you resolve the problem. please tell me if something worked
Click to expand...
Click to collapse
as i said before in this thread, unlock the bootloader

FRP locked can be problem also. My experience.

I have this problem on honor7 but it happens when I try to erase a partition I
I also can't root I installed SuperSU with TWRP but no root access after reboot

pospi69 said:
FRP locked can be problem also. My experience.
Click to expand...
Click to collapse
I have that problem. Phone is unlocked and FRP locked. I am not able to flash TWRP. For the time being I am stucked. I get a message when booting that the phone is unlocked and unsafe and so on... Someone have a solution?
Skickat från min ONEPLUS A3003 via Tapatalk

Look on YouTube how to remove FRP lock! Its just small cheat in android. (FRP=FACTORYRESETPROTECTION)
---------- Post added at 07:00 PM ---------- Previous post was at 06:58 PM ----------
I fixed that after some ways to fix. Try some of these on YT. It worked for me.

If I cannot get to the dialer, am I still able to unlock bootloader somehow? I do not have unlock code.

peskystats said:
If I cannot get to the dialer, am I still able to unlock bootloader somehow? I do not have unlock code.
Click to expand...
Click to collapse
same problam my honor bln-l21 frp lock not flash any thing recover , boot etc remot command error

Related

clarify ota updates & root

Hi all
I searched this, but I question here,
1 - When you unroot , put stock and update an ota, it blocks the bootloader?
2 - and the when unlocked, format all to factory?
3 - In what moment the bootloader is blocked? only when first unlock is done?
Thanks in advance, I have an honor 7 and I Know how it works, but this honor 8 L09?
1. probably
2. u can prevent factory reset if unlocked earlier
3. idk what the question means
LastStandingDroid said:
1. probably
2. u can prevent factory reset if unlocked earlier
3. idk what the question means
Click to expand...
Click to collapse
3 - well, the main question is if in every ota update , it locks the boootloader and when unlock, format all ...this is the main question
in honor 7, I unroot, apply the ota and root again with no problems
sorry for my english
deadko said:
3 - well, the main question is if in every ota update , it locks the boootloader and when unlock, format all ...this is the main question
in honor 7, I unroot, apply the ota and root again with no problems
sorry for my english
Click to expand...
Click to collapse
lock bootloader i can't tell, if it does u can unlock the bootloader and again, and straight after flash TWRP it won't wipe the internal SD
Hi. bought an al-10 from china which apparently is flashed. There are a few things not working on phone so apart from trying to get help from seller, i have attempted the flashing myself. i have gone thru a few threads and watched TK vid on flashing twrp and rooting and roni on unlocking bootloader. now, considering the device is flashed i understand the bootloader is still unlocked (in fastboot says phone unlocked). in dev options there is no OEM unlocking option. i cannot get lock state through the code in dialler. when i try to flash twrp, sending recovery OKAY, writing recovery FAILED <remote: command not allowed> so cannot really get to rooting stage
Thank you for the time.
ptwarecki said:
Hi. bought an al-10 from china which apparently is flashed. There are a few things not working on phone so apart from trying to get help from seller, i have attempted the flashing myself. i have gone thru a few threads and watched TK vid on flashing twrp and rooting and roni on unlocking bootloader. now, considering the device is flashed i understand the bootloader is still unlocked (in fastboot says phone unlocked). in dev options there is no OEM unlocking option. i cannot get lock state through the code in dialler. when i try to flash twrp, sending recovery OKAY, writing recovery FAILED <remote: command not allowed> so cannot really get to rooting stage
Thank you for the time.
Click to expand...
Click to collapse
And the device is? Did u use fastboot flash recovery recovery.img
Sent from my FRD-L09 using Tapatalk
LastStandingDroid said:
And the device is? Did u use fastboot flash recovery recovery.img
Sent from my FRD-L09 using Tapatalk
Click to expand...
Click to collapse
Hi.
Sorry device is honor 8 frd-al10.
It was fastboot flash recovery twrp_cn.img
I have just received a message from seller stating it was flashed with eu firmware. I have it as frd c900b120. Should i be using the image for FRD-L09 or FRD-L19 in this case ?
Thank you.

Is it possible to relock the bootloader?

I'm holding off twrp + bootloader unlock because I want to be able to undo in case I need to use my warranty. Is twrp/bootloader unlock reversible? Many thanks
Yes. Flash complete stock everything, boot into bootloader, connect to PC, and "fastboot oem lock".
Is it sure that it works??I have a A2017G and i have open BL and a B29 Custom Rom and i want back to Lock Bootloader
Kevinkuensken said:
Is it sure that it works??I have a A2017G and i have open BL and a B29 Custom Rom and i want back to Lock Bootloader
Click to expand...
Click to collapse
Yup! I've done it plenty of times. You do need to format the data partition though. This could mean that it'll wipe out even your internal storage, so back that up as well!
Im on stock and then i go to edl and then i type fastboot oem lock but nothing happend
Kevinkuensken said:
Im on stock and then i go to edl and then i type fastboot oem lock but nothing happend
Click to expand...
Click to collapse
Boot into bootloader, not EDL.
Erahgon said:
Yup! I've done it plenty of times. You do need to format the data partition though. This could mean that it'll wipe out even your internal storage, so back that up as well!
Click to expand...
Click to collapse
and you can unlock it again afterwards?
Never heard of anyone wanting to lock the bootloader so I'd a newb in this kind of thing.
BlazingBullets said:
and you can unlock it again afterwards?
Never heard of anyone wanting to lock the bootloader so I'd a newb in this kind of thing.
Click to expand...
Click to collapse
Locking it again is good for when you want to sell the device or send it in for warranty repair.
BlazingBullets said:
and you can unlock it again afterwards?
Never heard of anyone wanting to lock the bootloader so I'd a newb in this kind of thing.
Click to expand...
Click to collapse
Yeah, the unlock procedure is the same as before. If you didn't restore the original boot image before the relock, then it's just a matter of booting into fastboot and unlocking the device. Note that this will cause your data to be wiped as well!
If you restore your boot.bin backup file from when your device was locked, does this lock the bootloader? "fastboot oem lock", "fastboot flashing lock" nor "fastboot oem device-info" does nothing for me. Is there any other way to check if your bootloader has been relocked?
Thanks
H0lmEd said:
I'm holding off twrp + bootloader unlock because I want to be able to undo in case I need to use my warranty. Is twrp/bootloader unlock reversible? Many thanks
Click to expand...
Click to collapse
Hi there,
Were you ever able to re-lock your bootloader on your A2017G?
I just want root for now but understand that I'll need to unlock the bootloader first. Before doing that, I want to make sure I can re-lock the bootloader if needed.
Thanks for letting us know!
joaste said:
Hi there,
Were you ever able to re-lock your bootloader on your A2017G?
I just want root for now but understand that I'll need to unlock the bootloader first. Before doing that, I want to make sure I can re-lock the bootloader if needed.
Thanks for letting us know!
Click to expand...
Click to collapse
Guys/Gals, it is seriously as simple as using the fastboot command in reverse. I've done it a few times already with mine.
If you used the following to unlock....
fastboot devices
fastboot oem unlock
.....then you can use the following commands to relock
fastboot devices
fastboot oem lock
fastboot devices is not necessary, but I do it to make sure the devices is being recognized by ADB/FASTBOOT
sauerkraut17 said:
Guys/Gals, it is seriously as simple as using the fastboot command in reverse. I've done it a few times already with mine.
If you used the following to unlock....
fastboot devices
fastboot oem unlock
.....then you can use the following commands to relock
fastboot devices
fastboot oem lock
fastboot devices is not necessary, but I do it to make sure the devices is being recognized by ADB/FASTBOOT
Click to expand...
Click to collapse
Thanks for the answer.
But there are a few files to flash before using that command according to this thread.
Doesn't anything need to be flashed again (e. g. stock files or anything)?
Correct, but you would have already flashed those in order to use the unlock command in the first place.
Are you trying to relock on marshmallow or nougat?
sauerkraut17 said:
Correct, but you would have already flashed those in order to use the unlock command in the first place.
Are you trying to relock on marshmallow or nougat?
Click to expand...
Click to collapse
My phone is only a few days old. I'm debating whether to keep it or not (considering the Mate 9, but the price is not the same - love the form factor and bigger screen though - sound won't be the same and I think I'll miss the MiPop button on the Axon (never thought that would happen )).
I'm on the latest MM (B10 - the A2017G model).
Following the mentioned thread, I got to the point of installing TWRP (the signed version), only to realize that besides making backups, there is not much else I can do with that without unlocking the bootloader. I really just wanted to flash supersu and install adaway fro the time being until development matured for this phone (maybe also play around with viper - had great results on my LG G4).
HI, I get the error "FAILED (remote: unknown command)" in ADB when I enter "fastboot oem lock". Any way to fix this?
Guys, can anyone help me? I really need to lock the bootloader!
How can I fix the error "FAILED (remote: unknown command)" in ADB when I enter "fastboot oem lock"?
I'm on MM B11 Stock.
https://i.imgur.com/fdkgYs6.jpg
Hi Guys,
The Axon 7 Model A2017U I just purchased has the bootloader locked and it is running LineageOS 14.1 - 2018032-Nightly-axon7. I need to relock the bootloader and get back to the stock MiFavor rom so that I can send the phone to ZTE for repair. Can you please explain to a newb in some detail how to achieve that.
Thank you.

P9 Full Soft Brick

Hello.
This is very simple
My phone wont boot up, I've tried everything, litteraly (can't access TWRP btw), I have only fastboot...
Please help... Also I have stock rom for phone, but can't do sh*t with it, cant boot on phone, not via fastboot....
target reported max download size of 471859200 bytes
sending 'recovery' (33114 KB)...
OKAY [ 1.057s]
writing 'recovery'...
OKAY [ 0.806s]
finished. total time: 1.865s
hiSuite recovery reports, that phone is not capable to recover...
Please I need help
What recovery did you flashed? If you were previusly on Nougat you should flash this recovery.
Potato997 said:
What recovery did you flashed? If you were previusly on Nougat you should flash this recovery.
Click to expand...
Click to collapse
But does it work on stock recovery image flashing? EMUI Updater? And ohhh, my bootloader is locked BTW, can't flash ****
If your bootloader is locked you have to unlock it..
Potato997 said:
If your bootloader is locked you have to unlock it..
Click to expand...
Click to collapse
Don't you understand? I can't, I don't have access to system, so I can't get data to fill in the form to get bootloader unlock code
PLEASE HELP
Hi
b0xgam1ng said:
Don't you understand? I can't, I don't have access to system, so I can't get data to fill in the form to get bootloader unlock code
PLEASE HELP
Click to expand...
Click to collapse
Try this: dc-unlocker.com/how-to-read-huawei-bootloader-unlock-code
b0xgam1ng said:
Don't you understand? I can't, I don't have access to system, so I can't get data to fill in the form to get bootloader unlock code
PLEASE HELP
Click to expand...
Click to collapse
Man, you can enter in fastboot mode?
Phone is listed as serial number on PC at fastboot command: devices?
gtdaniel said:
Man, you can enter in fastboot mode?
Phone is listed as serial number on PC at fastboot command: devices?
Click to expand...
Click to collapse
Yes, can do that, and it shows my device... But yhat litteraly all what I have, beside EMUI rom flash... Again, bootloader is locked, I dont have phone id or something to get the code... Also cant flash recovery.img, because bootloader is again... Locked
Help
b0xgam1ng said:
Yes, can do that, and it shows my device... But yhat litteraly all what I have, beside EMUI rom flash... Again, bootloader is locked, I dont have phone id or something to get the code... Also cant flash recovery.img, because bootloader is again... Locked
Help
Click to expand...
Click to collapse
Try this bootloader code: 2279225322717395
Then tell me if you can unlock bootloader.
gtdaniel said:
Try this bootloader code: 2279225322717395
Then tell me if you can unlock bootloader.
Click to expand...
Click to collapse
Holly ****! It actually worked, just out of curiousity, how did you got this code? Thanks
b0xgam1ng said:
Holly ****! It actually worked, just out of curiousity, how did you got this code? Thanks
Click to expand...
Click to collapse
I have a magic touch...
gtdaniel said:
I have a magic touch...
Click to expand...
Click to collapse
Hahahaha, anyway, thanks alot, now I flashed lineageOS and it's pefect, you litteraly saved my life, thanks
No problem, man!
I am glad it worked out and you can revive your phone!
gtdaniel said:
I have a magic touch...
Click to expand...
Click to collapse
wait, what? where did you get that code, and what kind of unlock code is it?
mjz2cool said:
wait, what? where did you get that code, and what kind of unlock code is it?
Click to expand...
Click to collapse
Its from Huawei and is bootloader unlock code.
gtdaniel said:
Its from Huawei and is bootloader unlock code.
Click to expand...
Click to collapse
isn't the unlock code specific to a device normally?
mjz2cool said:
isn't the unlock code specific to a device normally?
Click to expand...
Click to collapse
yes.
gtdaniel said:
yes.
Click to expand...
Click to collapse
so how did you get the code for someone else's phone?
mjz2cool said:
so how did you get the code for someone else's phone?
Click to expand...
Click to collapse
It-s a bootloader code based by IMEI/SN.
Hi.
I´ve a similar problem. My phone stucks on huawei logo. Bootloader is locked but I have bootloader code.
So, when i try to send it with fastboot command, it shows me this error
C:\Telefonia>fastboot oem unlock 143172182xxxxxx
...
FAILED (remote: Command not allowed)
finished. total time: 0.013s
Does anyone knows what´s the problem and how can I solve it.
Thanks in advance. Regards

Re-lock Bootloader

Hi all,
I am trying to re-lock my bootloader, but my fastboot commands aren't working. It says "remote error command not found."
I am running stock b19 (7.1.1) unrooted. The only thing modified is the bootloader, which is unlocked.
How do I fix this error. I installed the ADB drivers. I do not know what is causing this error. Any help will be appreciated.
TheWoerbler said:
Hi all,
I am trying to re-lock my bootloader, but my fastboot commands aren't working. It says "remote error command not found."
I am running stock b19 (7.1.1) unrooted. The only thing modified is the bootloader, which is unlocked.
How do I fix this error. I installed the ADB drivers. I do not know what is causing this error. Any help will be appreciated.
Click to expand...
Click to collapse
I think fastboot commands were disabled in b19. There's no harm in keeping it unlocked unless you're wanting to use Android Pay (in which case Magisk can hide the unlocked bootloader), or you're needing to return the phone for warranty reasons.
bluestudy said:
I think fastboot commands were disabled in b19. There's no harm in keeping it unlocked unless you're wanting to use Android Pay (in which case Magisk can hide the unlocked bootloader), or you're needing to return the phone for warranty reasons.
Click to expand...
Click to collapse
So I installed the factory image from ZTE's website, which uninstalled twrp and SuperSU (which I knew it would), but I am still unable to use fastboot commands. What might be causing this problem?
As far as I know you need to rollback and flash DrakenFX's fastboot command zip in order to be able to use fastboot again.
iNaruX said:
As far as I know you need to rollback and flash DrakenFX's fastboot command zip in order to be able to use fastboot again.
Click to expand...
Click to collapse
So I changed some settings in Windows Device Manager, now fastboot is working...kinda. I type "fastboot oem lock" and it hangs up for 5 seconds and gives me the error "FAILED (command write failed (Unknown error))...
I solve one problem, and another pops up... Thoughts?
EDIT: In regards to DrakenFX's fastboot command zip, where would I get that? Is it the full systemstock?
I read this guide for the Axon7 A2017G, but the zips used are for the A2017U.
https://forum.xda-developers.com/axon-7/how-to/guide-reinstall-twrp-root-update-to-t3578552
The first couple of steps restore the bootloader and get fastboot commands up and running via EDL mode.
iNaruX said:
I read this guide for the Axon7 A2017G, but the zips used are for the A2017U.
https://forum.xda-developers.com/axon-7/how-to/guide-reinstall-twrp-root-update-to-t3578552
The first couple of steps restore the bootloader and get fastboot commands up and running via EDL mode.
Click to expand...
Click to collapse
I am currently running B29 (6.0.1). Will this still work, even though I am on a different version of Android? Or should I update to B19?
Oh...if you are on MM this should work for you.
https://forum.xda-developers.com/axon-7/how-to/guide-how-to-unlock-bootloader-stay-t3461165
Just flashable zip in Recovery, no need for EDL.
I'm not an A2017U though...
iNaruX said:
Oh...if you are on MM this should work for you.
https://forum.xda-developers.com/axon-7/how-to/guide-how-to-unlock-bootloader-stay-t3461165
Just flashable zip in Recovery, no need for EDL.
I'm not an A2017U though...
Click to expand...
Click to collapse
Just for clarification: I am trying to LOCK my bootloader, not UNLOCK. Sorry if I've been unclear. I need to RE-LOCK my bootloader...everything else is stock (recovery, no SuperSU, etc.)
P.S. Thank you for your help, I really appreciate you taking the time.\
EDIT: AHHHHHHHHHHHHH I GOT IT!!!!! Thank you so so much!!! I really appreciate your help, you have no idea!! I followed the last guide you sent me and replaced "unlock" with "lock." You're the best, man...or woman!
TheWoerbler said:
Just for clarification: I am trying to LOCK my bootloader, not UNLOCK. Sorry if I've been unclear. I need to RE-LOCK my bootloader...everything else is stock (recovery, no SuperSU, etc.)
P.S. Thank you for your help, I really appreciate you taking the time.\
EDIT: AHHHHHHHHHHHHH I GOT IT!!!!! Thank you so so much!!! I really appreciate your help, you have no idea!! I followed the last guide you sent me and replaced "unlock" with "lock." You're the best, man...or woman!
Click to expand...
Click to collapse
Haha cheers, I think you got it, I sent that guide just to enable fastboot commands, glad it worked :good:
I need to re-lock the bootloader on my A2017U. I put in a warranty repair claim with ZTE for a dead SIM2 slot. They said if I could relock it to stock, they would not charge the $79.99 out-of-warranty fee.
My only concern with the guides above is that I'm on the RR Nougat ROM. Will any of the links above work for me?
Hi Guys,
The Axon 7 Model A2017U I just purchased has the bootloader locked and it is running LineageOS 14.1 - 2018032-Nightly-axon7. I need to relock the bootloader and get back to the stock MiFavor rom so that I can send the phone to ZTE for repair. Can you please explain to a newb in some detail how to achieve that.
Thank you.
TheBoozer said:
Hi Guys,
The Axon 7 Model A2017U I just purchased has the bootloader locked and it is running LineageOS 14.1 - 2018032-Nightly-axon7. I need to relock the bootloader and get back to the stock MiFavor rom so that I can send the phone to ZTE for repair. Can you please explain to a newb in some detail how to achieve that.
Thank you.
Click to expand...
Click to collapse
This guide should do the trick: https://forum.xda-developers.com/axon-7/how-to/guide-axon-7-universal-unbrick-t3814413
soren25 said:
This guide should do the trick: https://forum.xda-developers.com/axon-7/how-to/guide-axon-7-universal-unbrick-t3814413
Click to expand...
Click to collapse
Thank you very much for your help, I am now back to stock B15. The only thing left for me is to relock the bootloader.

My phone it's blocked into huawei start screen

Hello,
Yesterday when I Wanting to charge the battery of my phone, it's suddenly turned off, and since it is stuck on the startup screen..
I have traveled dozens of French forums in search of a solution, I come back to you now because I am a little desperate
As for my phone, he was never rooted, and I never change firnware, I do not have access to recovery, there is only fastboot mode that works
In the fastboot mode, i can read "ap-s-abnormal-n/a et phone locked frp lock".
If I understand correctly, I can not flash my phone because it is blocked..
Please help me
Do you have Access to the huawei E-Recovery? Try doing a factory reset there.
Or try to unlock your Bootloader with ADB, Flash TWRP and then Flash a customrom or another Firmware.
I hope I was able to help you.
Greetings from Germany.
TheOldMan said:
Do you have Access to the huawei E-Recovery? Try doing a factory reset there.
Or try to unlock your Bootloader with ADB, Flash TWRP and then Flash a customrom or another Firmware.
I hope I was able to help you.
Greetings from Germany.
Click to expand...
Click to collapse
I don't have access to the recovery mode too
I tried to unlock my bootloader but to no avail, all of the flash commands are concluded with a "Writing **** FAILED", and ADB does not recognize my phone
Thanks for the reply !
Noflex said:
I don't have access to the recovery mode too
I tried to unlock my bootloader but to no avail, all of the flash commands are concluded with a "Writing **** FAILED", and ADB does not recognize my phone
Thanks for the reply !
Click to expand...
Click to collapse
Unlock bootloader again
Adi5 said:
Unlock bootloader again
Click to expand...
Click to collapse
With pleasure but how ?
When I try to do this in fastboot i have this
Code:
... FAILED (remote: Command not allowed)
My only solution at this time is DC phoenix unlocker but i'm not sure about the fiability, and I don't want pay for this..

Categories

Resources