yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] felixborn:
Solved: Restore lineage 15.1 on XA2 with TWRP

Hi, I have solved the restore. It is maybe a problem with dm-verity. In case someone will have the same problem, here is the way which works for me.

use twrp-3.2.2-0 (it seems twrp-3.2.3-0 has problems )

backup: boot, system image, vendor image, data (do not use system, vendor because of this: twrp.me/faq/whattobackup.html)

restore: format data, restore boot, system image, vendor image

then: reboot off, reboot system, off, reboot twrp, restore data

(my guess: maybe the data partition is also modifed by dm-verity, and thats why we have first restore system and after reboot we can restore data)

(It also works for the sony-rom)

regards

felix
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
I followed the official LineageOS guide to flash it to my Xperia XA2 and it seemed to work.

Was able to boot TWRP and flash the LOS .zip file.

After a reboot, the phone now says "Your device is corrupt. It can't be trusted and will not boot." and shuts itself down.

Did I brick it?

Edit: Seems semi-bricked. Pressed VOL UP and connected USB and I am now in the bootloader again.

I cannot boot TWRP from the bootloader, though:

FAILED (remote: Failed to load/authenticate boot image: Load Error)

Edit #2: Unbricked it with "fastboot set_active other". LineageOS now boots.

Is it normal, that the other slot does not boot anymore? I never had a device with the slot system.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ThomasXA2:
I did a clean Install from the 2018-08-14 build and everything worked as expected.

After updating by lineageos updater to the 2018-08-21 build Google, Google Services and Gmail keep crashing at startup (gapps nano, wich worked as well previously).

Did someone else has this Problem? Is reflashing gapps a good idea?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Use mindthegapps instead of opengapps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Will this support modded hdr google cam?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] logg84:
I've tried too many mod, but no one seems to be good for our phone. there is just a rom here in XDA that use the Gcam port, but you will have to reduce the quality to 15mp and quality don't seems to be better than stock camera.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
Megapixels have nothing to do with quality.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] logg84:
yes I know this...this is the reason I wrote " but quality don't seems to be better than stock camera."
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
I mean i have the mod on my phone, but hdr won't work and portrait mode won't open..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] eem4u:
Dual SIM Support

Hi,

I just signed up here, as I'm trying to get Lineage15.1 running on my H4113. First of all: thanks for working on that, [MENTION=5075128]LuK1337[/MENTION].

So far everything seems to work fine - except for dual SIM support.

Both SIM slots do work "separately" - i.e., I can use each one of them but not both at the same time. When inserting two SIM cards, then on one

card the device simply finds no mobile networks. The device does ask for both SIM pins, though.

[MENTION=5075128]LuK1337[/MENTION]: no, unfortunately I can't confirm that. Neither the official build nor [MENTION=5777799]SGS3_0[/MENTION] 's build appear to support dual SIM on my device. Is there anything I could

test in order to assist with getting dual SIM support running? Or am I maybe missing something here?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
Can someone tell me if they can boot from both slots?

With Slot A I am stuck in a bootloop with the device telling me "Your device is corrupt. It can't be trusted and will not boot".

Slot B works fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ThomasXA2:
Installing mindthegapps worked, thank you.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
Does anybody have problems with casting videos to Chromecast? My phone can't find the Chromecast so I can't even mirror my screen for example. 21/08 build, mindthegapps, no root nor fancy mods.

EDIT: nvm fixed after a reboot. Sorry.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] struct_t:
I can boot from both slots. I've upgraded using the Lineage updater twice, both times have been no problem.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
Did anyone encounter a wakelock when Wi-Fi is connected? I got about ~20% of battery drained, though when wi-fi is turned off or not connected, nothing like that happens.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
Damn. I somehow botched my Slot A when I flashed LineageOS.

It flashed onto Slot B and destroyed Slot A in the process.

Now I cannot mount /system on Slot A anymore and the phone is in an endless loop after the SONY logo.

Not that I really need it, but it still bothers me a bit.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Does anyone know why the stock email app notification background usage keeps coming back after being swiped away?

Does it have to do with automatically sync data being turned off?

Since I like to manually sync data would it be possible to make the notification go away permanently without turning off all notifications for the stock email app?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
You should be able to bring the slot back into working state - just wipe system & reinstall LOS.

Careful, though, as TWRP wipes the current/active slot but writes LOS to the inactive one, so you need to reboot to recovery in between wipe and install.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Klem13:
... sorry - did not see that there are already 38 pages. I will read them first, before I raise a question :) - Regards, Klem
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dan Smith:
Hi everyone,

I managed to get a little bit of progress regarding silent calls.

After flashing my H3113 firmware with 50.1.A.10.40 (easily found with a search engine), and then reinstalling LineageOS 20180821 (as nothing was booting anyway just after flashing), I could finally hear something during phone calls and get my correspondents to hear me as well, so this problem looks solved.

So this problem looks indeed to be linked with the firmware (as this was also more or less what was going on when copying around bluetooth, dsp and modem device files using dd).

However, this came for me with two annoying drawbacks :

The widgets take a lot longer (~ 1 minute) to start after rebooting and starting the OS. It prints once or twice a "Process system isn't responding" popup, in which you can choose to wait until... it finishes whatever it is doing and doesn't ask anymore. This is particularly visible on the Calendar app where nothing would get displayed until this finishes.

Much more disturbing, Wi-Fi is completely non-working (it doesn't even switch on when asked), and Mobile Data, even when switched on, acts like it's switched off. So it is basically impossible to connect to the Internet.

As I didn't encounter these 2 items before flashing firmware, I guess these 2 issues are, just as with the silent calls one, related to the firmware, but maybe reporting it could produce something useful for users or developers.

logcat doesn't appear to log anything useful here either.

So I guess the next step for me is looking for a more up-to-date firmware.

---------- Post added at 10:33 PM ---------- Previous post was at 10:28 PM ----------

I indeed found that notification so annoying that I ended up disabling the app completely. However, I'm using another mail client (K9-Mail), so it doesn't solve the problem if you wan to use the stock e-mail app.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Hi Dan Smith

It is a bit annoying to have the notification come back after swiping it away but since I do not want to have compatibilities issues using K-9 mail with outlook accounts, I will just have to keep using the stock email app until either K-9 updates their app or the notification can be permanently swiped away.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
One other option would be to disable notifications for the email app, but since you actually use it that wouln't be optimal...I don't and completely disabled it, just as the previous poster did (and I also use K-9).

It's not clear to me why the email app would work and K-9 wouldn't for your case, but as I haven't done the research, I can only suggest that you try it and see.

---------- Post added at 11:53 AM ---------- Previous post was at 11:27 AM ----------

I'm replying to my own post with a few more data points:

-using the phone in the car as a navigation tool (GPS turned on and navigation app on the screen all the time) while being connected to a fast charging charger still drains battery (it lost about 24% while charging for the whole journey, which was a bit less than 3 hours long)

-although I have the brightness tuned down all the time, use a dark theme and turn wifi off when I'm not using the browser, I still barely get a day's worth of usage out of the phone; I'm really trying, and my usage is moderate.

I am now using 20180821 (+gapps, no root or other funky stuff).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
Well on K-9 Mail, Welcome to K-9 Mail screen, it says it has some quirks with when talking to Microsoft Exchange.

Is there no offline battery charging screen?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] struct_t:
K9 worked fine for my purposes when I had to use it with an Exchange server a year ago, don't know if that's a useful opinion for you, but it's way better than the stock client for any type of email work. :)

---------- Post added at 12:12 AM ---------- Previous post was at 12:07 AM ----------

I get excellent battery life. I don't use gapps, though. No root, and I leave wifi on all the time. *shrug*

I suspect something in your firmware is quite broken - are you absolutely sure you reflashed the stock image properly? Like, did you use the official SONY software to do so, or did you flash an image you found somewhere?

Official SW: https://support.sonymobile.com/global-en/xperia-companion/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
What about fcp1035 on H3113?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
If anything it'd be broken on all devices and I would need someone to help me testing it.

(protip: if no one will be willing to help me testing it then it'll stay broken)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
i really hate to be the problematic one here but here is my situation.

my _a bootloader and partitions are on stock 50.1.A.5.59 with white text notification about unlocked bootloader, _b is older version with red triangel.

i've had unlocked bootloader so i had to upgrade to 5.59 using newflasher.

now with active _a twrp will install los and opengapps to _b but maybe because some part of _b bluetooth is crashing, sim won't work and maybe something else is broken. gapps are ok.

if i set active _b twrp will install lineage to _a and everything works but if i try to install opengapps twrp gives me error that it's not for 64bit platform.

is there any way to upgrade _b bootloader, boot, system,... to latest stock rom? and even if there is what about gapps?

i could dd _a partitions and use dd to flash them to _b but what about bootloader
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Set your active slot to _b and flash stock ROM using Sony's flash tool.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
Still the same, old _b
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Eh then you have to be bit more creative xD
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
:D thanks anyway
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
If you want idiotproof method:

- Download old fw that has OTA available,

- Flash it using http://www.flashtool.net,

- Use OTA
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
ok after fastboot --set-active=b reboot phone went off and it´s dead, there´s only green led blinking :D good bye
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
good night sweet prince.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] RRRex:
Just like that eh? I literally know nothing and just follow guides but maybe you can restore with emmaflash tool? I was bootlooping and held the power + volume up and down till the phone vibrated twice and stayed on a blank black screen. then i held volume down till the green led came on and Emma flash tool reflashed my device with stock. Luk1337 I sent you a discord request if there's anything I can do I'll try to help. I'm a pleb though and like i stated before i just follow guides.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
Emma flashtool gave me an error last time I used it a couple days ago. Says a new version is needed and the new version requires a sony login, which after contacting support I was told it's only for certified technicians now...

Androxyde Flashtool was just uodated though, which is what I used to downgrade the baseband on my H3223. Emma was working on my H3123 about 2 weeks ago, but not anymore.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] RRRex:
developer dot sony dot com/file/download/flash-tool-for-xperia-devicesl

yeah, no, i just reset my xa2 yesterday as i had a boot loop. i ran into the same issue in regards to the updating of the software but didn't need to sign up for anything though just downloaded from Sony's website. try the link amigo.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] li0nh3art3d:
Ahh. They released a new version. If you get it off that link, it will work without a login. It's basically a cracked version of the one off the emma page which requires a sony login. Cool ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
Confirmed to work on H4113 (with only one SIM, though), even my fingerprint sensor works! I needed to change slot in TWRP to B, otherwise there was a huge load of system apps force-closing.

One big disadvantage is the fact that SU addon after flashing just does not work, I can enable it only for ADB, which is useless. Had to install magisk.

And also the rom for some reason announce about SD card every time the phone boots up, even when I dismiss this notification.

Otherwise, very good work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
You can try this addon.d ~ http://download.ods.ninja/Android/addons/addonsu/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
It'll work soon, I need to release new TWRP and wait for new A/B compatible addon.d packages.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] baj24:
At least for me, Bluetooth audio streaming doesn't work. I can connect to bluetooth devices, phone calls work fine over bluetooth, but audio never routes to the device and only plays on the phone. Tried two different devices.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I'm able to reproduce that. I'll let you know when I fix it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
USB modem does not work for some reason. Can anyone reproduce that or it's me who is unlucky?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
Did anyone get a weather provider working? I don't wanna pay for wunderground, and yahoo doesn't work for me.

Also, I did install the unifiednlp (no gapps) to system, but sometimes i get completely disconnected from location. I have to restart phone to get a read. Anyone else having issues with that?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
The weather providers on download.lineageos.org/extras don't work with LOS15 yet.

There are a few downloads for Oreo, but at least for Yahoo, they only work after first install. Refreshing weather data never runs.

Guess we'll just have to wait for them to get updates. For now, I use AccuWeather.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
Does accuweather provide your cLock widget with weather though?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] schmatzler:
No, but it comes with its own widget that can be placed under the cLock.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
Went to the site and found out they only support Windows (calling it PC, hehe) and Mac - I use neither.

But I have to say it's not looking likely to me. If the firmware was broken, there would have been non-working features.

I actually had firmware on one slot broken at one point (silent calls) and I managed to bring it back to working state by copying the /dsp, /firmware and /bt_firmware partitions from the still-good slot. It looks to have worked. Would there be other firmware hidden in other partitions that I might have missed? maybe energy saving related?

---------- Post added at 08:58 PM ---------- Previous post was at 08:44 PM ----------

Ha, only a few pages back I was complaining about something similar.

While I have gapps installed, I keep usage to minimum, and as such I installed OsmAnd~ from F-Droid, which apparently pulled in unifiednlp (nogapps) along.

It works, but sometimes I get no lock whatsoever - I installed GPSTest from F-Droid to confirm that when it's not working it's not seeing any satellite at all.

I have recently observed something interesting: I normally keep location disabled and only enable it before starting the navigation app. Of course that sometimes I forget and start the navigation app first - it looks like it's on those occasions when it will fail to get a lock until I reboot the phone. It never happened to me to lose a GPS lock after acquiring it, though.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] struct_t:
The fact it doesn't charge properly implies that there may be something afoot. Sony's firmware seems a little more complex than other devices, which is why I suggested the official tool.

I also only use Linux, but I keep a Windows partition around for things like this. I feel you there.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] luca_vs:
Hi all,

I followed the steps to install Lineage OS on my XA2.

The installation completed fine but when booting system it get problems with bluetooth and, from TWRP, it seems partition /firmware disappears.

What's wrong?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] matitino:
I tried it for about ten days (completely installed on the clean), is a good rom but for me it does not stand comparison with that stock. The reception (vodafone italia) is much lower, the music player does not have the option to listen to the songs of a folder and also at regular intervals skips during playback. The camera button does not always open it (and besides not being the sony camera app does not have all those beautiful effects that my daughter likes so much ;)). He has some jamming in general. I put that stock back because I find it much more fluid and reactive.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
I started using Lineage using 21/08 build installed on slot B, then updated successfully to 28/08 build using the built-in updater. Today I updated to 04/09 build (so again, the updater flashed the build on slot B which was working fine with 21/08 build) and I got stuck in a bootloop. I had to fastboot set_active other to go back to 28/08 build.

Is today's build booting for anyone?

I'm available to take some logs if needed.

Also: since my slot B is not booting, will I have to wipe it before I decide to upgrade to the future 11/09 build?

EDIT: I turned off the phone and did fastboot getvar all and it looks like the phone marked slot B as booting https://pastebin.com/iEYnKxfF
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
I updated successfully from 28/08 build to 04/09 build through built-in updater.

Maybe you do have to wipe it or flash stock ROM through flashtool.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] silverbluep:
I just noticed that the LuK1337 has published 16.0 ; should I upgrade?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Klem13:
Bluetooth keeps stopping

Hi All,

On one of my two devices I get permanently a pop-up "Bluetooth keeps stopping"

lineage-15.1-20180814-nightly-pioneer-signed.zip is fine, but the later roms have this behavior.

My other xa2 has no issues (but a SIM-cart inserted).

Regards,

Klem
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
https://github.com/LineageOS/android_device_sony_pioneer/issues/1
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Klem13:
Thanks Luk for the hint - it works now. :good:

I assume my mistake was to install lineageos from sdcard1 ?

Regards, Klem
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
no
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Dan Smith:
Actually, it seems that Xperia Companion kicks you out if you unlocked your bootloader (which should be the case for about everyone in this thread).

I used instead the Sony flash tool Emma, which worked wonders and upgraded my firmware with almost no questions asked. The only downside is that it automatically deletes userdata (no questions asked here either), but that turned out actually helping me a lot.

So, after upgrading to firmware 50.1.A.10.51 and reinstalling LineageOS 20180828 from TWRP and with empty userdata (=Lineage welcome wizard on first boot), I got a perfectly fine running phone with voice calls, Wi-Fi and mobile data.

However, after restoring my userdata backup just over that, I found again the exact same problems I was talking about in post #374 : slow loading, and more importantly neither Wi-Fi nor mobile data.

So my guess is that in some ways, keeping userdata between firmware updates can actually mess things up. The only solution that I found was simply to wipe it clean and start over all installs and config again. It took a bit of time, but I finally got everything working as it should.

On a side note, I did not manage either to boot 20180904 (installed from TWRP).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] yazayad:
Equalizer working for anyone? Either audiofx or through a third party music player, headphones/speaker?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mach04:
It's working for me on the 20180828 build. I had to factory reset though, after upgrading from the 20180710 build, because Gapps kept crashing. So maybe that's what make it work.

That said, I'm getting noticeable audio distortion at low audio volumes, no matter what the equalizer settings are. If a song has a quiet part, the notes become 'fuzzy' sounding and the softest bits get muted completely. Maybe it's an audio calibration thing?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] yazayad:
Anyone have this problem with the camera when taking pics with the camera button, that the screen flips/rotates/bobs up and down after taking a pic?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] koenvds:
dsp problem

Hi ,

Yesterday I tried to update lineage-15.1-20180904-nightly-pioneer-signed.zip ( installed on slot A ) to lineage-15.1-20180911-nightly-pioneer-signed.zip by OTA.

This worked well , but when I tested the phone , I lost audio on calls .

The developper of this thread , who is doing a masterfull job btw ,stated for this kind of errors that this is the solution :

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

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

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

But how do I put these commands ? Has anyone tried these ? When I use the built in terminal , I get permission denied . So At that point a rooted devices should probably be the answer.

Is there a way to do these without rooting ? If not , has anyone been in the same situation ? Is it best to root with magisk or simple the su from the lineageos site ?

Thanks for the anwer .