[Q] Xperia Z2 fails to unlock bootloader

Search This thread

khumash

Member
May 3, 2014
25
1
I am following the official guide [*1], which is suggested from this root instruction[*2].

But I keep getting this error:
Code:
C:\fastboot>fastboot.exe -i 0x0fce oem unlock 0xMYKEYGOTFROMSONY
...
FAILED (remote: Command did not succeed)
finished. total time: 0.021s
What could be wrong? Is there anyway to get more debug information to see why it's failing?

Here is my settings:
Phone model: D6503 / Xperia Z2
OS: Win 7 64-bit
USB Driver: Android Bootloader Interface version 4.0.0.0 [12/6/2010]
(This one is using android_winusb.inf dowloaded from Sony official site, and the rest files from latest Android SDK (64-bit)[*3].)
In the service info > Rooting status: Bootloader unlock allowed: Yes

Running this cmd:
Code:
>fastboot.exe -i 0x0fce getvar version
shows "5.0".

I didn't insert the SIM card while unlocking.
The phone USB debugging mode is enable already.

*1 = unlockbootloader.sonymobile.com/instructions
*2 = androidcentral.us/2014/04/root-sony-xperia-z2-on-android-4-4-2/
*3 = dl.google.com/android/adt/22.6.2/adt-bundle-windows-x86_64-20140321.zip
 

JMonkeYJ

Senior Member
Jul 22, 2008
119
27
If you run "adb devices" from wherever your adb.exe is, does your phone show up? That's a good way to test if your USB drivers are working.
 
  • Like
Reactions: khumash

festa20

Senior Member
Jan 6, 2011
1,828
837
34
Barnsley
Download latest flashtool and install all drivers again and then use flashtool folders to use USB might work out better for you

Sent from my D6503 using XDA Premium 4 mobile app
 
  • Like
Reactions: khumash

khumash

Member
May 3, 2014
25
1
@JMonkeYJ: I ran adb.exe with my Z2 phone in fastboot mode, but it didn't find any device.

@festa20: I downloaded flashtool-0.9.16.0-windows, installed it.
- then run flashtool\drivers\Flashtool-drivers.exe, install below drivers:
Flashmode drivers, fastboot drivers, Xperia Z2 Device Drivers.
(But when connect Z2 to the USB in fastboot mode, in Windows 7 Device Manager, it still shows:
SAMSUNG Android Phone (my old phone was a Samsung):
Sony ADB Interface (Driver Provider: Google Inc., Driver data: 12/6/2010, Driver Version: 4.0.0.0)

Looks like the ADB driver is still the old one I installed, not from the flashtool(?)

- I then run flashtool\x10flasher_lib\fastboot.exe in command line, still got same error...

Looks like it's a driver issue, how do I install the correct driver?
 
Last edited:

nickwarn

Senior Member
Aug 4, 2010
2,736
580
Ronneby
@JMonkeYJ: I ran adb.exe with my Z2 phone in fastboot mode, but it didn't find any device.

@festa20: I downloaded flashtool-0.9.16.0-windows, installed it.
- then run flashtool\drivers\Flashtool-drivers.exe, install below drivers:
Flashmode drivers, fastboot drivers, Xperia Z2 Device Drivers.
(But when connect Z2 to the USB in fastboot mode, in Windows 7 Device Manager, it still shows:
SAMSUNG Android Phone (my old phone was a Samsung):
Sony ADB Interface (Driver Provider: Google Inc., Driver data: 12/6/2010, Driver Version: 4.0.0.0)

Looks like the ADB driver is still the old one I installed, not from the flashtool(?)

- I then run flashtool\x10flasher_lib\fastboot.exe in command line, still got same error...

Looks like it's a driver issue, how do I install the correct driver?
If your device is plugged in to PC in fastboot mode you need to do "fastboot devices"
 
  • Like
Reactions: khumash

zero86max

New member
Jun 20, 2014
4
0
help

hi
i have the same problem in my z2 d6503 please help i can enter the recovery mode when i used the commend

fastboot flash boot ***.img

it said not command not allowed even i cant flash my device in flashtools it said error with loader.sin

help
 
Sony xperia z2 tablet - failed command not allowed

If your device is plugged in to PC in fastboot mode you need to do "fastboot devices"

I get a similar msg.

Running SDK from Linux (Tiny Core)

fastboot fired up fine

But got similar message after following Sony step-by-step.

./fastboot devices

then tried

./fastboot -i etc.

RESULT:

FAILED: (REMOTE: Command not allowed)

Any ideas?

Is there a different tool I should try another utility?

This Z2 is a Verizon release...and I noticed Sony site mentions some Z2 devices cannot be unlocked.

Is this an evil empire block?
 

nusaf

Senior Member
May 23, 2012
70
5
Help!
I have problem just like OP. How did you fixed it?

Bootloader Unlocked Allowed : Yes

and fastboot working, detect my phone.
I already tried with 14,15 digit IMEI but result are same as the output bootloader key is same
 

nyichiban

Member
Jan 31, 2007
21
1
I have issue using this method as well as trying to use flashtool. Both doesn't work. For fastboot I get into the command prompt and it's just stuck on waiting for device. In flashtool it can't find my device and tells me to reboot the phone. Any ideas? BTW my phone is rooted does that have something to do with it?
 

Envious_Data

Senior Member
Oct 12, 2012
4,866
2,279
Imagination
enviousmedia.design
you cant adb bootloader unlock unless you have added/modded some adb files
(only aplies to z2 btw)
(yes fastboot and flasmode too you need the files(try developer.sonymobile.com)

try flashtool from flashtool.net
install drivers first before trying
 

nyichiban

Member
Jan 31, 2007
21
1
you cant adb bootloader unlock unless you have added/modded some adb files
(only aplies to z2 btw)
(yes fastboot and flasmode too you need the files(try developer.sonymobile.com)

try flashtool from flashtool.net
install drivers first before trying

Still don't work after downloading again. Anyone else got it working willing to help out? I've tried going through Sony developer again and it doesn't work. BTW my handset says bootloader is unlockable.
 

Envious_Data

Senior Member
Oct 12, 2012
4,866
2,279
Imagination
enviousmedia.design
Still don't work after downloading again. Anyone else got it working willing to help out? I've tried going through Sony developer again and it doesn't work. BTW my handset says bootloader is unlockable.

have you got the drivers, adb files, adb installed with fastboot n flashmode and do you have the files for those


you can get all these files from sonymobile or adb download


of course you can try the easy way to unlock which is USING FLASHTOOL
 
G

GuestD0475

Guest
We did it

Sent from my D6503 using XDA Premium 4 mobile app

What did you do? I'm having the same problem as khumash, I get:

Code:
>fastboot.exe -i 0x0fce oem unlock 0xMYKEY
...
FAILED (remote: Command did not succeed)
finished. total time: 0.020s

However, my device shows up when I do "fastboot devices", though nothing shows up when I do "adb devices"
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    If you run "adb devices" from wherever your adb.exe is, does your phone show up? That's a good way to test if your USB drivers are working.
    1
    Download latest flashtool and install all drivers again and then use flashtool folders to use USB might work out better for you

    Sent from my D6503 using XDA Premium 4 mobile app
    1
    @JMonkeYJ: I ran adb.exe with my Z2 phone in fastboot mode, but it didn't find any device.

    @festa20: I downloaded flashtool-0.9.16.0-windows, installed it.
    - then run flashtool\drivers\Flashtool-drivers.exe, install below drivers:
    Flashmode drivers, fastboot drivers, Xperia Z2 Device Drivers.
    (But when connect Z2 to the USB in fastboot mode, in Windows 7 Device Manager, it still shows:
    SAMSUNG Android Phone (my old phone was a Samsung):
    Sony ADB Interface (Driver Provider: Google Inc., Driver data: 12/6/2010, Driver Version: 4.0.0.0)

    Looks like the ADB driver is still the old one I installed, not from the flashtool(?)

    - I then run flashtool\x10flasher_lib\fastboot.exe in command line, still got same error...

    Looks like it's a driver issue, how do I install the correct driver?
    If your device is plugged in to PC in fastboot mode you need to do "fastboot devices"
    1
    We did it

    Sent from my D6503 using XDA Premium 4 mobile app
    1
    We did it

    Sent from my D6503 using XDA Premium 4 mobile app

    Many thanks to festa20 walk me through the whole process!!!