yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Are these sizes correct

Boot XA-SS-33.2.A.4.70 Disc Image File 11,680 KB

recovery - XA-SS Disc Image File 12.768 KB

Are there other ways to root?
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Found that the adb drivers are the problem [not see devices/emulators]

Windows 10 and google's software seems to hate each other.

Is it easier doing this through a Linux based machine [does flashtool work] or is it easier on Windows XP / 7. From what I remember on other Sony phones I've rooted this is all ways a problem.

I just assumed that it would be getting easier to root rather than harder.
[Sony Xperia XA Guides, News, & Discussion] luxmen:
External SD Problem after flash / Root

Hi all,

Thx for this Topic :D

I've a

BIG

problem after Flashing Boot.img and recovery.img.

I've root, TWRP Work like a charm... I've access to my exFat externalSD Card from TWRP

But from Android, my MicroSD cards in exFat (all my cards) are corrupt. I've check from PC all my card are working fine.

I think the problem is MM with exFat, I try Fat32, its work.

Can you help me please ?
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Still the same result

I 've re-installed Windows 7 on an old hard drive to get a fresh install / no conflicts

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

target reported max download size of 134217728 bytes

sending 'boot' (17249 KB)...

OKAY [ 0.738s]

writing 'boot'...

FAILED (remote: image is not a boot image)

The only thing I can deduct from this is that the boot I've downloaded isn't compatible with my version
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Flash by flashtool same result

View attachment 4114671

I've flashed with flashtool and again boot.img is not recognized:(.
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
no such file

View attachment 4115575

Must be a reason
[Sony Xperia XA Guides, News, & Discussion] KillerMuffin:
Hey guys, i have a big problem. I can't unlock my bootloader. I have looked in Service Info, answer is that i can unlock bootloadder. If i want to unlock via flashtool i get:

17/011/2017 17:11:07 - INFO - Please connect your device into flashmode.
17/011/2017 17:11:07 - INFO - Opening device for R/W
17/011/2017 17:11:07 - INFO - No loader in the bundle. Searching for one
17/011/2017 17:11:14 - INFO - Processing loader.sin
17/011/2017 17:11:14 - INFO - Checking header
17/011/2017 17:11:14 - ERROR - Processing of loader.sin finished with errors.
17/011/2017 17:11:14 - ERROR - null
17/011/2017 17:11:14 - INFO - Your phone bootloader cannot be officially unlocked
17/011/2017 17:11:14 - INFO - You can now unplug and restart your phone.

Idk what to do, via cmd it also didnt work :/
[Sony Xperia XA Guides, News, & Discussion] yeyi01:
Boss [MENTION=280692]rrv[/MENTION]hpg i can't ta backup my drm keys althought i follow all the steps from the adb access please help
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
KillerMuffin

https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/

Follow steps on Sony's pages

They e-mail you a code

Then using flashtool after clicking BLU you put in code , then should unlock.

If you've done this already , :confused:
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
You have to downgrade your firmware, Dirtycow exploit has been fixed on recent firmwares.
[Sony Xperia XA Guides, News, & Discussion] yeyi01:
I thought that it will work in version 33.2.B.4.70?
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Still having problems

I found that I was adding extension to boot image , so it became boot.img.img

Disabling hide extension has got rid of that problem. But boot still not being copied to phone.
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Still trying

I've now tried with boot named boot-XA-SS-33.2.A.4.70.img and boot-XA-SS-33.2.A.4.70 insted of boot.img.

These are the results

It would be nice if someone who has work out how to do it would give some guidance
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
1.On phone and Open connect phone to usb for pc to opened folder adb Disk C and write And gradually you have to first confirm in the mobile point 1

2.To show you in the second line the name of the device

3.And especially recovery and boot must be in that folder where flash will do

1.adb devices - ok ✓

2.adb reboot bootloader ok ✓

3.fastboot flash boot boot-XA-SS-33.2.A.4.70.img ✓

4.fastboot flash recovery recovery.img ✓
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
1 ok 2 ok 3 same as before

Thanks for the reply HEKER510

1. adb devices - OK

2. adb reboot bootloader - OK

3. fastboot flash boot boot-XA-SS-33.2.A.4.70.img [in same folder as flash] - still the same
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
Solved - Now have root

After downloading Boot and Recovery again and having hide extension disabled in Windows, I realized that Boot and Recovery were already images.

Because I was using 7 zip this allowed me to Extract images [which I wouldn't thought was possible]

with WinRAR installed this Extract wasn't shown this gave this game away as well.:o
[Sony Xperia XA Guides, News, & Discussion] yeyi01:
boss [MENTION=1461342]rrvuhpg[/MENTION] does dirty cow will update TO BACKUP ITS DRM KEY IN VERSION 33.2.B.4.70?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
No, you have to downgrade to an older firmware.
[Sony Xperia XA Guides, News, & Discussion] yeyi01:
Ok boss thanks
[Sony Xperia XA Guides, News, & Discussion] MisterPetje:
External SD Problem after flash / Root

Originally Posted by luxmen

I've a BIG problem after Flashing Boot.img and recovery.img.
I've root, TWRP Work like a charm... I've access to my exFat externalSD Card from TWRP
But from Android, my MicroSD cards in exFat (all my cards) are corrupt. I've check from PC all my card are working fine.

I think the problem is MM with exFat, I try Fat32, its work.

Can you help me please ?

Hi luxmen

After rooting I found the same problem . I tried formatting on phone on Windows through card reader and again through cmd also through card reader and got the same result. I managed to get my old Xperia M2 back and reformatted which cured problem on the card in question [I reformatted using XA and problem returned].

I have seen on another post in XDA when formatted on another brand of phone this wouldn't work either.
[Sony Xperia XA Guides, News, & Discussion] goldblot:
Strange problem.

I'm on 33.2.A.4.70 (F3113) and I'm able to flash supersu.zip normally, mount /system as rw but, for some reason, I'm only able to do certain things as root (su).

Firewall (AFWall+) works, AdAway doesn't. I'm not able to mount /system as rw while booted into the OS.

Using "su" in a terminal emu grants me root access but running "mount -o rw,remount,rw /system" sends back "mount: Read-only file system" so I'm unable to change anything within /system even though su is installed into /su, /system/bin, and/ system/xbin.

Flashing, using flashtool, 33.2.A.4.70 again, fastboot flash boot boot.img/recovery recovery.img, and reflashing supersu.zip (v2.79) heralds the same results.

Not sure what else I can do at this point.
[Sony Xperia XA Guides, News, & Discussion] HtheB:
Has anyone been able to make a TA Backup of their XA (F3111)?

dirtycow is keep on failing for me...

(I couldn't post there since my post count is low...)

Sony Xperia XA (F3111) Running on Android 6.0 (Build 33.2.A.4.70)

Edit:

Downgrading to 33.2.A.2.93 solved my problem!
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
I have XA Ultra(F3211) and backed up my TA partition months ago. Do you know how I can restore it?
[Sony Xperia XA Guides, News, & Discussion] HtheB:
slm

No I haven't found a way to restore the DRM keys, as the OP says: "for now you can't restore your backup."

:(
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
Which recovery do you use for F3111 xperia XA ?

Out of curiosity, which type of recovery do you use for F3111 xperia XA single sim ?
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
Are you Turkish?

Well, I found a topic that clearly explains how to restore TA on F3212 on a Russian forum (language is English).

adb shell dd if = / sdcard / xxxxxxxxxxxxxxxxxxx.img of = / dev / block / platform / mtk-msdc.0 / 11230000.msdc0 / by-name / ta

After that DON'T boot system, instead, turn off and go flash mode and reflash using flashtool and done.

He says command ran successfully and posted screenshots which confirm restoration works.

BUT I doubt XA or single sim XA Ultra has the same block in mmc. Since I have locked bootloader and no root I can't check if block is present.
[Sony Xperia XA Guides, News, & Discussion] HtheB:
What do you mean? I just used the one that is stated in the first post.

I really don't know...

At the moment I have 3 files:

TAbackup.img

DK.ftf

DK.ta

I actually have NO clue on how to restore these...

I've also searched online, but I only found some Russian and Polish forums regarding this. But I haven't come any closer as I am now... (Even after Google Translate) :(

Oh and by the way: Bize her yer Trabzon :victory:
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
How did you back-up your keys? I used dirtycow exploit and I just have TA_F3211_serialnumber_timestamp.img which is exactly 2.097.152 bytes. AFAIK .ta file belongs to flashtool so does .ftf file.
[Sony Xperia XA Guides, News, & Discussion] HtheB:
I've used Rootkernel (v5.23) https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 to get a ftf file of the TAbackup.img.

flash_dk <ta backup image> DK.ftf

You can extract the content of the .ftf file using 7zip to get the DK.ta file

But... what next? :p :crying:
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
I think this is completely different. We can use drm fix to simulate keys on unlocked bootloader. What I want is restoring ta and locking bootloader like it has never been touched. I tried rooting once but boot.img was from an earlier build and I got bootloop. As I didn't know how to restore TA.img back then, I'm now using my phone with locked BL without DRM keys.

I can try this "adb dd" method but I don't wanna lose my files and apps. I'm waiting rrvuhpg to upgrade F3211 kernel. Once he does, I'll unlock BL and restore TA.img and lock it again. If it works I'll unlock BL again, root my phone and use it with root until Nougat comes. Once it comes, I'll restore TA and lock BL again and wait for a new rooting method for And7. Maybe I won't upgrade to 7.
[Sony Xperia XA Guides, News, & Discussion] HtheB:
That is what I want to do as well, just restore it like it's never been touched.

I'm just using the one posted on the first post, works just fine on my F3111 without any problems.
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
You can try restoring ta.img after unlocking bootloader and fash fw via flashtool but I don't guarantee it will work. XA and Ultra have the same cpu but mmc blocks may be different. If you wanna give it a shot I can pm you the guide.
[Sony Xperia XA Guides, News, & Discussion] HtheB:
I already unlocked my bootloader, but I took the TA backup before unlocking it.

So, hit me with the guide :p
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
The guide could be this: https://xdaforums.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893

I tried this tool, so far no success. If you have F3111 maybe would be easier if we "join forces" to work it out.:)

---------- Post added at 04:20 PM ---------- Previous post was at 04:18 PM ----------

Can you send me your guide as well, please ?
[Sony Xperia XA Guides, News, & Discussion] HtheB:
Ok, restoring the keys is working, but my root is gone :p

What I've done is:

copy the TAbackup.img to the root of your (internal) 'sdcard'.

Then go to recovery mode (TWRP)

Advanced > TERMINAL

enter this command:

dd if=/sdcard/TAbackup.img of=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/ta

Then power off the phone, do NOT reboot it!

Then flash your phone with the stock rom again with the flashtool (no need to check any of the check boxes when flashing)

Once done, unplug the cable and power on the phone normally

When booting, it should say something about encrypting, then the phone should boot normally again.
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
Why did you do that ?
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
"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".

After formatting data do we nedd to install stock rom again ?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
No, but make backup of important data before wipe (factory reset)
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Is anyone can make a dedicated guide on how to restore TA partition and relock bootloader? I will link it to my guide.

My guide is not up to date that's why I say "you can't restore TA backup" in it.

Now I know that it's possible to modify the boot.img to mount the ta.img during boot to have your true DRM keys and root, useful for Nougat because the DRM fix doesn't work on it. I can't try and make a guide because I don't have any backup of my TA partition :(
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
I need your advice, please.

I made TWRP backup. I wiped data to remove encryption. I can't restore data. It says that can't mount cache, can't mount data. Cant unmont cache - device/service is busy.

Finally when I got to restored succesfully and phone started to boot strange window came up: if you want to continue with your android please enter password. I entered whatever and it said: your password is OK but decryption failed to use your phone reset phone :crying: And one more my sd card was adoptable storage is it a way to see it and read data on it after my phone was reset ?

What to do ?
[Sony Xperia XA Guides, News, & Discussion] HtheB:
I can help you and test some things for you if you tell me what I should do so we can make the guide up-to-date.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
If the data partition is encrypted you can't make a TWRP backup of it that's probably why you can't restore it :) And probably causes the password problem.

You can't unmount or restore cache partition because it is used by TWRP.

I don't know if there is a way to see files on adopted SD after wiping data partition (never tried). Maybe with Ubuntu and some tools :confused:
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Thank you for trying to help but I need a device with TA backup in my hands to understand what I have to do exactly.
[Sony Xperia XA Guides, News, & Discussion] BlueTR:
Can you modify poc_ta to work with mediatek?
[MENTION=6151357]HtheB[/MENTION] tried restoring TA.img and he succeeded so we know the partition block
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
You quoted the answer of your question :) To modify the poc I need a device with TA backup in my hands.

The way to flash TA and relock bootloader was found some months ago ;) The problem is that you have to choose, root or true DRM.
[Sony Xperia XA Guides, News, & Discussion] MarkDBremijnse:
Cant enter TWRP recovery

Thanks for your explanation about how to root a xperia xa. I can do all the steps but I cant enter TWRP recovery. When I press volume up + power button, nothing happens. Could you (or someone else who reads this) explain what could be the reason?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Hi, I will answer you but please don't quote a big part of the guide.

For your question read the step 9 again ;)
[Sony Xperia XA Guides, News, & Discussion] MarkDBremijnse:
bootloop

Thank you for your quick response :) I got TWRP working. I followed the rest of your tutorial. But now my phone is in a bootloop. Could you tell me what I can do about it?
[Sony Xperia XA Guides, News, & Discussion] tictac0566:
Did you make sure you downloaded the correct boot.img for your specific device and ROM version?
[Sony Xperia XA Guides, News, & Discussion] ajon13:
DRM Keys

I have a doubt about the DRM Keys, i couldn't find how to restore the Keys anywhere, is it possible or not? If it is can someone please point a guide how to do it? Is it worth all the trouble?

So far it seems much easier use the workaround to reestablish the applications and features lost.

Thanks
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Hi, you tried to do a factory reset or format data partition with TWRP? It can solve your bootloop. If you use an old firmware you have to flash SuperSu before booting to Android.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
For now you can restore DRM keys and relock bootloader but you will lose root. The ta_poc doesn't seem to work on XA and I can't work on it (no TA backup). I will release soon a new TWRP recovery built from sources (3.1.0) because the author of the poc said to an user that a 64bits recovery is needed to work. It's not my opinion because we don't need it (the recovery is not included in the boot on XA) but why not.
[Sony Xperia XA Guides, News, & Discussion] MarkDBremijnse:
I think I did. I have a xa ultra f3211 single sim... Do you have a good recommendation for my phone?

---------- Post added at 12:26 AM ---------- Previous post was at 12:24 AM ----------

I think I did.. Do you have a recommendation for xa ultra single sim F3211?

---------- Post added at 12:29 AM ---------- Previous post was at 12:26 AM ----------

So flash recovery.img first and then boot boot. Img?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Hi, you have to: downgrade your firmware to backup your TA partition, update firmware again, unlock bootloader, flash boot first and flash recovery. "fastboot boot" doesn't work.
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
When we can get your new recovery (3.1.0) ? I am really looking forward to it.
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
I released it for Dual Sim yesterday, if you want it for ta_poc just unpack it and change the kernel with the one for Single Sim. ;)

EDIT: First page updated with links for TWRP 3.1.0 for all XA Single and Dual Sim.
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
Hi, you put too much faith in my android skills. :rolleyes: My humble request is; could you please release this new TWRP 3.1.0 for f3111 single sim. I would be very grateful for it. I do not want to change anything what originally comes out from Master and Teacher.
[Sony Xperia XA Guides, News, & Discussion] Andrzej_Andrzej:
New TWRP 3.1.0 XA SS

Hi rrvuhpg,

Thank you very much indeed for your time and effort put into making this recovery. Great respect !

From my side thank you again that I didn't have to do it myself. :)

Best regards,
[Sony Xperia XA Guides, News, & Discussion] tacobell4dayz:
cant get into twrp recovery mode ive tried every combo after i flashed recovery

ive unlocked boot loader by sony's way next i flashed twrp recovery img onto my f3213 and after that to root you need to flash supersu so i turn of my phone and as i try everytime by holding volume up + power or volume down + power it just normally restarts my phone like a normal phone would....please help because ive been searching for a week and trying every combo of buttons but it still wont load me into twrp recovery mode
[Sony Xperia XA Guides, News, & Discussion] miniboygr:
help2

evry time im install twrp recovery my phone is boot loop help

sony xperia xa f3111
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
how to mount phone storage on TWRP 3.1.0-0 single sim f3111

phone storage is no mount and any wipes how to mount thanx bro
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Hi, if your /data partition is encrypted you can't acces to the internal memory. If not, you only need to mount Data partition in TWRP to acces to the /sdcard.
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
thanx bro is ok storage thanx you :)
[Sony Xperia XA Guides, News, & Discussion] onspeedoh:
please help

08/042/2017 18:42:06 - INFO - Your phone bootloader cannot be officially unlocked

08/042/2017 18:42:06 - INFO - You can now unplug and restart your phone

08/042/2017 18:42:06 - INFO - Device connected in flash mode

C:\sdk\platform-tools>fastboot -i 0x0fce oem unlock 0xA8FCE6DA548B5543

...

FAILED (remote: Command not allowed)

finished. total time: 0.005s
[Sony Xperia XA Guides, News, & Discussion] rcallmann:
Another noob question I did this for to use it as a internal memory and removable media at the same time! https://xdaforums.com/android/software/auto-formatting-sdcard-to-internal-t3583875

Just need mount in internal memory sd right?

So I will be any problem to root my Xperia XA?
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
I don't know, I never used this but you can try and feedback us. Maybe an other XA user can answer you.
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
[MENTION=1461342]rrvuhpg[/MENTION]

Bro this is new update i am uploading FTF+FSC for you Android 7.0 for F3111 single sim

Please rooting boot.img and recovery.img

thanx you very much

here is upload: https://mega.nz/#F!jlZTlLzR!V57m-F4nGmnO3Yky-kmkWw
[Sony Xperia XA Guides, News, & Discussion] SALL666PL:
We count on you rrvuhpg
[Sony Xperia XA Guides, News, & Discussion] okhayko:
how to find FSC file? i will upload my F3116 2sim
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
Bro this post https://xdaforums.com/xperia-xa/help/33-3-0-127-t3622473/page3
[Sony Xperia XA Guides, News, & Discussion] rrvuhpg:
Hi all, why should I make the root for Nougat? Since near one year nobody offered me a coffee/tea/beer/energy drink for my work.

For me it means that nobody like my work and want to support me for all hours spent to try to make the device better and the community happy.

Maybe you can ask KingRoot, they only need your personnal data when you use their tool.
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
bro i buy coffe and drink and all

please help for root in nougat :((((((((((((((
[Sony Xperia XA Guides, News, & Discussion] SALL666PL:
Buy what you want coffee for tea and other drinks, but do rota / twrp / and kernel for XA pls: c
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
[MENTION=1461342]rrvuhpg[/MENTION]

Bro this is new update i am uploading FTF+FSC for you Android 7.0 for F3111 single sim

Please rooting boot.img and recovery.img

thanx you very much for you time and you hardwork for all user please helping brothers i love you ❤❤❤❤❤❤❤❤❤❤❤❤❤

here is upload: https://mega.nz/#F!jlZTlLzR!V57m-F4nGmnO3Yky-kmkWw
[Sony Xperia XA Guides, News, & Discussion] ch3mn3y:
There is already .fsc within FLashtool (today's added). It's better than one from my post as it includes one of .ta files (which is missing in mine). Not that it is important or will break the the firmware, but still.

+ I don't think that .ftf and .fsc is what he needs as all important are .kernel.sin and recovery.sin (if there is something like that, didn't check) and downloading whole .ftf and than unpacking it when You can use XperiFirm to download already unpacked .sins?
[Sony Xperia XA Guides, News, & Discussion] HEKER510:
I know it myself
[Sony Xperia XA Guides, News, & Discussion] Peuf:
Hi, I need boot.img to root my xperia dual F3116 running android nougat
[Sony Xperia XA Guides, News, & Discussion] okhayko:
Here is my FTF+FSC file for F3116

https://mega.nz/#!FfA13BTD!DTE1nu9fivgf6wkZgY07cin4tnTY0sfUvAI1V-cpieE
[Sony Xperia XA Guides, News, & Discussion] EternalRageX7:
I am using XA ultra running official sony nugget 7.0 so what did u change or edit in the boot.img? so that I can try it with the 7.0 one, if I can even find the location. Im just really desperate for root right now. F3216 model.
[Sony Xperia XA Guides, News, & Discussion] Peuf:
What is FSC file and what is it mean for?