[Q] FAILED <remote: command not allowed>

michalss

Member
Jul 31, 2011
23
0
0
I have the same problem. Finally I found the reason and the solution:

1. Use fastboot -i 0x0fce oem unlock 0x(your code), failed at the first time
2. repeat step 1, success
3. Use FlashTool -> BLU, unlock it again
4. Reboot, it will do a factory reset

I think the reason is, it has been double locked!



Good luck
I dont have a unlock code :( where to get it ?

Also try flash with a new boot but failed..

FAILED (remote: Necessary to unlock FRP! Navigate to Settings > Developer op)
finished. total time: 0.011s
 

Diomorgan

Senior Member
Jul 11, 2011
616
84
48
Rome
I dont have a unlock code :( where to get it ?

Also try flash with a new boot but failed..

FAILED (remote: Necessary to unlock FRP! Navigate to Settings > Developer op)
finished. total time: 0.011s
same here, bootloaderunlocked, never had such problem before, this is driving me insane...
Maybe is a driver problem, but I have a folder with some drivers downloaded from sony (just inf etc, no setup)and anyhow and can't help the way I must use it! :(
 
Jul 19, 2016
16
0
0
same problem

im having trouble trying to root my phone again after it crashed and had to start from beginning. When i try fastboot flash boot Z_DooMLoRD_CF-Auto-Root-ported_FW-350.img it gives me fails and says FAILED <Remote: command not allowed> does any body know what im doing wrong? I managed to root it teh first time no problem.

Cheers
I faced the same failure when i used to flash custom recovery on my Xperia m Dual C 2004
 

hello_world.c

Senior Member
Jun 3, 2011
186
50
48
Exact same problem here, have you been able to find a solution? Thanks!
Same here, bootloader unlocked (flash tools show unlock code and only offer to relock), tried everything, but result is always the same:
Code:
>fastboot flash recovery twrp-3.0.2-0-taoshan.img
target didn't report max-download-size
sending 'recovery' (11276 KB)...
OKAY [  0.362s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.370s
I can 'fastboot flash boot ...' - the command succeeds but of course the device then won't boot anymore and I have to do a factory restore.
Edit: I now tried the method given here (dd install): https://twrp.me/devices/sonyxperial.html:
Code:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
The command succeeds, but no change - reboot recovery boots into the system. I stumbled across the remarks concluding in:
What does all this mean? It means that TWRP may not work on your device unless you install other custom software as well. Check with your ROM developer to see what they support.
Great - the Lineage OS install instructions rely on TWRP being installed, TWRP relies on custom ROM support. Classic catch-22.
 
Last edited:
  • Like
Reactions: bam80
Mar 1, 2010
22
0
0
Hi, I had same problem with "Command not allowed" and I've unlocked bootloader.
I have fixed my problem by flashing kernel instead just flashing twrp ( https://forum.xda-developers.com/xperia-z/development/kernel-ub-t3198491) via Flashtool using option >>>>lightning icon"/Fastboot mode/Select kernel to Flash/path to boot.img

Now I have fully working twrp and LineAge OS :eek:
THIS is the only solution that worked for me... had the same problem on my Xperia ZL, none of the above metioned solutions worked...
Even after flashing the kernel ("fastboot flash boot...") and successfully installing lineageOS I still can't flash the recovery("fastboot flash recovery...")... strange!

Link to the respective ZL port, if any ZL owner lands here:
https://forum.xda-developers.com/xperia-zl/development/kernel-ub-t3198568
 

silverbluep

Member
Dec 13, 2017
34
7
0
Solved it for my phone

I have C6602. Someone on reddit gave me the solution; (do note that I had to run
Code:
adb root
for
Code:
su
to work.

You have a Xperia device which deals with recovery kind of weird. Recovery is stored with the kernel, not in a standalone recovery partition. Because of this you need to flash it to a FOTAKernel partition and use a kernel that supports FOTAKernel (the LineageOS one does).

To flash TWRP, first move the recovery image to your device with the adb command
Code:
adb push twrp-3.0.2-0-yuga.img /sdcard
. Then run
Code:
adb shell
to get access to the shell. Then run
Code:
su
and accept any prompts to gain root access. Then to actually flash, run
Code:
dd if=/sdcard/twrp-3.0.2-0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
 
  • Like
Reactions: raecer

zackl

New member
Feb 25, 2018
1
0
0
how

I have the same problem. Finally I found the reason and the solution:

1. Use fastboot -i 0x0fce oem unlock 0x(your code), failed at the first time
2. repeat step 1, success
3. Use FlashTool -> BLU, unlock it again
4. Reboot, it will do a factory reset

I think the reason is, it has been double locked!

Good luck
i dont under stand how to type step 1
:confused:

---------- Post added at 08:45 AM ---------- Previous post was at 08:42 AM ----------

how do you fix bootloader i tried to root my phone but failed how pls tell me literally almost crying
:crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying:
 

LiOnKiNg_7

New member
Jul 13, 2011
1
0
0
hey guys ;)

i got last week the sgp712 and now i tried to unlock the bootloader to get root on this device
i installed the needed driver and downgraded to the 28.0.A.8.260 firmware, and this device is able to unlock the bootloder

now, if i enter the unlock code, i got the error "FAILED (remote: Command not allowed)"
i tried this with win7 and ubuntu on the same machine (dualboot)

in the next step, i searched for the entry "oem unlock" but this option isn't visible in the developer options

has someone any idea, what i can do now, or how can i fix this error?

greetings
LiOnKiNg_7

€dit:
even with flashtool on windows i get the same error message
 
Last edited: