yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] happysunshine:
Just want to say thanks!

all i need is working including volte and vowifi and the battery cosumption ist awesome low!

only one little thing confused me: there is no vowifi icon when activated so i thought its broken, but i tested and its working great.

3 year old phone feels as good as new. *excited*
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
How do you test vowifi works if no icon shows?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] happysunshine:
I enabled the flightmode, re-enabled wifi and got called.

And i took a look in #*#*INFO#*#* > phone information > ... > IMS servicestatus
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andy_2639:
I tried it but still the same: it doesn't boot but shows the battery screen.

The battery screen just doesn't disappear until I press the power button ...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Maybe just flash it then...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andy_2639:
@mx82

Congratulations. Hopefully it keeps working - last year, I had a short time working VoLTE, too, but after an update, it went to the current state: phone says no IMS registration, no VoLTE for outgoing calls but working VoLTE for incoming calls.

I'd wish working VoLTE for all XA2's ...

My phone:

Phone model: H4113

Baseband: 20191108_BY12O_Daily

Maybe the baseband makes a difference?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
So I tried it and it seems to fix the issue. I had now two nights in which the phone charged properly without reboot, while before I had to reboot every evening to make it charge again.

Please let me know if there is anything else I can do to help debugging!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Let me know if it still works on April 13th.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
My baseband is

20200722_BY12O_Daily
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I guess not on my phone somehow 😒
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Mine is 2019 as well. Did you get the later baseband by using a later firmware? If so, which one? I have flashed the pioneer_modem_bt_dsp_50.2.A.3.22.zip
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
@malerocks

Sorry, I really don't know.

I bought the phone around October 2020, updated the original sony android edition and unlocked the bootloader.

After that, I only installed Lineage 17.1 + 18.1 and maybe e (from e.foundation).

According to Lineage->settings->about the phone ->Android version the last security update of the original sony rom is 11/2020.

Maybe someone else knows how to update the baseband without switching back to the original Sony rom.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inahardware:
I also had a failure with the battery charge, but with the boot.img image it has been solved.

The command fastboot boot boot.img has been enough.

Thanks for the help.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andy_2639:
Thanks. I updated to H4113_Customized DACHBLX_50.2.A.3.77-R5B (XperiFirm for download and newflasher). Sadly, still no working IMS registration with Aldi Talk / Telefonica Germany.

The update of the original Sony firmware updates the baseband.

Yesterday, I updated my baseband with the instructions from https://xdaforums.com/t/rom-official-pioneer-10-lineageos-17-1.3979989/post-80469769 (the "flash whole firmware package" part).

Result: after the boot, the SIM PIN prompt came and after that "no SIM card" ...

I remembered that others wrote about that problem - it seems to appear if you install LineageOS without booting into the original Sony firmware at least once before.

So I took newflasher a second time to flash everything of the firmware (except the persist_* files) - which also erases all user data, which means a "nice" factory reset. Then booting into original firmware, clicking through the setup-dialog at the beginning. After that, reinstalled LineageOS as described in https://wiki.lineageos.org/devices/pioneer/install ...

Yeah again a working phone ... and a forgotten backup of the phonebook ...

Much fun for still not really working VoLTE.

Edit: my baseband version is now 20200722_BY12O_Daily .
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
@LuK1337: The boot.img also fixed the charging bug on my phone. Thanks

@Andy_2639: My phone type is H3113, maybe this is the reason why VoLTE works fine on my phone. Another can be the mobile provider.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
For me, the first system update with the built in updater worked fine, except for the camera app "snap" being gone. It just disappeared from the home screen and from the launcher. I can't even find it in the launcher settings under "hidden and protected apps". I can find it under system settings > app info though. The only way to launch it now is either with a double press on the power button or with the camera symbol in the gallery app...

Anyone else experiencing this?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
It does!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mjaxa:
Hi!

Speaking of boot.img and things there. Is there a way to preserve TWRP recovery after updating LOS via OTA? Every time it updates, it reverts to LOS recovery, yet TWRP offers more...

If this is noobish - sorry! :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
If you use Magisk, there is a "TWRP A/B Retention Script" module you can install. It is intended to do just that. I haven't tried it though...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mjaxa:
Thanks, will try!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Also, my calendar widget ("todo agenda" app from f-droid) disappeared from the home screen after ota-update and adaptive brightness stopped adjusting the screen brightness automatically.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
The first time after flashing 18 made OTA today - bootloop. No magisk, root, etc. Why did that happen? Flashing via recovery/twrp gives bootloop also. It suggests me to perform a reset. Any advice on why that happened and how to fix?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
@Merlin K :

Please more info:

Gapps version?

From which to which Lineage version did you switch via OTA?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
NikGapps-stock-20210130. LOS 18.1-20210402 -> 18.1-20210415

P.S. Instaling 20210408 right now and will try to OTA to 20210415.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
You must(!) boot at first after installation into LOS-recovery by pressing Vol-down and Power-Button, and holding Vol-down pressed until Recovery is booted. There you have the option Factory Reset, and you have to do that THERE!

After that, the system will boot without trouble.

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
I had to do that! After the initial LOS installation system didn't want to load, recovery was loaded automatically after self-reboot and asked me if I want to perform factory reset. Only after that LOS loaded. I've just flashed 20210408 and it also didn't want to boot without factory reset via recovery. Now I'm OTAing to 20210415, will see soon how it went.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Performed OTA update 0408 -> 0415. Installing OTA -> Reboot -> Loading... -> Reboot -> Loading -> Recovery screen where - "Can't load..." and two options: Try again | Factory data reset. Try again - doesn't help. Reset - helped to load LOS but no Gapps and my data, just clear LOS. Not the best option for update :-(

Does anyone know why that happens?

@LuK1337 Any idea?

P.S. I had a similar issue on LOS17 and it made me do not use OTA and update my phone once in a few months installing clear LOS. But a few months ago I decided to try OTA on LOS17 and it started to work. Have no idea what was the reason for the issue and how it was fixed. Seems this issue pursuing me on LOS 18 as well...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Same for me, I've almost never seen a OTA lineage update work without breaking the ability to boot or at least leaving me with weird consequences as I described above. Therefore, in the past, I also simply resorted to ignoring OTA updates and just staying on a working version.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
Has anybody tried to update LOS 18.1-20210402 -> 18.1-20210415 manualy via TWRP?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I have done 2 OTAs so far since installing 18.1. No issues whatsoever.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Are you using magisk? I am wondering if this might be part of my problem...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
I don't use magisk but I have issues with OTA.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
If you did not do so yet, you might want to try a clean installation and then doing ota again. Wipe the data and cache partitions (factory reset), install the first official release of 18.1, add a few apps whatsoever and try again the ota update.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Did this today. Flashed last Sony firmware via newflasher, LOS 0408 -> OTA 0415 -> bootloop/issue with loading LOS
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Did you flash copy partitions?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Yes, I did. Also, newflasher has the option to flash firmware to both partitions.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No idea then. Try using MindTheGapps instead of NikGapps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
@LuK1337 would you discourage using magisk regarding OTA updates or would you say it should work? Do you use magisk?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
I don't think it relates somehow to the gapps. I had exactly the same issue on LOS 17 but used OpenGapps then. On 17 after some time OTA started to work normally.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I'm pretty sure it's either addons or firmware. I'd be able to OTA gapps-less phone just fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
I used 4 different Sony firmware versions when tried to fix it on 17.

I will try OTA in a week again. If no luck - will try to OTA without gapps for test. Thanks.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I installed the oldest 18.1 + MTG and went through two OTAs. Works fine for me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Ok. Will try MTG next time if nothing helps. But I really doubt that gapps matters, dome people use NikGapps and don't have issues with OTA.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Yes. On 22.1. When I 1st installed the ROM, I used twrp. OTAs have obviously used lineage recovery
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Thanks for your reply.

Do you suggest that TWRP is the culprit? Or magisk?

And did you find a way to get both magisk and OTA updates working?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
My 1st install kept failing when I installed ROM, MTG and magisk (using the recommended sequence). What finally worked for me was installing ROM and MTG, boot into system, set up phone and then install magisk (this time via lineage recovery).

I only had twrp for initial install. Am not sure, but for OTAs I don't think trwp is recommended on this phone. I also have "update recovery" enabled in the options in the phone OTA updater.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Thanks. I came across the same problem when installing magisk: I also had to first boot into the system. I did the magisk installation with twrp after the initial boot and it also worked.

I also noticed the "update recovery" switch. Did you see that you can't switch it off? ;)

So are your OTAs working fine? No weird things happening afterwards like charging issues, apps and widgets disappearing from home screen and launcher?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
No issues with the OTAs. I installed the ROM the day it officially launched. So have been through 2 OTAs now. There was a charging issue initially (which others faced too) but that was fixed using a boot file that was provided by Luk
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
My update was complicated:

Last working system LOS 18.1-20210402 + NikGapps-core-arm64-11-20210130-signed.zip

Download LOS 18.1-20210415 and reboot into recovery.

Lineage Recovery started (thought I had TWRP reinstalled) -> Install LOS 18.1-20210415 and reboot.

->Bootloop

->Installation of TWRP

-> Install LOS 18.1-20210415 + Clear Dalvik -> Bootloop

-> Install LOS 18.1-20210415 + Clear Dalvik + Reboot into Bootloader -> Install MTG -> First booting successful.

IMS registered, VoLTE available

GPS location still does not work
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
It's almost as if forgetting to reflash gapps was a bad idea... Also, wiping dalvik cache is pointless.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Ksix007:
My update failed (more one time). I use NikGapps and root with magisk. Can be the NikGapps pack causing this issue? Is the second time my phone into a bootloop after update LOS 18.1.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Yes, it is possible that NikGapps is causing the issue. Try MindTheGapps instead.

Also, magisk might be causing issues too. I am using magisk and after the first OTA the system booted but began to misbehave.

Edit: I don't use any sort of Gapps and have no experience with that, only with microG.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Does MTG contain pixel launcher?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Ksix007:
Don't have pixel launcher. Can I revert the update changing active slot?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] x751sa:
the backup solution is useless as it only backs up half of the apps. an option for root, where everything is backed up, would make sense.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Ksix007:
You are right. But I always neglect this part. Now a will reinstall ROM. :cry:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] happysunshine:
Both 18.1 OTA worked for me.

Starting point was a fresh lineage-18.1-20210402 via twrp an right away MindTheGapps-11.0.0-arm64-20210328_143848 & magisk 22.

1st OTA to 0408 changed twrp to lineagerecovery but i didnt had to flash MTG again, not sure about magisk (i guess it handled itself) no need for me to change recovery so still lineagerecovery when i did 2nd OTA to 0415.

After a few reboots not finding an option for flashing zip with lineagrecovery i flashed twrp via magisk (meanwhile 22.1) for updating MTG to 0412 and magisk to regain root that was lost during TWRP install.

In conclusion; OTA works, lineagerecovery sucks (lacks zip install option). Still excited about my phones performance with LOS.

And maybe no more charging hassles #307873. But not sure if i had these, Im using ACC but no problems with while on stock. Will see, last 2 days no probs.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
Damn, that's pretty much what I did too, except for the gapps. Instead I have flashed the privileged extension of F-Droid.

Lineage Recovery does have the option for flashing zips: Advanced > install update > from sdcard (or something like that).

ACC ist also the main reason I would like to have magisk working with OTA, but it seems like I had no luck. Doing without magisk for now and will probably reinstall it later on if the OTAs work fine for a while for me. I'd really love to see it all work fine together.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dctruc:
@LuK1337 Can this Rom use dual sim? I inserted 2 sims, but my phone shows only one?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Any of you use the built in AOSP keyboard? Does this happen to you?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andy_2639:
OTA from lineage-18.1-20210408 to lineage-18.1-20210415 worked for me without problems (however, no Google apps, root, magisk, priviledged extensions, ...).

The battery charging issue seems to be resolved. Thanks @LuK1337 for fixing this and maintaining the XA2 in general 👍🙂 Also thanks to all testing the boot.img.

IIRC, you can flash ZIPs in the LineageOS Recovery with the option "Apply update" in the main menu. Then just select the source for the zip: ADB or you memory card. I installed OpenGApps in 17.1 on my families phones this way.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Wotanstahl:
Hello,

i am new to this forum and would like to flash my XA2 from stock android 9 to LOS 18.1. So ich checked this thread, the install instructions for the device at the lineage website and have now some questions about it:

Do i have to flash the firmware according to this guide? The firmare currently installed on my phone is 50.2.A.3.77

Did anybody backupped the trim are partition/DRM keys? is it important for the XA2?

the following step of the LOS-instructions i dont understand:

the best googleapps-package at the moment is mindthegapps?

the charging issue is now solved by a new build or still that boot.img workaround is needed?

i know, some really noobish questions, but maybe someone can have mercy :-)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mx82:
@LuK1337

Do I understand you correctly: if I use TWRP for the update, I have to reflash the GAPPS everytime?

Thanks, I was not aware of that and never had to do it until Lineage 17.1.

I've been using LineageOS since it replaced Cyanogenmod.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
...yes...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
You were right, NikGapps causes the issue with OTA! Reinstalled everything with open_gapps-arm64-11.0-micro-20210130-TEST - OTA works like a charm. Thanks!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dctruc:
@LuK1337 is this Rom can use dual sim? I inserted 2 sims, but my phone has shown only one?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
@LuK1337 I just wanted to say thank you for your great work! Your work makes our phones live longer, and that's worth real money (donation is on it's way ;-))! I am really happy with how my phone works now. Usually you are only hearing from us when something is not working, which is probably not super motivating :-)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
That's a fair thing to say. We generally post only when something is wrong. Thanks @LuK1337 for providing us an excellent ROM and your support.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marek W.:
Hello,

here a similar "problem". Insertet 2 sims, can see both SIMs and can toggle them via "Calls/SMS preference" in Menu (with sucess for calling and SMS).

But toggeling via "Mobile data" in Menu does not "activate" the other SIM. Its only "deactivate" the actual SIM.

Bit Backgrond:

I own two H4113. One (older) with LOS 17.1 and other with LOS 18.1. For data I can only use the SIM-Slot which i had choose during the installation process. (In my case in the LOS17.1-mobile SIM-Slot1, in the LOS18.1-mobile SIM-Slot2)

(And also from my side -> Thanks @LuK1337 for providing us an excellent ROM and your support.)(y)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
Hi,

During the last few days I started to notice an issue with charging. I plug the cable, the phone is charging, then I'm noticing that it stopped charging. Plug/unplug - it charges again, but in a 5-10-20 mins stops charging again. Does this issue look like the same which was discussed here before?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] imska:
After a reboot, my camera app disappeared again from the home screen and from the launcher/drawer. Only way to access it again is by double pushing the power button.

This time, I'm on a clean installation without magisk. Only additional I flashed was the f-droid privileged extension.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I guess you can say "oh snap!" :ROFLMAO::ROFLMAO:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I noticed that when connected to a quick charger, while the battery charges fast initially, it charges really slow for the last 25% or so. Not just slow, realllllllly slow. Is this the expected behaviour for this phone?

See screenshot. I am on the last 6% and it says it will take almost 20 mins more.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andy_2639:
That's a different issue than I experienced in the beginning of official 18.1. The issue I experienced (and which is fixed now) is that the phone charges one time after a reboot - without stopping.

So the procedure was:

Reboot phone.

Charge one time without problems.

After unplugging the charger, every charge attempt will fail until a reboot (however, the phone seemed to use the power from the charger instead of from the battery).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] x751sa:
hello,

is there also a semc camera addon for lineage 18.1?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Merlin K:
It was a problem with my charger. Took new one and it works fine now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
Hello,

does somebody has experiences with adoptable/adopted storage with LOS 18.1 on XA2?

Installation via commandline/sm runs cleanly, migration of data works without any issue, but...

when accessing data in adopted storage, the files are there, with correct size, but unaccessible again, everything is "corrupted data".

Even Apps, that install to "SDcard" now, are "reset'ted" to initial state like new installation after every reboot. No app can read it's own actual configuration.

Adopted Storage is installed and working without any issue, but it's unuseable. Sigh.

What's to do?

Thanks for any hint,

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
nile-common: Disable adoptable storage · LineageOS/android_device_sony_nile-common@a1db859

* We didn't support it on O and it doesn't seem to work properly on P. * Switching encryptable from 'footer' to 'userdata' doesn't change anything as following CTS t...

github.com

Tho even if it worked it's best to avoid it.