yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Take what I say with a grain of salt. Wait for LuK1337's reply before doing anything! Can't stress this enough.

I too must thank LuK1337 for his work, and kind support.

My input (little understanding I have):

Can't permanently install TWRP, will need to boot to recovery and sideload LOS and other things. On A/B devices, there is no separate recovery partition so can't install TWRP.

I don't think you should boot phone after installing LOS and THEN install GApps. Must be done in one go. I did that for Galaxy S5 (LOS Pie) -- installed both back to back.

I see you are on stock Pie. These need to be considered, and be confirmed from LuK1337 or senior members:

TWRP will show black screen if XA2 is on stock Pie -- something got changed in the Pie bootloader by Sony and currently, that's what you'll get; a black screen

You'll need to downgrade to stock Oreo before you should proceed with this

During the process, if anything seems odd, confusing, or the command response is not normal, STOP! Re-read the instructions 10 times. Either it's XA2 or may be it'll be like this for all A/B devices; but, at least I found there is little room for mistakes with XA2. One wrong step and I got mine bricked.

Does not matter how many times you've flashed LOS on different phones. I was the same. Been flashing Cynogen and LOS for a long time ( Xperia (SP, Z5, Z3, Z3c), Motorola (X2, X Style, G5 S), Samsung (S5) ) and yet, I bricked my XA2.

So be careful, and wait for confirmation from LuK1337 or someone senior.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] sieghartRM:
1. If you followed all instructions on Sony website to unlock bootloader your bootloader should be unlocked.

2. Do not install TWRP if you are planning to install Lineage OS and if you install Lineage OS make sure you have firmware version 50.1.A.13.123 and again do not install TWRP it is not supported for Sony Xperia XA2, you can only fastboot boot it to use it, also yes you can make backups with it.

3. Well I first booted TWRP through fastboot on my device, then installed Lineage OS, then from TWRP reboot to bootloader, boot TWRP again from fastboot on my device, then install GAPPS and finally you reboot to Lineage OS.

4. You can install Magisk after you have installed Lineage OS and GAPPS and rebooted and then you must boot into fastboot to install Magisk or you can do it after you have set up Lineage OS.

For post 2 it is how to flash latest supported firmware.

1. Step 1 use XperiFirm or Flashtool by Androxyde to download 50.1.A.13.123 firmware. I would suggest you use Flashtool as it would unpack the firmware for you and make sure to click yes if it asks you to include flash script or if you use XperiFim use the command in step 1 in post 2.

2. Step 2 is for deleting unnecessary files from the firmware you have downloaded. To do this you have to locate where you downloaded the firmware (for Flashtool the firmware after it is downloaded and unpacked is located in the C:\Users\Username\flashtool\firmwares\dowloads).

3. Step 3 is to put your device in download mode to flash the firmware.

4. Step 4 is where you use Newflasher to flash the firmware to your phone.

5. Step 5-step 7 is where you might brick your phone if you are not careful, so I used another way to flash the firmware 50.1.A.13.123 to both slots by using TWRP.

First you should flash with Newflasher this will flash to current slot, then in fastboot mode boot TWRP and switch slots to slot b if on slot a or slot a if on slot b, this option is found in TWRP after clicking reboot in main TWRP screen, after you have switched slots connect your device in download mode to flash firmware to that slot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Thank you for your reply!

Yes, this was my impression too.

I will wait.

The XA2 will be my wife's phone ... ;)

---------- Post added at 13:32 ---------- Previous post was at 13:31 ----------

Thank you for your reply!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Where do I get the latest oreo stock firmware?

XperiFirm only offers the latest version 50.2.A.0.379 to download.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
I don't know what's available for other XA2 variants, but last time (a week ago?) I checked XperiaFirm had many Oreo options for H3113.

Still has them. Just took a screenshot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Chronic2k13:
That firmware is Pie with the 1St of May security patch. You want the .123 firmware!!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
It was the same for me. For Germany there are only 50.2.A.0.379 versions available.

I have understood that I will need .123 versions if I want to install LineageOS 16.0.

My misunderstanding was that there are only 50.2.A.0.379 versions for Germany. Can I install e.g. this version?:

Device: Xperia XA2 (H3113)

CDF: Customized CH (1312-4017)

Firmware: 50.1.A.13.123 / R4A

The installation has to been done as described in post #2, but without step 2.

Is that correct?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bylaws:
What issue is https://github.com/LineageOS/androi...mmit/e91eef6d8b72140cb64baf68fd8caa14d08ff392 supposed to fix?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Read the commit message.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
hi, a noob question. i screwed my device exactly as the commit desc says (reflashing oreo over pie). does this mean that in the future we could fix our display problem on our (for now not usable) devices?

thanks!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Is your device working on stock P atm?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bylaws:
Ive read it, and I am aware of two issues with display, one affects even if you upgrade back to pie (black line and blue flashes), one only affects it in the rom you are running. What one does this fix?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
no, right now it's downgraded on oreo (via emma) and now i cannot control the thing since the display is out (the display driver is screwed). i could try to flash pie via newflasher, but don't know what the result will be. i'm open for experimenting if needed ;)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
What if you fastboot boot this twrp image https://kremowka.xyz/files/1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
will do that in an hour or two max, i'm at work right now. i'll try it and report back asap.

thx man!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] edkozuto:
Recently installed LineageOS again, after 2 month using stock oreo.

I installed latest (05/28) build and opengapps nano (05/28 too), but android setup hang on "Just a sec" screen. Reboots and reflashes to stock oreo -> lineageos didn't help.

It seemed to be the issues with OpenGAPPS, so I tried latest MindTheGapps linked in post#1 official lineageos page and everything worked like a charm!

Thank you, LuK1337, again, for this awesome firmware, Cam2API and stock blobs for GPay. Now I truly can use this device.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
How did you get Gpay to work?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bylaws:
Doesnt work for me (i have vertical line issue in bl splash). Do you want a dmesg?

EDIT: So i downgraded to oreo and then booted this, it works!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Eh sad, at least it worked on Oreo lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
wow man! it works! awesome, awesome job :)

thx a ton! :cool:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Congratulations everyone, and thank you krnlyng and LuK1337!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
[MENTION=5075128]LuK1337[/MENTION]: one question about the new twrp you've shared -> when installing via adb sideload it fails with error: 18 (ErrorCode:: kDownloadPayloadPubkeyVerificationError). tried both 20190523 and 20190528.

should we use older twrp for flashing stuff?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Oh right, I forgot to patch update_engine lol. Tbh now you can go back to official twrp, sadly the image is supposedly not working on P fw so I can just leave it there as "in case your display is dead" or something like this.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
ok, great. will try now and looking forward for a twrp update :)

thx again! :cool:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
I do have a H3113 with stock P (version 50.2.A.0.379).

Doing fastboot boot 1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img leaves the phone stuck in a loop between fastboot mode and a flickering screen with no TWRP starting, but the phone can be accessed with adb.

How do I get out of this loop? I am not able to start the normal stock ROM any more.

I also tried to switch slots, but it did not work.

Any hints?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Dunno.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] edkozuto:
Just added my cards normally, no hints and tricks. Note that I don't use magisk and magiskhide.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
That never worked for me. Which gapps package did you use? Maybe that has something to do with it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Sounds bad.

When I start the phone I am able to switch between adb and fastboot mode.

Is there really no way to re-flash the current stock pie ROM?

There is no data on the phone that needs to be saved.

I can also downgrade to oreo if this is possible.

Switching between slots now works too.

Any hints?

---------- Post added at 23:12 ---------- Previous post was at 23:10 ----------

How did you downgrade to oreo?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] matitino:
What does the lack of ims service mean? Thank
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No VoLTE, no VoWiFi.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
Can you use newflasher?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
newflasher needs fastboot mode, right?

Yes, I can start into fastboot mode.

Would it be correct to flash the firmware as described in post#2 without step 2?

Or should I use emma? The bootloader is unlocked.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
Follow this guide https://www.xperiablog.net/2018/01/...-firmware-for-xperia-xz-premium-xz1-and-more/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
People who have Google Pay working on their phones, can you please let me know which gapps did you use (I. E. Pico, nano, etc.) Or was it mindthegapps?

I followed the standard installation, but can't get Google Pay to work - with or without magisk hide. I am assuming at this point that it's due to a difference in the Gapps flashed.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] jimmygumble:
Get the Customised UK version on xperifirm. It's still on Oreo. It may not soon so grab it quickly. Sony are releasing updates for some regions today.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Thank you for that link.

I will try it during the weekend and will let you if it works.

Thanks for your idea. I am downloading the Customised UK version at the moment.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
feedback: VoLTE effects on official firmware 50.1.A.123, but not on Los build..

firmware: Customize JP

carrier: softbank jp
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
[MENTION=5075128]LuK1337[/MENTION] Do you have any issues with the camera apps freezing or having issues switching cameras on the latest build? Snapchat won't even display it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Ask someone else.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
I tried two different firmware to restore the phone but sadly it did not help me out aof the screen flicker.

It seems that the phone is completely bricked.

Will Sony accept the phone for warranty repair or not?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
If you have screen flickering, it's not bricked.

During flashing using Newflasher, do you get successfully till the end? Or do you get Z_STREAM_ERROR?

I kept getting Z_STREAM_ERROR and thought may be the firmware did not download properly or something wrong with my USB cable.

Mine is completely bricked. And it's when it does nothing. Does not go to bootloader or flash mode, just a green light flashing after ~3 seconds interval no matter what I do. Even when I connect to charger it has just green light flashing. No steady charging light. That's bricked.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Ah, that sounds better.

Using newflasher runs successfully till the end. But afterwards the flickering is still there.

I can start the phone to bootloader, fastboot or flash mode. But none of them helps me out of the flickering screen.

Any hints?

Thanks!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Now that you have Oreo installed. Did you try the modified TWRP image shared few posts before to fix the flickering?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Just to be sure: TWRP needs to be installed in fastboot mode and not in flash mode, right?

The flickering started, when I tried to install that modified TWRP image some days ago.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
TWRP cannot be installed on this device, and I believe on all A/B devices as there is no separate recovery partition.

The impression I am getting from your replies is that you have not read the instructions carefully and you are not ready to do this. If you keep at it in this state, you will surely brick your device.

I'd recommend you read the instructions slowly and understand them. If anything not clear, search the XDA forum. There usually is a whole thread dedicated to explaining a specific topic.

Then, I'd suggest you read the whole XA2 pioneer thread from start to finish.

Then attempt.

Or, you'll be like me. With a beautiful paperweight.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
I know that TWRP can not be installed on an A/B device. The question was only to ensure, that I have read the instructions on running TWRP on this device properly.

It may be your impression that I have not read all threads, but it is wrong.

Before installing something on the XA2 I have read all the threads. The only thing I did was running the modified TWRP version LuK1337 provided some days ago. He asked about someone with a phone with P Stock ROM to test if the version can be run. So I did and found myself with a flickering screen.

I hope, I can avoid that.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Alright cool man. Good luck :)

Just trying so nobody else makes the mistake I made. The Nilkin cover arrived via AliExpress for me, looks great! Except that my phone is dead.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
I tried to run the modified TWRP image, but the flickering is still there.

Thanks for your help, but for now I am stuck with a phone with a flickering screen that can be accessed by fastboot or flash mode but nothing else works.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
[edit]

Oh okay. I'd suggest list the steps you are doing in a simple manner. Request Luk1337 for comment.

Also who was it.. olivrd I believe? He was in same situation as you and got it to work. DM him as well. He may not be reading the thread.

Just be patient. Don't do anything with the phone till you hear from someone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
OK.

The phone I have bought was updated in two steps to Pie by running the integrated Xperia updater.

After that I have unlocked the bootloader as described on the support page of Sony.

As next I have run the command fastboot boot 1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img and found myself stuck with the flickering screen.

To get out of this flickering I followed the instruction from this site and first tried to flash the current german Pie version 50.2.A.0.379 and then tried the Customised UK version 50.1.A.13.123 but both did not help to remove the flickering.
[MENTION=5075128]LuK1337[/MENTION]: Do you have any idea what went wrong?

[MENTION=8104169]olivrd[/MENTION]: How did you manage to downgrade your phone to oreo? How did you manage to get out of the flickering screen problem?

I can wait.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Andariyel:
hi so after a few days of using this rom i had to say its really cool thx man.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Where did you buy the cover from?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] arslanon.e:
Nillkin Case for Sony Xperia XA2 Frosted Shield Hard Plastic Back Cover sFor Sony XA2 Plus Case With Phone Holder

https://s.click.aliexpress.com/e/bvvxKsJW
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
[MENTION=6030443]Marteng69[/MENTION] here is what i did -> i was stucked on pie + flickering screen (model h3113):

1. i used emma (https://developer.sony.com/develop/open-devices/get-started/flash-tool), just install and run it, boot your phone in flash mode (vol down + usb connect = green light). then the app will recognize your phone (assuming you have drivers installed) and give you phone info. on the right side download and flash offered firmware (at the moment there is the uk oreo one, download it and you'll have it in case it's replaced with pie). flash the complete firmware (the "Software Update Content Erase" image) and reboot after flashing completed

2. boot the phone, let it boot up for a few minutes then turn it off with holding power + vol up for a few secs (let it vibrate 3 times to make sure it's off)

3. then boot it in fastboot mode (vol up + usb connect = blue light) and then via cmd run "fastboot boot 1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img" (please check your exact .img name)

4. that's it, the phone should boot (normal looking) twrp and then reboot your phone and... say thanks to [MENTION=5075128]LuK1337[/MENTION] ;)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
Thank you, thank you, thank you! :good::good::good:

Your method did the trick for me! Now the phone boots up in the previously installed firmware! :D

I did not use the "Software Update Content Erase" image but the other one, but it worked too.

Yes, the phone boots up now in TWRP and from TWRP I was able to power off the phone. Afterwards it started completely normal and the screen flickering is gone. Thank you everybody who has given me some advice during the last days.

For all others with the same problem, some remarks, what may help you out:

1. I used newflasher as first attempt to flash the firmware, but used it with Linux not Windows. May be this is a problem in this case.

2. Maybe I did not wait long time enough after flashing the oreo firmware with newflasher and the startup did not finish, before I tried to power off the phone and then flash the modified TWRP afterwards.

3. Make sure, that you are really in fastboot mode if you want to flash TWRP. Sometimes my phone did not want start fastboot mode (blue LED light) but the flash mode (green LED light), even if I pushed the right buttons (vol up + connect USB). I then had to run the command "fastboot reboot bootloader" and then the LED light turned from green to blue. Check with "fastboot devices" if the phone is displayed properly. If it is displayed there need to be a sign with digits and letters and not "???????". If you get this, run "fastboot reboot bootloader" and it should change to digits and letters if you run "fastboot devices".
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
Hello everyone,

(first post here, yay).

Recently I had the same problem with the H3113.

Upgraded to Sony Android Pie (latest version released a few days ago) and then unlocked the bootloader (no issues so far).

After booting twrp and trying to sideload lineageos16 i got the "vertical-line" error as well.

Your solution (downgrading via emma to stock oreo and booting the modified twrp posted by LuK1337) solved this issue (at least for slot A, booting from slot B just shows a black screen)

Now what I'm wondering:

How do I proceed from the current point?

fastboot boot TWRP-3.3.1.0 (the most current one) and proceed according to the official lineageos installation manual?

Any advice on this one? :fingers-crossed:

edit: just tried it. slot a now gives me the vertical lines again, and slot b (where i assume lineageos was sideloaded to) shows a black screen after the sony logo (I'll use emma again to restore it...).

Any ideas? =)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Anyone know if there are plans to add a dark mode to the LineageOS apps (clock, messaging, contacts, etc.) like has been done for the calculator?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Updated to the latest build today. After restarting the phone it won't recognise the sim card or turn on the WiFi till I restarted the phone a couple of times. Anyone else face that?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] roadnetline:
Hi all.

I'm sorry for mentioning another device right off the bat like this, but hear me out.

The Xperia 10 model, apparently unmentioned yet in this thread, seems to be a direct successor to XA2, price-, but also specs-wise. For instance, its "network" and "platform" sections on GSMArena are identical (with respect to certain sub-models in case of the former, fully in case of the latter).

I am not a programmer, so I do not know how much this degree of similarity entails in terms of ease of code adaptation (although XA2 and XA2 Ultra are both supported by Lineage, and they apparently differ in respects which I would imagine to be rather finicky to work on, such as camera or Wi-Fi specs). But I'd just like to say that I think it would be cool for the apparently well-received, not too expensive, and well-supported by LineageOS (three maintainers! thank you, LuK1337, Stricted and cdesai) XA2 to find a continuation.

For what it's worth (I can't tell), the 10 model is a Sony Open Device (new user, can't link).

Thanks for reading.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] roadnetline:
Let me clarify my feelings a bit. Yes, the above is a "I wish there were..." type of post, but I reckon that this line of phones is well-suited for dev initiative because there already is a good bunch of dev interest in it (counting the Ultra model, it's four people). I'd not be surprised if XA2 turned out to be one of the top Lineage models currently with respect to combination of dev attention combined with release recency (2018+) -- which might suggest both dev-friendliness and user-attractiveness.

As for "become a maintainer yourself". I really don't think I can (even though I am distantly interested in the subject of self-hosting Lineage, that is, building it on the target phone itself), although I am keeping an eye on the "you can build AOSP for this phone" thing the manufacturer is mentioning on their website. Speaking of which, do say if anyone knows

1. how hard it would to integrate Privacy Guard (& possibly other Lineage features) into that process,

2. the difficulty of updating such an installation (whether with the Lineage features built-in or without), and

3. to what degree that AOSP of theirs is libre software.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
Anyone out there know why this is ***** to install ?

Sideloaded Lineage onto phone

Installed Open gapps on internal storage [by copying from sd card , any other way just gave errors]

Installed addonsu on internal storage [by copying from sd card , any other way just gave errors]

Just doesn't boot. Reset data then I get error that it's corrupt and switches off