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

Search This thread

levone1

Senior Member
Dec 28, 2014
3,827
1,478
:eek::eek::eek: Very bad luck... No problem for me but as said before we must be careful when flashing files on ou devices.
Just seen that I posted it in the wrong thread, it's for Nougat... But it's not related to your probleme, the zip check the SDK version before flashing and stop if it's not the good one.


Well, this phone is really humbling me... Thanks to some suggestions on Xposed thread, I held power and vol- while plugging in, and after about 5 seconds, I got vibration, and a red battery logo, (battery was full charge when it happened). Had to leave it plugged for about 10 more minutes before it would power on, but working now, (no Xposed framework got flashed). I didn't even realize that I thought I knew everything :confused:

I'll just consider myself a noob for now. Thanks for your work.
 

Yooooomi

Member
Aug 11, 2016
35
15
thank you so much sir.. i rooted my device:eek::eek::eek:.... but there is another problem occurs with the network ...my phone doesnt detect sim cards at all now , i boot delivery marshmallow before and followed your all steps respectievly but my sim networks are gone. ..when i booted devlivery _my phone networks are still gone over there in marshmallow boot deleivery..i thought they will return when flashing boot delievery in nouugat..but after doing nougat boot delivery flash..my phone does still show the network carriers..please solve this also.:confused::( i followed your all steps..
I had the exact same problem from flashing Greece Version in France...
Be sure to download the right firmware on XperiFirm depending on your country. I could also recommend you to downgrade to Android 6 with a proper firmware from XperiFirm too then flash Android N and root it from the new guide from @rrvuhpg
 

levone1

Senior Member
Dec 28, 2014
3,827
1,478
:eek::eek::eek: Very bad luck... No problem for me but as said before we must be careful when flashing files on ou devices.
Just seen that I posted it in the wrong thread, it's for Nougat... But it's not related to your probleme, the zip check the SDK version before flashing and stop if it's not the good one.

Well, I resurrected the phone and tried another version, and working now. Haven't found too many modules that work, but a few good ones. Maybe we can start a 'working' list somewhere...
 

shiva1001

Member
Jul 6, 2017
44
0
Well, I resurrected the phone and tried another version, and working now. Haven't found too many modules that work, but a few good ones. Maybe we can start a 'working' list somewhere...

Why substratum is not working on my phone? I installed the theme but no changes appear on my phone, phone is same as before no Changes at all. Using latest substratum and rooted nougat xperia XA please help i want to modify my phone like substratum coz there is no chance of xposed in nougat now..
 

levone1

Senior Member
Dec 28, 2014
3,827
1,478
Why substratum is not working on my phone? I installed the theme but no changes appear on my phone, phone is same as before no Changes at all. Using latest substratum and rooted nougat xperia XA please help i want to modify my phone like substratum coz there is no chance of xposed in nougat now..
Off topic, but I don't think substratum will work on stock Xperia...
 

levone1

Senior Member
Dec 28, 2014
3,827
1,478
Then do you know when will xposed framework be available on nougat in xperia xa? Or anything like xposed to modify phone

I'm using it now. It's linked in this thread, (or the other root thread). Framework is working fine, but not all modules will work. So far, I have Flat Style Colored Bars, Xposed Edge, and Installeropt working.
 
  • Like
Reactions: shiva1001

shiva1001

Member
Jul 6, 2017
44
0
I'm using it now. It's linked in this thread, (or the other root thread). Framework is working fine, but not all modules will work. So far, I have Flat Style Colored Bars, Xposed Edge, and Installeropt working.
Isnt there any problem with bootloop while flashing it? Or xposed is coming to nougat soon? And if i installed xposed it on nougat, how yo uninstall it then
 

levone1

Senior Member
Dec 28, 2014
3,827
1,478
Isnt there any problem with bootloop while flashing it? Or xposed is coming to nougat soon? And if i installed xposed it on nougat, how yo uninstall it then

Right now it's totally experimental, and you always take a risk flashing any system mod, so it's your responsibility... I believe that there is an Xposed uninstaller zip you can download. I haven't had any bootloops, but I do get a systemui restart at random, (like maybe once or twice a day), but I have many mods, so not sure what to blame it on.
 

shiva1001

Member
Jul 6, 2017
44
0
Right now it's totally experimental, and you always take a risk flashing any system mod, so it's your responsibility... I believe that there is an Xposed uninstaller zip you can download. I haven't had any bootloops, but I do get a systemui restart at random, (like maybe once or twice a day), but I have many mods, so not sure what to blame it on.
I flashed xposed framework successfully but when i installed blurred system ui to change my notification pannel to blured.. It didn't Change a single work or line.. Why is it not working. Blurred system ui was mentioned on working list in xposed purify team :(
 

levone1

Senior Member
Dec 28, 2014
3,827
1,478
I flashed xposed framework successfully but when i installed blurred system ui to change my notification pannel to blured.. It didn't Change a single work or line.. Why is it not working. Blurred system ui was mentioned on working list in xposed purify team :(

Where is the post that said it's working? I would be very surprised; it hasn't been updated for 2 years.
 

xhauster

New member
Jul 31, 2017
3
1
please someone help me

my phone is stuck on sony screen

no recovery partition found
i dont understand what this is
please help.


./fastboot flash recovery recovery.img
sending 'recovery' (16722 KB)...
OKAY [ 0.713s]
writing 'recovery'...
FAILED (remote: This partition doesn't exist)
finished. total time: 0.714s
 
  • Like
Reactions: EddY11Gera

rrvuhpg

Senior Member
Jan 2, 2009
714
661
OnePlus 8 Pro

rrvuhpg

Senior Member
Jan 2, 2009
714
661
OnePlus 8 Pro
i dont know what should i do
my phone is stuck.

If you have this error it's because you are on Nougat so 3 things:
1. Please don't post here, this thread is only for Marshmallow.
2. Follow the link (for XA) given and do ALL steps, if you have a XA Ultra it's here: https://xdaforums.com/xa-ultra/how-to/f32xx-how-to-root-xperia-xa-ultra-noob-t3639729
3. We can't help you if you don't give us more explanations like at least model and firmware.
 

Jazinto93

Member
Aug 9, 2017
11
0
Hi, i have xa ultra f3213 6.0 marshmallow and i want to try the workaround for no losing the sony features...so you say to use z3+ files for my device right?..and if yes, i just pass it to my sd card and flash it with twrp? thanks
 

Jazinto93

Member
Aug 9, 2017
11
0
error null creating bundle

Hi i´ve just downloaded the firmware for my device, and when i check flashtool says:creating bundle for xperia xa ultra... and then says error null...about 3 times.. how do i fix it? will it create problems unlocking the bl?
xa ultra f3213...

Thanks
 

Top Liked Posts

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

    I'm happy to share with you an updated guide on how to root the Xperia XA and Ultra, big thanks to @luis1981 for the update.

    This guide is Only for Marshmallow (Android 6.0), for Nougat (Android 7.0) it's here: https://xdaforums.com/xperia-xa/how-to/f31xx-how-to-root-xperia-xa-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/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672, use zip for Z3+ devices.
    2. You can save your DRM keys (TA backup) by following this guide: http://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-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/xperia-xa/development/f3111-f3113-f3115-twrp-recovery-xa-t3606488

    Boot: https://xdaforums.com/xperia-xa/development/f3111-f3113-f3115-stock-kernels-built-t3573119

    For XA dual sim = F3112,F3116

    TWRP recovery: https://xdaforums.com/xperia-xa/development/f3112-f3116-twrp-recovery-xa-dual-sim-t3606232

    Boot: https://xdaforums.com/xperia-xa/development/f3112-f3116-stock-kernels-built-sources-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/xperia-xa/how-to/guide-how-to-install-magisk-xperia-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

    Hi all

    As requested I make a "how to" video to be more noob friendly, the video is probably not perfect and my English too but I do my best to be understandable to all :)


    PLEASE READ
    I'm not a dev and I have no responsability if you flash my files.
    As said in the video you must wipe "userdata" partition when flashing IF your phone memory IS crypted or if you don't know the uncrypt password, someone on the web speak of "default password" but what is it ?? If cryped (with no password) you can't backup /data and can't mount internal memory in TWRP. You can manually enable encryption and be able to set YOUR OWN password, but you can't revert back. And in theory you can make full nandroid backup and mount /data partition when in TWRP but can't mount inernal memory.
    Regarding mounting /system rw in TWRP, seen on other tuto, you must never "swipe to allow modification" when prompted, after installing root package /system is mounted rw with no problem (look at "mount" menu). EDIT: tested on my device without issues but be careful.
    IF YOU UPDATE OR FLASH STOCK BOOT and power on the device to Android, it will encrypt again the internal memory and if you shutdown the device before the end (xperia screen for hours) it will corrupt your data, not the SD card).
    For futur, if you want to update, ask me and will release modified boot. I don't know what it does if you update stock after setting password encryption :/

    Why I changed that by replacing "FORCENCRYPT" by "ENCRYPTABLE" in fstab Boot:
    http://arstechnica.com/gadgets/2015...-mandatory-device-encryption-for-new-devices/
    and
    http://www.androidcentral.com/inside-marshmallow-adoptable-storage

    Before continue, you must understand that unlocking your BootLoader will void your warranty, break your device DRM and lose X-Reality and image optimisation on low light when taking pictures (seen some workaround but not for XA).
    You can't re-lock your phone and it will not restore DRM.
    If you have confidentials files in your phone don't unlock your bootloader, as long as your phone is locked your data are officially secured.
    This will be repeated when following Sony step by step guide. YOU ARE AWARE !

    To verify bootloader lock state after unlock, on phone dialer:
    *#*#7378423#*#* ---> Service info ---> Configuration ---> Check for "Bootloader unlocked: Yes" IT MUST BE YES !!!

    By rooting your phone you will be able to install/uninstall system apps, install Xposed framework (Gravity Box, Dark Pokemon Go,...) or Viper4Android for an awesome sound! You can tweak and mod your phone deeper (battery,CPU,...), build and flash custom ROMs and many other things :D
    If you have problems or want to unroot you can flash stock firmware like in the video with Flashtool, no need to wipe userdata.

    Please watch my video one time before begin, to understand what you have to do.
    Free to you to distribute or modify my files but please link this thread as source.

    BY FOLLOWING THIS GUIDE YOUR PHONE WILL PERFORM A FACTORY RESET WHEN UNLOCKING BL ( it will not format SD card) , MAKE BACKUPS !


    Edit 3/08/2016: Found a workaround for Sony DRM function restoration for UB devices based on Z line and working on XA :D Please read the thread, download package zip for Xperia Z3+ and install it with TWRP, that's all! I recommend you to install it just after SuperSU zip package (working too if not doing this). Thanks to @jimRnor
    http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672

    EDIT 13/08/2016: TWRP is 99% working (can't wipe /cache), you can do all as you want, as long as no encrypted partition is present or locked.
    Let's begin!

    YOU NEED:

    My first video guide :) : http://www.youtube.com/watch?v=nnOoLo31ka0
    MP4 offline video download: https://mega.nz/#!RlwVSAKC!6lTBZxVnLQ-Mxz8er0_dg1r36dCNnUWIq8lEUfSp4Zw

    Download XA ADB drivers, all models for Windows
    http://dl-developer.sonymobile.com/drivers/Xperia_XA_driver.zip

    Download XA Fastboot drivers, all models for Windows (if needed, installation is same as ADB drivers in video)
    http://developer.sonymobile.com/downloads/drivers/fastboot-driver/

    Download FLASHTOOL with integrated Xperifirm 0.9.22.3 for Windows
    http://www.flashtool.net/downloads_windows.php
    (if needed you can unlock bootloader with it, I unlocked my device with it)
    Just follow official way and when you get the unlock code, paste it in BLU menu of Flashtool. (faster way)



    The step by step guide to unlock BootLoader by official way:
    http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
    Video (not mine): https://www.youtube.com/watch?v=6lKWd5LlUoA
    (Just select Xperia XA when asked)

    Now depending the firmware you want to root ( the one you downloaded with Xperifirm) choose your rootpack:

    For XA single sim (33.2.A.x.xx) = F3111, F3113, F3115

    33.2.A.x.x: https://mega.nz/#!ZsQhwbTC!rvw437H0ZujR5Ic02Rhlap6fQ4sLLyPmSRjyfZlMFiU

    For XA dual sim (33.2.B.x.xx) = F3112,F3116

    33.2.B.x.x: https://mega.nz/#!xgoXxBTa!DKAwKELVs0UvkZN0X53ZVM7I4U_XnCgG73RswzMPUi0


    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 :)
    6
    I also would like to know if it's possible to root nougat on Xperia XA (F3111).
    Had marshmallow successfully rooted and then switched to nougat. Now i failed twice to root it.

    16/041/2017 09:41:05 - INFO - Connected device : Sony Xperia XA
    16/041/2017 09:41:05 - INFO - Installed version of busybox : N/A
    16/041/2017 09:41:05 - INFO - Android version : 7.0 / kernel version : 3.18.35+ / Platform : 64bits / Build number : 33.3.A.0.131
    16/041/2017 09:41:05 - INFO - Root access denied

    Installed your kernel "From 33.2.A.4.70 kernel sources and Ramdisk from 33.2.A.4.70 firmware."
    Then tryed I to install TWRP, was not working cuz recovery partition does not exist.
    After that I was hanging on bootloop.

    Any solution to root nougat? Thanks!

    Edit: Just seeing it right now....



    Do you release it, so I'll don't have to downgrade the phone of my friend again. :( :p

    Hi,
    For now root for Nougat can be done only for the XA Ultra, kernel sources for XA are not available.
    You and @mingkee are "senior members" and you don't know that OP love be thanked for their work?
    Probably no, because I didn't see you at the bottom of my first post. I will release root for Nougat only if enough people like my work. Should I really add "don't forget to thank me" or a PayPal button like some OP in my root guide :confused: The world goes bad...
    4
    And now can I sing "One more time"? :cool:
    Yes I like Daft Punk too :p
    4
    I tried to unlock my XA (Dual) (F3116) follow the video, but failed in last step, (remote: command not allowed), I don't why, i am using Win 10, thanks for all yours information.

    Hey guys! I come with good news, really my phone was with the locked bootloader, and it is happening the same thing with our friend above, I will spend the steps I did and it worked.

    I went to this directory :
    C:\Users\Daniel\ .flashTool\registeredDevices\RQ3000X03N

    "If this directory does not exist, create !"
    I made a file in txt with the bootloader code that Sony gave me and saved with name "ulcode".
    After that, I went to the FlashTool and did bootloader for it, the code came the screen and pressed on UNLOCKED.
    Then, the program took a while and caught .. but the window that was behind was written "Bootloader Unlocked"
    So I canceled and tried again the fastboot in cmd and WAS RIGHT !!
    I managed to fastboot in recovery.img and boot.img and now I'm with root and Xposed in my F3116!!

    Thank you all!! I hope I can help with that! :fingers-crossed::fingers-crossed:
    3
    @hp6830s you talk about bugs seen in video? If I remember, error in TWRP is about wiping /cache but no a real problem and in video got 2 force close of Play service because I'm updated from .35 without wiping userdata (not crypted /data) and I think update wasn't fully finished. Never FC again after that and no problems. But if YOU have errors about /data in TWRP it's because of encrypted phone memory. During tests I got 1 bootloop in TWRP but can't repeat the problem again after wiped userdata on first root. That's why I recommend wipe. And that's strange if your phone not wiped when unlocked, for me no choice...
    @tthmatt It works but really not recommended (for boot.img), as ramdisk and kernel are from an other firmware. For recovery it's less problematic. You can try and feedback us :)