yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mjaxa:
Dzięki!

That was rather helpful, so maybe from another angle ;) - how to flash latest TWRP to XA2 so that it is permanent?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] steveglowplunk:
Any updates on this? The latest version, twrp-3.3.1-6-pioneer, still won't prompt me for password for decryption. I'm still running LOS 15.1.

...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Uh, I don't really care about 15.1 decryption. 16.0/17.1 decrypts just fine tho.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] steveglowplunk:
So I must stick with the old version of TWRP? :(
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
That's up to you. You can always upgrade your phone...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
Hi,

with which android version can i use twrp 3.4.0?

Flashing .zip ends with error 1 (screen 1) &

flashing via fastboot failed too (screen 2) &

bootloop fix failed also (screen 3).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
That looks as if twrp didn't like one of your boot partitions...

I guess you can dd boot_a to boot_b and retry.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
I don't know what you mean, i never used dd commands.

Could it be magisk's patched boot.img?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Actually I guess you can flash any valid boot image to boot_b and then retry.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
Flash boot.img to slot_b & install twrp on slot_a again?

When try to flash twrp on slot_b comes error failed to mount /vendor &

failed to mount /firmware
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Who told you to switch slots? Stay on working slot then flash something to boot_$other and twrp should now be able to install
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
A long way, but it works now.

I dumped my kernel from slot_a

dd if=/dev/block/mmcblk0p38 of=/sdcard/boot.img

flashed kernel dump via fastboot to slot_b

fastboot flash boot_b boot.img

booted temporary into twrp

mounted /vendor &

followed your instruction on twrp.me &

at last i flashed magisk again
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moderom:
1

before "clean" instalation new rom:

Wipe > Advanced Wipe > Dalvik Cache/ART, System, Cache i Data

next:

Factory Reset, then Format data / factory reset

Does the order matter?

2

Is it worth to use TWRP prompted by dalvik after installation?

3

The Reload Theme option from the TWRP Advanced menu is reversible? I would like to get rid of all Sony add-ons ; Sony theme and info about "checked for corruption".

4

After installing LoS 17.1, "Recovery by LoS" jumped in place of TWRP. I didn't even use the recovery image file:

lineage-17.1-2020xxxx-recovery-pioneer.img

Can I upload TWRP again and the system will not fall apart?

5

What does the triangle with the letter F on the first page Recovery loS, mean?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Well u can put twrp back to your device.

It works for almost all devices with A/B partition.

Download twrp.img and twrp.zip of your device.

Put your device in fastboot.

First we boot twrp.img in fastboot.

NOTE: Do not flash twrp.zip or else your device will not boot.

fastboot boot twrp.img

It will take u to twrp then flash the twrp.zip from install option in twrp.

Reboot your device to recovery.

It should take you to twrp.zip version.

This will install until you flash another system or u update rom from twrp.

NOTE:

1. If you flash by mistake then flash lineagerecovery.img in fastboot.

2. The lineagerecovery.img will work perfectly if u have erased the boot partition and it will show that your device is corrupted. By flashing lineagerecovery.img you will be able to boot back to your system without errors and without loosing data if done properly.

3. Lineagerecovery.img can be flashed to any rom.

U can also follow from the twrp website of pioneer the way of installing is different. I have not tried it. But I told works (at least worked for me).

Read it carefully

http://twrp.me/sony/sonyxperiaxa2.html

The twrp is also maintained by the LuK1337.

Loving what he has been doing to the XA2 devices.

Thank you LuK1337 for all your efforts and hardwork.

I am saying this according to my experience.

Please let me know if I am doing anything wrong or told incorrect.

Thank u all hope it works for you all.

Feel free to correct me if wrong.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Sir [MENTION=316263]lukk[/MENTION]1337

I cannot install or even boot the twrp on pixel experience plus rom for pioneer

As to my knowledge recoviers are independent of the rom installed so I think it's a bug or problem in twrp

Whatever I do let it be

fastboot boot twrp.img

It doesn't boot

It goes to twrp first screen where it shows twrp logo and the version which is before the encryption (doesn't work even when there is no lockscreen set)and doesn't go ahead.

Tried

fastboot flash boot

still same result

Even flashed the zip file through pe recovery

Nothing showed me some ahead than that screen

I tried everything didn't work

on other rom it works fine

Don't know what is specific for this rom

Please help me sir I want your help with booting twrp

Thank u sir I hope you listen to me
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
It'd need a lot of effort for me to make it work since sodp based builds are using different kind of encryption...and frankly I couldn't really be bothered to care about that.

( unless i figure out how to skip enc based on /boot kernel version in reasonable time )

EDIT:

fastboot boot this: https://f.kremowka.xyz/get/fda815ad-4f2f-4e11-b7d6-fd665702ff28, if it works that's cool if it doesn't then I don't feel like trying harder.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Ok I will try but what is the file above it shows to download some 30mb file which has some random letters and numbers
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
fastboot boot filename-goes-here
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
So is its a boot.img right?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Do I really have to answer that question?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
???? Sorry

---------- Post added at 06:34 PM ---------- Previous post was at 06:29 PM ----------

Sir u r on telegram?

As Sony Xperia XA2 pixel experience builder are there

Can u find solution there
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Sorry, not joining any telegram groups. Did you test this image?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
sir I not currently on pe or pe+ so I don't know it will work or not

But on current it booted twrp.3.4 but I was running it as my current recovery so it is kind of unsure thing

Will say it as soon as I Boot to pe and its going to be soon as there is going to be a new update.

I sent the link in telegram to pe Sony Dev's and told then that u sent it and if someone is using pe can test and say me so that I can say u

Sir I asked Sony Dev's and they told that to get what u want they should rebuild or something like that in short a long process.

So if they say me anything I will inform you sir.

Btw thanks for listening to me
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Ya tested it booted but didn't decrypt

The internal storage bas with folders of random number and letters.

Any other way?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Good, that's what was supposed to happen.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Isn't there any way v can decrypt ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Not without me doing additional work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Will u do sir?

Please
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] steveglowplunk:
Hi. What's the button sequence for booting into TWRP if I had installed it using the installer zip?

I used to have the same issue but the latest version (twrp-3.5.0_9-0) can properly decrypt internal storage now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
Shutdown your device &

wait a few seconds.

Now press&hold volume down button & now press power button till sony logo shows up,

now release power button &

hold volume dowm till twrp is booted
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] steveglowplunk:
Just installed TWRP (twrp-3.5.0_9-0) via the installer zip. But when I press power + volume down button at the same time, I get one vibration followed by three more vibrations. The screen stays blank. Thankfully I can still boot into android normally so the phone isn't bricked.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
Sry my mistake, I corrected the procedure
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] steveglowplunk:
Thanks, it's working great now :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Arbaazhussain:
Sir can u add addon survival script please

After every update the boot.img of rom is back

So addon survival script will restore it

Please
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Ksix007:
I found a big bug on latest version (3.5.2_9). I maked backup before update my LineageOS, after, i needed restore the backup where always freezes on ''restoring system image''. During all weekend i tried for many times and ways but no avail. So, i decided donwload an old TWRP version (3.3.1-6) and finally restore my backup successfull!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MysticEnforcer:
After installing version 3.6.0 zip I get a bootloop
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] dolorem:
same here - booting to twrp image, flashing install zip in twrp and rebooting to system always boots back to twrp, never to system
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] lobotron:
Hi there, I ran into a problem booting my pioneer after upgrading los 19. Than I tried reinstalling with TWRP, twrp-3.7.0_9-0-pioneer.img, but it does not boot the OS, always returns to TWRP. Installing TWRP via TWRP works fine though. Decrypting unfortunately doesn't work so far.

//edit: Ok, it's not a big surprise an Android 9 Recovery does not support the newer ones, but at least it helped me out flashing an additional package lineageos recovery didn't. It's a pity it's not an option, but at least it switches slots reliable. At least I must say I miss TWRP.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MadMaxPN:
Hello, i finally decided to move from stock to custom rom, i have Xperia XA2, model H3113, and first to flash TWRP, and my question is on what firmware version do i have to be, im on android 9, latest version (50.2.A.3.77), do i have to downgrade to another version ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
No, you don't need to downgrade. But if you just want to install LineageOS, use the boot.img provided on their download page instead of TWRP:

https://download.lineageos.org/devices/pioneer/builds

LOS install instructions for pioneer/Xperia XA2:

https://wiki.lineageos.org/devices/pioneer/install
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MadMaxPN:
Should i go with LineageOS 19 or Pixel Expirience 13 ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
LOS 19.1 for the pioneer/Xperia XA2 has been superceded by LOS 20.0 so you should go with that. LOS 19.1 won't receive any more updates.

If you need Google Play services compatibility you should try a ROM with integrated microG like iodéOS:

https://xdaforums.com/t/rom-xa2-a12-iodeos-lineageos-19-1-microg-adblocker-09-11-2023.4138575

Or LineageOS for microG:

https://download.lineage.microg.org/pioneer

Both are still based on LOS 19.1 but will soon be updated to LOS 20.0. You should wait for that update otherwise you'll have to reinstall in a few weeks to receive new build updates.

If you don't mind Google apps and their behavior at all you could also go with the unofficial(!) PixelExpirience Plus I guess. But it's unclear how well it'll be supported in the future (one man show?).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MadMaxPN:
I 'll guess i wait than for LineageOS 20, thanks for advice
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MadMaxPN:
When i flash twrp do i need Fix Recovery Bootloop option, and wipe data before i flash LineageOS ?

And also after flashing LineageOS do i need to flash zip file for partitions, or before (im going from stock rom)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] asdf2345:
How do I mount /oem and /vendor/firmware_mnt?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tokoam:
H3223
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jimzhong:
It works on H3123, the US version of XA2.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
Indeed, the main drawback to the US version, is Sony's flashing tool 'Emma' doesn't support this device. Other than that, it seems TWRP for pioneer, magisk root, xposed, and soon Androxide's Flashtool will work with the US version.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Hello,

How do i uninstall xposed if i softbricked my xa2? I cannot use the installer via twrp because it says it cannot mount system
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
What's the model number of your XA2, and how did you manage to soft brick it?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Meloferz:
Yeah... Bad for Sony to do that, but after Flashtool is released we will no need EMMA anymore and even for the supported versions.

Question... Someone that bought before a Xperia from US knows if double tap to sleep works activating from Xperia launcher?

Because got today my Xperia XA2 from USA and there is no option to turn it on [emoji852]️

My previous phone was a Xperia X from USA but I flashed customized GEL and had that option

Enviado desde mi H3123 mediante Tapatalk
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
I have never seen that option on this device, only on custom kernel devices. Possibly when we get more development, someone will make a custom zip to install
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Meloferz:
Probable is a feature for Customized GEL

Edit: this is from my Xperia X bough from USA but flashed with customized GEL
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jimzhong:
I did not find such an option on H3123.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Its H4113, i went to install xposed via the application but then my phone got stucked in bootloop.

I tried using the uninstall zip but it can't mount the saystem in read/write, if anyone knows a zip for this phone only or ther A/B partition devices, please let me know.

Or maybe if you know how to relock the bootloader, i'm not sure if i should do it using the official unlock method as everyone else were posting flash tool methods(flashtool won't relock)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
I'm hoping you made a backup in TWRP that you can restore. That would be the easiest way to undo any changes that were made during the process, without losing any data. The first thing I did once I got everything working was perform a full backup. I now have GravityBox mod so I can reboot into TWRP when I go to restart my phone.

So you installed Xposed via the Xposed installer and it bootlooped? that's Interesting.. I installed it through the Installer app without any issues, but mine is the H3123, not H4113 like yours.

You can always download the stock firmware with Xperifirm and flash it with Emma Sony Flashtool.

Next time you load TWRP, make a full backup man!

EDIT: If the system isn't in read/write, that's because you have to choose to allow changes to the system when you load TWRP, it should prompt you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Yeah so a quick story, i was constantly making backups on my older huawei p10 lite but when i bricked it the backup restore made it worse, i'll backup on sony devices if it doesn't break after but ok, thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
I don't think there's any way to undo the bootloader unlock. Only flashing stock firmware is the closest thing.

Try loading TWRP and choosing to allow modifications to the system (not read only)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
It didn't ask me to allow changes, it just boots me into twrp, asks me to decrypt my data and then no modification question, magisk got installed normally so idk.

---------- Post added at 07:25 AM ---------- Previous post was at 07:12 AM ----------

Wait EMMA downloads the firmware itself, apparently I downloaded the firmware using xperiFilm for no reason...unless i can tell it to use XperiFilm firmware?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
I didn't know if Emma downloaded it or not sinxe Emma doesn't work with my device, the H3123.

Before you do that, you could go to mount in TWRP and try to see if you can mount the system partition and make sure the box that says read only is unchecked, then try flashing the uninstall zip. if that fails to un-bootloop, you can flash with emma
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
I already did with emma, i can't backup the system either, for some reason the system partition is encrypted or sth, i'll just try magisk xposed because i can get the magisk uninstaller/installer working
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
That's odd you can't backup the system. I've made 2 complete backups so far, and I was able ot install Xposed and GravityBox module, which allows reboot to recovery on the power button menu (along with screen record)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Ok seriosly what the hell, now magisk is messing up, it was working fine earlier but now whenever magisk is installed, i boot into the system, i can only see the power menu
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] pandimech26:
yesssssssss :) TWRP and Xposed working in XA2 ULTRA H4213.We can Flash Magisk.zip for root:good:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Drenyx:
I'm sure this has been answered before somewhere through the course of general (non-device specific) questions but hopefully someone will be nice and share with me. I've been running 3rd party software for 5-10 years on multiple devices with flashing mostly done by way of TWRP (THANKS!). Last 2 1/2 years I've been enjoying running stable and timely released software thanks google on my nexus 6p.

I haven't used the backup/restore functions so much. I picked up a new SD card and currently running a backup of all partitions with TWRP booted but not installed. My concerns is with my US version XA2 ultra, it sounds like I need to use newflasher to somewhat recompile or reprocess the code downloaded via XPerifirm before it will be flashable. This sounds like more steps that can go wrong compared to what I'm used to.

For now I'm planning to after backup do the twrp zip installer, then install magisk. If something goes wrong I should be able to fastboot boot twrp and restore the boot partition I backed up and be back to stock?

Appreciate the answers in advance.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
Newflasher simply takes the firmware you download from Xperifirm and flashes it to your device. it's useful with bootloops and firmware upgrades.

backup your data so you don't lose it. I don't recommend sideloading the zip; it's really not necessary and won't help you in the event of a bootloop; you will still need to fastboot boot the img. Besides, if you sideload the zip, you will have to flash magisk and xposed over again

If you use Xposed, i recommend holding off on upgrading firmware until a new Xposed comes out that doesn't cause a bootloop. I made that mistake, and now I can downgrade my bootloader firmware but my baseband is stuck on the latest firmware, which will cause a bootloop if i try to downgrade.

---------- Post added at 08:16 AM ---------- Previous post was at 08:10 AM ----------

for me, flashing Xposed bootlooped, after upgrading to the new version of firmware. Then when I tried to downgrade, bootlooped because I'm stuck on the new baseband. Then I flashed the new stock firmware again, booted up, then i just tried to flash magisk in TWRP, and it bootlooped again. So i restored the userdata backup i made, and it seems the magisk stopped working due to some sort of corruption in the userdata, because it's working again now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bloodclot:
I was able to install magisk version of xposed with no issues and the installation was verified by xposed installer apk showing green. I didn't do any further tests with xposed modules, I ultimately had to remove it because it makes you fail safety net
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tokoam:
hello all I have sold my phone and need to set it back to factory spec including the bootloader how do i relock it ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I don't think you can relock it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tristan_2468:
Warning, I just tried to fastboot boot this on my H4213 and it displayed some errors in red before going into a bootloop.

I cannot seem to get out of this bootloop now.

Does anyone have any ideas what I can try?

I did not flash the image, only used fastboot boot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mchlbenner:
Once the Sony xa2 and ultra bootloader is unlock you can't relock.

Just unroot if want and tell the person bootloader is unlocked.

Personally I have sold rooted phones with out any problem.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sonyalmarshad:
i have Sony Xperia XA2 Ultra H4213 rooted thanx to [MENTION=1058356]mchlbenner[/MENTION]

but the problem is after flashing the twrp recovery it stucks in recovery it doesnt logon the system , always goto recovery mode..

any solution ??
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
go the reboot menu, and select slot A
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sonyalmarshad:
its already selected
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
did you fastboot flash boot twrp.img or fastboot boot twrp.img

if you flashed it, you need to use unsin to make a kernel.img from the kernel.sin in the stock firmware from Xperifirm, and fastboot flash it because you may have flashed the twrp to your boot partition
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sonyalmarshad:
Thank u soo much for ur kindful help and i appreciate it..

i just finished flashing my phone starting from the scratch , becuz i wanna know where is my mistake to avoid it.

for entering fastboot :Phone off + Volume Down+ Connecting the USB to the laptop..i'm using Flashtool in this case becuz flashtool not yet supporting flash mode for XA2 Ultra..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] piezan:
is there any coming back from the bootloop? i have to flash stock?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
yeah flash to stock and then don't install Xposed (magisk works)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] piezan:
thanks for the help again, can i use the twrp to flash stock? also how do i get stock firmware.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
you will need newflasher:

https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426

and Xperifirm:

https://xdaforums.com/crossdevice-dev/sony/pc-xperifirm-xperia-firmware-downloader-t2834142

Sony's Emma Flashtool works also, but only on some devices. Newflasher works on the H3123, Emma does not.