yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
After a large number of attempts I finally got it to boot [ no idea what I did different ] , gapps has installed but not addonsu .

Can addonsu be flashed after having booted into Lineage?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
I've returned to LineageOS 16 and noticed that adoptable storage is available again. Is it intended or not? I've just tested it with few files and it still corrupts them after reboot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Stmu55:
Gapps and LineageOS 16

Having similar problems but have not managed to get gapps to boot. Can get LineageOS 16 just fine now, but gapps causes it to hang on boot, or boot with errors in Bluetooth and Wifi. Noted that gapps wants to load to /system/system which may not exist.

Any suggestions out there?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
* sniff sniff * I smell some Magisk thing on your device.

( or some magic override props/commands/whatever )

btw I did not reenable it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
There is nothing. It's clear LineageOS 16 installation without even a single app installed.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I don't see adaptable storage on my phone. I am on todays build.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
I guess it only appears when you insert SD card without any partition.

---------- Post added at 00:23 ---------- Previous post was at 00:20 ----------

I also can't make Wi-Fi networks with hidden SSID work. Wen I add them, they don't appear to be recognized at all. Even when I stop hiding SSID and connect to network, and then hide it again, phone immediately disconnects from the network and refuses to connect again, then after turning Wi-Fi on and off the network still doesn't appear. It may be an issue with broadband firmware, I'll try to check that.

EDIT: It's not. I've reflashed firmware and hidden networks were working fine on stock ROM, and here on Lineage they are still not working.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I have sd card on my phone. When you insert a card without a partition, the phone asks to format it because it is without a partition. It is formatting it as storage, not adaptable storage.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
Yeah, and in my case it offers me to either format as external or adoptable storage. Right now I'm flashing stock firmware to test some things, I'll make a screenshot later.

EDIT: Here it is.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Did you set "Hidden network" to "Yes" when adding your network?

btw hidden networks suck; idk why people use them lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
lineage-16.0-20190606- which came out 6th of June seems to have this problem with bluetooth and Wifi

lineage-16.0-20190530-which came out 30th of May seems OK.

How I got gapps working was when in TWRP go to Advance/ File manger navigate to sdcard1 there you will find files that are on your SD card

Select the file < gapps > copy then navigate to sdcard which is internal storage of the OS you've installed then paste,

go back , back in TWRP then go to install

navigate to sdcard and select your gapps file then flash
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Casserole:
Ah, so that's what needs to be done. On stock hidden network doesn't require any options, and there was no such option on Lineage initial setup screen (or I just didn't notice it). Thanks for explaination.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
not Setup guide. you can find "Hide Network" option where you enter settings to connect to a Wifi, you'll find it above wifi advanced options.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] areshinakya:
Does not boot on H4113 (dual sim)

What I did:

- took new phone out of the box (said firmware 8.0.0) , went to developer tools set allow oem unlock

- unlocked bootloader

- booted (not flashed) twrp official latest

- wiped data and system

- flashed

Now I was stuck in a long bootloop wthout adb (lineage animation running till a corrupted message appears in lineage recovery)

Then I followed https://xdaforums.com/showpost.php?p=78973496&postcount=2 and flashed files from 50.1.A.13.123 like described. Then I booted to twrp again, wiped data, cache and system, then flashed lineage again. Same bootloop.

I tried linage 15.1 also, same problem, does not boot.

And ideas or steps to debug? Does anyone use H4113 here?

Thanks.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
Quote:

Originally Posted by Stmu55

Having similar problems but have not managed to get gapps to boot. Can get LineageOS 16 just fine now, but gapps causes it to hang on boot, or boot with errors in Bluetooth and Wifi. Noted that gapps wants to load to /system/system which may not exist.

Any suggestions out there?

lineage-16.0-20190606- which came out 6th of June seems to have this problem with bluetooth and Wifi

lineage-16.0-20190530-which came out 30th of May seems OK.

How I got gapps working was when in TWRP go to Advance/ File manger navigate to sdcard1 there you will find files that are on your SD card

Select the file < gapps > copy then navigate to sdcard which is internal storage of the OS you've installed then paste,

go back , back in TWRP then go to install

navigate to sdcard and select your gapps file then flash

-----------------------------------------------------------------------------------------------------------------------

Now I was stuck in a long bootloop wthout adb (lineage animation running till a corrupted message appears in lineage recovery)

Then I followed https://xdaforums.com/showpost.php?p=78973496&postcount=2 and flashed files from 50.1.A.13.123 like described. Then I booted to twrp again, wiped data, cache and system, then flashed lineage again. Same bootloop.

I tried linage 15.1 also, same problem, does not boot.

And ideas or steps to debug? Does anyone use H4113 here?

Thanks.[/QUOTE]

-------------------------------------------------------------------------------------------------------------------------

Forgot to mention I was stuck lineage animation

Took out SD card then lineage recovery message that may have to do data reset

reset data booted into lineage and then popped SD card on next reboot.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
That's a android pie feature.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Your instructions do not include flashing gapps, do you not use them or you /forgot/ to mention them here? If you forgot to mention them then it's likely that after booting twrp again and installing gapps there you didn't disallow installing twrp botnet app which is known to cause boot issues on devices with priv-app perms whitelist enabled.

Also you may want to try using fastboot -w to format data instead of twrp.

If you give up, consider asking me again on something like irc, see my signature ^.^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] areshinakya:
No, I did not forget to mention gapps, i do not use gapps at all. However I flashed the microg build of lineage 16 (20190605), not the vanilla one.

I will try fastboot -w, thanks for the suggestion. Also I will try plain lineage os (microg was never a problem on other phones I flashed for friends and family so I didn't think it could be a problem)

Also I do not have a sim card yet, and no sdcard, if that somehow causes a problem due to a weird bug.

Thanks again for the kind help. Will continue to try this evening when I got home!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
This is the problem, that build doesn't boot at all.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] areshinakya:
That's correct.

flashing lineage-16.0-20190514-microG-pioneer.zip also gave the same error, formatting data in twrp did not help, fastboot -w neither, but reformatting in lineage recovery did work (after the error popped up that lineage cannot boot because data might be corrupted)

Wow. First time I had a working lineage ROM. That was really hard to grasp because both roms give the same error but one of them can be fixed by wiping data though lineage recovery.

The worst thing is that updating to lineage-16.0-20190605microG-pioneer.zip corrupts everything, downgrading does not work either until I wipe data again though lineage recovery.

I am sorry for reporting a bug that is obviously a problem with a fork, I know from my own experiencethat people doing this really suck. ;)

Anyway, any idea which this particular build is so broken, is it just a bad snapshot or does microg break things?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
Can someone tell me the point of the addonsu as all it gives me is root over ADB

Have searched online and there isn't much info

Seems as useful as a chocolate fireguard
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
funfact: adb root works without addonsu.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
Like I said not much info on this how does actually give me root?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
You need to enable it in dev options.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
That's what I have done and all I have is root over adb which seems of little use unless you know better
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
If you want root, you need to flash additional things like su
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] MisterPetje:
Like I said before have flashed addonsu-16.0 arm64

also SR5-SuperSU-v2.82

These flashed without any errors but still I only have root over ADB :confused:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Idesmi:
What happened to the build cycle on download.lineageos.org?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
Flickering Screen with blue/white hor. Lines now too.

Tried all Methods to recover (Newflasher, Emma) etc...but no way to get the Device working :(
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
you can try this post: https://xdaforums.com/xperia-xa2/development/rom-lineageos-16-0-t3836151/post79651818
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
Now it worked, had to repeat it two times.

Looks like even Pie works (After flashing 8.x with Emma, then the twrp trick.)

So when i want to install LA 16, which twrp is needed to boot ? and which Stock ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
LuK killed every dev

https://www.reddit.com/r/LineageOS/...ineageos_builder_fail_20190609_security_bump/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
OK looks like if someone has the Vert Line Problem, and got the device recovered only Stock Firmwares (and Sailfish) still working , but no LOS anymore.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
magic! my screen was back! thanks all of you.

but i still don't know why flashing Pie firmware will break my screen (now for me is the second time), but and why twrp-1d66175.img can save my screen back ..?

confusing question...

by entering twrp-1d66175c.img, i save my screen from screen flicking. but if i go to Pie 50.2 firmware, my screen will become BLACK(have brightness light but no image), if i go to twrp-1f66175c then my screen comes back, then go to System and BLACK again..

finally, i choose die. i flash Oreo firmware and afraid to flash Pie firmware ..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
Well, I can install Android 9 via Newflasher again after the "repair" and it works too.

SailfishOS works as well.

Only question is in the air now is:

Will it ever be possible to install LineageOS for those who have this "grey line gate"?

I would guess that there is something wrong with the kernel/Boot.img. (Displaydriver Blob ?)

Because even very deep patches (Magisk, xperifix) into the Stock(Oreo)-Boot.img worked without any Problems (no Gray Lines)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
A bit off topic, how is the sailfish experience on the phone?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
PM send to you :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
You need to have working oreo on both slots and then you can install lineage lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kaliberx:
[MENTION=5075128]LuK1337[/MENTION]

First:

You dont need to lol.

Second:

But you could post your Way how to get LOS running without running into the "Gray Line Gate", maybe i missed something even if i had Oreo (Stock) on both Slots.

And thanks from me and some other over on Android-Hilfe.de for the fix and getting Stock running again with your patched sha-twrp.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>You dont need to lol.

I absolutely need to.

>But you could post your Way how to get LOS running without running into the "Gray Line Gate", maybe i missed something even if i had Oreo (Stock) on both Slots.

I don't feel like flashing P on my phone just to guess my way through it. If you had working Oreo on both slots then you shouldn't have this problem anyway.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Stmu55:
Info on installing openGapps on LineageOS 16

After struggling with failed installs of openGapps on LineageOS 16, and bootloops, I have found a working process that avoids many of the pitfalls with the TWRP recovery and the AB slot system of the Sony XA2.

Firstly, installs should be started from Slot B.

Secondly, open_gapps needs to have System and Vendor mounted and the *time* to be correctly set.

Thirdly, there are different ways to get to fastboot, if stuck in a bootloop or starting from a stock OS, it is often times easiest to simulate a battery disconnect by holding down the the PWR button and the Volume UP button until 3 vibrations in row and then connecting the USB-C cable while holding down the Volume UP button. When TWRP is running, or you have enabled developer options from a working OS, then the adb command "adb reboot bootloader" is much quicker.

A working process is the following:

Full Poweroff - Hold down the PWR Button and Volume UP buttons until 3 vibrations in a row (they will come after a single vibration)

Fastboot - disconnect the USB-C cable, then connect while holding down the Volume UP button, a blue light appears to indicate fastboot.

TWRP - From the connected laptop, "fastboot boot twrp twrp-3.3.1-0-pioneer.img" and TWRP should boot up

Check - the slot may be A or B and the time may be incorrect

Slot B - From the TWRP Reboot page, go to Slot B

Mount System and Vendor - From the TWRP Mount page

Format Data and Wipe System - As in the installation instructions on the LineageOS website, from the TWRP Wipe page

Sideload lineageos - From the TWRP Advanced page, select ADB Sideload, and start the sideload from the laptop "adb sideload lineage-16.0-2019xxxx-nightly-pioneer-signed.zip"

Fastboot - From the laptop, "adb reboot bootloader", a blue light appears to indicate fastboot

TWRP - From the laptop "fastboot boot twrp twrp-3.3.1-0-pioneer.img" and its is back into TWRP

Check - the slot should be A and the time may or may not be correct

Fix the time - From the laptop, "adb shell" and set the time with the date command "date MMDDHHMMYY" Month, Day, Hour, Minutes, Year, where HH is in 24-hour clock.

Push open_gapps to the sdcard - From the laptop "adb push open_gapps-arm64-9.0-nano-2019xxxx.zip /sdcard"

Install gapps - From the TWRP Install page, install open_gapps from the sdcard (you may have to navigate there)

Reboot System - Reboot the system (Do not install TWRP - that does not work to my knowledge)

It it helps, that is the idea.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
So LineageOS on slot B but gapps on slot A?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I kinda want to hide that guide/whatever. You shouldn't have to set slots manually unless your A != B and you're asking for OTA issues if you follow that when your slots aren't the same lol.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
[MENTION=5075128]LuK1337[/MENTION]

Yesterday evening my phone rebooted without a reason and there was no way to let it fully boot again: touchscreen was not working and it would reboot again in a few seconds. I turned it off and let it sit there for a while. It did turn on eventually, and I forgot about it because it worked flawlessly.

Today morning the same thing happened: the phone randomly rebooted, and when it turned back on the touchscreen was not working and then rebooted it again. I thought that maybe the build I was on was cursed so I opened the updater to download an update, but again a reboot happened. Now I've managed to get it booted again somehow (just by letting it off for a while and then turning it on). I found that my slot b is somehow ****ed (I don't know why, my last update through the in-built OTA updater went perfectly fine). I'm on 12th June build.

I managed to get a dmesg https://pastebin.com/8BvyVEBR when the phone turned on without blocking or rebooting.

I tried to get a last_kmesg through adb, but it says that there's no last_kmesg file.

EDIT: one thing I noted is that whenever the phone turns back on, night light is activated and then a reboot happen... Could this be the issue since Lineage switched from Live Display night light to the AOSP one?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Idk but that dmesg is useless tbh. Pstore would be nice but I would probably need to give you custom boot.img for that. Uhh also, is this a soft or hard reboot...?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
Would a dmesg be useful at all? In case it happens again (probably it will), how should I take it?

Never heard about pstore, but I'm ready to help in case dmesg would be useless.

EDIT: sorry Luk, just saw the last question. It was a hard reboot, indeed.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Pstore is 'last dmesg' (and it's stored in /sys/fs/pstore), so obviously it'd be the one with kernel panic info.

---

https://kremowka.xyz/files/d7ebcf079ddf5a8c1fb7e455fe2b417dcf7f4053.img (btw while pstore works on this kernel, otg won't work after warm reboot, which is the reason why I never merged it to shipping branches)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
So: fastboot boot yourimage.img, then adb shell cat /sys/fs/pstore > pstore.txt right?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
...no. Flash my boot img, make it crash then adb root; adb pull /sys/fs/pstore.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
Understood. Backed up my old image and flashed yours, now I'm waiting until it crashes and then I'll send you my pstore.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
[MENTION=5075128]LuK1337[/MENTION]

Ok, so the phone rebooted but I didn't manage to get the pstore in time because it immediately froze and then rebooted again. Got the pstore after it booted again without freezing. https://drive.google.com/open?id=1m7T5dDmAPn6tePV5mMG0WX57x66lhkdF .
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Try this boot.img? https://kremowka.xyz/files/bd28951c3b85400933c9f1124ea56a615a65451f.img
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Actually, try that one instead. I added one more nullptr check ~ https://kremowka.xyz/files/080eb388eff1122e144f095eca35620d0653e947.img
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
btw tell me before the midnight if it fixed it or not, I want to make sure to merge change before tomorrow's build ^.^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
Yup, I'll let you know. I'm testing it to see if it reboots again or not, but so far so good
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] frambo1:
Wifi cannot be switched on Los 16 Xperia XA2

Hello,

I have successfully rooted my Xperia XA2 and installed Los 16.

Everything seems to work except Wifi.

I just can't activate Wifi - why is that?

Many thanks in advance for the help.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Boot stock; activate wifi; reflash lineage; profit?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] frambo1:
Oh, ****, I gotta get back to the original?

Is there a manual for that?

Thanks a lot
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Uhh, so you didn't flash stock FW before? Actually, can you msg me on irc (see my signature), it may be bit convenient for me to guess stuff there instead of refreshing xda every few mins?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] mirco_pa:
All good here, I think that random reboots are gone. Thank you Luk!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] frambo1:
I bought the phone new - started it - rooted it and flashed it to los 16 :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Then come irc ^.^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Stmu55:
Slots and installs

In my case, yes. Installed LineageOS from Slot B, after the 2nd reboot into TWRP, it was in Slot B and then installed gapps.

Agree that this should not be necessary, but in my case things got messed up when trying to install TWRP as the recovery and from then on it was necessary to handle the A/B slot problem.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] spinflip:
Hello, I have the same situation. Everything works perfectly but I cannot enable wifi. How can I boot stock ?

Thanks for your work!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] olivrd:
flash stock oreo via newflasher, boot and verify that wifi works. then follow post #2 on this thread and then flash stuff
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] :
Got my phone back from repair (h3113 - new mainboard, yay... android 9 preinstalled... damn).

Is there any way to get LOS 16 on my device?

XperiFirm shows only the android P.

Emma (Sony Flashtool) might be able to downgrade my device to Oreo. But will I get the vertical-line error again, if I downgrade to Oreo and use TWRP 3.3.1.0? Also, is the procedure described in post #2 needed in my case? (If I downgrade via Emma, I'll get Oreo .123 anyway).

Any advice?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] skkayman:
I flashed LOS 16 on my XA2 and started using it and then realized that no sensors are working. Accelerometer (phone does not rotate automatically), light sensor. What to do? Steps from second post? I flash oreo stock before with emma..

When I try to do steps from #2, after flash to B, when I disconnect usb cable, phone tries to boot it (and does not work obviously). I was trying to turn it off but I cannot, it always start booting again.. Impossible to set A..
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
https://gist.github.com/luk1337/d32876ec0fbcff4e91e1596554945284
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
https://review.lineageos.org/c/LineageOS/android_device_sony_nile-common/+/250406

yay thanks luk
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Is that even useful? It just randomizes mac address for each network.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] theredbaron1834:
It helps fight some tracking. Its no where near a perfect job, but it helps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] skkayman:
Thanks, no permissions.. So adb root did not worked :/. But unfortunatelly, the screen or motherboard on my xperia just died. I had unlocked it, saw the unlock screen and then blink and a few vertical lines ands all, nothing else. Phone is in warranty but bootloader is unlocked so I really do not know if they will fix it :(.