Sony Xperia Z: How to unroot, restore to stock and unbrick

So, you messed up your brand new smartphone when trying to root or flashing custom ROMs? Don’t be concerned you can still unbrick, restore to stock and unroot Xperia Z, so that your phone appears like brand new and has never been modified. All changes you have done on your phone will be lost, such as binary root, custom ROM and custom recovery. However for those who have unlocked bootloader, flash stock firmware won’t be able to relock your device bootloader.


Restore your device to stock is also useful if you want to bring your device to Sony for a warranty claim, since there’s a chance that Sony rep would refuse when your phone is rooted or running custom ROMs. In addition, if you were planning to sell the Xperia Z someday, return it to stock condition is also necessary, due to the fact most potential buyers usually would like a device without any modification.

xperia z unroot unbrick stock

Image Credit: Sony Mobile

If you imagine the unbrick, restore to stock or unroot Xperia Z process were complicated, you might be wrong, considering that we only need a software called Flashtool on PC Windows/Mac/Linux.

  1. Grab Flashtool by Androxyde officially from his site, make sure you get the latest version since it has several bug fixes and compatible with latest Xperia devices.
  2. Set up device drivers for Xperia Z from Sony or PC Companion, you can also find it in Flashtool installation folder (C:\Flashtool\drivers\flashtool-Drivers.exe).
  3. Now we need to grab the stock firmware, make sure to pick the correct device models, a wrong firmware might lead to soft-bricked devices. Following that copy the firmware files (.ftf) on a flashtool directory (C:\Flashtool\firmwares).
  4. Turn off your Xperia Z and then enter into flash mode by press and hold the volume down button + power button together, followed by attaching it to PC thru USB.
  5. Now run the flash tool, in case you are running this software from a 64bit machine, just pick the Flashtool64.
  6. Once flashtool window show up, click on lightning icon, on mode selector choose Flash mode.
  7. xperia-z-flashtool

    Xperia Z stock firmware on Flashtool

  8. From that point Firmware selection window will appear, select a firmware on the left column. Notice the right column, there is a Wipe, Exclude and Misc options. Based on previous experience on restoring and unrooting Xperia device, we should check all wipe options and uncheck every exclude options.


Hit the OK button then flashing process should start, look carefully, you might notice an error message while the flashing process takes place. Once done the phone will reboot on its own. Soon after flashing successful, our Xperia Z has been returned to stock and unrooted.


Filled Under:Unroot and Relock
Related Mods

6 Responses

  1. Geo
    May 24, 2013 at 1:40 PMReply

    Awesome guide yo but just to clear up how to boot into Fastboot & Flashmode, this works on my Xperia Z just now:

    – Switch the phone OFF , hold the volume UP button while you plug-in the USB. (DO NOT PRESS POWER!) = Blue LED, Fastboot mode
    – Switch the phone OFF , hold the volume DOWN button while you plug-in the USB. (DO NOT PRESS POWER!) = Green LED, Flashmode

    Happy Flashing!

  2. girish
    July 13, 2013 at 1:53 AMReply

    dude my Xperia Z is completly f***ed up. can u plz help me in doin??
    my fone is unable to switch on, i cant go into flashmode as the fone doesnt power off, what to do?? plz help me out

  3. abdul
    October 11, 2013 at 9:11 AMReply

    hi man u wana try to hard reset your xperia z by holding down the volume down key and power for a short while till you get like 3 vibes

  4. rubinaish
    February 28, 2014 at 10:56 AMReply

    This guide worked perfectly for my bricked XZ, I really appreciate your help! Thanks a lot!

  5. sarala
    October 15, 2014 at 1:26 AMReply

    hi while customising ringtones phone will provide the option like from where to select the song whether from file commander, ringtones etc.

    that option is not coming now it is directly going to ringtones folder.. how to select the song from the file commander??

    i wish to customise ringtones for each caller, selecting the song from file commander option needs to be activated. if you know how to do it.. please help me by replying

  6. bilal aamer
    May 4, 2017 at 10:47 AMReply

    I cant enter flash mode…only fast boot is available!

Leave a Reply