yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SeaMax:
Well, at the moment i would advise against flashing any sony android 9.0 firmware update to your device.

I downloaded the latest firmware for my device with xperifirm and flashed it with newsflasher and it bricked my device.

Later i read on the sony support forum that flashing sony android 9.0 to an unlocked device (as if you could flash to a locked device -.-) it will brick your device.

My mistake was, that i didn't know the sony versioning schema and that 50.2.x.xxx / xxx is android 9.

Also TWRP won't work (right know) once you flashed sony android 9.

So if you want to flash LOS, don't update to sony android 9.

Edit: You need to check Xperifirm what version sony offers for your device region - lot's of regions are still on 8.0.

But also apparently you can brick your device if you DON'T do some kinda firmware update (see post #2 in this thread).

Untill it's clear what part of the sony firmware up to what version you NEED to update before safely flashing LOS i'll wait with custom roms on this device.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
If you have only been on the official stock ROM, you have the latest (not 50.2.x) official firmware on your device. In that case you do not need to use step 2 of the thread. Which means you can safely flash LineageOS and completely skip step 2.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
Be warned that the moment you unlock the bootloader you irreversibly lose certain DRM'd software functions. Most significant is you lose Sony camera postprocessing, and your low light photos will be awful. I state this because you mention you are new and it is your first post. I really think this should be made clear in the original post here, and ofcourse it would be even better if this was made explicit on Sony's unlock website. The warning on Sony site is vague, an honest warning would say: "YOUR LOW LIGHT CAMERA PERFORMANCE WILL BE SIGNIFICANTLY AND PERMANENTLY DEGRADED. DO YOU WISH TO CONTINUE?". Yes, in caps. Instead you see this:

For devices running recent software versions, for instance Xperia Z3, the removal of DRM security keys may affect advanced camera functionality. For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected.

https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/#warranty

"may", "affect", "might".... that is dishonest. Also no mention of irreversibility...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] boondawg:
That's what I thought but I still ran into the bluetooth/wifi issue after install and found the answer here that there're 2 slots and one of them is buggy.

After following the instructions and flashing firmware with newsflash my device was bricked (still dunno what I did wrong).

You could give it a try and in worst case just flash any update twice so it lands on the right slot. Also be aware of loosing low-light correction alg. as mentioned in the post before.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I already have LineageOS. Didn't do step 2. Fortunately everything works well.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] cojocar.andrei:
It's a bit scary how easily this phone bricks. I have one, momentarily locked (waiting for now for some exploit to save the drm keys), but watching closely the dev for this one. So the question is: are the steps from page 2 100% safe if the phone is on oreo or the procent is lower? I noticed that the other more customizable roms seems to be abandoned, is someone planing to build a more customizable rom (aex, rr, aosp extended, etc). Thanks a lot for keeping the dev alive...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Stats wise there are more people who have done step 2 successfully than ones who have not. Also, like I said earlier, really evaluate whether step 2 is really required in your case. You could save yourself a lot of trouble if you don't need it. If the drm keys are that important to you, better to stick to stock. Oreo really isn't that bad.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
Did you do a full reboot after flashing the first slot? https://github.com/sonyxperiadev/bug_tracker/issues/342
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] boondawg:
wow...so many loose threads to connect^^

ok, got it. This is till now the most expensive "didn't read it carefully enough" of my life.

Thanks for pointing it out to me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] msl400:
Display rotation

Updated today from LOS 15.1 to LOS 16, since then the display rotation doesn't work anymore. Rotation is activated, but without success. Can someone please help? Thank you
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Ping me on irc or discord ( see my signature )
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Wireless display should be working starting from tomorrow's build.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dr.Horstl:
where to get old firmware from?

Hi

Could anyone please tell me where to get the 50.1.A.13.123 firmware from?

I'm on stock, the bootloader is still unlocked. I upgraded to 50.1.A.13.123 via OTA. That means, I got the right firmware in one slot. But how do I bring it to the other?

XperiFirm provides, as far as I understand, only the actual firmware, 52.xxx... (=Android 9). But, as pointed out in previous posts, TWRP does not work once stock android 9 is installed.

Theoreticaly it should be possible to dd something, but what exactly?

Thanks in advance
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Just download 50.1.A.13.123 for some other region.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dr.Horstl:
Thank you for your advice. I downloaded

50.1.A.13.123/R11A

1312-1449 France Customized

instead of

50.2.A.0.352/R1B

1312-2606 Germany Customized

and will report if it works.

I'm on stock. I guess, I would be better not to remove the files as described under 2. in post 2?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
If you're on stock then you can skip #2.2.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Anyone wonder why Trebuchet supported icon packs on LineageOS 15.1 but not on 16?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dr.Horstl:
Flashing the firmware of an other coutnry worked for me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Hi So I got an Xperia XA2 with latest Oreo on it.

After step #4 the phone is bootloop, and the Sony PC Companion is unable to repair it, just keeps rebooting.

The phone no longer connects with blue light, but there is red light on.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Any of you folks tried using Substratum on your phone? I have magisk installed, downloaded a pie compatible theme and when I compile a theme, the substratum app says it was done without errors. However when I restart the phone (which is mandatory now after compiling a theme), there are no overlays visible in the substratum app.

A Google search showed some other people were having trouble on LineageOS 16 too, but didn't really find a solution.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sugarfig:
LTE Data but missing Voice

Hi, I'm using 16.0-20190509 along with firmware 50.1.A.13.123_R15A (from XperiFirm) on both slots per the instructions found here: https://xdaforums.com/showpost.php?p=78973496&postcount=2. Things seem to run okay except mobile voice. I can get mobile data LTE, but there is no voice network.

I do have an IMEI, but if I change APNs or network preference, the IMEI goes away and is replaced with MEID 00000000000. Resetting the Network Settings restores the IMEI. In both cases there is data, but no voice.

Was this a misconfiguration on my end, or possibly a bug in the nightly?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Assuming you're on Verizon you'd probably need VoLTE for calls which doesn't work on my builds and I doubt that it ever will.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sugarfig:
So although the Xperia XA2 is supported, Lineage won't work on XA2's on Verizon? What about US Mobile (running on a Verizon backbone)? And why am I able to get LTE data... but not voice network service? Would that be included in your VoLTE comment?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I didn't even know that there was something called 'US Mobile' lol

As long as your network does not require VoLTE you should be alright.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sugarfig:
Ha yea. The US has a number of smaller, "build your own package" companies that backbone off the larger ones. Really tho, there's only the big four.

So, I've got an IMEI number, the SIM recognizes my phone number, and I can get LTE data... however the "Mobile voice network" is "unknown", and I cannot make calls. Just trying to figure out if I should roll back to stock, or wait for a future LOS build.

Would this indicate an outdated modem firmware, a botched LOS install, or something with this particular nightly?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Don't you think the original post should have been edited to include that information; instead of commenting on post #746 ? I mean, you are a smart guy...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sugarfig:
Just confirmed with US Mobile that VoLTE is required, so I guess I'll be reverting to stock. Boo :(
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Oh not really, removing these files doesn't really hurt tbh.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Well, imagine a dumbass who got his phone soft bricked following the post #2. PC Companion was not working. Newflasher was not working. Got phone flashed by Flashtool to work, but flashed Pie.

Then TWRP is not working, says FAILED (command write failed (Success)); and some post says TWRP won't work for Pie, another post says with unlocked bootloader, flashing Pie bricks the device.

None of that is on the LOS wiki. The original post here is not edited to have these key pieces of information.

And I have a phone with unlocked bootloader, on Pie, and apparently can't install LOS because can't boot TWRP. Newflasher is by a kid with little or no documentation. You see no issue?

Can you see how many hours/money can be saved by just editing the original post? Would probably take 30 seconds?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
And how would adding "you don't need to remove these files if you're on stock" help one in this case?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
It could go something like this:

you don't need to remove these files if you're on stock

* Wait, I bought this phone used, may be I should check which version was stock?

* Huh, "if you are on stock"... What else depends on whether you are on stock, or, not?

* I should probably ask question xyz before proceeding, just in case!

* Hey! Does TWRP work with both stock and latest version? Better check that too.

I'll drop this here. My bad. It's the user's fault. :good:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Never hurts to have information upfront that could be useful.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
Just my 2 cents: It is generally best to assume the newcomer has little experience or insight and to be as explicit as possible with instructions and warnings upfront.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] JanJabko:
I am noticing a behaviour I can't understand. After an update from the Updater and the associated reboot, GPS locks within seconds, locking to 20 or more satellites. When I a reboot manually, a GPS lock needs 2-3 minutes and less than 10 satellites are found, and not from all systems. Can someone reproduce this behaviour and / or is there a fix I can apply?

N.B. No Google installed, connections to Google ASN blocked with Afwall, so AGPS data is not loaded.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] cojocar.andrei:
Is someone willing to build a more customizable rom (aex, rr, aosp extended, etc)?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
maybe you can try Project Treble.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] cojocar.andrei:
I would gladly do it because for a long time I wanted to learn how to build a rom, but unfortunately having a 1yo kid is taking all of my time and some additionally... God they are exhausting....
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] JanJabko:
It seems my observation was incomplete or a bit random. Updated today to May 14 and after the reboot the GPS did not get a quick lock.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andariyel:
Hey i have the Buildnumber 50.1.A.13.83 on my Phone should i upgrade to 50.1.A.13.123?

xdaforums.com/xperia-xa2/development/recovery-twrp-3-2-1-0-touch-recovery-t3774193 is it okay to use this Recovery to flash this rom?

Can i install the recovery or is it better to use it Temporarily?

greetings
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
LuK1337 please advise on my options:

* I have bootloader unlocked H3113

* Android Pie is installed (via Flashtool)

If I do fastboot boot twrp.zip,

I get black screen -- XDA says it's related to Jdi display

Following above guide on my XA2, any wipe command I run (for example twrp wipe cache) give error that it can't find such partition

That's where I am stuck.

Please confirm:

Will the method to install LOS16 only work on phones on Oreo?

If yes, can I flash Oreo stock ROM on my phone using Flashtool (currently it's on Pie)?

Or do I need to wait for a TWRP version that would supports Pie? Meaning screen won't be black.

Does the JDI display bug only happen with Pie? Seems that way. Can you share any details on that?

Basically, my options.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
how did you flash 50.2.A Pie firmware via Flashtool, could you share your .fsc file, thank you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
I went to Github page and used the .fsc file for my device, which was here.

Then created a folder in the devices folder with same name as in Github (H31XX).

Then renamed the file 50.1.fsc to 50.2.fsc.

Then restarted flashtool and it worked fine then.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
thanks for reply.

i've also done the same operation as yours, but i bricked my phone (until i send my phone to Sony factory)..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Bricked in what sense? What happens?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
and then, my phone was bricked, cannot startup and screen display was not normal, there's no normal display images of a phone.. (sorry for dont know how to correctly describe the images).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Is it like this? : https://drive.google.com/file/d/11flP5PnLD9WZGzutVyRKnFKoQ5WLLWsi/view
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
YES!!! just is it! i've met that issue, is all the same.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Okay, well I'll DM you as well.

If you are able to solve the issue, you must tell me how. Or any new information you get, share with me.

If I have any update, I will share with you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
same here. tried emma, newflasher... they all flash the device and I can see the upgraded/downgraded version, but no luck with fixing the display problem.

official service refused for repair it, they offered me display and mb replacement for about 200eur.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Interesting they offer display as replacement in addition to the MB. I wonder if the display is damaged. Mine does get hot from bottom lip if I keep it on for couple of minutes.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SGS3_0:
Google Camera 5.1.018.177624777 works wh Sony
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] churchner420:
Flashed the latest build 28/09 and Bluetooth is force closing all the time, can't get Wifi to work either... Smart Lock not working too... ? Any fixes for that?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Zillinda:
Same on my phone.

Edit: Same on 27/09 and 25/09 version.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Yes but you dont get the benefits of gcam. Due to Sony's lib and hal3 implementation
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Zillinda:
On the new build of 09/10 also bluetooth crashes instantly. Anyone got the same problem or a fix?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
You could get logs and me or the developer could help. adb logcat > bluetooth.txt . nothing will happen it will a be a command . Don't do anything then re enact the action of the bug . Then press Ctrl C . Then we can help.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] koenvds:
Working great

No issues with the 09/10 version. Everything works fine till now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Goofee:
Hi Luk.

Just came to say thank you. Last two builds 1009 and 1015 worked nicely. However it took me like 10 os installs and a couple of camera installs to figure out I had to enable storage for apps in developer settings.

Gallery and camera app kept telling me I had too little internal storage and I could not pick an exact path for sd.

Substratum doesn't apply anything.

I am now on 1015 version and I noticed root option disappear from dev menu. I have Magisk installed and the addonsu from official lineage also tried supersu, 2.28, I believe. Magisk claims there is no su installed but I get a su notification upon certain app startups.

Didn't have these problems in previous build.

How would I go about upgrading to any follow-up builds? Or will I have to reinstall?

Again, thank you very much for your efforts.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>How would I go about upgrading to any follow-up builds? Or will I have to reinstall?

The very same way you installed it, just don't wipe anything this time around.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Goofee:
:) thanks

I have two more issues:

I installed open gapps mini and Google pixel hangs during setup. Previously froze the app since I didn't need it anyway and that did the trick. (hangs trying to contact Google play)

I just noticed that I don't have any dtmf tones when making calls. Neither in Google dialer nor in exdialer. I wonder if I am the only one experiencing this or is there again some setting that I am missing?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Nope you are not the only one with this issue. I dont have my xa2 currently but I did notice yesterday. Could you please do adb logcat > phonecall.txt and upload the file so I can have a look .

Edit : Install latest Version Works fine :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Goofee:
Will do in a little bit. Slept in today. I work at a school in Germany and we currently have autumn holidays.

Edit:

did adb logcat > phonecall.txt and it gives me:

/sbin/sh: exec line 1: logcat: not found

Installing latest release now.

Indeed it runs fine. DTMF tones working now.

As a matter of fact everything installed and runs fine.

Only thing that's not working, and I'm sorry I didn't mention it before, is the camera button. Don't necessarily have to have to have it either.

You're really doing a great job. I hope more people get to appreciate your work (looking at the number of dls at sf /afh).

Very happy, thanks for fixing this so quickly. :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Shervrar:
>ROM OS Version: Windows 8 Mobile

wut
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] logg84:
Do you think camera quality is same as stock camera? For me It is worst...but i don't know if It is only my impression.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
It is worse because the camera is designed for the Sony camera ? Nothing else
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] nsbandara:
Dual Sim

Will there be dual sim version ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
If someone ( eg: you; not me ) fixes it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Do you have the logcat files ? If so can you send them please
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I've looked at some like 2 months ago. I would prefer to look at .patch/diff files instead.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Goofee:
I only noticed that stock camera picture was quite clear since I only had stock rom for about 2 hours upon delivery. It had some really bad line flicker on my pc monitor which is not as bad with open camera. I used to have "a better camera" which has some nice feature but shows a whole lot o diffusion from artificial light.. Must say that open camera does it for me.

Edit: btw I got the button fixed on mine - searching the settings certainly helps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Guys, 1st time magisk user here. So please help out a noob.

I have 19.1 installed along with the manager. Just got a notification that 19.2 is available. Can I let the manager download it and update it automatically? The reason for asking is the A/B partition and wondering if that would be affected if update is done via the manager.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
I have always updated Magisk through Magisk Manager app and I have not encountered any problems by doing so.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
I second that.

This is also my first a/b device, and damn are some things weird. But at least magisk seems to have taken it all into account. Updated many times, never had an issue.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Hi all,

first of all: thanks [MENTION=5075128]LuK1337[/MENTION] for providing LineageOS 16.0 for this device!

I am familiar with installing custom roms on several devices (motorola/samsung), but I am new to Sony Xperia XA2. After I have been reading this thread and others (twrp, lineageOS device page etc.) I am more confused than before. ;)

I have some questions on installing LineagesOS 16.0 on a Sony Xperia XA2.

My device is a H3113 with installed build 50.2.A.0.379.

After reading all the threads I am not sure, if my plan to install the custom rom is correct:

1. I have to unlock the bootloader (what I did already with the instructions on the sony website)

2. Installing twrp. Following instructions here.

Does this install twrp permantly or do I have to run it every time, I want to enter recovery, e.g. to make a backup?​

3. Install custom rom and GApps as mentioned in post #1

Do I have to boot the phone after installing the custom rom before installing GApps, or can I install them right after lineageOS?​

4. Install magisk.

Is it possible to install magisk right after GApps?​

Is this plan to install lineageOS correct?

I am a bit confused about post #2. In what case do I need to run all these steps?

Do I unterstand correctly, that I can not install LineageOS 16.0 on the mentioned device at the moment?

Thank you all for your help!