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

Search This thread

rrvuhpg

Senior Member
Jan 2, 2009
713
659
113
Hi all,

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

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

## How to root the Sony Xperia XA Ultra

The Sony Xperia XA Ultra 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 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/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-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 Ultra 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:

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

For XA Single Sim and Dual Sim:

TWRP recovery: https://forum.xda-developers.com/xa-ultra/development/f32xx-twrp-recovery-xa-ultra-t3639722

Boot: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725

6. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool ( exclude all other partitions), 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 your 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 do 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. Reboot the phone.

19. Tap the "Thanks! :good:" 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 Ultra has been confirmed to work on Single Sim and Dual Sim.
 
Last edited:

EternalRageX7

Member
Jun 13, 2016
35
2
0
hi all,

i'm happy to share with you an updated guide on how to root the xperia xa ultra.

This guide is only for nougat (android 7.0), for marshmallow (android 6.0) it's here: https://forum.xda-developers.com/xp...ia-xa-noob-t3430170/post67988142#post67988142

## how to root the sony xperia xa ultra

the sony xperia xa ultra 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/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-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 ultra 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](
).

5. Download the proper files for your phone:

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

for xa single sim and dual sim:

Twrp recovery: https://forum.xda-developers.com/xa-ultra/development/f32xx-twrp-recovery-xa-ultra-t3639722

boot: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725

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. Reboot the phone.

19. Tap the "thanks! :good:" 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 single sim but need confirmation for dual sim.

thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'!

---------- Post added at 02:03 PM ---------- Previous post was at 01:46 PM ----------

thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'!

Btw do I have to change back to marshmallow or can I keep it in Nougat? For some of the xperifirm things
 
  • Like
Reactions: lrwjr1964

rrvuhpg

Senior Member
Jan 2, 2009
713
659
113
thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'!

---------- Post added at 02:03 PM ---------- Previous post was at 01:46 PM ----------



Btw do I have to change back to marshmallow or can I keep it in Nougat? For some of the xperifirm things

Why want you go back to MM? What things about Xperifirm? You only need to use boot_delivery from MM to downgrade the preloader because there is a bug or a new kind of security with the one from Nougat firmware, nothing more :)
 

EternalRageX7

Member
Jun 13, 2016
35
2
0
thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'!

---------- Post added at 02:03 PM ---------- Previous post was at 01:46 PM ----------



Btw do I have to change back to marshmallow or can I keep it in Nougat? For some of the xperifirm things

and I dont understand step 6 under methods what is that?
 

Yooooomi

Member
Aug 11, 2016
35
15
8
Yes dude thank you so much for being a genius x)
Thank you for your time we really appreciate :)

I'm trying this tonight

Edit: It does work on dual sim :D
 
Last edited:

rukesh24

Member
Jun 19, 2017
19
3
0
Hyderabad
help me with the step six
22/007/2017 01:07:03 - INFO - Preparing files for flashing
22/007/2017 01:07:03 - INFO - Please connect your device into flashmode.
22/007/2017 01:07:10 - INFO - Device connected in flash mode
22/007/2017 01:07:10 - INFO - Opening device for R/W
22/007/2017 01:07:10 - INFO - Reading device information
22/007/2017 01:07:11 - INFO - Phone ready for flashmode operations.
22/007/2017 01:07:11 - INFO - Opening TA partition 2
22/007/2017 01:07:11 - INFO - Current device : F3216 - WUJ01NML4N - 1303-3635_R4B - 1300-9522_36.1.A.0.182 - GENERIC_36.1.A.0.182
22/007/2017 01:07:11 - INFO - Closing TA partition
22/007/2017 01:07:11 - INFO - Start Flashing
22/007/2017 01:07:11 - INFO - Processing loader.sin
22/007/2017 01:07:11 - INFO - Checking header
22/007/2017 01:07:11 - INFO - Flashing data
22/007/2017 01:07:11 - INFO - Loader : S1_Root_cf2a - Version : MT6755_13 / Boot version : S1_Boot_MT6755_N0.MP103_307 / Bootloader status : ROOTED
22/007/2017 01:07:11 - INFO - Max packet size set to 8M
22/007/2017 01:07:11 - INFO - USB buffer size set to 512K
22/007/2017 01:07:11 - INFO - Parsing boot delivery
22/007/2017 01:07:11 - INFO - No flash script found.
22/007/2017 01:07:11 - INFO - Flash script is mandatory. Closing session
22/007/2017 01:07:11 - INFO - Ending flash session
22/007/2017 01:07:11 - INFO - Flashing finished.
22/007/2017 01:07:11 - INFO - Please unplug and start your phone
22/007/2017 01:07:11 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
22/007/2017 01:07:11 - INFO - Device connected in flash mode
22/007/2017 01:07:39 - INFO - Device disconnected
22/007/2017 01:07:48 - INFO - Device connected in fastboot mode
22/008/2017 01:08:20 - INFO - Device disconnected
 

rrvuhpg

Senior Member
Jan 2, 2009
713
659
113
help me with the step six
22/007/2017 01:07:03 - INFO - Preparing files for flashing
22/007/2017 01:07:03 - INFO - Please connect your device into flashmode.
22/007/2017 01:07:10 - INFO - Device connected in flash mode
22/007/2017 01:07:10 - INFO - Opening device for R/W
22/007/2017 01:07:10 - INFO - Reading device information
22/007/2017 01:07:11 - INFO - Phone ready for flashmode operations.
22/007/2017 01:07:11 - INFO - Opening TA partition 2
22/007/2017 01:07:11 - INFO - Current device : F3216 - WUJ01NML4N - 1303-3635_R4B - 1300-9522_36.1.A.0.182 - GENERIC_36.1.A.0.182
22/007/2017 01:07:11 - INFO - Closing TA partition
22/007/2017 01:07:11 - INFO - Start Flashing
22/007/2017 01:07:11 - INFO - Processing loader.sin
22/007/2017 01:07:11 - INFO - Checking header
22/007/2017 01:07:11 - INFO - Flashing data
22/007/2017 01:07:11 - INFO - Loader : S1_Root_cf2a - Version : MT6755_13 / Boot version : S1_Boot_MT6755_N0.MP103_307 / Bootloader status : ROOTED
22/007/2017 01:07:11 - INFO - Max packet size set to 8M
22/007/2017 01:07:11 - INFO - USB buffer size set to 512K
22/007/2017 01:07:11 - INFO - Parsing boot delivery
22/007/2017 01:07:11 - INFO - No flash script found.
22/007/2017 01:07:11 - INFO - Flash script is mandatory. Closing session
22/007/2017 01:07:11 - INFO - Ending flash session
22/007/2017 01:07:11 - INFO - Flashing finished.
22/007/2017 01:07:11 - INFO - Please unplug and start your phone
22/007/2017 01:07:11 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
22/007/2017 01:07:11 - INFO - Device connected in flash mode
22/007/2017 01:07:39 - INFO - Device disconnected
22/007/2017 01:07:48 - INFO - Device connected in fastboot mode
22/008/2017 01:08:20 - INFO - Device disconnected

You need to use the fsc script, if you have this error:
1. Check that you have the lastest Flashtool 0.9.23.2
2. You must download the firmware from Xperifirm included with Flashtool
3. You must choose yes when Flashtool asks for using fsc script
 
  • Like
Reactions: rukesh24

rrvuhpg

Senior Member
Jan 2, 2009
713
659
113
I just noticed that I have "dual sim" menu on my single sim XAU. When I tried removing ds feature from build.prop I got no sim error.

Thank you for reporting this bug, I think it's because kernel config is unified for all Ultra on Nougat in kernel sources. I will look at this.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 42
    Hi all,

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

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

    ## How to root the Sony Xperia XA Ultra

    The Sony Xperia XA Ultra 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 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/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-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 Ultra 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:

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

    For XA Single Sim and Dual Sim:

    TWRP recovery: https://forum.xda-developers.com/xa-ultra/development/f32xx-twrp-recovery-xa-ultra-t3639722

    Boot: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725

    6. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool ( exclude all other partitions), 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 your 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 do 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. Reboot the phone.

    19. Tap the "Thanks! :good:" 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 Ultra has been confirmed to work on Single Sim and Dual Sim.
    4
    Important update! I forgot to remove encryption in the released boot so your Data partition is encrypted again after wipe... Sorry for this mistake :rolleyes: I reuploaded the boot with the correction:
    https://mega.nz/#!kgYgFCZJ!gmf6ptCwGJRdOeYwIJo3eGa-1er--yQPxjtxy6kbppU
    3
    @rrvuhpg I just remembered that Elephone P9000 had that feature and kernel sources are released.

    https://forum.xda-developers.com/el.../kernel-elephone-p9000-kernel-source-t3425554

    It's exactly on it that I found the interesting thing but thank you ;)
    I searched for dt2w but the exact feature is smart gesture, that's why I found nothing before :D
    2
    @BlueTR I think that I found something interesting to try for dt2w, I will try (probably this week end).
    2
    ah, darn. but i'd still like to know how to restore TA backup, i just do not know how....

    Look here on post #176
    https://forum.xda-developers.com/xperia-xa/how-to/f31xx-how-to-root-xperia-xa-noob-t3430170/page18
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone