yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
Hi,

I could work, but it assumes you understand the implications.

Don't blindingly copy them; for example establish which is the good slot and which is the bad one and adjust the commands accordingly.

You don't need your phone routed, you just need to enable adb root access in developer menu and then start adb using "adb root" before "adb shell".

Again, please establish which is the good slot before proceeding.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jimzhong:
Can anyone use VoLTE on this ROM?

Thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Chronic2k13:
Can someone please inbox me with precise instructions how to install this Rom please!! I've come from a z5c and all this a/b partition stuff is alien to me! My bootlloader is unlocked but I just can't figure it out!! Many thanks in advance!!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
https://wiki.lineageos.org/devices/pioneer/install
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Shervrar:
Media

So is it just me, or is the media indexing service completely broken? Moving images from, say, /sdcard/DCIM/Camera to /sdcard/Pictures/fdafdas will not make the new image show up in the gallery, but the old entry for when it was still in /sdcard/DCIM/Camera might or might not be there. Sometimes it doesn't even recognize new media being added at all (especially on external SD card)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Maciek666:
Hello, I have a problem with the safety net in magisk. Unfortunately, cts profile is false. Is this the only problem I have? Is it possible to get around this quality. Sorry for my bad english
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Hi Maciek666

My cts profile is false as well, I tried to hide Magisk from Google Play Store and Google Play Services but it did not change cts profile to true.

I think you should try clean install, it may fix the cts profile is false issue.

Make sure you backup any important data if you are going to clean install since it will wipe your phone' internal storage and all app data.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
For me the only fix for cts errors was to use the module called magiskhide props config. It lets you set your cts profile to a passing one. However, it was not fun for me to set up. Boot loops, etc. It works now, but I don't want to have to fix it again (especially since passing safetynet no longer helps run pogo).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] radhazx:
I didn't see any explicit warnings but wanted to ensure before I try that this ROM is "reversible" ie anything I do from unlocking the bootloader to installing the ROM can be undone and the phone restored to stock?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
I don't know if you can undo a bootloader unlock. However, there is a program, up in the thread, that will let you restore back to stock easy. Or you can also make a twrp backup of stock first and then restore like that.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] droidsometimes:
Nice work, [MENTION=5075128]LuK1337[/MENTION], thank you very much! :) :good:

I took the dive two days ago, was a bit more challenging than flashing otther phones, but I'm almost done now with installing & customising stuff to my liking, and I'm very satisfied.

LOS + addonsu (September one from mirrorbits) + Pico OpenGapps (Play services disabled most of the time though). Rock solid so far and smoother than Sony stock (which barely lasted a day, just to make sure there were no hardware defects :laugh: ).

Also, very nice mid tier phone - good build quality, screen more than okay, GPS locks quick so far. And it is fairly compact, still has a headphone jack and no notch.

Also, power consumption and battery... looks like it will easily last me 3 days between charging, on normal usage. We're past 12 hrs of sot now (wth!) and still 15% charge left. And it wasn't even fully charged when I booted LOS for the first time, but somewhere between 90-95%. And I was really using it like, installing stuff, reboots, benchmarks... go try that with a flagship.

Anyways, happy! Donation sent! :)

PS: is it just my phone or is auto brightness kinda, not doing much? Wasn't like that on stock iirc.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] nothing4me:
[MENTION=5075128]LuK1337[/MENTION] Does this work for Xperia XA2 Ultra? I tried searching for "ultra" in this thread but I could not find any info.

EDIT: The answer is no. I asked Luk on IRC.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Gorweel:
good day! I have the same problem. I tried to enter these commands in the terminal. The first two were successful. The third did not go. The sound during the call did not appear
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
I am a bit confused what to expect about the functionality compared to the original Sony ROM. Does this table:

https://developer.sony.com/develop/...ty/current-platform-functionality-maintained/

apply also to the LineageOS builds? I somehow got the impression from reading in this forum that at least some of the issues (like degraded camera performance) have been solved. Is that correct? Which features are still not working?

I didn't find a clear answer to this question, sorry if I have missed something (just point me to it in that case). Thanks!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Hi what do you mean degraded camera ¿ it's stock libs it's just you can't use Sony camera.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
The table says "23MP, 1/2.3” Exmor RS™ for mobile image sensor, Hybrid Autofocus, Quick Launch & Capture" and "Low-light photo: ISO12800, 84° wide-angle F2.0 lens, 5x Clear Image Zoom, SteadyShot™" for the original ROM against "17Mp" and "ISO800" for the AOSP projects. I thus assume that a AOSP ROM will have a lower resolution, no image stabilisation and less light sensitivity.

I don't care about the App itself. If I can have those features with a different App, this is perfectly fine for me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No it doesn't apply to our builds. We use stock-ish-y kernel and blobs.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
Great, thanks! You should more clearly mention that in the initial post! :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Yes that is correct. Aosp is using common libs that aren't fully developed yet and are no where optimised also aosp has full HAL3 where as stock is Limited. Also remember SteadyShot is software as well so you need stock for it.However Los is using stock libs. On custom roms I use Oneplus camera for awesome snaps at high resolution. However it is annoying that we are limited and cannot use Google camera and that we can't use stock camera on custom roms.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mach04:
Hi everyone. So happy to be using LineageOS, and 99% of everything works well. Thank you Lukasz!

But I'm still having a few problems with audio, wondering if anyone else can reproduce:

1. Inbuilt microphone doesn't work during a call, when the loudspeaker is turned on. I've attached a logcat for this, the only obvious thing I can see is an ACDB lookup error.

2. Audio distortions at low volume settings. When I play a song at the lowest volume setting, I can hear noticeable fuzz during soft parts of the music, and at a certain level, the sound cuts out completely. This happens on both the loudspeaker and the headphones. Nothing shows up on the logcat for this one. Maybe this is ACDB as well? Not too sure

3. Minor one, but the loudspeaker saturates easily at high volumes, and doesn't go soft enough. Maybe the volume increments could be smaller?

Note I am on the 20180828 build, but as far as I can tell, the audio config files for the XA2 have not changed in the last two months. Hence why I'm wondering if anyone else can reproduce this, especially number (2)

On a related note, [MENTION=5075128]LuK1337[/MENTION] the android_kernel_sony_sdm660/arch/arm/boot/dts/qcom/msm-audio.dtsi file was updated again by Sony to remove a duplicate config entry from lines 32-37, see here https://github.com/sonyxperiadev/kernel/commit/3ebadd15217a8809b96fc6ffc8cf134be64a3fcd.

But, I don't think this will solve the issues above, as I doubt that stock has these problems (but this is my daily phone so I can't easily go back to check).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I don't use that kernel but I'll try reproducing mic issue later.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mach04:
Oh... I got it from your commit fixing the previous headset mic bug, at https://review.lineageos.org/#/c/LineageOS/android_kernel_sony_sdm660/+/223191/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I cannot reproduce "1. Inbuilt microphone doesn't work during a call, when the loudspeaker is turned on. I've attached a logcat for this, the only obvious thing I can see is an ACDB lookup error." on 16.0.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] matitino:
Does it support fast charging?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] axxx007xxxz:
I don't think microphone is broken, I just think its gain needs to be increased: person on the other side can barely hear me, but it does work.

I'll try to look into audio configs later and report if I actually manage to fix it (I really doubt it though lol).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
Yes it does.

The original charger that came with my XA2 doesn't do fast-charging, though. :rolleyes:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
Which is bloody annoying.

I got this one : QC PD Charger,DualAxon 18W QC 3.0... https://www.amazon.com/dp/B07G9L3GBS?ref=yo_pop_ma_swf

A bit expensive, but has USB A and USB C ports that both fast charge this phone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] matitino:
I know, luckily at work we have 2 samsung with fast charger ... and one magically arrived at my house ;)

thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kapibada:
Personally, I use it with a Motorola TurboPower that came with my previous phone. Seems work nicely.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mhier:
Sorry, one more question: Is the battery care also supported? I mean the feature which stops charging at 90% and only continues shortly before one usually unplugs the charger.

If yes: do we have software control over it? I mean could we somehow decide when to fully charge it or even limit the charging always to 90%? I guess that could prolong the battery life time in the long run.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
There's a magisk module and a app on the playstore
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] antimatter84:
TWRP error: unable to mount /firmware + stuck at boot animation

Hello,

I installed LinageOS on a new XA2 (H3113). Because of several problems (e.g. "Bluetooth keeps stopping" messages) that wouldn't go away, I reflashed LOS and also stock ROM (from Xperifirm) for a fresh start several times. It's still not working and the A/B slot system contributes to confusion.

After unlocking the bootloader I installed LOS as described on the installation page in the LineageOS wiki for "pioneer". I temporarily boot official TWRP (3.2.3.1) via fastboot, format data, wipe system, then install the LOS zip file. Then I reboot to bootloader and boot TWRP again via fastboot, install gapps and reboot into system. After flashing LOS I do not boot straight to recovery, because that would be the recovery integrated in LOS. And I also have placed all the zip files for installation on a micro SD card.

Current problems:

sometimes after wipe/install I see "Error: unable to mount /firmware (invalid argument)"; sometimes not.

after "unable to mount /firmware" errors, I have problems with installed LOS: "blueooth keeps stopping" or the boot animation is stuck (e.g. 30 minutes).

flashing stock ROM worked once; but not more: bootloop after white screen with black "SONY" logo.

latest result: stuck at LOS boot animation.

I think, this mount error has to do with a slot gone bad, but I don't know how. "/firmware" probably relates to the communication stuff and hence the "bluetooth keeps stopping" makes sense. Also, this A/B system is very strange and puzzles me the more I read about it. They say, TWRP wipes the active slot, but installs ROMs on the other slot. Why do I wipe data+system on the active slot, when I install LOS on the other slot?

How should I proceed from here? How can I fix this mounting firmware error?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Run magic dd commands from https://xdaforums.com/xperia-xa2/development/rom-lineageos-15-1-t3806439/post77379268
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] antimatter84:
Luk, thank you for the assistance.

Before I do this, I want to understand the reasoning behind this. Those commands will copy the block files from slot A to slot B. This implies that slot B is the faulty one, meaning the block files are missing there. If this is correct, how would one know that slot B is faulty and not slot A?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Because that's how it always is.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] antimatter84:
Hm... I was hoping for a more technical answer. :D

As I read here, the procedure is to run "adb root", then "adb shell" and run those commands, which requires an Android system with ADB debugging enabled. Are there alternative ways in case I don't get an Android to work properly for enabling debugging?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
fastboot boot TWRP and use adb shell there.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Maciek666:
Any chance to use gcam in this rom like in aosp?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
I am trying to change accent colour and dark mode in settings, display, style but it keeps on crashing every time I try to change accent colour or dark mode and trying to use automagic causes it to crash as well.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Twacrs:
I can't seem to get Play services working... I flash LOS, then reboot and flash opengapps, but play services just crash on me every time I try to open the store - I can't even sign in. Any suggestions?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Are you using substratum theme?

If you are then you should update the themes and if necessary build and update all overlays of the theme.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Twacrs:
I figured it out, I just needed to flash gapps immediately after LOS, not after a reboot
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
Just updated (the first in a while) and now the fingerprint reader doesn't work. Anybody have ideas?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Billyhasnotalent:
Any luck for anyone with Verizon? I posted this on the reddit thread, I keep getting the mobile network not available alert. No calls or text but mobile data is working. I know Verizon only started officially supporting this device a month or two ago, so I don't know if everyone flashing this build just isn't a Verizon user....
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
And updated again it it works now. :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Your firmware on slot B is bad.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
How can I fix that? Or is it not something to worry about.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
https://xdaforums.com/xperia-xa2/development/rom-lineageos-15-1-t3806439/post77379268#post77379268
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
Thought I did that already, guess it was the last rom I tried, before a reflash to stock. Going to have to do that when I get home.

Still not comfortable with A/B, so thanks for helping in something that is so simple :).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] indrekh:
I'm planning to buy the XA2 and had a few questions about installing LOS. I've read through this thread, but there seems to be some conflicting information and I wanted to be sure to have the most up-to-date answers.

1. Is there anything that absolutely needs to be done on a brand-new XA2 before even unlocking the bootloader? Such as updating the stock ROM to the latest version? On my current device (Z2 Play) I had some issues after flashing LOS 15.1 over stock Nougat.

2. Does the latest official TWRP (3.2.3-1) work? I've seen recommendations to use a modified version from post #2 of this thread, but that post has been blanked, as well as to use an older version like 3.2.2-0.

3. Are these dd commands always necessary, or only if there are problems with calls? Should they always be used together, or individually depending on which problems arise?

4. Is MindTheGapps still recommended over OpenGApps?

Thanks in advance!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
1. Yes, dd-ing partitions will be absolutely necessary,

2. Yes,

3. See #1,

4. Maybe. I haven't used used 15.1 on my device(s) for quite long time.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Hi indrekh

1. You should update to the latest firmware available with Xperia Companion found here https://support.sonymobile.com/gb/xperia-companion/ before unlocking bootloader or if already unlocked then you should update through Sony FlashTool https://developer.sony.com/develop/open-devices/get-started/flash-tool/download-flash-tool/. This will ensure your device will have any bugfixes which may cause problems in Lineage OS.

2. You can find the latest TWRP here https://twrp.me/sony/sonyxperiaxa2.html. Download the img files and if you want to use Lineage OS then boot twrp with fastboot command fastboot boot recoveryname.img, then flash Lineage OS through the TWRP and Open GAPPS or MINDTHEGAPPS.

3. Yes they are necessary if you any problems appear in slot b.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] indrekh:
Thanks, but your answers don't seem to be in the same order as my questions. By "See #1", did you mean your first answer, or post #1 in this thread? Because post #1 doesn't seem to say anything specific about TWRP or Gapps.

Thank you, that's very helpful. So OpenGApps are known to work fine now?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
...first answer.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
I have not tried OpenGAPPS on my Sony Xperia XA2 or any other Android Oreo devices I have but since they are not in beta anymore they should work without problems.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] indrekh:
Well, I got my XA2 (model H4113) yesterday. Updated stock ROM to the latest version available and then successfully flashed LineageOS 15.1. Everything went very smoothly.

A few notes about the whole process, maybe someone will find these helpful in the future:

Unlocking the bootloader requires an older version of fastboot. All guides I found just point to the latest version of the Android platform tools, but Sony's instructions say version 26.0.2 or older is needed. Took me a bit of digging to find the download link: https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip

When rebooting the phone to bootloader, the display stays off, only the notification LED turns blue. I was worried something was wrong at first, but fastboot commands worked and the display turned on when booting TWRP, so I guess that's normal for this phone. On other devices I've flashed custom ROMs to, the bootloader has had some sort of basic GUI.

The official TWRP 3.2.3-1 works fine, no problems encountered. I backed up boot, system-image, vendor-image and data partitions and copied them off the phone with "adb pull /sdcard/TWRP TWRP"

I used OpenGApps, specifically the pico package, and it seems to work fine. At least the Play Store works, can't vouch for any other Google apps or the larger packages.

I had installed the previous nightly build of LOS, not the latest, so I could immediately test updating. That also worked fine, the latest build was downloaded and installed in the background, and after a reboot the phone was up-to-date. The dd commands were not necessary, I tested Bluetooth and phone calls both before and after updating, and there have been no error messages. The only minor issue was that root was lost after updating, but I just rebooted to TWRP and flashed addon-su again.

I really appreciate all the information in this thread, as well as the hard work that's been put into the LOS builds. Very happy with this phone right now.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SGS3_0:
Why so many builds this week? W/o changelog.

What is the big difference between them?

"Changes included in lineage-15.1-20181129-nightly-pioneer-signed.zip

Changes included in lineage-15.1-20181128-nightly-pioneer-signed.zip

Trebuchet: move to default screen on home intent

android_packages_apps_Trebuchet

Changes included in lineage-15.1-20181127-nightly-pioneer-signed.zip

Make adb use a custom prop for adb root

android_bootable_recovery

Make adb use a custom prop for adb root

android_packages_apps_Settings

Make adb use a custom prop for adb root

android_packages_apps_TvSettings

Make adb use a custom prop for adb root

android_frameworks_base

Make adb use a custom prop for adb root

android_system_core

Rename translations for new language code mapping

android_packages_apps_Exchange

Changes included in lineage-15.1-20181126-nightly-pioneer-signed.zip

Changes included in lineage-15.1-20181125-nightly-pioneer-signed.zip

Changes included in lineage-15.1-20181124-nightly-pioneer-signed.zip

Changes included in lineage-15.1-20181123-nightly-pioneer-signed.zip

Changes included in lineage-15.1-20181122-nightly-pioneer-signed.zip"
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] indrekh:
LineageOS recently moved to daily builds for 15.1. If no changes are listed in the changelog, then there isn't any difference. You don't have to update your device every day.

https://lineageos.org/Changelog-21/#builds
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SGS3_0:
Thx :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] pupsidze:
Installed LineageOS 15.1, latest build (30 November). When booted, I constantly get 'Bluetooth keeps stopping' pop-up window. Any idea how to fix it?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
I Believe that is caused by faulty partitions. You can try dding them, ala https://xdaforums.com/xperia-xa2/development/rom-lineageos-15-1-t3806439/post77379268#post77379268
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
[MENTION=5777799]SGS3_0[/MENTION] i'm very interested in your *dual sim porting* work and i want to know how to port a dual sim supported modification for xperia xa2, and now what about the bug you said ?

[MENTION=5075128]LuK1337[/MENTION] thanks for all your kindly work, is this rom suitable for dual sim variant H4133 ? i've viewed all threads there, aware that most problem is in Calling Silence, what i'm confused is whether a single sim Rom also available enough for dual variant, there should be a hardware difference between single and dual variant.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] pupsidze:
Many thanks for pointing out and to [MENTION=5075128]LuK1337[/MENTION] for writing instructions! LOS works fine now :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
No worries. :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] SGS3_0:
It's my fault. 20180810. I did not have a second sim in existence. Only one. I checked the work of both slots for sim, separately. Then I asked another owner of XA 2 to check if the sims work together. He checked and confirmed it.

I already forgot about this post. At the moment, sim work separately: only 1st or only 2nd, or only 1st if both are installed.

:(