[Sony Xperia XA Guides, News, & Discussion] rcallmann:
Quote:

Originally Posted by rrvuhpg

Hi all,

I'm happy to share with you an updated guide on how to root the Xperia XA and Ultra, big thanks to [MENTION=1322883]luis1981[/MENTION] for the update.

This guide is Only for Marshmallow (Android 6.0), for Nougat (Android 7.0) it's here: https://xdaforums.com/xpe...-noob-t3638727

## How to root the Sony Xperia XA

The Sony Xperia XA is a midrange smartphone with a bezeless design. It has adequate specs and run Android aptly. These aspects make this phone a great daily driver, however the Sony stock Android is plagued with trashware and all the hurdles Android itself has several privacy problems.

By rooting the phone one can circumvent these limitations. You will be able to install the Xposed framework, improve sound with Viper4Android, block hosts, install dns-crypt and improve overall customability. In the follwing sections I will present the steps to root your phone.

But before proceeding a word of caution (or why you wouldn't like to root your phone):

1. Unlocking your BootLoader will void your warranty, break your device DRM and lose X-Reality and image optimisation on low light when taking pictures, I found a workaround here: http://xdaforums.com/cros...s-drm-t2930672, use zip for Z3+ devices.

2. You can save your DRM keys (TA backup) by following this guide: http://xdaforums.com/cros...ackup-t3514236. You have to do it BEFORE unlocking the bootloader, for now you can't restore your backup.

3. You can re-lock your phone but it will not restore DRM

4. Unlocking your bootloader will wipe the device (factory reset)

5. If you have confidential files in your phone don't unlock your bootloader, as long as your phone is locked your data are officially secured.

## Method

1. Find out whether if you bootloader is unlocked, which is needed to proceed. Type: *#*#7378423#*#* then choose Service info ---> Configuration ---> Check for "Bootloader unlock allowed: Yes". At this point if the phone has No or any other answer at the screen you shouldn't porceed as rooting will be impossible.

2. Download XA ADB and Fastboot drivers: https://developer.sonymobile.com/downloads/drivers/

3. Download FLASHTOOL with integrated Xperifirm 0.9.22.3 for Windows, note that you can also use it to unlock your bootloader(http://www.flashtool.net/downloads_windows.php)

4. Follow the official Sony instructions for getting the unlock code from [here](https://developer.sonymobile.com/unlockbootloader/). Further paste the code in BLU menu of Flashtool. You can also find video instructions [here](https://www.youtube.com/watch?v=6lKWd5LlUoA).

5. Root Your Stock Rom with TWRP and in order to do that you will need the proper files for your phone version:

SuperSu zip package for all XA: http://www.supersu.com/download

For XA single sim = F3111, F3113, F3115

TWRP recovery: https://xdaforums.com/xpe...ry-xa-t3606488

Boot: https://xdaforums.com/xpe...built-t3573119

For XA dual sim = F3112,F3116

TWRP recovery: https://xdaforums.com/xpe...l-sim-t3606232

Boot: https://xdaforums.com/xpe...urces-t3526496

6. Copy SuperSu zip package on your MicroSD.

7. Enter the phone in Fastboot mode (when power off, hold Vol+ and plug the phone). The led should be blue.

8. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands (rename downloaded boot/recovery image if needed). The simplest way is to use fastboot from Flashtool in x10flasher folder, copy recovery and boot in it, open command prompt, flash them and then delete them.

9. Unplug the phone, hold "Vol-" and "Power" buttons. Release all buttons after phone vibrate.

10. You are in TWRP recovery, on password prompt press "Cancel"

11. On next screen press "Swipe to allow".

12. Go to "Install", "Select Storage", click "Micro SDCard". Optionally, you can format "userdata" partition now and remove internal encrytion for restoring TWRP backups/acces of /data partition, go to "wipe" and tap "format data".

13. Go to your SuperSu zip directory and click on it to install. Optionally, If you want to flash Xposed, DRM fix or any flashable zip, repeat the previous step for each zip. You can mount your SD to PC in TWRP for easy access.

14. Reboot the phone, during init the phone will reboot one more time.

15. Your phone is rooted

You can optionally switch from SuperSu to Magisk by following this guide:

https://xdaforums.com/xpe...ia-xa-t3555911

## Conclusion

After these steps your phone should be rooted and you will be able to have root access to the system. This tutorial comes with no garanties that it will work and the author does not take any responsibility for you bricking your device. Also, installing third party files are a security liability, you should be aware of that. Despite these issues, rooting the Xperia XA has been confirmed to work in all models.

Note that this the guide is the same for XA Ultra, the only differences are the boot/recovery files. You can find files for XA Ultra in their respective forums.

## Old guide with video

CLICK TO SHOW CONTENT

EDIT 29/11:

I see some users who ask without searching (a very little) before, PM messages inclued, some others who spam threads not related to their problem or create new thread for nothing and who do not know what politeness is at all . Until now I was nice and answered them but now I will change that, NO MORE HELP FOR THAT KIND OF USER !!!

Now if you have no answer from me you will know why.

Good luck

---------- Post added at 11:23 PM ---------- Previous post was at 11:23 PM ----------

Quote:

Originally Posted by rrvuhpg

Hi all,

I'm happy to share with you an updated guide on how to root the Xperia XA and Ultra, big thanks to [MENTION=1322883]luis1981[/MENTION] for the update.

This guide is Only for Marshmallow (Android 6.0), for Nougat (Android 7.0) it's here: https://xdaforums.com/xpe...-noob-t3638727

## How to root the Sony Xperia XA

The Sony Xperia XA is a midrange smartphone with a bezeless design. It has adequate specs and run Android aptly. These aspects make this phone a great daily driver, however the Sony stock Android is plagued with trashware and all the hurdles Android itself has several privacy problems.

By rooting the phone one can circumvent these limitations. You will be able to install the Xposed framework, improve sound with Viper4Android, block hosts, install dns-crypt and improve overall customability. In the follwing sections I will present the steps to root your phone.

But before proceeding a word of caution (or why you wouldn't like to root your phone):

1. Unlocking your BootLoader will void your warranty, break your device DRM and lose X-Reality and image optimisation on low light when taking pictures, I found a workaround here: http://xdaforums.com/cros...s-drm-t2930672, use zip for Z3+ devices.

2. You can save your DRM keys (TA backup) by following this guide: http://xdaforums.com/cros...ackup-t3514236. You have to do it BEFORE unlocking the bootloader, for now you can't restore your backup.

3. You can re-lock your phone but it will not restore DRM

4. Unlocking your bootloader will wipe the device (factory reset)

5. If you have confidential files in your phone don't unlock your bootloader, as long as your phone is locked your data are officially secured.

## Method

1. Find out whether if you bootloader is unlocked, which is needed to proceed. Type: *#*#7378423#*#* then choose Service info ---> Configuration ---> Check for "Bootloader unlock allowed: Yes". At this point if the phone has No or any other answer at the screen you shouldn't porceed as rooting will be impossible.

2. Download XA ADB and Fastboot drivers: https://developer.sonymobile.com/downloads/drivers/

3. Download FLASHTOOL with integrated Xperifirm 0.9.22.3 for Windows, note that you can also use it to unlock your bootloader(http://www.flashtool.net/downloads_windows.php)

4. Follow the official Sony instructions for getting the unlock code from [here](https://developer.sonymobile.com/unlockbootloader/). Further paste the code in BLU menu of Flashtool. You can also find video instructions [here](https://www.youtube.com/watch?v=6lKWd5LlUoA).

5. Root Your Stock Rom with TWRP and in order to do that you will need the proper files for your phone version:

SuperSu zip package for all XA: http://www.supersu.com/download

For XA single sim = F3111, F3113, F3115

TWRP recovery: https://xdaforums.com/xpe...ry-xa-t3606488

Boot: https://xdaforums.com/xpe...built-t3573119

For XA dual sim = F3112,F3116

TWRP recovery: https://xdaforums.com/xpe...l-sim-t3606232

Boot: https://xdaforums.com/xpe...urces-t3526496

6. Copy SuperSu zip package on your MicroSD.

7. Enter the phone in Fastboot mode (when power off, hold Vol+ and plug the phone). The led should be blue.

8. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands (rename downloaded boot/recovery image if needed). The simplest way is to use fastboot from Flashtool in x10flasher folder, copy recovery and boot in it, open command prompt, flash them and then delete them.

9. Unplug the phone, hold "Vol-" and "Power" buttons. Release all buttons after phone vibrate.

10. You are in TWRP recovery, on password prompt press "Cancel"

11. On next screen press "Swipe to allow".

12. Go to "Install", "Select Storage", click "Micro SDCard". Optionally, you can format "userdata" partition now and remove internal encrytion for restoring TWRP backups/acces of /data partition, go to "wipe" and tap "format data".

13. Go to your SuperSu zip directory and click on it to install. Optionally, If you want to flash Xposed, DRM fix or any flashable zip, repeat the previous step for each zip. You can mount your SD to PC in TWRP for easy access.

14. Reboot the phone, during init the phone will reboot one more time.

15. Your phone is rooted

You can optionally switch from SuperSu to Magisk by following this guide:

https://xdaforums.com/xpe...ia-xa-t3555911

## Conclusion

After these steps your phone should be rooted and you will be able to have root access to the system. This tutorial comes with no garanties that it will work and the author does not take any responsibility for you bricking your device. Also, installing third party files are a security liability, you should be aware of that. Despite these issues, rooting the Xperia XA has been confirmed to work in all models.

Note that this the guide is the same for XA Ultra, the only differences are the boot/recovery files. You can find files for XA Ultra in their respective forums.

## Old guide with video

CLICK TO SHOW CONTENT

EDIT 29/11:

I see some users who ask without searching (a very little) before, PM messages inclued, some others who spam threads not related to their problem or create new thread for nothing and who do not know what politeness is at all . Until now I was nice and answered them but now I will change that, NO MORE HELP FOR THAT KIND OF USER !!!

Now if you have no answer from me you will know why.

Good luck