yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Januzzi:
Thanks a lot to bring us Lineage on this phone. Is there a way to have the Xperia Keybord on Lineage 17.1 ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I thought Sony phones just used SwiftKey. Is that not the case?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
That did the trick, thanks [MENTION=1369238]samson291[/MENTION] and [MENTION=5075128]LuK1337[/MENTION] !!!

But now, what should I do with my SD card? I tried inserting it, Android started reviewing its contents, and after 20 seconds my phone rebooted again... Should I save its contents using a card reader, format it, then reinsert it and copy back my files? Or is there a quicker way to fix its formatting? (I got 100 gigs of music and pictures on it, that's a lot to transfer)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Format it lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samson291:
Hello

Here is what I did,

Take SD card out of phone

Plug it into a PC (copy off files if needed)

Format SD card in the default file format listed

Plug back into phone going into Settings > Storage and format SD card.

Then you are all good to go, copy back data if needed.

Hope this helps :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
Backing up right now then! :D

That's what I had more or less in mind (I was thinking about formatting it only once on my PC, not a second time on my phone when inserted back), backing up now (gonna take a while!)

ROM looks really nice so far, thanks again!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Meloferz:
I use Xperia Keyboard, works good. You can download the apk from Sony cross development forum
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
My phone has started getting random and temporary hardware failures. Sometimes mic stops working, sometimes front camera and sometimes speaker for calls. A restart of the phone always fixes the issue until the next hardware fail.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Idesmi:
I have been experiencing issues with 20200418 nightly.

I setup PIN as 1206. After that, when requested, I inserted that same PIN, but didn't work. I've tried wiping /data and /system, no results.

20200417 has worked fine.

This is not really a bug report, because I'm not sure it is a bug and since this is my only phone I am not willing to try again. I saw a lot of commits were merged in *18, hence this post.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Timeral:
wifi hotspot seems not working
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Sorry, just asking, because I've now not the time to do full wipe, but want to prepare my phone to update to los17 (sorry for off-topic)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Try lineage-17.0-20191010_151512-UNOFFICIAL-pioneer.zip ^.^.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Timeral:
Thanks. The hotspot works well on new builds.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
How can I verify that flashing the new firmware (Post 2 with Newflasher) succeeded?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
`strings /dev/block/bootdevice/by-name/modem_a | grep Daily`

If you see two matching lines, and both dates are from 2019 (or newer) then you have 50.2 on both slots (assuming you didn't cheat by flashing zip linked in #2 earlier)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
No, I wasn't cheating with your zip file ;)

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

and

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

shows each time only one line with

20190718_BY120_Daily

So this should be ok?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Ok, then I tried to flash latest los17 rom with los recovery (reboot into recovery).

Then zip verification failed and I choosed to continue anyway and got error 26 (ErrorCode::kDownloadMetadataSignatureMismatch Error in /sideload/package.zip) and installation aborted.

I didn't wipe prior to flashing los17. Is this necessary or should updating work?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
fastboot boot latest TWRP image, don't use installer zips or anything like this.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
ok this worked, partially

what I did:

fastboot boot twrp.img

TWRP current slot A

install ROM

shut off

fastboot boot twrp.img

TWRP current slot B

install ROM

install gapps

shut off

fastboot boot twrp.img

TWRP current slot A

install gapps (success)

reboot system

booting was fine, but Phone reboots automatically after about one minute (and shows the message, that android was signed with a public key)

what can be done here? only full wipe? (seems like updating from los16 is not working?)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>what can be done here? only full wipe? (seems like updating from los16 is not working?)

Probably.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
ok, so that point is now clear ;)

I've got another one, but I promise it's the last one.

Is there any addonsu-17.0-arm64-signed.zip package available, or can the addonsu-16.0-arm64-signed.zip be used? Or is there any other way to get it working?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
You can't.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
Is it the same to do : ( LOS 16.0 installed with 50.1 FW, Flash your #2 zip then flash LOS17.0 ) or ( full wipe with 50.2 FW then flash LOS17.0 ) ?

You said that it will be working without flashing 50.2 FW, but what is the best security / performance choice (or is it just the same thing) ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No idea. I'm still on 50.1 + zip from #2 mainly cause I'm too lazy to do anything that has any risk of bricking it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Timeral:
Do you mean root the device？You can try Magisk，it's working.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Thanks, will give it a try.

But anyway, do you think addonsu will be released for LOS17?

BTW, I did not succeed with a fresh install of LOS16 with new firmware. Got only black screen and reboots.

Then I installed newest unofficial LOS17 and its working fine since 12h. Absolutely perfect work [MENTION=5075128]LuK1337[/MENTION]
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Magisk is working well with this ROM, Titanium is not starting, seems incompatible with Android Q
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] R00$7ER_XL:
Why can't we dd unselected partitions with a script instead of using new flasher? Is there a way to change slots without fastboot? How dose the updater do it
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Januzzi:
Anyone knows if it's possible to send MMS without to have the data always on ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jimmygumble:
This rom is brilliant Luk. Thanks a million. :good:

In the words of the lunatic fringe, it's completely "Strong and Stable™"

Suck my **** Sony ya abandoning pricks.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Sjll:
[MENTION=5075128]LuK1337[/MENTION] The new modem_bt_dsp is for voyager.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MasterHiguchi:
Anyone else having problems with the magnetic cover switch after this update?

I use a flap case with a magnet in, which turns the phone on when you open it, and turns it off when you close it. With 16.0 this worked fine, but after upgrading to 17.1 it doesn't turn off when you close the case. (It still turns on when opening it)

I flashed the official lineage-17.1-20200416-nightly-pioneer-signed.zip using TWRP, and also applied the 50.2 firmware using newflasher as described here:

https://xdaforums.com/showpost.php?p=80469769&postcount=2

Also saw the issue before using newflasher (still on the 50.1 firmware). No other mods/etc installed, and not using gapps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] cbags:
Yep there is now a toggle under the mobile data settings, "MMS messages: Send and receive when mobile data is off". Tested and working.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] phuzz11:
Well, this shouldn't have worked, but I've just done a successful 'dirty' upgrade from LOS16.

I was all prepared to do a clean install (always make backups!), but I decided I'd try without a wipe just to see what happened. I was running lineage-16.0-20200324, with OpenGapps and addonsu. Nothing special.

Procedure

Backed up all my data (Titanium backup, and an adb backup)

Flashed the latest firmware for my region/carrier as in post #2 (quick note, Newflasher now has an option to flash both slots. I started by flashing just one slot, then rebooted to check it, then once I was sure, I ran newflasher again and flashed both)

Rebooted into bootloader, booted TWRP.

Sideloaded lineage-17.1-20200423-nightly-pioneer-signed.zip (I did wipe the cache and dalvik cache).

Rebooted to TWRP again

Sideloaded open_gapps-arm64-10.0-micro-20200422.zip and Magisk-v20.4.zip (in that order)

Rebooted, Lineage started to boot, but just sat on the boot screen for 20+ minutes

Thinking it wasn't working, I decided to try one last reboot and f**k me if it didn't boot right up into LOS17.1! All my data is there, all my apps are working, and I've checked and phone calls and whatsapp video both work.

Yep, that really shouldn't have worked, but it's saved me an afternoon of reinstalling and copying data. If anyone else is going to try this, assume you might have to do a wipe, and BACKUP FIRST!

(Side note, does Android 10 not have a "Battery Saving" mode for the location? It seems to just be on or off.)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Welcome to the club
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] nariOX:
Seems to be caused by Magisk. If you uninstall Magisk, then bootloops are gone. One workaround is to boot into recovery (Vol Dn + Power) and then boot into system from Recovery.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Sjll:
+1, I met the same problem.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] JanJabko:
Just to let people know how I did not have any issues, just in case you are nervous like I was when reading about the bootloops.

I upgraded dirty from LOS16 by sideloading LOS17 in the LOS recovery and, after a system reboot, sideloaded Magisk in the recovery, all approx 2 weeks ago. After next system boot everything was there, no data loss, Magisk Manager was installed and working. Since the upgrade I updated twice via OTA without any problems and can restart without bootloops. Everything is just working fine.

I do not have gapps in any form, Magisk version is 20.4 from the beginning, no Magisk modules installed.

Thanks LuK1337 for this awesome ROM.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Maybe that's the difference for you - not having gapps. If true, I assume that gapps and magisk are not playing along on Android 10.

Others like me that are facing the bootloops, are you using gapps?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] 80c535:
Yes, bootloops here with gapps and Magisk installed.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Same here after OTA Update.

But as workaround you can do a shutdown after finishing the preparing of the update, then press an hold power down and press power button to turn phone on and keep pressing power down to go to recovery. In there choose "reboot to system" and it works without bootloop.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] onicx32_nocta:
TroobleShooting For H4113 and H3113 - LineageOS17.1

Hello community ;),

I just updated two smartphones, the first one is a SonyXperia XA2 H4113 and the second one is a SonyXperia XA2 H3113.

I did the update following the tutorial from LinegeOS Pioneer for both.

The H4113 took well the update but with some bugs

I don't have sound on the media output Headphones and normal + amplified speaker.

Calling works fine on all modes though.

Alarm sounds and notifications is functional as well.

The Bluetooth works perfectly on the media output on the other hand.

The H3113 has stopped at 47%. with command, just before I placed the order.

adb sideload linage-17.1-20200430-nightly-pioneer-signed.zip

adb returns with a read error

The H3113 reboots on the new OS with very big bugs ...

No sim cards

No Wi-Fi

No Bluethoot

Critical stability

Do you have any help or ideas to get the phones back up and running (great work on lineageOS 16)

I'm on a Linux Debian 10 (Kali linux) branch distro, I don't have Windows available.

Thank you in advance
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Flash https://androidfilehost.com/?fid=4349826312261716572
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] onicx32_nocta:
Thanks ! And LineageOS Downloads removed last update days ?

I took your advice and so I flashed with the bond you gave me.

And then it was okay!

Thanks for your help :)

Last questions

I don't have an update proposed 23/04/2020 after this date. What is strange is that yesterday on the official lineageOS repositories we had an updated version dated 30/04/2020. This morning I see that the content has been removed. Bug or badly committed version?

Good evening and thank you
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Ksix007:
I'm using the last build (04/30/20) and when I connect a headphone, the mic not function. Just without it.

---------- Post added at 12:58 AM ---------- Previous post was at 12:53 AM ----------

I saw it today. I installed the build 30-04 and today aren't there on Lineage site.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
That has been happening for the last 3-4 builds. I have seen builds of 25th, 27th and 30th before they disappeared. I have the 27th build installed on my phone and its not there anymore.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I tried to flash it but got a "signature failed. Install anyway?" message. Should I go ahead and install?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Not sure why you're installing it but ok.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Every couple of days, my mic or speaker stops working. A reboot fixes it. But then the problem occurs again in a couple of days. I w hoping this will help?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
One can only hope...but it's unlikely that it's going to do anything useful for you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Thanks. Won't do it then.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Why is there no new official build and are the latest ones deleted?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
No!

Even the latest build from the night 30.4./1.5. is working flawlessly on my devices.

But...

The download-server of lineageos has problems, not even with the section for our device, but for most other devices too. And the server was completely down for many hours yesterday.

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
Which fastboot drivers do you use?

I've downloaded 6 different versions and none of them has worked for my H4113.

None of them contains VID 0fce and PID 0dde which is Xperia Mini Pro Bootloader.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
It does not depend on fastboot.

You need to have the Sony USB drivers for your PC.

fastboot is just only necessary to boot TWRP. Everything(!) else is done there (erasing, formatting, copying install images, installing, etc.)

Other question: which firmware version do you have in your H4113?

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
I am going to flash LOS for the first time on my device, so I need to unlock my bootloader and that requires that fastboot 'can see' the phone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
...and that requires exactly the correct Sony USB-drivers.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
And they are... what? AFAIK there aren't specific XA2 drivers, many sites suggest using ones for XZ, but they don't work for me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I recently updated my PC to Windows 10 v2004. Since then my fastboot drivers are not working. I'll need to find others.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
The ones that come with Xperia Companion, or, if you install Flashtool (http://www.flashtool.net/downloads.php), the ones you can find in the Flashtool\drivers folder. Launch the EXE that's in there, select the first 2 drivers, and make sure driver signing is not enforced if you're using Windows 10.

Strange, also using Windows 10 v2004, and my drivers still work... Using the ones bundled with Flashtool, as explained just above!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] firelightning13:
For windows users, they might need Sony driver to be able to do fastboot. Before I switch to Linux, I think I used XA1 driver to fastboot my H4133. I don't know but I think there's some post about it how to fastboot stuff.

Edit: nvm, I think I used Xperia Flash tool at some point to install it. Linux users no need to do anything ;)

Also have anyone heard the news about LineageOS servers have been breached? Maybe that's why we can't access to new builds.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
The Google USB drivers worked for me until I updated to the 2004 version of Windows 10. They also worked with all previous versions of Windows 10.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
hello, how'd you install the Google Usb Driver, i' on Windows 1909, and install each of the ADB interface / Composite ADB interface / Bootloader Interface, just leave me a err: The software for this device is now installed, but not work correctly. This driver cannot start (code 10).

i also tried connected to my another old Windows 7 pc and works fine. my phone is H4113.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I had Googled fastboot drivers and had found an exe which installed it for me. They was over a couple of years ago. The drivers kept working with every update of windows, until I updated to Windows 10 v2004.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
Did you already give a try to what I explained above yesterday?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
i've install the Flashtool/driver/driver.exe with disabled signing enforcement and successfully installed, but it does not triggered by my H4113 phone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Anyone have any clue on when the builds will resume? Is the hacking incident sorted?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bane.twit:
i also appreciate the continued development.

do you have any knowledge. thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
From Twitter (for the sake of completeness):

https://twitter.com/LineageAndroid/status/1256821056100163584

From Reddit (haggertk = a LOS director):

https://www.reddit.com/user/haggertk/comments/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
I followed wiki and unlocked bootloader and then flashed the latest recovery available (it flashed it to slot A).

Then reboot and it said "your device software can't be checked for corruption....". After couple of boot loops it offered me a factory reset so I did it.

Then I checked again bootloader via service menu and it said it is unlocked (not unlocked allowed but just unlocked).

So I repeated flashing of recovery (it flashed it to slot B) and tried to reboot to recovery and now it says your device cannot be trusted and it won't start.

Any idea what just happened?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
You only have to flash to 1 shot
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
The recovery image lineage-17.1-20200423-recovery-pioneer.img did not work for me. I downloaded 3.3.1-6 and I was able to flash LOS.

---------- Post added at 05:52 PM ---------- Previous post was at 05:50 PM ----------

Why does not counter of unread messages/emails work?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Corias:
Unlocked, installed, works OK, but.. Is there any way to replace Lineage recovery with TWRP permanently? Maybe I should patch kernel or something?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I don't think so
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
Look here:

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

Section "Installation". You need at least TWRP 3.3.1-6 to install permanently.

READ IT CAREFULLY AND FOLLOW ALL INSTRUCTIONS! Otherwise you may run into bootloops.

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
If you install TWRP, do ota updates work?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inahardware:
Thank very much to all people. Now yes, with TWRP 3.3.1-6 I can make a backup. In my beginning I was a novice, I had not installed the zip file: pioneer_modem_bt_dsp_50.2.A.3.22 . The sound didn't work on youtube, now everything work very well.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
I am asking again: Why does not counter of unread messages/emails work?

Does it support LOS out-of-the-box?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
Yes, but just only until LOS14.1, AFAIR.

For newer releases of LOS, you need thirdparty software, for example "TeslaUnread/Nova-launcher".

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
Is there a reasonable explanation?

I find that feature basic, something like that worked long time before smartphones appeared.

Why should I install some 3-rd party apps (not single app, but two!). And of them is maintained no more.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
Yes: it is as it is!

If you want something other, feel free to download the sources and do it by yourself.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Another reasonable explanation is that from Android 8, android moved natively to notification dots. LineageOS has always stayed close to vanilla android as much as possible (e.g. From android 10 they moved to native android styles in favour to their own styles).

The idea is you take what LineageOS has to offer and then customise it as per what you want - either by rooting, apps or your own dev work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] user1012:
Do we know logic behind that?

I find number/counter more informative than a dot.

Besides, notification dots do not work properly.

Messages (texts/SMS) are groupped by sender. And If I have sender A opened and there's a new (unread) message from sender B I do not have notification dot on my homescreen.