FORUMS
Remove All Ads from XDA
H10 Turbo

[F31xx][Guide][N] How to root your Xperia XA (as noob friendly as possible)

694 posts
Thanks Meter: 626
 
By rrvuhpg, Senior Member on 18th July 2017, 09:05 PM
Post Reply Email Thread
Hi all,

I'm happy to share with you an updated guide on how to root the Xperia XA.

This guide is Only for Nougat (Android 7.0), for Marshmallow (Android 6.0) it's here: https://forum.xda-developers.com/xpe...2#post67988142

## 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.
2. You can save your DRM keys (TA backup) by following this guide: http://forum.xda-developers.com/cros...ackup-t3514236. You have to do it BEFORE unlocking the bootloader, fro this you need to downgrade to an old Marshmallow firmware, for now you can't root AND restore your backup.
3. You can re-lock your phone and it will restore DRM if you have a backup but you lose root and recovery.
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.
6. Make a full backup of your personnal data before following this guide.

## Method

1. Find out whether if you bootloader can be 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.23.2 for Windows, note that you can also use it to unlock your
bootloader(http://www.flashtool.net/downloads_windows.php) DON'T USE AN OLDER VERSION OF FLASHTOOL AND DOWNLOAD FIRMWARES FROM THE
INTEGRATED XPERIFIRM


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. Download the proper files for your phone version/variant:

Magisk Manager apk package: http://www.apkmirror.com/apk/topjohnwu/magisk-manager/

For XA single sim = F3111, F3113, F3115

TWRP recovery: https://forum.xda-developers.com/xpe...ry-xa-t3639206

Boot: https://forum.xda-developers.com/xpe...built-t3573119

For XA dual sim = F3112,F3116

TWRP recovery: https://forum.xda-developers.com/xpe...l-sim-t3638725

Boot: https://forum.xda-developers.com/xpe...urces-t3526496

6. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool ( exclude all other patitions), you must only see
"boot_delivery.xml" in the "Content" column.

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

8. Copy the downloaded boot and recovery to "C:\Flashtool\x10flasher_lib" and rename them to boot.img and recovery.img, if you computer is not set to show file extentions remane them
without .img at the end

9. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands and then delete them.

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

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

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

13. Format "userdata" partition to remove internal encrytion for restoring TWRP backups/acces of /data partition, go to "wipe" and tap "format data". If you don't this your phone will
bootloop on Xperia logo. Don't forget to backup your personnal data before !!

14. Reboot to Android (it will takes about 10 minutes) and follow instructions until you are on the Home screen.

15. Install Magisk Manager apk package from the given link, you have to enable "Unknown sources" in the security menu before.

16. Open Magisk Manager and tap "Download" at the bottom, wait until you see download complete and reboot to recovery.

17. Go to "Install" and select "Magisk-vX.XX.zip" located in /sdcard/magisk manager, swipe to intall.

18. Power off the phone again and repeat step 6 with your actual Nougat firmware or the phone will not detect Sim Card(s)

19. Reboot the phone.

20. Tap the "Thanks! " button at the bottom right of this post, optionally you can offer me a coffee/beer/tea or energy drink to support my work, my PayPal adress is in my profil.

21. Your phone is rooted


## 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. If you don't follow exactly the guide you will probably brick your phone.
Despite these issues, rooting the Xperia XA has been confirmed to work on Single and Dual Sim.
The Following 34 Users Say Thank You to rrvuhpg For This Useful Post: [ View ] Gift rrvuhpg Ad-Free
 
 
19th July 2017, 03:11 AM |#2  
Junior Member
Thanks Meter: 2
 
More
Open source archive has been released...
Could we have a nougat boot.img? Because sony has released open source archive.
Thanks
19th July 2017, 03:23 AM |#3  
Senior Member
Flag Brooklyn, NY
Thanks Meter: 614
 
More
Actually, you can use flashtool 9.23.1, but remember to download the 9.23.2 jar file and copy to flashtool folder (overwrite).
Also, if you know how to input adb command, you can enter bootloader using the following:
Code:
adb reboot bootloader
Hopefully the version of XA Ultra will be released.
The Following User Says Thank You to mingkee For This Useful Post: [ View ] Gift mingkee Ad-Free
19th July 2017, 06:01 AM |#4  
Member
Flag Chennai
Thanks Meter: 12
 
More
Quote:
Originally Posted by rrvuhpg

Hi all,

I'm happy to share with you an updated guide on how to root the Xperia XA.

This guide is Only for Nougat (Android 7.0), for Marshmallow (Android 6.0) it's here: https://forum.xda-developers.com/xpe...2#post67988142

## 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.
2. You can save your DRM keys (TA backup) by following this guide: http://forum.xda-developers.com/cros...ackup-t3514236. You have to do it BEFORE unlocking the bootloader, fro this you need to downgrade to an old Marshmallow firmware, for now you can't root AND restore your backup.
3. You can re-lock your phone and it will restore DRM if you have a backup but you lose root and recovery.
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 can be 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.23.2 for Windows, note that you can also use it to unlock your
bootloader(http://www.flashtool.net/downloads_windows.php) DON'T USE AN OLDER VERSION OF FLASHTOOL AND DOWNLOAD FIRMWARES FROM THE
INTEGRATED XPERIFIRM


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. Download the proper files for your phone version/variant:

Magisk Manager apk package: http://www.apkmirror.com/apk/topjohnwu/magisk-manager/

For XA single sim = F3111, F3113, F3115

TWRP recovery:

Boot: https://forum.xda-developers.com/xpe...built-t3573119

For XA dual sim = F3112,F3116

TWRP recovery: https://forum.xda-developers.com/xpe...l-sim-t3638725

Boot: https://forum.xda-developers.com/xpe...urces-t3526496

6. Install Magisk Manager apk package, you have to enable "Unknown sources" in the security menu before.

7. Open Magisk Manager and tap "Download" at the bottom.

8. With a file manager copy "Magisk-vX.XX.zip" from /sdcard/magisk manager to your MicroSD

9. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool, you must only see "boot_delivery.xml" in the "Content"
column.

10. Power off the phone again and enter the phone in Fastboot mode (when power off, hold Vol+ and plug the phone). The led should be blue.

11. Copy the downloaded boot and recovery to "C:\Flashtool\x10flasher_lib" and rename them to boot.img and recovery.img.

12. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands and then delete them.

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

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

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

15.1 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". If you do this,
make a backup before (it will factory reset the phone), reboot to Android an repeat steps 6, 13 and 15

16. Go to "Install", "Select Storage", click "Micro SDCard" and select "Magisk-vX.XX.zip".

17. Power off the phone again and repeat step 9 with your actual Nougat firmware or the phone will not detect Sim Card(s)

18. Reboot the phone.

19. Tap the "Thanks! " button at the bottom right of this post, optionally you can offer me a coffee/beer/tea or energy drink to support my work, my PayPal adress is in my profil.

20. Your phone is rooted


## 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. If you don't follow exactly the guide you will probably brick your phone.
Despite these issues, rooting the Xperia XA has been confirmed to work on Dual Sim but need confirmation for Single Sim.

I'm on nougat 33.3.A.0.131 f3116
In 9 th step u have mention boot delivery, i cant understand.
Where to find BOOT_DELIVERY
19th July 2017, 06:32 AM |#5  
Junior Member
Thanks Meter: 2
 
More
Is Boot delivery of marshmallows (33.2.B.3.81) and nougat (33.3.A.127) compatible for nougat 33.3.A.0.131. Because I have marshmallows and nougat firmwares(ftfs) only that versions.
19th July 2017, 06:36 AM |#6  
Member
Flag Chennai
Thanks Meter: 12
 
More
Quote:
Originally Posted by Chaminxa

Is Boot delivery of marshmallows (33.2.B.3.81) and nougat (33.3.A.127) compatible for nougat 33.3.A.0.131. Because I have marshmallows and nougat firmwares(ftfs) only that versions.

I dont underdtand
19th July 2017, 07:38 AM |#7  
OP Senior Member
Thanks Meter: 626
 
Donate to Me
More
OK, I will explain a little more the step 9.
You must have 2 Firmwares in Flashtool:
1st is your actual Nougat firmware
2nd is a Marshmallow firmware, I used 33.2.B.4.70 for my F3112 but you can probably use an older.
When you are on step 9, open Flashtool and load the Marshmallow firmware. When you are on the screen to choose parts to flash with boxes to check and uncheck. You have to check all boxes on the up and down right columns, only the "BOOT_DELIVERY" is uncheck in the upper right column. If it's OK you should see only one line in the "Content" column: "boot_delivery.xml". Now clic on "flash" button at the bottom right, if Flashtool asks for using fsc script, clic "yes". You will have to do the same at step 17 but with your actual Nougat firmware.
It's very important to use the last Flashtool version 0.9.23.2 and download firmwares from the included Xperifirm or you will probably have problems or brick.

Edit: I will add files for Single Sim very soon so you don't have to ask for them
The Following 2 Users Say Thank You to rrvuhpg For This Useful Post: [ View ] Gift rrvuhpg Ad-Free
19th July 2017, 08:07 AM |#8  
Junior Member
Thanks Meter: 2
 
More
In step 17 - Can i flash nougat (33.3.A.127) boot delivery. Xml on nougat 33.3.A.0.131?
19th July 2017, 08:48 AM |#9  
OP Senior Member
Thanks Meter: 626
 
Donate to Me
More
Quote:
Originally Posted by Chaminxa

In step 17 - Can i flash nougat (33.3.A.127) boot delivery. Xml on nougat 33.3.A.0.131?

I don't know, you can try and feedback if working or not
19th July 2017, 10:23 AM |#10  
Junior Member
Thanks Meter: 2
 
More
Hey can you upload magisk.zip. plzz
Thanks
19th July 2017, 11:05 AM |#11  
Member
Thanks Meter: 2
 
More
TWRP recovery for XA single sim is missing. Not sure if dual sim would work but I'll try it out and see.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes