[Sony Xperia X Guides, News, & Discussion] YasuHamed:
BASICS

1. SONY XPERIAS are SHIPPED with LOCKED BOOTLOADERS with PASSWORD / (UNLOCK KEY)

2. First check your device whether SONY will ever allow you to unlock your bootloader or not? DIAL *#*#7378423#*#* / SERVICE INFO > / Configuration > / and check for "ROOTING STATUS: Bootloader unlocked allowed: " ... if it says NO then you better return your device back to sony. your phone can never be bootunlocked and you can never have root access. Better give the mobile to young sibling... :(

Hoever if "ROOTING STATUS: Bootloader unlocked allowed: " says YES then we can do the magic (see attached image)

BEFORE YOU UNLOCK BOOTLOADER DOWNGRADING TO 6.01 is MUST - this step will WIPE everything in your device

- GUIDE TO USE FLASHTOOL TO FLASH ANY FIRMWARE (DOWNGRADING TO ANDROID 6)

Install FLASHTOOL from http://www.flashtool.net/downloads_windows.php and install it / after installation

1. upgrade the version from 0.9.23.1 to 0.9.23.X by replacing x10flasher.jar files (given in that page) at C:\Flashtool

2. goto C:\Flashtool\drivers and install the setup! there will be many check boxes for you to see according to your sony devices. select common fastboot/flashmode drivers and sony Xperia X motherboard drivers (sa0107)

3. run flastool. run xperifirm (last button at right) (see image)

4. once xperifirm is run select your device SUZU >F5122 (see image)

5. now you will all the countries listed and the latest android versions they have pushed. if you see at the bottom the StoreFront/Service Exchange Unit and Commercial journalist will have the FIRST EVER version on which F5122 was created. the 34.0.A.1.264 is your version. you may install commercial journalist version (see image)

6. download it and once completed close the xperifirm and IMMEDIATELY flashtool will start creating FTF file. if it asks you anything about INCLUDING FSC SCRIPT / click YES

7. click the THUNDER BUTTON and select FLASHMODE (see image)

8. point out on the ftf firmare folder (in your case since you just downloaded it will be already be at right place) (see image) and

9. make a CLEAN FLASH (SEE IMAGE CAREFULLY)

10. click flash / it will take 10 mins to prepare flashfiles and

11. will prompt you to connect your device in FLASHMODE

12. makesure your xperia is switch OFF and now make a connection of your device in flashmode (plugin usb + vol down key (hold) (green led)

13. it will read you device and will start FLASHING / DONOT MOVE SHAKE device incase if usb connection looses your device may be bricked.

14 flashing takes 20-30 mins.

15. at 99% the flashtool seems to hang (while closing headers) and may take upto 15 mins. don't panic.

16. keep reading the screen / once flashing done/ flashtool will indicate.

17. boot your device, first boot may take several mins

congratulations your f5122 is successfully downgraded to ANDROID MM

Enable usb debugging from developer options and EXTACT DRM keys via DIRTYCOW script.

SAVING DRM KEYS

1. DOWNLOAD THE Universal (Dirtycow-based) TA Backup v2 FROM THIS POST

2. EXTRACT the zip on desktop and connect your xperia X running on android 6 / boot LOCKED

3. enable usb debugging under developeroptions

4. run the .BAT file and look at the device.

5. when prompt permission, grant it

6. the script will extract .img file in that same folder having name something like "TA_F512X_<code>_<ddmmyy><timestamp>.img" , you may run the script more than once to extract same copy of TA image. the script will keep saving it in the same folder with current time stamp as part of the file name ,

I ran the script thrice ;)

7. once done SAVE THE .IMG FILES ON SAFE PLACE, CLOUD STORAGE, EMAIL, ETC , use xperifirm again to download the LATEST BUILD and FLASH it via FLASHTOOL as described ABOVE in the flashtool section.

8. once you are on OREO or Nougat, its time to UNLOCK your BOOTLOADER,

UNLOCKING BOOTLOADER SONY XPERIA (DRM KEYS) TA.IMG

PLEASE SEE THE COMPLETE [MENTION=6774113]DHGE[/MENTION] #GUIDE FOR XPERIA 2018 MODELS AT https://xdaforums.com/showpost.php?p=70504721 / THANKS TO [MENTION=6774113]DHGE[/MENTION]

you may also consider viewing NOOB version for XZ by [MENTION=4825559]nathan30[/MENTION] https://xdaforums.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648

IN SHORT----

To be able to unlock your Xperia X, prepare it by following these steps:

Go into Settings > About phone and tap seven times on Build number to enable developer options.

From Settings, go into Developer options and enable OEM unlocking.

Warning: Device protection features will not work on this device while this setting is turned on.Please note! It will only be possible to unlock the boot loader for certain releases. You can check if it is possible to unlock the boot loader of your device in the service menu by following the steps below:

In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.

Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked. Continue to http://developer.sonymobile.com/unlo...-verification/ , give your email ID and they will send you link asking you your device's IMEI Number. once you give that sony will email you YOUR BOOTUNLOCK KEYS within minutes. (keep them aside for now)

-using FlashTool "BLU" key you can unlock your bootloader

- your TA partitions / internal storage will be WIPED and device will rebooted.