yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Stmu55:
Dead too

Have a similar situation. Saw the same behavior as above and then put the phone into flash mode. Was able to flash an image with Emma and then go to flashboot mode. In flashboot set the active_slot to b. After that, the phone is entirely unresponsive. None of the normal button commands work (Pwr + Volume up/dwn and usb cable connect, or Pwr+Volume Up to simulate a battery disconnect). Hard to believe that it is a motherboard problem, but it could be. With a bricked phone the next alternative may be to open it up and physically disconnect the battery...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] skkayman:
All the buttons works, I can press Pwr+Volume Up, phone will vibrate and a few seconds later, three vibrations (this is battery disconnect?). Also I still can connect it to Emma and flash stock firmware which I did now before getting it to service so the phone is clean and without my stuff. It does not seems to be bricked :).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
in my guess, you cannot flash 50.2 Pie firmware, or you'll flicked your screen. but weirdly you can save screen by booting into 1d66175c twrp..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] piwei:
Updated XA2 to

I have used my XA2 for more than two months, with LineageOS 16.0, without any problems.

Today, I updated to the latest update (dated June 21st), using the builtin updater (as recommended on the lLineageOS Wiki). Same procedure that I have already done a few times, since I have the phone.

Today, this resulted in non-working SIM & WiFi . (SIM card not detected.)

I found some posts about updating (or downgrading?) firmware, with pretty scary instructions that I didn't really understand. How can I check, what firmware the device is currently running?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I have faced that once. No working sim and WiFi after update. In my case restarting the phone with a gap of 5-6 minutes about 3-4 times fixed it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] piwei:
Thanks for the hin, unfortunately that did not help in my case.

BUT, since I installed the first update (which was called 20190621), the next update appeared (20190622). I now used the push-update.sh script to copy it to the phone, and installed it from there. After a restart with that update, everything seems to be back to normal.

(The only strange thing is, that this 20190622 update still shows "Install" in the list of available updates. But I'm happy to leave it at that...)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I am thinking of having a fresh install of LineageOS on my phone with a smaller gapps package. Since I want to flash a smaller one, I assume I need to wipe system, etc. Can I simply boot twrp, wipe system, data, cache and then sideload LineageOS and the smaller gapps (with a reboot between the two of course)? Do I need to worry about the A/B slot for this?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
[MENTION=5075128]LuK1337[/MENTION]: Does that mean, that the phone should start on both slots a running system when I am switching manually between A and B?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Assuming you have working system (eg lineage) on both slots, yes.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Ouh!

I have a running stock oreo on slot A, which was downgraded like described here, because I had that problem with the flickering screen.

When I manually switch to slot B, I get the message about the unlocked bootloader and then after the Sony-sign a continuous bootloop. I then tried to solve that bootloop with flashing slot B as described in the link above. But this did not help.

Any hints?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kreedzer:
Just wanted to thank you [MENTION=8104169]olivrd[/MENTION] and [MENTION=5075128]LuK1337[/MENTION] for this solution!

I was fighting with a flickering screen for 5 hours. I think my problem was after unlocking the bootloader successfully to restart the smartphone again.

(Official instruction: 7. Since the device resets completely, you will need to re-enable USB debugging to continue)

My problem was that the instruction did not work with the TWRP versions on the official page.

So I was asking myself which image you have used here: ""fastboot boot 1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img".

After some search in the forum I found it, posted by LuK1337:

https://xdaforums.com/showpost.php?p=79624312&postcount=196

So for everyone who has the problem, try it with TWRP version in that post.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Anyone?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
if you have the firmware installed on both slots (as on post#2 on this thread) then you don't need to worry about a/b stuff.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
[MENTION=8104169]olivrd[/MENTION]: If I want to install LineageOS 16.0 on the phone, do I have to install the oreo version mentioned in your post on both slots?

Does the phone need to startup on both slots, if I change them manually with fastboot? At the moment I do have the problem that phone starts only on slot A with oreo. Slot B does not start oreo but gets into a bootloop.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
forget the slots, just reflash oreo with emma/newflasher, boot your phone to stock to confirm working wifi, do the steps in post#2 (do exactly as it says) and then flash stuff.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Thanks [MENTION=8104169]olivrd[/MENTION]! That sounds great.

Some final questions (I hope ;)):

If I look at the instructions in post #1, I am not sure about following things:

1. Do I have to wipe partitions like cache, system, data etc. within TWRP before installing LineageOS? I am used to do that on samsung or motorola phones.

2. Do I flash LineageOS from TWRP while having the software on the internal or external SD-card, or do I install it via adb sideload?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
yes, wipe all the partitions (no need for sdcard) and flash via adb sideload
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Thanks!

I will try this during the weekend and will let you know if everything went fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] HansMampf:
My solution for the "flickering screen":

- Boot into fastboot

- see which slot is active: fastboot getvar current-slot

- set the other slot: fastboot --set-active=a or fastboot --set-active=b

- reboot fastboot reboot

- previous LOS is active again, "flickering screen" is gone
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Hmm can you join my irc channel? I have few questions for you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Well, I have finally successfully installed LOS 16.0 on the XA2, but I have two strange things left:

1. I started the installation with slot A as active. While sideloading GApps I saw, that the slot changed to B. But the system did startup fine. Manually switching to slot A shows, that there is no OS installed.

2. After the installation I am not able to access the data partition via TWRP. Starting TWRP requires a password to open the encrypted data partition. I have an PIN-code for the lock-screen, but I did not enter a password for the encryption.

[MENTION=5075128]LuK1337[/MENTION]/[MENTION=8104169]olivrd[/MENTION]: Are both things a normal behaviour?

How can I access the encrypted data partition within TWRP?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
Can I flash LineageOS on the XA2 with an older firmware 50.1.A.13.83 installed or ist version 50.1.A.13.123 mandatory? If the latter where can I download that version? It's not available anymore via XperiFirm.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>Can I flash LineageOS on the XA2 with an older firmware 50.1.A.13.83 installed or ist version 50.1.A.13.123 mandatory?

If you're 100% sure that you never updated your phone, which you can validate this way:

# strings /dev/block/bootdevice/by-name/modem_a | grep Daily

# strings /dev/block/bootdevice/by-name/modem_b | grep Daily

If only the first command returns anything then you can do:

# dd if=/dev/block/bootdevice/by-name/bluetooth_a of=/dev/block/bootdevice/by-name/bluetooth_b

# dd if=/dev/block/bootdevice/by-name/dsp_a of=/dev/block/bootdevice/by-name/dsp_b

# dd if=/dev/block/bootdevice/by-name/modem_a of=/dev/block/bootdevice/by-name/modem_b

Otherwise follow newflasher way (btw you can use any O FW; as long as you aren't on P FW you should be k good)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] exzombie:
Hi all,

First, thank you very much for making and maintaining this ROM! I'm a longtime LineageOS user and I bought this phone specifically because it is one of the few choices with official LOS and official unlock procedure. I'm happy to have LOS running on it. I'd like to contribute a few comments and questions, and testing if time will permit :)

First, I really think the installation instructions on the Lineage web page should include (or link to) the information on flashing the stock image into the B slot. It would have saved me (and all new users) a lot of time solving that problem because I wouldn't have it in the first place. And nerves, because when the graphics of the bootloader itself went funny, I was sure the phone was bricked :) . Also, Xperifirm can't get Oreo anymore, so I had to use Emma to get it. Funnily, Emma only offers Oreo, but not Pie. I thought they both used Sony's site as the source :/

Anyway, I can confirm the TWRP decryption issue Marteng69 mentioned. The only way to use TWRP for backup is to disable security, which is no fun because one has to enroll fingerprints anew.

The builtin video player doesn't play certain videos. As far as I can tell with limited testing, the problem is with h264 high profile, while baseline videos do play. I wouldn't mind this because I prefer VLC anyway (and it does work with the test video I have), but the builtin player is used by apps and also by the gallery to produce thumbnails, and this doesn't work. If I access the video details through the gallery, it says the height and width are unknown. Can I do some more testing to nail down the issue?

Regarding IMS, is it a lot of work to make it functional? Is it planned? Can we help?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>Anyway, I can confirm the TWRP decryption issue Marteng69 mentioned. The only way to use TWRP for backup is to disable security, which is no fun because one has to enroll fingerprints anew.

I'll try getting new builds out soon (TM)

>Regarding IMS, is it a lot of work to make it functional? Is it planned? Can we help?

Yeah, you can fix it yourself and submit changes to gerrit ^.^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
Flashed from 50.1.A.13.83 to the latest LineageOS microG fork (the only combination that makes sense to me). Perfect, all went well. :good:

Do I have to worry about the slots or does the successful boot of LingeageOS mean everthing is fine?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] exzombie:
You know, I might actually consider it. I am a developer and I do prefer to "pay" for FLOSS by contributing, but I haven't developed for Android yet. So if you tell me the reason IMS doesn't work (if you know), and where I can start looking into it, I may find some time to work on it. No promises of course :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No clue. There's one person that actually has IMS working and I don't really know why but there's no IMS on XA2 here so I can't even work on it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
[MENTION=10011102]exzombie[/MENTION]: Did you also get the funny situation, that the encryption code has not to be entered on boot?

On my motorola device I have to enter the encryption code during the boot process or if I start TWRP.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Welcome to twenty nineteen~!

google `fbe android`.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
I know the different ways of encryption.

With Android phones I was used to enter the encryption code manually (motorola and samsung). So I expected the same behaviour with the xa2. If the xa2 uses a more userfriendly way I am happy with that.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
My last 2 encrypted phones require the code only when the phone has fully booted. My old oneplus 2 required it at startup.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Do you know about the FP latency bug? Or has it been fixed? Just curious as there's nothing in todays changelog.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
Does anyone know how to get back original ota rom from lineage? I want to do magisk installation but i don't have the ota boot.img
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Ota shouldn't wipe magisk
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
I don't have it installed yet. But the guide says for devices with A/B partitions, ineed the ota bot.img; for which i assume i need the original os?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Ah yes, the mythical FP latency of unknown sensor. While I don't post here that often I usually read all posts and I don't remember anyone mentioning something like this.

If you have such issue consider mentioning at least what FP sensor you have and what exactly are you experiencing. BTW I don't even use XA2, in fact I never used it as my primary device (right now I'm on OP7Pro btw).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
I had it earlier, basically every time you typed pattern in the device the system ui crashes. Op6 had the same issue. You would unlock and the device would lock again without unlocking. The patch I found was related to keyguard.

---------- Post added at 11:25 PM ---------- Previous post was at 11:23 PM ----------

No just install it. You will be fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
W-wait. What does 'latency' have to do with SystemUI crash?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
https://github.com/PeterCxy/android...mmit/2fa827c412a0752a8c35193c9083b37e19134de0
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
But what does the 'crash' have to do with it? That was just an attempt to solve fp sensor listening when it shouldn't be doing it...

BTW that patch didn't even fix what we were hoping for:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
So if you type the password more than 3 times with like 10 seconds you cannot unlock device or do anything it unlocks but relocks straight away. However fingerprint scanner will still work. If you reboot you cannot use FP scanner and the bug persists you cannot get into the phone. Other devices have this problem.

Edit: The bug occurred again I removed lockscreen data files and factory reset and it seems its no longer present so unless I get it again its a bug my end and I will get logs.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] skkayman:
Is this something that should be working? XA2 returned with new motherboard (replaced in warranty, not sure if they knew that I unlocked the bootloader or not, but it is fixed). So I am thinking to unlock it and try again. But if the sensors won't work, It would be harder to sell unlocked xperia then..

Do I need rooted phone or these commands should works without magisk/root?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] NeroBurner:
I flashed my XA2 (model H3113) with lineage-16.0-20190702-nightly-pioneer-signed.zip using the following guide

https://xdaforums.com/xperia-xa2/how-to/guide-flashing-lineageos-16-0-sony-xa2-t3944964

For me the sensors work great (I can rotate my phone without problem)

Edit: before the flash my device was soft bricked after unlocking the bootloader and booting TWRP once. Somehow the pre installed firmware (including Android 9) did not like unlocking+TWRP
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
Hey everyone, stupid question: can I not install LineageOS if I'm currently running Sony's stock Android 9 (firmware 50.2.A.0.379)? The install guide on the LOS wiki didn't say anything about this.

I tried booting into TWRP and it just gives me a blank screen. Tried the latest version (3.3.1-1), tried some older versions, they all give me the same result. I don't know if this has anything to do with my firmware version or if this is a separate issue.

That aside, is it possible (or even necessary?) to downgrade to older firmware? XperiFirm only lets me download the latest version, which is what I'm using right now.

Am I just stuck with the stock ROM for now? This is my first time messing with Android ROMs, if that's not obvious.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] exzombie:
Yeah, the instructions are incomplete. To get there, use Emma (the official Sony flash tool) to flash 8; as you noted, Xperifirm only offers 9. It will only flash it to the A slot on the phone, so find the files it downloaded (named FILE*, pretty big) and follow the procedure in the second post to this thread to flash it to the B slot. After that, installing LineageOS will work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
Just check the other markets with XperiFirm. There are still some with firmware 50.1.A.13.123. I downloaded the customized Central Europe 5 version the other day and flashed a German XA2 with it via newflasher. Then flashed LineageOS. No problems.

Or use Emma but it only offered me the UK version so it's not much different I guess. Just more work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
This is the first issue I have with this device and this rom. However;

The device battery went from 15% to 1%, and it would not charge. I tried restarting, but LineageOS animation is played, then the phone shuts down. All while plugged it, but there is no charging light so I assume there is no charging happening.

However, the usb cable's end and the lower part of the phone are pretty hot. It is at least warming up.

Short version; won't charge and won't boot.

EDIT: Charging cable got WAY too hot. I put the phone in the fridge for now.

EDIT: FML, i used another cable and it is fine now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
hello, is there any way to fix IMS service to use VoLTE ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Yeah you can do it in 3 simple steps:

1. Figure out how stock does it

2. Reimplement it on Lineage

3. Profit?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Any of you use VPN? What's your recommendation?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] axxx007xxxz:
This isn't really the place to ask about VPN reccomandations. Anyway, stay away from all the free ones (there's a reason why they are free) and use something known for its privacy (e.g. Mullvad) with servers located in a country where they aren't obligated to keep logs.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] wesher:
Boot loop after OTA update

Hi LuK1337,

I followed your post #2 some weeks ago and everything worked perfectly well - big thank you for that! Also some OTA updates I performed after that worked without problems. But when I tried to OTA update today I ended up in a boot loop (Recovery: Can't load Android system. Your data may continue to get this message etc...) and the "Try again" option did not help. Any suggestions how to get back into a working OS without erasing user data?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] hoxirm:
Same here.

All data gone.

I started hole process again but not even sure how to make back up at this point. After re-installation system goes straight to lineage recover not TWRP, when I flash it ending up with boot loop...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
What happens if you wipe only system and flash LineageOS again? App and user data is not held there.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Malizor:
I had the same boot loop problem after upgrading to the 20190724 image. I did not have much time to investigate, so I just switched the active slot via TWRP so that I'm back on the 20190722 image, which works.

I will re-attempt the upgrade when today's image is built and try to investigate a bit more if the boot loop occurs again.

All in all, this looks like a regression in the 20190724 image.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Malizor:
I retried the upgrade with the 20190726 image, and this time no more boot loop.

So, to all who have the boot loop problem, maybe just try to upgrade/flash to 20190726?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] hoxirm:
Just to double check the whole process.

1. Fastboot boot twrp

2. Flash lineage

3. Fastboot boot twrp

4. Flash twrp

5. Reboot to twrp

6. Flash gapps

So far I haven't flashed twrp after rom. Looks like I have only default lineage recovery but no twrp so I can't take any back ups :/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kocker:
Same here.

I used the built-in updater and after reboot to finalize the installation the boot process was broken: I got the lineage boot animation and after a while and an automatic reboot I was promted the "Can't load Android system." message.

Flashing the lineage-16.0-20190724-nightly-pioneer-signed.zip image then using adb sideload did not fix it. Still got the same message.

So today, after reading that others have the same problem I could get it fixed with flashing the	lineage-16.0-20190726-nightly-pioneer-signed.zip image using adb sideload. No wipe was necessary, and everything works again after system was able to boot up.

So thank you all for posting about your issues and thanks to the devs for providing a working image again :) :good:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] wesher:
Thank you guys, Lineage is up and running again. No loss of data.

I booted the Lineage Recovery Mode, chose "Apply update" and used ADB sideload to update the nightly of July 27. After a reboot Lineage booted properly.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ishbutz:
Hi,

I had the bootloop issue a few days ago, I did a useless swipe data in recovery then I swaped the boot slot and I was able to boot, everything was working but when I applied the 07/28 update with the lineage updater, the os boots just fine but the fingerprint reader does not work anymore and all its settings are gone.

I dont know if this is due to the update but do you know if there is a way to fix this?

Thanks

---------- Post added at 01:30 PM ---------- Previous post was at 01:14 PM ----------

Nevermind, I've redefined the security settings and the finger print reader is working again...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
I use HedgeCam2 as my main camera.

It uses OpenCamera as its base, but has a much more modern user interface.

OpenCamera can be a bit annoying to use sometimes.

The picture quality is on par with the stock rom in my opinion. Not as good as an iPhone, but it's a budget phone, so that's to be expected.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Has anyone else had an issue with modifying the system partition in anyway installing some magisk modules and some apks as system or flashing micro g cause bootloop then into lineage recovery ?

Edit : Found the issue https://github.com/sonyxperiadev/device-sony-common/blob/master/common-prop.mk#L171-L173
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Any ideas why we can't flash android P treble ROMs? Android 8.1 works fine but android P won't even start to boot
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Flash oem on Sony developers website