Change language

English

日本語

中文（简体）

繁體中文 (台灣)

中文 (香港)

Developer World

Menu

Products

SmartEyeglass Developer Edition

Phones

Accessories

Tablets

Downloads

All Android downloads

White papers for devices

Open source downloads

Code examples and code modules

Tools

More downloads

Knowledge base

Develop for mobile devices

Experimental APIs

API references

Sony developer tools

Open source & AOSP

Develop for cameras & TVs

More resources

Services

Unlock boot loader

Remote Device Lab

Open SmartWatch Project

Flash tool for Xperia™

Sony on Stack Overflow

About

What is Developer World Mobile?

Who is behind the site?

How do I get in contact?

Follow us:

Twitter

YouTube

RSS

Choose feed:

All posts & publications

Open source archives

Tutorials

Events

Developer World

Unlock boot loader

Unlock the boot loader

Step 4 / 4
Unlock the boot loader

Your unlock code: CB564AD7F8C3EED2

To complete the unlocking of your device, please follow the manual steps below carefully.

Install the Android SDK and the device drivers

1. Download and install the Android SDK.

2. If you’re running Windows, you also need to download and install an updated Fastboot driver. This is the standard android_winusb.inf-file, with a few lines of code added to enable Fastboot to support Sony & Sony Ericsson devices. Replace the original android_winusb.inf-file with the downloaded file in the usb_driver folder, located in the Android SDK > extras > google folder on your computer. If you can’t find the usb_driver folder, make sure you are running Google USB Driver package revision 4 or higher in your Android SDK. If not, install the Google USB Driver Packager using the Android SDK manager.

Note! If you’re running OSX or Linux, you are not required to install any additional drivers.

3. On your device, turn on USB debugging by going to Settings > Developer options and click to enable USB debugging.
As of Android Jelly Bean 4.2 the Developer options are hidden by default. To enable them tap on Settings > About Phone > Build Version multiple times. Then you will be able to access the Settings > Developer options.

Connect to Fastboot

1. Turn off your Xperia™ Z2.

2. Connect a USB-cable to your computer.

3. On your Xperia™ Z2, press the Volume up button at the same time as you connect the other end of the USB-cable. For Windows users, when asked for a driver, point to the usb_driver folder where you placed the android_winusb.inf-file, and select the Android Boot loader Interface-file.

4. When your device is connected, open a command window on your computer and go to the platform-tools folder within the Android SDK folder.

5. Enter the following command:

fastboot devices

6. Verify that you get an answer back without any errors.

Enter unlock key

WARNING! The command below contains your unlock key. If you perform this step, you will unlock the boot loader. This may void your warranty and/or any warranty from your operator.

1. If you still want to unlock the boot loader of your device, enter the following command:

fastboot -i 0x0fce oem unlock 0xCB564AD7F8C3EED2

2. Verify that you get an answer back without any errors.

Done!

You have now unlocked the boot loader of your device. Return to Developer World for the latest developer news from Sony.

I want to

Download drivers

Download white papers

Create themes for Xperia

Develop for Sony cameras

Develop for SmartEyeglass

Events

Wearable Technology Show 2016

Mar 15, 2016 - Mar 16, 2016

ExCeL, London, UK.

Enterprise Wearable Technology Summit 2016

Jun 16, 2016 - Jun 17, 2016

Atlanta, GA, USA.

See all events

Design themes with Theme Creator

Our latest pictures

Blog post archive

Blog post archive
Select Month

February 2016

January 2016

December 2015

November 2015

October 2015

September 2015

August 2015

July 2015

June 2015

May 2015

April 2015

March 2015

February 2015

January 2015

December 2014

November 2014

October 2014

September 2014

August 2014

July 2014

June 2014

May 2014

April 2014

March 2014

February 2014

January 2014

December 2013

November 2013

October 2013

September 2013

August 2013

July 2013

June 2013

May 2013

April 2013

March 2013

February 2013

January 2013

December 2012

November 2012

October 2012

September 2012

August 2012

July 2012

June 2012

May 2012

April 2012

March 2012

February 2012

January 2012

December 2011

November 2011

October 2011

September 2011

August 2011

July 2011

June 2011

May 2011

April 2011

March 2011

February 2011

January 2011

December 2010

November 2010

October 2010

September 2010

August 2010

July 2010

June 2010

May 2010

November 2009

October 2009

September 2009

August 2009

Legal

Copyright © 2016 Sony Mobile Communications Inc. All rights reserved.

Subscribe to newsletter

YouTube

Twitter

Follow us

YouTube

Twitter