yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Reported working on XA Ultra and tested myself on XA for test :good:

Use rootpack for 33.2.B.2.73.
[Sony Xperia XA Guides, News, & Discussion] Bachtran24:
Thank you!

After a night thru, I'm finnaly rooted my XA thanks to you :D
[Sony Xperia XA Guides, News, & Discussion] mekar07:
Can i root my xa ultra without unlock bootloader?
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
Nope, doubtful there'll ever be locked Bootloader root again since the introduction of dm-verity security. There's also no way to back up ta keys currently either. if you've got a xa with a locked down bootloader you won't be rooting it anytime soon.
[Sony Xperia XA Guides, News, & Discussion] aero2zero:
This method is working 100%, great work. (F3111) Just registered here (after a prolonged reader-only period) to tell you about this. :good:

And a question: are there other recovery solutions available instead of this TWRP? Or not yet?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
I can compile CWM recovery or an other but for what? I have a CM recovery if you want but no rom to test... for now ;)
[Sony Xperia XA Guides, News, & Discussion] aero2zero:
This TWRP doesn't want to save the settings, I need to set all over again. Not to mention the more serious issue: backing up 'data' always fails.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Yes it's a security issue with marshmallow, by default /data is encrypted with a random password. If you format userdata in TWRP and you will have full access for backup/restore and probably persistent settings. You can encrypt again in security settings of Android with a choosen password. Same with others recovery.
[Sony Xperia XA Guides, News, & Discussion] caosugai:
[MENTION=1461342]rrvuhpg[/MENTION] plz publish version 33.2.B.2.93 haha :P
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
I don't see any changes in kernel (3.18.22), if you have good reasons to ask for an update I will make it :) but for now I will not. I don't have enough time to update all rootpacks for all firmwares and all devices (XA and Ultra). You can use rootpack from a different firmware without issues, just be careful with A or B letter. You have the possibility to edit default.prop in ramdisk (in boot and recovery .img) with Carliv Image Kitchen for changing displayed firmware version. I will make a small guide for that.
[Sony Xperia XA Guides, News, & Discussion] cafeeina:
Hello everybody , my smartphone is the F3116 version , but he came encrypted factory !! It is with the bootloader unlocked but I can not write boot.img and recovery.img , have any other method to root or to decrypt? Oh, and congratulations for the job!
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
Set up a pin code is all that is needed I do believe. Which I find irritating if that's the way it works as I've never used a pin code or a pattern to secure my device I only ever use swipe to unlock. There is no other method of getting root anymore all the information you need is in the op
[Sony Xperia XA Guides, News, & Discussion] cafeeina:
I agree about the PIN code, my problem is that I can not write boot.img and recovery.img by fastboot , "Command not Allowed" . I followed the steps correctly , but I think this error is due to encryption of internal storage, I did something wrong? That really has nothing to do? ://

To be more exact :

C: \ FlashTool \ x10flasher_lib > fastboot flash boot boot.img

Reported target max download size of 134217728 bytes

sending ' boot' ( 14474 KB ) ...

OKAY [ 0.466s ]

writing 'boot ' ...

FAILED ( remote: Command not allowed )

finished . Total time: 0.469s
[Sony Xperia XA Guides, News, & Discussion] :
Thank you for your great work on this phone! However, I am having issues with connecting my phone in flashboot mode (9.30 in video). I already updated the drivers as mentioned in the video and description but flashtool gives me this error:

ERROR - Drivers need to be installed for connected device.

ERROR - You can find them in the drivers folder of Flashtool.

Any help or advice would be much appreciated. Thanks!
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
[MENTION=7691169]cafeeina[/MENTION], when you are in fastboot have you checked if your bootloader is really unlocked with "fastboot oem unlock" answer of the command must be "not necessary". Default encryption is not a problem for root but for some flashable zip and backup it will. I modified the boot.img to have the possibility of removing or setting a known password/pin to let the user have the choice, not the Sony's choice :)

[MENTION=7691828]bbbjkl[/MENTION], try to manually update drivers with the zip from the guide. Just be careful if installing ADB or Fastboot drivers (not same drivers)
[Sony Xperia XA Guides, News, & Discussion] xiumengaia:
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.
[Sony Xperia XA Guides, News, & Discussion] cafeeina:
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:
[Sony Xperia XA Guides, News, & Discussion] xdaette:
SD card corrupted after rooting

Hi everybody,

I Rooted succesfully:) my xperia XA dual F1312 following rrvuhpg instructions, but, then then external SD card is identified by phone as corrupted...:(

I check Sd card with PC under Win10, and with chkdsk all seems correct.

I do a new full root again, and I remark those things:

just before the recovery mode steps,

- my phone recognize successfully external sd usb card and i copied theUPDATE SUPER SU ... .zip and DRM zip files on it successfully.:o

Then I put my phone and recovery mode and phone access succesfully SD card to read UPDATE SUPER SU and DRM zip files for installation

this operation (rooting i think) is successfull

then I reboot phone, fastboot detect it as rooted enabled;:o

I can use my phone without problem excepted for the SD card detected as corrupted !:crying:

of course I format external sd card (128Gb and exfat) but nothing change, even emptied

could anyone help me ?

Phil (aka xdaette ;) )
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Got the same problem with 2 sdcard, for me it happened after undo Adoptable Storage, cards are usable in TWRP but not detected in Android. Probably because of a corrupted MBR :confused: I didn't searched why more than that...
[Sony Xperia XA Guides, News, & Discussion] xdaette:
So you suggest trying another sd card ? a smaller size ? any mean to cleanup corrupted MBR ? I will have a look on it :fingers-crossed:
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
You can try an other card, card size is good, you can try to restore MBR with a partition editor PC app. For now I tested only with an other card. I have a genuine 64 GB SanDisk Class 10 (grey and red). I'm sure that's not a root problem.
[Sony Xperia XA Guides, News, & Discussion] opss:
i've the same problem with my 64mb sundisk... sdcard not found from device... i use now a Samsung 32gb sdcard... that works!
[Sony Xperia XA Guides, News, & Discussion] xdaette:
After lot of tests and tools, it seems sd card has a problem which occus just when i root my phone. coincidence or not; another sd card works fine with my phone, en my fault sd card do same problem on another phone; I will by another board although it works fine with windows and no error detected with any tool execept android phone. very strange and a little weird, non? :eek:
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Yes that's strange, I tried and successfully restored 2 SD cards and now detected in Android. Formated in FAT32 with Gparted and Ubuntu.
[Sony Xperia XA Guides, News, & Discussion] xdaette:
Well, tests and again and again... : new SD card = same problem; what i see:

with flashtool device , i flash first 33.2.B.2.73 version as you said in your tuto;

i reboot my phone and phone crypt it process run .... (n ormal or not ? don't know)

i put my sd card (128gb may be that's the point) => works fine !

i put my 2nd sd card (128gb tot) => works fine !

i enter in fast boot mode and flash with command:

fastboot flash boot boot.img

fastboot flash recovery recovery.img

reboot ..; and the 2 sd card ar detected corrupted !!!

So i go back with to a non rooted phone to access my sd card.

understand what happen ??? crypto problem detected when changing root or recovery ??? i any idea ??
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
I will answer you on the good thread ;)

http://xdaforums.com/xperia-xa/how-to/tuto-how-to-enable-adoptable-storage-t3435493
[Sony Xperia XA Guides, News, & Discussion] anaconda875:
Nice thank!
[Sony Xperia XA Guides, News, & Discussion] misterionm:
F3111

Is there any problem if flash the rootpack .73 over stock .93 on F3111 ?

are there gonna be any problems or i should flash .73 ?

thanks in advance !
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
No problem you can flash it, as long as the kernel version is the same (3.18.22) you can use older rootpacks.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
And when updating your firmware, just uncheck "boot" and "fotakernel" boxes in Flashtool and re-apply SuperSU zip package.
[Sony Xperia XA Guides, News, & Discussion] misterionm:
the kernel version is 3.18.22 + so there wont be any problems at alll right?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Don't worry, rootpack is tested every time when a new firmware come. I use .73 rootpack on .93 firmware and no problem. Just follow carefully the guide to avoid problems, if something goes wrong you can't hard brick your device forever. Just one thing, never use pro mode in Flashtool.
[Sony Xperia XA Guides, News, & Discussion] ben75011:
Hi

I come from Z3... Any chance to root .111 firmeware????

Thanks a lot
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
If you say .111 you have a XA Ultra, right? As said just before you can use older rootpacks on newer firmwares. Just take care to download good rootpack for your device, firmware with A for single Sim and with B for dual. For XA Ultra rootpacks are on the Ultra forum, not here.
[Sony Xperia XA Guides, News, & Discussion] ben75011:
Yes i have a XA Ultra

Build 36.0.A.1.111

Version model F-3211

unloacked boatloader.

But i dont understand, who ca i Find the way to root my Phone?

Sorry for my bad english :(
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Follow the guide for XA on the first post of this thread but use rootpack from here:

http://xdaforums.com/xa-ultra/development/rootpack-xperia-xa-ultra-single-sim-t3446203
[Sony Xperia XA Guides, News, & Discussion] ben75011:
Thancks you [MENTION=1461342]rrvuhpg[/MENTION], i try this and come back !!!!

Thanks a lot !!!
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
Reply in the ultra forum if possible to keep the devices separate. Welcome to the xa family
[Sony Xperia XA Guides, News, & Discussion] misterionm:
thank you so much for ur help and everything your fhe best keep up your job thank you!
[Sony Xperia XA Guides, News, & Discussion] ben75011:
Hi [MENTION=1461342]rrvuhpg[/MENTION], this work !

But how ca I unistall the encrypted memory?

thanks a lot, my phone is yet rooted :):)
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
You can't revert back to unencrypted memory. The only way is to wipe userdata in TWRP after flashing boot.img from my rootpack, if you boot Android with stock boot.img the memory will be encrypted again automatically. You can encrypt manually with the password you want in Setting/Security on Android after flashing my boot.
[Sony Xperia XA Guides, News, & Discussion] ben75011:
thanks a lot... I try this this morning and comme back !!!
[Sony Xperia XA Guides, News, & Discussion] ben75011:
so if I unsterdand, i should root + install recovery, than flash an other your Boot.img you giv me, and than wipe userdata?

only this?

An other thing, Super SU says my phone is "limited rooted", it is normal?

My phone is already rooted + recovery works fine.

Thanks you [MENTION=1461342]rrvuhpg[/MENTION] for your help!
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
1) flash firmware

2) flash boot/recovery

3) wipe userdata in TWRP

4) flash superSU zip in TWRP

No problems with SuperSU (root not limited) and memory not encrypted.
[Sony Xperia XA Guides, News, & Discussion] ben75011:
thanks I will try this and come back.

Thanks you a lot for your help!!!! I am noob with xa, I come from Z3 :)
[Sony Xperia XA Guides, News, & Discussion] hp6830s:
sdk23 or arm64 ?Found 2 topics with similar description, but its for random processors/os.
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
Sdk23 is android mm arm64 is the processor it must contain both of these

http://xdaforums.com/xperia-xa/how-to/f31xx-how-to-install-xposed-framework-t3442505/page1
[Sony Xperia XA Guides, News, & Discussion] adriantojanuri:
Hi, just want to confirm about the firmware upgrade. Do we need to download the firmware from the flashtool using the worldwide build or we can go using the latest OTA upgrade? So skip directly to flash the kernel and recovery.

Mine is F3116 dual (HK unit) and running on .93 firmware.

Thank you :)
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
You'll need to update manually via flashtool, ota updates or updates via Xperia companion won't work after unlocking the bootloader and rooting.
[Sony Xperia XA Guides, News, & Discussion] adriantojanuri:
Ok thank you for the info. So now i am running at .93 firmware. Will follow the root guide as described (unlocking the bootloader first). Thanks!
[Sony Xperia XA Guides, News, & Discussion] stealyeyed:
New to the Sony phones and trying to root my XA when I follow the steps in the original post and I check my "Bootloader unlocked" status mine says No so that means I cant root my phone correct?
[Sony Xperia XA Guides, News, & Discussion] aidy.lucas:
If it says bootloader unlock allowed NO and you brought your xa locked down to a network rather than sim free. Then your correct you WON'T be rooting it anytime soon due to dm-verity security and device encryption in mm all xperia devices have been this way since the z3+was released with the exception of the M5 it must say

Bootloader unlock allowed YES
[Sony Xperia XA Guides, News, & Discussion] Horofox:
How to root 33.2.B.3.81-R5A Xperia™ XA (F3112)?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Use rootpack from older dual sim firmware. If you wait a little I will update my rootpack for F3112/F3116 with the new kernel and a new TWRP when Sony will release the open source archive.
[Sony Xperia XA Guides, News, & Discussion] Horofox:
Thank you, I'll wait for the new rootpack. ;)
[Sony Xperia XA Guides, News, & Discussion] aero2zero:
I just recently flashed the latest update (F3111, 33.2.A.3.81, Customized CE5) using Flashtool, so the recovery and root are both gone. Should I need to wait for an updated root pack to get rooted again? When will this occur?

Update: nevermind, I flashed back the previous rom, with all the stuff I miss. Seems like nothing happened. :good:
[Sony Xperia XA Guides, News, & Discussion] kaiiori:
I have trouble applying the overclock on my device just gives me as maximum frequency does not give me 1145mhz 1950mhz
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
The last official firmware for F3111 is 33.2.A.3.81? Because i have 33.2.A.2.93 and it's say is the last firmware.

Knowledge is Power
[Sony Xperia XA Guides, News, & Discussion] leap_ahead:
http://developer.sonymobile.com/downloads/all-downloads/
[Sony Xperia XA Guides, News, & Discussion] nicoX:
Is there any issues using one click software to root your phone?: http://guideroot.net/how-to-root-sony-xperia-xa-dual/

Is it possible to backup your image prior the root so you can unroot it if necessary? Or are there other ways to do that?
[Sony Xperia XA Guides, News, & Discussion] XenocodeRCE:
[MENTION=1461342]rrvuhpg[/MENTION] : Salut ! Merci pour le tutoriel ! J'ai suivis une partie du tutoriel à la lettre et j'en suis à cette étape :

«To verify bootloader lock state after unlock, on phone dialer:

*#*#7378423#*#* ---> Service info ---> Configuration ---> Check for "Bootloader unlocked: Yes" IT MUST BE YES !!!»

Il est donc sur 'YES'.

Mon kernel est le : 33.2.A.2.93. Je dispose du F3111 single sim.

Que dois-je faire ? Puis-je faire un backup de mes infos sur ma carte SD ? Merci d'avance.
[Sony Xperia XA Guides, News, & Discussion] k1llb0+:
Succesful Rooting! But encryption takes too long :(

Hi sir [MENTION=1461342]rrvuhpg[/MENTION]

Thanks for this guide! I successfully rooted my Xperia XA (F3115)!

However, after rooting, when I tried to encrypt the internal storage again, it seems like there is a problem. The encryption started but when the process rebooted my phone, it is taking too long. It has been more than an hour an my phone is still stuck in the boot screen with the "Xperia" text.

I do not want to interrupt the boot as I'm afraid it might mess up my phone. Do you have any advice?

Edit: I don't know if this breaks any rules, but because I think this is quite off-topic, I posted this on a new thread: Succesful Rooting! But encryption started a boot loop and I'm stuck. T_T

Thank you in advance!
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Sorry I don't know why you have this problem.

A golden rule: make backups before modify your phone (not only for root)

[MENTION=6237753]XenocodeRCE[/MENTION], please write in English on Xda or PM me ;)
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
TWRP is only for dual sim?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
No, TWRP for single sim is in the single sim "rootpack" :)
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
Oh nice and last question rootpack .73 is ok with Kernel Version 3.18.22+ and build number 33.2.A.3.81 or is up to .2.93?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
You can use rootpack as long as the kernel version is 3.18.22
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
You plan an upgrade to root pack? Or can downgrade kernel?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
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.
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
I follow your guide all good...
[Sony Xperia XA Guides, News, & Discussion] cojocar.andrei:
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,
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
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
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
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" .

[MENTION=7238298]daskalakisp[/MENTION] 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
[Sony Xperia XA Guides, News, & Discussion] daskalakisp:
Does anyone install Flashtool to Linux Mint?
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
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
[Sony Xperia XA Guides, News, & Discussion] nastronomical:
I have a f3213 can i root it without any drm issues? I just wish to change the system fonts.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
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.
[Sony Xperia XA Guides, News, & Discussion] nastronomical:
What are the downsides of losing drm? Also, can the phone be reset later and it will have the drm back?
[Sony Xperia XA Guides, News, & Discussion] XenocodeRCE:
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 ?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
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.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
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.
[Sony Xperia XA Guides, News, & Discussion] nastronomical:
So basically it is a dead end? sigh all of this just to change fonts. I thought sony phones allowed you to root them.