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

rrvuhpg

Senior Member
Jan 2, 2009
712
657
113
You plan an upgrade to root pack? Or can downgrade kernel?
Yes but only for Dual Sim, the only model that I have.
For others it's only if I have some time, if rootpacks are not working in a futur firmware or if the kernel version is updated.
For now you can use them without any troubles on any firmwares.
 

cojocar.andrei

Senior Member
May 29, 2008
451
118
63
Yes but only for Dual Sim, the only model that I have.
For others it's only if I have some time, if rootpacks are not working in a futur firmware or if the kernel version is updated.
For now you can use them without any troubles on any firmwares.
Thanks for the rooting method. Can I ask you a couple of questions? One of them is what did you replace in the boot.img file. Was is just the fstab to make the data partition "encryptable" and the second is what's the line to merge the kernel and the ramdisk back into the kernel.img file (the switches, base address, etc.). I'm able to split the boot image but I don't know the switches to merge them back. I have an F3111 and I could do it for this model ...

Thanks again for your work,
 

daskalakisp

Senior Member
Jan 26, 2016
64
4
8
Loutraki
I have one question is off topic but is about our favorite device...in my old device (Lg g4c) i use Link2SD Pro all good in Sony Xperia Xa (single sim) after root i try to use this app but can't mount the second partition in app...Does anyone have experience the same problem or there is any application that is working properly and to do the same job?free or paid not care
 

rrvuhpg

Senior Member
Jan 2, 2009
712
657
113
Thanks for the rooting method. Can I ask you a couple of questions? One of them is what did you replace in the boot.img file. Was is just the fstab to make the data partition "encryptable" and the second is what's the line to merge the kernel and the ramdisk back into the kernel.img file (the switches, base address, etc.). I'm able to split the boot image but I don't know the switches to merge them back. I have an F3111 and I could do it for this model ...

Thanks again for your work,
I change the stock kernel with a new one built (Ubuntu) from sources : http://developer.sonymobile.com/downloads/xperia-open-source-archives/
For unpack/repack I use Carliv Image Kitchen (Windows) and one of my released built boot/recovery.img, rename "Image.gz-dtb" (the new kernel) to "boot.img-kernel" or "recovery.img-kernel" in the work folder of your unpacked boot/recovery . You can unpack kernel.sin from/with Flashtool to update the Ramdisk.
Yes you just have to change value in the "fstab.mt6755" to make the data partition encryptable/encrypted. And if you use a new default.prop change "ro.secure=1" to "ro.secure=0" .

@daskalakisp You can use Adoptable Storage, search on the forum how to do. :) The root changes something in the partition management but I don't know what it does exactly.

EDIT: boot/recovery repack parameters

BOARD_KERNEL_CMDLINE bootopt=64S3,32N2,64N2
BOARD_KERNEL_BASE 40078000
BOARD_RAMDISK_OFFSET 04f88000
BOARD_SECOND_OFFSET 00f00000
BOARD_TAGS_OFFSET 03f88000
BOARD_PAGE_SIZE 2048
BOARD_SECOND_SIZE 0
BOARD_DT_SIZE 0
BOARD_NAME 1462347699
17349 blocs
 
Last edited:

HEKER510

Senior Member
Dec 2, 2012
592
183
0
forum.xperia.cz
Yippee-ki-yay! DRM keys are back! Noice reduction and screen optimizations are working again. Used DRM fix found on XDA. Look screens of DRM keys state and the time stamps. Verified with comparative pictures/screenshots :fingers-crossed:
Link to the fix: http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
Use zip for Z3+

I have a question I have exactly drm likewise guys like you
if I was locked bootloader will have bootloop or Something goes wrong Depreciation me later someone very thankxxxxxxx
 

rrvuhpg

Senior Member
Jan 2, 2009
712
657
113
I have a f3213 can i root it without any drm issues? I just wish to change the system fonts.
You will lost your real drm keys, probably lost you warranty (see laws of your country) and OTA updates. You can update with Flashtool without problems, don't forget to exclude all "ta" partitions.
To restore all features you will have to flash the "drm fix", I don't know if it will work with Nougat.
 

nastronomical

Member
Jan 23, 2007
11
0
0
You will lost your real drm keys, probably lost you warranty (see laws of your country) and OTA updates. You can update with Flashtool without problems, don't forget to exclude all "ta" partitions.
To restore all features you will have to flash the "drm fix", I don't know if it will work with Nougat.
What are the downsides of losing drm? Also, can the phone be reset later and it will have the drm back?
 

XenocodeRCE

New member
Dec 11, 2014
2
0
0
Vidéo Audio bug

Since I followed this guide and rooted my phone, any audio/video-involving task seems buggy :
When I try tò listen tò music, it crashes randomly within 2 or 3 minutes . "Error : Cannot read / play this file"
When I watch YT vidéos, it stops randomly every two or three minutes.


Shall I re-flash or decrypt my data or update my firmware ? I mean, would it stop to bug ?
 

rrvuhpg

Senior Member
Jan 2, 2009
712
657
113
What are the downsides of losing drm? Also, can the phone be reset later and it will have the drm back?
Downsides are them of my answer: Your real Drm keys are lost FOREVER, no way to restore them after unlock. Some features are disabled without the fix.
Go on the official thread of the "Drm fix" for more explanations.
 

rrvuhpg

Senior Member
Jan 2, 2009
712
657
113
Since I followed this guide and rooted my phone, any audio/video-involving task seems buggy :
When I try tò listen tò music, it crashes randomly within 2 or 3 minutes . "Error : Cannot read / play this file"
When I watch YT vidéos, it stops randomly every two or three minutes.


Shall I re-flash or decrypt my data or update my firmware ? I mean, would it stop to bug ?
First time I see your problem, do you use Viper4Android or any sound mod?
Yes you can try to reflash, encryption is not the problem.
 

nastronomical

Member
Jan 23, 2007
11
0
0
Downsides are them of my answer: Your real Drm keys are lost FOREVER, no way to restore them after unlock. Some features are disabled without the fix.
Go on the official thread of the "Drm fix" for more explanations.
So basically it is a dead end? sigh all of this just to change fonts. I thought sony phones allowed you to root them.
 

Adzetko

Member
Apr 4, 2015
7
0
0
Phone stuck at boot (not seems to be in any loop tho)

Hi, I've followed your guide, my device is the F3111, with the 33.2.A.3.81 software.
Before I've flashed the boot.img and recovery.img from your rootpack, I've unfortunately booted it normally (I didn't knew the encryption was made at this point), I don't remember quite well, but I think it was stuck in a boot loop.
Then I've rebooted it in fastboot mode, successfully flashed the boot.img and recovery.img.

When restarting, I've got stuck in a bootloop (Sony logo, then black screen, then Sony logo again, etc...).
Then I've booted in TWRP (I didn't knew what to do, so I did ****ty things). I've activated the MTP, then I've transfered the "UPDATE-SuperSU-v2.76-20160630161323.zip" to my internal memory (I've transfered the 33.2.A.3.81 firmware .ftf file too), and then (don't ask me why) I've installed it, and rebooted.
And now my phone is stuck at the black "SONY" logo with white background, not blinking, not responding to any keypress.
(EDIT: like, the screen is not even going off, it's been on for an hour and a half now)
(NEW EDIT: I found a way to shut it down, by pressing volume up key + power key)
My computer detects a device when I plug the phone in (but it does not show up in the file manager).

Any idea of what to do?

EDIT: In the device manager, the device showing when I plug in my phone is "Sony so0116".
 
Last edited:

Adzetko

Member
Apr 4, 2015
7
0
0
Hi, I've followed your guide, my device is the F3111, with the 33.2.A.3.81 software.
Before I've flashed the boot.img and recovery.img from your rootpack, I've unfortunately booted it normally (I didn't knew the encryption was made at this point), I don't remember quite well, but I think it was stuck in a boot loop.
Then I've rebooted it in fastboot mode, successfully flashed the boot.img and recovery.img.

When restarting, I've got stuck in a bootloop (Sony logo, then black screen, then Sony logo again, etc...).
Then I've booted in TWRP (I didn't knew what to do, so I did ****ty things). I've activated the MTP, then I've transfered the "UPDATE-SuperSU-v2.76-20160630161323.zip" to my internal memory (I've transfered the 33.2.A.3.81 firmware .ftf file too), and then (don't ask me why) I've installed it, and rebooted.
And now my phone is stuck at the black "SONY" logo with white background, not blinking, not responding to any keypress.
(EDIT: like, the screen is not even going off, it's been on for an hour and a half now)
(NEW EDIT: I found a way to shut it down, by pressing volume up key + power key)
My computer detects a device when I plug the phone in (but it does not show up in the file manager).

Any idea of what to do?

EDIT: In the device manager, the device showing when I plug in my phone is "Sony so0116".
Ok, so, I've managed to re-flash the firmware, I had an error in Flashtool: "ERROR - Processing of system.sin finished with errors.", but I continued with fastboot, flashing boot and recovery (again successfully), and now my phone is in a boot loop! Yay! I've launched TWRP but I don't want to mess things up again.