yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Even after flashing Magisk and hiding Google Pay, I am unable to add my credit card. Still get the same error.

I found a workaround though. My credit card is an AmEx card and if I download their app, I can see up pay by phone though their app. This means that I had to switch the default payment method to Amex pay instead of Google Pay.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
I believe its more that magisk adds a script that is automagiskly run after an update that reinstalls magisk to the new boot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] AnmolGoyal:
Bluetooth keeps crashing when connected to a Bluetooth device. Keeps automatically turning off and on and then stops working.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
I am currently on the build from 5. April and have strange messaging sound behavior.

I am getting sounds for new messages even if I set to "not disturb" and/or setting all sound volumes to 0.

Anyone else got this?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Nope. Nothing unusual sound wise.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Try flashing entire (don't remove any files that #2 lists) 50.1.A.13.123 to both slots then boot it and make sure wifi works. After that flash Lineage and it should work there too.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
i wanna know that what's version 50.2.A.x.x, i know that XA2's version is 50.1.A ...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
That's stock Android 9 (which isn't supported on LineageOS yet).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
thanks for answer.

sorry for not supported..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Considering that the current firmware is working fine with the LineageOS builds, do you think there will be a need to update LineageOS to support that? Anyway I do not expect Sony to bring anything new in it for pioneer, maybe just some optimisations for Pie.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Well, fingerprint won't work with blobs from stock 9 so yes there is at least one reason to do that. B-but first I need to get kernel source, waste my time on it and update the rest.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Hope you find time to waste then :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Rookie117:
Following your steps I've got all in working order, thank you LuK.

For anyone that need to do the same, on my phone LTE data network at begin seemed not to work, but started working normally after half a day I setted up everything. Probably something related to my carrier (TRE IT).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Any of the Gapps users using gapps micro? It comes with pixel launcher and it always crashes whenever I try to use it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Now that I think about it, I think updating adreno fixed it lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
for me, unfortunately, i flashed Stock Pie via Flashtool and my phone was bricked.

i send it to the manufacture, and hopes it will be fine..

so, please DO NOT flash Stock 50.2.A firmware via Flashtool.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
There have been articles a few weeks ago that updating to Pie released by Sony was bricking phones. Probably you got the same version.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
i download the firmware via Xperifirm, and flashed with Flashtool (by Andxydore).

my situation is not Updating to Pie, rather flashing manually via Flashtool.

after bricked, i found that Flashtool uses 50.1.fsc (not 50.2.fsc) .. i'm regreted..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Anyone know why the background in the drawer of the default launcher does not become dark even if you set the overall system theme as dark? I know you can get it to be dark by using a dark wallpaper but I have a wallpaper that is quite dark, but the drawer is still white.

Ideally it should be following the system settings, isn't it? Isn't that what the styles API is for?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
What if you set it to light wallpaper and then set it to dark one xD
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Tried that. This is my current wallpaper. Surely this qualifies as dark enough. I tried others too and unless it's really dark (not necessarily black) the app drawer background stays white.

Ideally it should respond to these settings.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
https://www.youtube.com/watch?v=rkMfJobsz0Q
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Thanks. Tried that. But the moment I switch to a wallpaper I like (or the one I attached a screenshot of), the drawer turns white again. I guess my definition of dark is different.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I discovered something funny.

I am using the default camera and have set to save the photos to SD card. If I go to the gallery app and delete the photo, it disappears from the gallery but not from the SD card. If I use a file storage app to go to the folder, the picture is still there.

Also does anyone know why does the default camera store pictures in a long path within the Android folder if set to SD card and not on DCIM folder like it does when set to internal storage?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Can confirm that the built in gallery app is not actually deleting any pictures on the SD card. Not just the ones saved by the camera. I am guessing it's because it does not have the rights to modify contents of SD card. Can't find an option to grant this.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
[MENTION=5075128]LuK1337[/MENTION] Any ideas on unbricking the phone after it got bricked when installing the official "fixed" update from Sony for android P which wasn't supposed to make the display only show vertical lines? (flashing older versions or flashing older and then new again did nothing at all)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
RMA or hammer it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Yup. The reason was what I mentioned. Downloaded another gallery app. The 1st time I tried to delete a photo it asked for permission to modify contents on the SD card. Then successfully deleted the photo.

The inbuilt gallery app asked for no such permission. Can't find a way to grant it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Now that TWRP 3.3.3-0 is out, do we start using that for pioneer? Also the changelog for TWRP says that it might be possible to install this on the phone (inspite of the A/B partition). Should we try that?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Try it :^)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I think I'll refrain this time. I f*cked up my phone twice last week because I was trying stuff. No patience to do it again in case it goes down the same route.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
lmao
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
My quest for an alternate camera app led me to this.

https://labs.xda-developers.com/store/app/com.google.android.GoogleCamera

I can confirm that this works on the XA2. Haven't run any tests for quality yet. 2 small points though:

- it does not offer an option to save pictures to SD card

- initially it won't save any pictures it clicked. However a restart of the phone seems to have fixed that for now. Not sure if the issue will repeat

I'll try later if any other version of the Google Camera ports also works.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] edkozuto:
I've booted this TWRP, but couldn't find any option to install it permanently. Still, installed LOS microG edition without any issues.

---------- Post added at 09:48 AM ---------- Previous post was at 09:46 AM ----------

I've tried latest stable Arnova's builds (8.3b1, 8.2) - crashes right after all permission are granted. Same for GCam 6 betas from both Arnova and B.S.G.

I wonder why switching between front and back cameras takes around 15 to 30 seconds.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Yes. None of the v6 builds of GCam that I tried seemed to work with the phone. TBH, I am not looking for anything fancy. I just want to be able to click good pictures under most circumstances.

The default camera clicks OK pictures. I tried open camera and it gives me grainy results in some situations. If this one gives me good results in most scenarios, it's good to go for me. Just wish it would save to SD card though. I am going to see if one of the other v5 ports work and if any of them have a save to SD option.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
Proximity Sensor does not work at all

Hello and thank you Luk1337 and all others for this rom.

I have a brand new XA2 specifically to run LineageOS and have as little Google as possible while maintaining most functionality. My big problem is that the proximity sensor doesn't work. Phone screen stays on during calls, creating chaos with many buttons clicked when it touches the ear. Otherwise phone works well but this issue can be a deal breaker.

XA2 H4113 Dual SIM

Came with 50.1.A.13.123

Unlocked bootloader through Sony website

Used twrp-3.3.0-0-pioneer.img for temporary boot

Installed Lineage-16.0-20190416-microG-pioneer.zip

Proximity sensor does not work at all. Does not work during calls, and checking with apps also shows it does not work. I cover all parts of phone aggressively, no reaction from sensor. Sensor worked (not great but worked) with stock Sony Rom.

1. Is it bug in all LineageOS or perhaps only in LineageOS for microG ?

2. Will it help if I go back to stock Sony Rom and update to 50.2.A.0.352 ?

Below is issue complaining about Proximity Sensor, but it is at least partially functional (it works but only at close distance). May be relevant:

h t t p s://talk.sonymobile.com/t5/Xperia-XA2/Proximity-sensor-issue-during-call/td-p/1307695

Let us see if we can bring functionality back to mostly working (like stock Rom) or even make it better. Anyone have this issue and/or solution?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
1. Is it bug in all LineageOS or perhaps only in LineageOS for microG ?

Works for me.

2. Will it help if I go back to stock Sony Rom and update to 50.2.A.0.352 ?

Lineage does not support 50.2.A.0.352 firmware (yet)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
update:

my phone was back and not fixed (for unknown issue). then i'll try to ship abroad..

---------- Post added at 01:18 AM ---------- Previous post was at 12:52 AM ----------

And, i heard that unlocked xperia phone cannot use OTA to update formware, how can i update to 50.2 version ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
You should be able to use the Xperia companion app I think. You cannot use the update option. You could use the repair method. Not sure though.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
- I went from lineage-16.0-20190416-microG-pioneer.zip to regular lineage-16.0-20190419-nightly-pioneer-signed.zip

Proximity Sensor still did not work.

- I went back to 50.1.A.13.123 with Emma (Xperia Flash Tool)

Proximity Sensor works.

I think something is broken in LineageOS nightlies, maybe only for H4113 Dual SIM. Can you tell me which nightly you are using with working Proximity Sensor?

Thank you for your attention!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I'm not using any nightly.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Everything on my phone works fine. I am using the H3113.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
Which exact LineageOS zip are you using?

Also, Luk1337, which device sub-model, Hxxx?

I just tried lineage-16.0-20190402-microG-pioneer.zip (earliest 16.0 version LineageOS I can find). Proximity Sensor does not work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
H3113
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
I'm on the 14/03 build and the proximity sensors works fine, H4113 variant.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
Great news. Where can I find this build?

I can also confirm with lineage-15.1-20190227-microG-pioneer.zip, Proximity Sensor is working.

Bug was probably introduced between 2019-03-14 and 2019-04-02
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
i've googled and found that i should relock my phone then i can use OTA ..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>Great news. Where can I find this build?

I bet he'd still have proximity sensor on the latest one lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
My phone is unlocked. OTA works.

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

I doubt it. I am on the build from 2-3 days ago. Everything works. Somehow I think the issue is with your phone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] rabbitweed:
what do you use?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Guess.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
He doesn't use nightly, he uses daily :)

Any way, I will stay with latest 15.1 microG build as it seems everything works. Some time in the future I may try newer 16.X builds.

Also default LineageOS camera app in 15.1 has less lag when changing options and switching modes in my experience. FYI you can enable Camera2 API (API level: "Full") in camera software such as Open Camera (in f-droid store). Camera in daylight has great quality.

My only remaining issue with this device is very bad quality with camera in low light, likely due to DRM'd postprocessing being lost when bootloader was unlocked. If anyone has suggestions to improve low light performance, including lost DRM'd functionality workarounds as promised by Xperifix (can Xperifix even work with LineageOS? I'm too scared to pay unless it really works)....

Thanks to all who work on these projects and who share info !
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] roman 23:
sensors not working

Compass, gyroscope and accelerometer aren't detected with this ROM.

Can someone confirm this behaviour or did I install Lineage 16 incorrectly? :confused:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
adb root
adb shell "chown root:root /persist"
adb shell "chown root:root /persist/sensors"
adb shell "chown oem_2903:oem_2904 /persist/hlos_rfs/shared"
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jnappert:
As for as i know Xperifix installs and uses Magisk to run a script with some permissions on startup. With this script i managed to get drm blobs to say "okay" in stock. Xperia Service Menu (*#*#7378423#*#*) confirmed it. I wonder if this script can be included in lineage 16.0 and has some effect on e.g. Open Camera?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
You may want to try flashing and booting 50.1.A.13.123 stock ROM and then going back to lineage.

btw we don't have a gyroscope.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] generalintellect:
I assume restored postprocessing features would have effect on all camera apps, but correct me if I'm wrong.

Functional DRM workaround under LineageOS would be the holy grail for this phone. Is it theoretically possible?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Pill0wDipsauce:
Tried to reinstall Lineage 16 (nightly 2019-04-22) today after going back to stock oreo, but ran into some issues this time.

Some findings during installing which might help in any way:

I only got a successful install by flashing 50.1.A.13.123 first, following instructions in the second post of the thread (duh), then flashing the rest with TWRP version 3.2.3-2.

50.2.A.0.352 would lead to a grey screen when trying to boot TWRP.

After flashing 50.1.A.13.123, I tried four times with the newest TWRP version (3.2.0-0) and the install would succeed, however the camera would not be detected for periods of time (camera freeze when going back to camera from gallery and greyed out flashlight icon).

My actions and the issues I got might not be connected, but this was my experience: flashing Firmware 50.1.A.13.123 and then using TWRP 3.2.3-2 work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Did you permanently flashed TWRP?

If you did have you tried to fastboot boot TWRP img not zip instead since I do not think TWRP being permanently installed is supported unless it is supported in latest builds [MENTION=5075128]LuK1337[/MENTION].
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Pill0wDipsauce:
I used fastboot boot twrp.img every time. And I've got it working now like I said. I just wanted to write down what worked for me, in case someone else had similar problems with the install.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
The brightness of the ambient display (i.e. The one that shows notifications in a low light mode when the phone is locked) has increased after the last build.

I like it!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Mazda932:
Hi,

Is this rom ok for daily use?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Yes. Cannot find a single fault, except that I am unable to use Google Pay. However others are so it's probably something to do with my set up.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
I have used it as my only phone since the day it went offical. No issues with the rom, outside of weird issues on more advanced apps (like Key Mapper, after a few hours, just stops working). However, I would guess these issues are more on the apps not properly supporting 16.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Pill0wDipsauce:
After more than two months of using lineage, I'm confident in saying this is more ok than stock in my opinion:

No bloat;

control over which apps can and can't use mobile data, preventing you from exceeding your bundle;

better button remapping(like hold power for flashlight, different camera apps on hold shutter button);

up to date security patches;

little tweaks like disabling vibration from fingerprint scanner(don't know if this is possible on stock);

dark mode;

I've found Open Camera on lineage to have better photo quality than the xperia camera on stock.

The only issues I've had are with figuring out the install(patience). And the gallery app doesn't delete photos from my sd card, installing 'simple gallery' solved this problem and is a better app anyway.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
as i know, currently Los has no EAS support.

for some Magisk modules (such as LKT), they need EAS to work.

i dont know whether CPU 630 have no EAS support, if not, could LOS add it ?..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SeaMax:
Heads up:

I followed this instruction (prior to (wanting to) flashing lineage os) and flashed

"Customized DE_1312-2606_50.2.A.0.352_R1B"

as described (via newflasher) and now my device seems to be bricked (same symptoms as people reported on the first official android pie update - black screen and flickering).

second heads up:

twrp 3.3.0-0 does not work with official pie update (black screen), so there should be a disclaimer somewhere to that installation of lineage os IF you are on official sony pie android will not be possible untill xa twrp is updated to support sony android pie.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Uh, yeah. Lineage and TWRP requires 8.0 for time being, maybe that'll change in the future.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Kele5404:
Hello, may I ask,will it support Gcam in the future?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
So that proximity sensor thing mentioned a while ago - I discovered something related to it. It works fine on calls as long as the app making the call is at the front (phone app during regular calls, WhatsApp during WhatsApp calls, etc.).

However if you switch to some other app while the call is on, the use of the sensor is not acknowledged i.e. screen does not turn off when the phone is pressed against the ear.

Anyone else able to reproduce this?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
That sounds like 'works as expected' to me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
If a call is on, shouldn't the sensor turn off the screen? Even if the app is not front and centre?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Dunno.

EDIT: Actually, I just read the source code and it enables that whenever it detects your phone is rotated and that indeed works here lol.

https://github.com/LineageOS/androi...droid/incallui/ProximitySensor.java#L228-L232
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Phone rotation would be driven by the accelerometer, wouldn't it? Proximity sensor is supposed to turn off the screen when on a call if the sensor is covered.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Obviously...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
So why check the source code for phone rotation :laugh:

I asked about the proximity sensor, not accelerometer.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Did you read the code?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
No sorry. Got thrown off by that word. Just went through it now and looks like that is how lineage is coded.

Thank you for looking it up.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
That code is probably from Google btw.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
OK. I also own an Essential phone and this does not happen there (I think since it took me a few weeks to discover it on the XA2). I'll check on that again later. If it does not happen there I assume its something that they have taken care of.

Thanks again.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] seaw:
Hi,

I bought an XA2 about one month ago and want to switch to LOS. My model number is H3113 and it says the build number is 50.1.A.13.123 (Android 8.0.0., the stock rom that came with the phone). Will I need to any firmware flashing as described in post #2 ? Or can I just follow the guide at wiki.lineageos.org/devices/pioneer/install ? Also which TWRP image should I use? Pretty new to all this stuff, sorry.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] boondawg:
Followed this instruction after unlocking my bootloader and flashing forth and back

"lineage-16.0-20190429-nightly-pioneer-signed.zip" and the stock rom via Emma.

Then tried flashing the firmware ("H3113_Customized UK_1312-3737_50.1.A.13.123_R20A", which was the one proposed by Emma and downloaded via XperiFirm) with the newflasher.

Worked fine on slot a. When I switched to slot b and tried to reconnect to the computer the devices just stays with a black screen and the LED flashing green from time to time.

And that's all it does since then.

Not able to detect the deveice, neither with adb, fastboot, Emma or the newflasher tool.

Anyone ran into the same problem/ even got out of it again?

Help is very much appriciated.

boondawg
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
You don't need to flash firmware. I have the same model and I didn't. Everything is absolutely fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Unless you have 50.1.A.13.123 on both slots you should flash it with newflasher.

>Also which TWRP image should I use? Pretty new to all this stuff, sorry.

Latest official one (img; not zip).

You killed it, rip.