Error while unlocking bootloader - Sony Xperia XZ Questions & Answers

Hi !
I want to unlock my bootloader so I follow the instructions from the Sony's website. When I have to use the follow command : "fastboot -i 0x0fce oem unlock unlockcode" I have the following error :
Code:
FAILED (remote: Command not allowed)
This error is under Linux Mint. I try into Windows 10 and the fastboot devices return nothing..
I also check if the bootloader can be unlocked, and it is !
Any help ?
Thanks a lot !

nathan30 said:
Hi !
I want to unlock my bootloader so I follow the instructions from the Sony's website. When I have to use the follow command : "fastboot -i 0x0fce oem unlock unlockcode" I have the following error :
Code:
FAILED (remote: Command not allowed)
This error is under Linux Mint. I try into Windows 10 and the fastboot devices return nothing..
I also check if the bootloader can be unlocked, and it is !
Any help ?
Thanks a lot !
Click to expand...
Click to collapse
Try unlock bootloader via Flashtool. It worked for me. Maybe you have to request a new code from Sony.

@nathan30
You read point #4 in https://forum.xda-developers.com/showpost.php?p=70504721&postcount=2 ?

DHGE said:
@nathan30
You read point #4 in https://forum.xda-developers.com/showpost.php?p=70504721&postcount=2 ?
Click to expand...
Click to collapse
I read it again, and it's working now. THanks a lot

Related

How can I unlock the bootloader?

I've tried Sony's instructions but when I run fastboot, I get this error:
Code:
FAILED (remote: Command not allowed)
This is the command I run:
Code:
fastboot -i 0x0fce oem unlock 0x0
I removed the last part on purpose.
ThePerplexedOne said:
I've tried Sony's instructions but when I run fastboot, I get this error:
This is the command I run:
I removed the last part on purpose.
Click to expand...
Click to collapse
Have you turned off/disabled my Xperia and enabled the oem unlock in the developer options.
Sent from my Xperia XA using XDA Labs
May I ask you (or anyone else !) what device to chose in Sony's devices list ?
I don't see Xperia XZ.
Or it doesn't matter ?

OEM unlock not appearing in developer options.

I cant seem to find the unlock OEM option at all in the developer options. I tried to add images to show my problems but was not allowed to....sigh. Either way I cannot see the OEM option in my phone.
Model: MHA-AL00
Build: MHA-AL00C00B156
This is what I get after flashing TWRP with no issues and trying to reboot into recovery.
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot TWRP.img
downloading 'boot.img'...
OKAY [ 0.464s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 0.471s
Any help would be greatly appreciated.
Chinese firmware doesn't have oem unlock option.
Did you unlock bootloader?
gm007 said:
Chinese firmware doesn't have oem unlock option.
Did you unlock bootloader?
Click to expand...
Click to collapse
Yes I did. I can't seem to figure out what to do next. It shows to me that the twrp recovery has been installed but when i go to it it comes up with the recovery from the huawei. So i can't flash anything.
So if it doesn't have the OEM option to unlock can I not install recovery or root the handset?
Without the phone plugged,hold volume up and power till u see the logo, release power while keeping volume up pressed.
try this
shut down phone
press vol up + power
when saw the huawei logo
release all buttons
wait
done
u r in twrp
GH04ST said:
I cant seem to find the unlock OEM option at all in the developer options. I tried to add images to show my problems but was not allowed to....sigh. Either way I cannot see the OEM option in my phone.
Model: MHA-AL00
Build: MHA-AL00C00B156
This is what I get after flashing TWRP with no issues and trying to reboot into recovery.
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot TWRP.img
downloading 'boot.img'...
OKAY [ 0.464s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 0.471s
Any help would be greatly appreciated.
Click to expand...
Click to collapse
fastboot boot is not supported. try the keys combination
Fastboot boot twrp.img would not flash twrp, what it tries is downloading twrp.img then boot it without flashing.
I'm not sure how it is for the Chinese Mate 9s, but you'd want 'fastboot flash recovery twrp.img', that flashes twrp (if your twrp is named twrp.img).
If it says it flashed twrp, try 'adb reboot recovery'.
Never flash recovery to boot partition.
For recovery : "fastboot flash recovery twrp.img"
gm007 said:
Never flash recovery to boot partition.
For recovery : "fastboot flash recovery twrp.img"
Click to expand...
Click to collapse
Yikes, thanks for noticing. I'm tired. Edited
Thank you so much. It greatly helped.
hello
GH04ST said:
Yes I did. I can't seem to figure out what to do next. It shows to me that the twrp recovery has been installed but when i go to it it comes up with the recovery from the huawei. So i can't flash anything.
Click to expand...
Click to collapse
Are you unlocked it without click that oem unlock??
I also have mate 9china version I can not assign root if you succeeded without oem un
ante0 said:
Yikes, thanks for noticing. I'm tired. Edited
Click to expand...
Click to collapse
OEM Unlock
GH04ST said:
Yes I did. I can't seem to figure out what to do next. It shows to me that the twrp recovery has been installed but when i go to it it comes up with the recovery from the huawei. So i can't flash anything.
Click to expand...
Click to collapse
Were you able to unlock the bootloader of your Mate 9, MHA-AL00?
In my Developer Options there is no "OEM Unlocking"
Model: MHA-AL00
Build: MHA-AL00C00B213
I've been trying for days and I can not because the error always appears:
...
FAILED (remote: command not allowed)
Finished. Total time: 0.031s.
Do you or anyone that else got were can help me out?
Thanks
tigrelouco said:
Were you able to unlock the bootloader of your Mate 9, MHA-AL00?
In my Developer Options there is no "OEM Unlocking"
Model: MHA-AL00
Build: MHA-AL00C00B213
I've been trying for days and I can not because the error always appears:
...
FAILED (remote: command not allowed)
Finished. Total time: 0.031s.
Do you or anyone that else got were can help me out?
Thanks
Click to expand...
Click to collapse
Are you using "fastboot flash recovery twrp.img" or "fastboot boot twrp.img"? The boot command is not allowed.
ante0 said:
Are you using "fastboot flash recovery twrp.img" or "fastboot boot twrp.img"? The boot command is not allowed.
Click to expand...
Click to collapse
I'm still trying to unlock the bootloader using the command prompt and ADB and Fastboot, after I got the Huawei code:
Step-1: Open the command prompt and enter the following command.
Adb reboot bootloader
Step-2: Your phone will reboot and enter into bootloader mode.
Step-3: Now enter the following command to finally unlock the bootloader.
Fastboot oem unlock xxxxxxxxxxxxxxxxxxxx
And it always fails.
I do not know how to use "fastboot flash recovery twrp.img" or "fastboot boot twrp.img".
Do you have a guide how should I do it?
tigrelouco said:
I'm still trying to unlock the bootloader using the command prompt and ADB and Fastboot, after I got the Huawei code:
Step-1: Open the command prompt and enter the following command.
Adb reboot bootloader
Step-2: Your phone will reboot and enter into bootloader mode.
Step-3: Now enter the following command to finally unlock the bootloader.
Fastboot oem unlock xxxxxxxxxxxxxxxxxxxx
And it always fails.
I do not know how to use "fastboot flash recovery twrp.img" or "fastboot boot twrp.img".
Do you have a guide how should I do it?
Click to expand...
Click to collapse
You can done follow this link.
https://www.howtogeek.com/239798/how-to-unlock-your-android-phones-bootloader-the-official-way/
---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------
tigrelouco said:
I'm still trying to unlock the bootloader using the command prompt and ADB and Fastboot, after I got the Huawei code:
Step-1: Open the command prompt and enter the following command.
Adb reboot bootloader
Step-2: Your phone will reboot and enter into bootloader mode.
Step-3: Now enter the following command to finally unlock the bootloader.
Fastboot oem unlock xxxxxxxxxxxxxxxxxxxx
And it always fails.
I do not know how to use "fastboot flash recovery twrp.img" or "fastboot boot twrp.img".
Do you have a guide how should I do it?
Click to expand...
Click to collapse
command for unlock via cmd
fastboot oem unlock xxxxxxxxxxxxxxxx
You can done follow this link.
https://www.howtogeek.com/239798/how-to-unlock-your-android-phones-bootloader-the-official-way/
newyesor said:
You can done follow this link.
https://www.howtogeek.com/239798/how-to-unlock-your-android-phones-bootloader-the-official-way/
---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------
command for unlock via cmd
fastboot oem unlock xxxxxxxxxxxxxxxx
You can done follow this link.
https://www.howtogeek.com/239798/how-to-unlock-your-android-phones-bootloader-the-official-way/
Click to expand...
Click to collapse
But he says it fails every time.
@tigrelouco
Open a terminal or adb shell and enter these commands:
getprop sys.oem_unlock_allowed
getprop ro.oem_unlock_supported
And post results.
Found this in another thread:
tohc1 said:
To answer my own problem/ for anyone else having problems it is necessary to remove the factory reset protection (frp) to do this you need to remove all pin/password/fingerprint locks, then remove all google accounts and finally do a factory reset.
Then the usual adb/fastboot commands work fine.
As linux33it says the bootloader can be unlocked without the option in the developer options.
Click to expand...
Click to collapse
Might be of help.
ante0 said:
But he says it fails every time.
@tigrelouco
Open a terminal or adb shell and enter these commands:
getprop sys.oem_unlock_allowed
getprop ro.oem_unlock_supported
And post results.
Found this in another thread:
Might be of help.
Click to expand...
Click to collapse
And how do I open a Shell command?
tigrelouco said:
And how do I open a Shell command?
Click to expand...
Click to collapse
Download Terminal emulator from the playstore or use adb from command prompt.
By the way, you dont happen to use Linux?

Error unlocking bootloader

im getting this error after trying to unlock the bootloader . my device is 6045I
C:\Users\Oscar\AppData\Local\Android\Sdk\platform-tools>fastboot -i 0x1bbb oem unlock
...
FAILED (remote: unknown command)
finished. total time: 0.003s​
any of you know how to solve. ?
my main problem is that due to install a theme i lost my camera. the main camera dont work. i made a factory reset without results.
my next steps is trying to install TWRP to flash a clean installation of the ROM but im stucked at unlocking the bootloader
PS: Also if anyone know how to solve the camera error thanks in advance
you can't unlock bl with MM. you have to downgrade to LL to restore fastboot command.
search on this forum for more info.
no more idol3 for me.
murigny64 said:
you can't unlock bl with MM. you have to downgrade to LL to restore fastboot command.
search on this forum for more info.
no more idol3 for me.
Click to expand...
Click to collapse
thanks

Huawei P smart+ bootloader

i just found a metod to unlock the bootloader using the slock. i managed to get most of the info i need but when i run " fastboot oem hwdog certify begin " to get the fblock value, i get "FAILED (remote: Command not allowed)". please help. https://forum.xda-developers.com/t/unlock-bootloader-for-free.4054619/

How to relock Legion bootloader ?

Hello
I just unlocked my Legion L79031 Bootloader and rooted
Then i flashed again with QPST rom
and i want to relock the bootloader
i tried
Fastboot flashing lock
and its replay
FAILED (remote: ' Don't allow to lock')
fastboot: error: Command failed
any way please
brsteej said:
Hello
I just unlocked my Legion L79031 Bootloader and rooted
Then i flashed again with QPST rom
and i want to relock the bootloader
i tried
Fastboot flashing lock
and its replay
FAILED (remote: ' Don't allow to lock')
fastboot: error: Command failed
any way please
Click to expand...
Click to collapse
try flashing other ROMs then do the lock again in fastboot.
fastboot oem lock-go
I did : fastboot oem lock-go
Faild command : (
i will try another rom and check again
Thank you <3
brsteej said:
I did : fastboot oem lock-go
Faild command : (
i will try another rom and check again
Thank you <3
Click to expand...
Click to collapse
Hi. Did you managed to relock bootloader? If yes please post how you did it. Thanks
Write command in adb
LeshaRB said:
Write command in adb
Click to expand...
Click to collapse
With command is for this phone?
rackis18 said:
With command is for this phone?
Click to expand...
Click to collapse
fastboot flashing lock
fastboot oem lock
fastboot oem lock-go
brsteej said:
Hello
I just unlocked my Legion L79031 Bootloader and rooted
Then i flashed again with QPST rom
and i want to relock the bootloader
i tried
Fastboot flashing lock
and its replay
FAILED (remote: ' Don't allow to lock')
fastboot: error: Command failed
any way please
Click to expand...
Click to collapse
Did it relocked?
rackis18 said:
With command is for this phone?
Click to expand...
Click to collapse
Did it relocked?
Waseem.Noor007 said:
Did it relocked?
Click to expand...
Click to collapse
Yes

Categories

Resources