Finally We got the way to unlock bootloader of Sony Xperia M5 running on android lollipop 5.1.1 for now, As we know that it is the firsts step of development of any device,Thanks to XDA dev DukeMcWood for this tutorial After unlocking bootloader we can flash custom recovery e.g TWRP and CWM in it and then can easily root it by flashing Super Su in it and then we have the freedom of customization from changing fonts to changing roms.
So lets our guide on How to unlock bootloader of Sony Xperia M5 (E5603, E5606, E5653) and Dual (E5633, E5643, E5663) you can do it on Windows,Linux as well as Mac OS.
#Requirements
1.Make sure to backup your data.
2.Download latest Flash tool from here.
3.Computer or Laptop (Windows,mac OS or Linux).
4.Download Sony USB drivers for windows.
Warning:We gammerson.com are not responsible for any damage happen to your device.Do it at your own Risk.
#How to unlock bootloader of Sony Xperia M5
1.Download and install Sony USB Driver and Flash tool in your PC.
2.Now Visit This Sony developer website and scroll down and choose Sony M2 from the list.
3.Now Click on continue then Enter you email id in the next screen and click Submit button.
4.Open you Email Id where you will get a mail from Sony open that mail and click on the unique link provided in Email.
5.When you open the link you will be asked to Enter the IMIE number of your Xperia M2 device.
6.To know your IMEI number open Settings > About phone > Status.Scroll to IMEI to view the IMEI number.
7.Now Enter the IMEI Number on the Sony website and click on submit button.
8.After Submitting you will get the Unique code to Unlock bootloader just write it some where at safe place.
9.Now got to C: Users username .flashTool registeredDevices after installing flash toos.And create a folder with codename of your machine.
10.You can find out in flashtool by clicking on BLU and see in the log are
in line «Current device» for example,
in line «Current device» for example,
in line 09/045/2015 23:45:08 –
INFO – Current device: C2104 – AB100C2DE3 – 1272-4136_R5B –
1269-5420_15.3.A.1.17 – WORLD-a_15.3.A.1.17
INFO – Current device: C2104 – AB100C2DE3 – 1272-4136_R5B –
1269-5420_15.3.A.1.17 – WORLD-a_15.3.A.1.17
Code name of machine will be
AB100C2DE3.
AB100C2DE3.
11.After creating folder now create text file and name it ulcode and open this file and write the unlock code that you got from sony website.
12.Power off your device and then press volume down key while connecting it with pc from USB cable then open Flash tool then press BLU button Enter the unlock code and click unlock
13.Done! you have successfully unlocked bootloader of Sony Xperia M2.
But you lost your DRM keys and proprietary Sony features won't work even after relocking…
http://forum.xda-developers.com/showpost.php?p=63268630&postcount=9
backup TA Partition first