Relock Sony bootloader

There are cases when you must relock your device bootloader in order to use your warranty. Otherwise, it can be rejected because of modifications made by user. In this tutorial we’ll show you how to bring back any Sony device bootloader to its factory state. Need to mention, that relock process is far more simple than unlocking bootloader.

Warning: All the information stored in internal memory won’t be deleted, but for safety reasons it’s still recommended to backup your data to device microSD card or PC before starting this tutorial. Otherwise you might lose everything that’s important for you.


  1. Download this Flashtool to PC.
  2. Launch it and click BLU button.Flashtool BLU
  3. Boot Sony into fastboot mode: turn off the device, hold Volume Up or Back button (depending on the model) and connect it to PC via USB cable. Release button after blue light appears on device.Sony fastboot mode
  4. On the popup window choose Relock button.Flashtool relock
  5. After relock process is complete, disconnect Sony from USB.
  6. Just to make sure that bootloader is locked, open dialer and type *#*#7378423#*#* then go to Service info/Configuration/Rooting Status. If you see „Bootloader unlock allowed: Yes“, this means that bootloader is successfully locked.


  • Ru is my money buu

    January 14, 2020 at 8:23 pm

    ive got the same problem on xperia xa 2 ultra


  • Oli

    October 24, 2019 at 7:46 pm

    after flashing the wrong partition, most probably ( during flashing I got error that storage/ memory was full…. I tried to restore the phone with Sony PC Companion but I can’t use that because my bootloader is locked. I followed the instructions to relock the boot loader but I get stuck at this level :

    Phone is ready for flashmode operations
    sending read ta…
    WARN Unable to read TA unit 2226 error -22
    bla bla
    WARN Your device cannot be relocked

    PS : it’s a Sony XZ2 Compact



    • Admin

      January 9, 2020 at 6:36 am

      Hi Oli,

      Did you successfully boot into fastboot mode with blue light indicator?


  • ralkeon

    October 13, 2019 at 8:08 pm

    Hi I was trying to relock a Xperia 10 plus, someone had luck with it?

    I get “WARN – your device cannot be relocked” too.


  • Vasja Imelik

    August 12, 2019 at 7:36 pm

    Flasftool says that my my phone can’t be relocked:S It’s Xperia XA2
    I get WARN – Your device cannot be relocked

    Flashtool version
    Using 64bit WIN 10


    • Vogels

      October 19, 2019 at 2:23 pm

      I also try to re-lock the Xperia XA2 with flashtool on Win10, 64Bit, Java 13, and get the same warning “Your device cannot be relocked”, before I get another warning which says “Unable to read TA unit 2226, error = 22 (Hex unit value 000008B2)


      • Admin

        January 9, 2020 at 6:52 am

        Hello Vogels,

        This method won’t work for you. Xperia XA2 is kind a new model that needs to wait for another solution in re-locking bootloader.


  • Raul

    April 23, 2019 at 5:10 pm

    My XA2 Ultra didn’t relocked the bootloader.
    Flashtool says it can’t be relocked.


  • Archie

    April 8, 2019 at 8:21 am

    phone plugged in and it says it is connected in fastboot on the console window in the program, however, the popup never appeared after I plugged my phone in


    • Admin

      May 1, 2019 at 6:08 pm

      Hello Archie,

      What device are you using?


    • PIXEL

      June 13, 2019 at 5:13 pm

      You need to reboot to flashmode NOT in fastboot (hold DOWN key then plug the phone) then click on BLU button in fashtool and choose your device. Click relock done.


  • alex

    March 1, 2019 at 10:39 am

    i connect my xa1 and get error – device connected in flash mode but driver too old


    • Admin

      March 8, 2019 at 11:54 am

      Then renew your driver


  • williepre

    July 8, 2018 at 12:20 pm

    Pitty, I am unble to relock the bootloader on my Sony Xperia XA2.


    • Admin

      July 16, 2018 at 6:56 am

      What kind of error you get?


      • itmasen1

        January 26, 2019 at 10:03 pm

        it dosn’t work on my XA2 PLUS DUAL


        • Admin

          January 30, 2019 at 9:51 am

          What kind of error did you get and in which step?


          • ITMASEN1

            February 13, 2019 at 6:39 pm

            in my XA2 PLUS , flashtool ask to press VOLUME DOWN , that in mode FLASHMODE first.

  • Seafrog

    November 27, 2017 at 11:43 am

    after relock i can’t switch on my phone, then i go unlock again and can boot my phone


    • Admin

      November 28, 2017 at 11:10 am


      What king of error did you get while trying to boot your device after relock?


  • Darshan

    October 7, 2017 at 4:29 pm

    the process work fine but my device didnt locked. i did all process even flashtool give me a message that your device is re lock but when i check it was unlock only


    • Admin

      October 20, 2017 at 12:21 pm

      Hello Darshan,

      Thanks for your feedback.
      Did you checked you bootloader status on device boot screen or using some kind of software?


  • Tyler

    August 31, 2017 at 1:40 pm

    Nothing happens after I plug in my device and the blue light appears. There’s no prompt to relock my phone. Can you help me resolve this?


    • Admin

      September 1, 2017 at 2:50 pm

      Hello Tyler,

      You mean after connecting device into PC the popup window doesn’t appear?


      • dante21

        October 27, 2018 at 10:38 am

        it doesn’t appear for me too
        i am using sony xperia xz premium


Leave a Reply

Your email address will not be published. Required fields are marked *

About us was developed with passion and perfection to create one better place for every smartphone lover to stay.
Here you will find many great apps to make your phone even better, tutorials helping to fix your device or some of you just simply enjoy time spent here commenting and sharing valuable info with other fans.