yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
But I need to have Magisk installed to do so right? Because right now WhatsApp detects custom ROM for me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
"without anything" implies nothing but ROM + Google Apps.

Also WhatsApp doesn't even rely on snet.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Okay, my bad here. Downloaded some safety net checker and yea I passed. I guess relying on WhatsApp's custom ROM detection was a wrong speculation. Also I have a bit of time on my hands because of the covid outbreak I can install new versions of LoS each day and try to install Magisk on it + Viper and QuickSwitch (to check modules compatibility and keep ya informed) cause it's all weird rn. It worked just fine on unofficial version why the official one have the problem with Magisk :/
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
I've flashed the official version today and it works fine.

My Installation (0604build, opengapps pico 0704):

Boot to twrp

Wipe all including internal storage

Change slot and Boot to twrp

Wipe all including internal storage

Install rom

Reboot to twrp

Install gapps

Boot to System

Bootloops to factory reset option

Did factory reset and then it boots fine

Reboot to twrp

Flash rom

Reboot to twrp

Flash gapps

Boot system and all worked

Reboot to twrp

Flash magisk

Reboot to system, all works

But why I had to factory reset on first boot?

(Btw flashing magisk with gapps before first boot caused stuck at Sony logo)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Hmm double ROM flashing? Also the slots I don't understand them and never switch. Can someone explain what they are? I might try your weird double ROM flashing. Factory reset option for me is pretty normal. It just can't find the system idk.

Also can you try installing some Magisk modules and then restarting to see if system boots please?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Don't bother trying to understand these instructions. They make little to no sense.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] kreedzer:
I had the same problem with Magisk and the bootloop. It was caused by directly updating Magisk (from 20.3 to 20.4) via Magisk Manager. So I won't do this again. As described it is possible to boot into TWRP and from there reboot into system with no bootloop. After a Smartphone restart you will have the same problem again.

I tried to flash back the Magisk 20.3 ZIP-File via TWRP, but had the same problem. Also by flashing version 20.4 via TWRP the bootloop didn't go away.

How I did fix the problem?

After backing up every important files I fully wiped everything on both slots via TWRP. Then flashed LOS 17.1, rebooted into TWRP, flashed GAPPS (pico) and Magisk 20.4 and rebooted into system without installing TWRP. So in the end a normal clean install fixed my bootloop problem.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Seems legit, will try today at midnight. Can you or LuK explain the slot process. I've never done anything with slots in the past 2y with my experience with custom ROMs. Just boot into twrp and wipe system then proceed with installation
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Slot gets switched on system upgrade (flashing lineage in recovery is also a system upgrade) that's all you need to know. That's why you also need to reboot before you can install gapps etc, they still see previous slot. Also never switch slot manually unless you know what you're doing.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Also is there a proper way to boot into twrp again after ROM flashing? I already reboot into bootloader and from there load img is this the correct way?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Well, I think this makes sense if you want to make OTA Upgrades in the future and also want to have gapps on the other slot?! Or are gapps installed on both slots automatically?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Gapps get copied from from $current to $other during OTA.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Well, then my way of Installation makes no sense but works. It's just more than needed ?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Yeah, may as well include washing your hands between flashes, flushing down the toilet and ordering pizza too.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Just went through an OTA update. Save issue again - phone won't go past the LineageOS logo. Hooked up phone to PC, loaded TWRP, choose reboot to system from there and phone loads.

I really hope I can get around this in some way without having to wipe everything. Anyone have any ideas?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Bruh what's OTA? You mean updating from within settings "Update" option?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
aye
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] firelightning13:
Wow, I got the same issue from malerocks today. Just restarted my phone and it got into bootloop mode. I have Magisk installed, funny enough I didn't install any module yet (I planned to install ainur narsil audio mod) aside from hiding my magisk manager with different name package, and also use root for using Tasker and nothing else. I want to play Cytus II (which is free today) and it got some bug that I need to restart my phone but oh boy i got stuck. Either I can go without Magisk (I'm going to miss using Tasker) or not, it would be risky for me to keep Magisk installed if I ever need to restart my phone.

Any solution for this? I'm going to clean install again... damn it

Edit: I decided not to clean install and I just wipe data through TWRP, like a factory reset. Then it boots up normally (surprisingly). Then I installed Magisk and proceed to just rename the package and use MagiskHide. And I tested to restart again, and it didn't stuck on bootloop. Now I'm not sure what causes the bootloop in the first place.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Interesting. Wiping data requires one to set up phone again by downloading all apps, etc. Right?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] firelightning13:
Yea. It kept gapps installed but not magisk, so I have to install it again. Right now, I'm not using any module, or applying OTA update (that would be suicide lol). I have restarted my phone several times today and have no issue, yet. I have yet to install tasker, or my personal banking apps (that's why I have to use magiskhide)

Oh, about the Cytus II, I realized its just a google play store issue on installing big apps. I just wipe data and cache on google play services and google play store and it works fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
seems magisk addon.d not work on Android 10.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Thank you!

I've done what you did there (except i didn't change the slots, I mean I did the first time and it kinda ****ed up everything so I started over without changing them).

Same procedures Magisk 20.4, 09/04 Version of LoS 17.1, 08/04 Gapps Pico.

After installing LoS and rebooting into twrp and instaling gapps than magisk there I rebooted the system. Got the warning about android system not found, wiped data. And it booted the OS. After installation and restoring the apps from google account I noticed that because of the wipe before system boot Magisk got deleted. So i booted to twrp again and installed it again. System booted normally I then installed Magisk Manager and confirmed the installation + snet pass. Installed Viper4Android, within the app installed driver and rebooted. Everything works (including audio driver) so now I'm a happy boi with working LoS 17.1 + Magisk.

Thank You Luk & Kreedzer.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Referring to that install I talked about. For now everything seems fine except for Google Assistant not working. I think it's because of "pico install". Can I flash "bigger" gapps over the ones that are installed right now?

Edit: not working as in not responding to "Ok google" and I can't turn it on (option is greyed out)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] 80c535:
Do OTA updates work afterwards without manual steps, including Magisk?

Or how do you install new LOS 17.1 versions now?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Yhm for me it finds the updste. Not sure if I want to try to install it. Actually I'll try and will respond to this thread after it's done / I break Lineage xD
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Everything went smoothly. So yes OTA updates work for me
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
#metoo
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
system OTA is fine, without Magisk installed at your new system. you need to install Magisk manually after your OTA completed.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Wait what? I updated from 09/04 to 10/04 with Magisk installed and after update it still was there working just fine :S

---------- Post added at 12:10 PM ---------- Previous post was at 11:35 AM ----------

Yhm okay so I tried to install some substratum overlays. Swift Dark to be exact. Everything seemed to be okay. Substratum asked for root access, theme was detected so I built overlays for most of my apps. Everything was done (except for discord idk some errors there), reboot, system booted. I tried to open substratum - dark screen. Any other apps - same. Settings worked tho. So I thought okay some bug maybe restart will help - system not booting (bootloop). Soo yea I had to find substratumRescue zip and flash it. Everything is normal now. I'm guessing no substratum on LoS 17.1?

---------- Post added at 12:22 PM ---------- Previous post was at 12:10 PM ----------

Even more interesting behavior. After flashing rescue zip I launched substratum to see if overlays are gone and nope. They are here - verified. So I was like **** it lets test it out and applied all of them. They actually applied and worked. So I tried restarting to see it this weird "rescue" type installation is working and not breaking again. *Drumroll* bootloop :). So I rescue again. System boots - overlays are still applied (?). So I disable them and then uninstall - reboot - system boots normally. Weird behavior
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
greatful thanks for the network restrictions feature added in the yesterday build, i'm keep excited now!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] F2BIHARI:
GCAM

Is there any way to swap stock camera api with a google's camera2 api one, and use GCAM6+ apk?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Substratum works fine in my phone.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
Got a problem with ota to 1104

Phone reboot never (10 minutes) finished. Had to power off (Vol down and power button till it vibrates 3 times) and power on again, then it boots after 2 minutes and the update seems to be fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
No, Camera API2 never come maybe. ask Luk.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Maybe not ask me.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
if you installed Magisk then it's fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
// issue report

when i enable or conntect my home wifi network, i'll meet a soft reboot (zygote was killed), i post the log https://pastebin.ubuntu.com/p/Dc6snxgMjp
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] barmin:
Sorry for my inexperience: for flashing the new firmware, shall I just download the file above and flash it from twrp like it was a rom? will it "know" automatically that it is a fw? or is the procedure slightly different? thnx for your help!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] ilyabauer:
Any special procedures? What was your way of installing rom, did you use OTA, what theme are you using

---------- Post added at 01:21 PM ---------- Previous post was at 12:55 PM ----------

Should've read this before updating to 1104. And this procedure doesn't seem to work for me, any ideas?

Edit: after a couple of restarts and reboot to recovery than restarting from there. 2-3 "system cannot load android" warnings (clicked on try again not factory reset) it booted into old 1004 version. I didn't know it can do that
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] firelightning13:
This phone does have Camera2 API, but no RAW support. I think there is no Google camera apk that would be suitable for this phone. I tried some of it, but when open, the app would be crash instantly (except video recording) even modded ones doesn't work. Just use Open Camera. It works on some basic option but no Google's bells and whistles features in there.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bobsright:
Is there a trick to getting the OTA Updater to work? I'm on lineage_pioneer-userdebug 10 QQ1B.200205.002 eng.LuK133.20200226.164849 test-keys. I keep getting "No new updates found"
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Who'd have thought that unofficial can't OTA to official...
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bobsright:
Hey! We put a man on the moon!:silly:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
The usual method for the 1st time - use TWRP, wipe everything, flash ROM, reboot to TWRP, flash gapps and magisk. Thereafter OTA. However, reboot after updating does not work for me unless I boot to recovery and boot to system from there.

Using pitchblack theme

If the boot to the updated slot fails for some reason, the phone boots to the previous slot which has the version prior to the update.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
I'm facing several issues when trying to flash this ROM, if anyone has some answers or suggestions (or a very detailed flash procedure - what's to be wiped via TWRP before flash exactly?):

- I'm unable to flash TWRP to my H3113, when using fastboot flash recovery twrp.img I'm told that recovery partition does not exist.

- So, to load TWRP, I simply boot it without flashing with fastboot boot twrp.img; I'm asked for my unlock code so it can decrypt data, then I flash the LOS ZIP file via Install (Would it be better to sideload it?). I then reboot to bootloader, so I can fastboot boot twrp.img again.

- During that second TWRP boot, I'm no longer requested for my unlock code, so data appears encrypted, and I therefore can't access my GApps ZIP file which is on my internal storage... Or, again, should I sideload it?

- After flashing only LOS, I reboot to system (I first get to the LOS recovery partition where I do a factory reset), after a couple of minutes I get to the unlock screen... but I can't unlock, swipe simply doesn't work!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bobsright:
OK, what I've found that works for some doesn't work for everyone, sometimes nobody. The reason I had asked about ota update was because I HATE wiping and reinstalling everything. Reading posts in this thread and issues people were having made me less likely to go to the "official" Los.

Well, I decided, "what the hell" and loaded the firmware on an external otg dongle and no wiping no special TWRP, just flash the zip and see what happens. Everything is perfect. I lost no files no apps no settings and I'm on the latest official Los. So I'm happy.

---------- Post added at 03:12 PM ---------- Previous post was at 02:55 PM ----------

I take that back. I did have to re-install Magisk
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] IhabFa:
Stuck on boot animation

Hello,

I installed LOS17.1 two days ago, with OpenGapps and Magisk and was working fine.

Late night, I installed Edxposed Framework from within Magisk and then the 'Disableflagsecure' module(for taking screenshots).

All seemed to work fine even after reboot, as far as I remember. I even took a few screenshots in an app which doesn't allow me to.

After that I installed 'Adaway' and gave it root permission, requested to reboot device. So I did, after that the phone wouldn't boot into the system, instead, it gets stuck on the boot animation ' circle on the curve'. However, if I reboot from recovery menu (Lineage Recovery/vol-down&power buttons), the phone always boots up normally.

I could live with this but why should I?

So, I have tried so far, disabling Adaway and then uninstalling it. Didn't work.

Disabling the module,then Edxposed, to no avail. Not sure which is it, exactly, the cause.

I prefer to not flash the OS and install everything again from scratch, since the device is able to boot up from Recovery. I'm considering deleting dalvik/cache from TWRP. Not sure what it will do exactly though, but it's an idea.

Appreciate any help I could get :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bobsright:
Ummm, you could just not turn the phone off.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] IhabFa:
I don't really get what you're trying to say.

The phone is stuck at booting and never really boots into the OS.

The only working way is to go into recovery(stock recovery & TWRP) and then reboot from there.

I did wipe dalvik/cache via TWRP... Rebooted normally into the system, but then again... After rebooting/turning the phone off and restarting, it gets stuck.

Are you really suggesting not turning the phone off?!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bobsright:
Yes
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Ongoing issue. If you read a couple of pages back, a number of us that have magisk installed are facing the same issue. Not sure what a failsafe fix is and if it needs to be on the rom or in magisk.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] IhabFa:
Okay...I see.

But the thing is, it was working fine even after installing Edxposed through Magisk.

Anyways, I'll keep checking this thread in case someone finds a fix.

Thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] alf-endy:
Is this really the correct version of the installation procedure?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] emc02:
No, as luk said a few posts later.

But this procedure is not wrong and also possible. But it's more than needed.

Just flash ROM, reboot to twrp, flash gapps and boot to system.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Facing an issue with the latest build. While the phone is rebooting, just as its about to complete the reboot (the part where the lockscreen shows up), the phone shows "shutting down" and turns off. Had to switch the phone to the previous slot to load the previous build. Then tried updating a 2nd time via the OTA and the same result.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
I cannot confirm that.

I updated the latest build (as all NIGHTLY's before) OTA via Lineage Updater on two devices (H3113 and H4113), and on both devices it works as it should.

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Thanks. Wonder why it's failing on mine then.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] oldfish327:
Luk, will LOS17.1 for XA2 have VoLTE? Some carriers in the US are planning to close down all 3G by the end of the year. So no phone calls if you don't have VoLTE. I am already finding urban areas where I have no ability to make voice calls using LOS16.1 because there is no 3G coverage.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Not anytime soon.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samhhmobil:
I thought it's yet in there. OK, I was wrong.

What else does this "4G Calling" mean (I did expect it is VoLTE), if it is not VoLTE?

Thanks,

samhhmobil
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Option being there doesn't mean it actually works.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Is 2G been shut down too? In some countries, operators are shutting down 3G but are keeping 2G to allow feature phones to continue to work. As long as you have 2G, phone calls will work.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] 80c535:
Is there any possibility how we can debug LOS17.1+Magisk being stuck at the boot logo?

ADB during the boot logo does not seem be possible and logcat does not show any entries from the failed boot (at least for me).

Any hint is appreciated!

If necessary, I would TRY to create a patched image, too ;)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Well, if adb doesn't work then it likely fails to initialize keymaster (and thus fails to decrypt /data); you can force insecure adbd with `sed -i 's/secure=1/secure=0/g;s/config=none/config=mtp,adb/' /system/etc/prop.default` but if it really fails to decrypt userdata i doubt logs would be that helpful...

Also congrats for being the first one to actually attempt to do something about it.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Kept getting issues installing the build for the 15th using OTA. Installed the one for 14th and that is working fine.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] 80c535:
Thanks for your hint, but adb does not find the device while being stuck.

I will do more tests tomorrow/over the weekend.

Meanwhile, this is my boot workaround when "fastboot boot <twrp image>" is not possible, e.g. no PC is available:

0. Stuck at boot logo

1. Unplug the USB cable

2. Press and hold Power+VolumeUp until it vibrates three times -> device off

3. Press and hold Power+VolumeDown, release Power when the bright Sony screen appears

4. Select "Reboot system now" in LineageOS recovery
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samson291:
Hi hope someone might be able to help me

I've come from 50.2.A.3.22_R4B UK Sony ROM

Unlocked bootloader

Been having issues getting this to work if I flash lineage with or without gapps (tried mini & nano with old dates also )

Before running any of this I also flashed pioneer_modem_bt_dsp_50.2.A.3.22.zip and then copy-partitions.zip

Lineage versions tried 8th / 16th and 17th

Gapps tried 8th / 16th and 17th

Factory reset and wipe data in TWRP before each try

TRWP 3.3.1.6 Pioneer

With Gapps

Boot into TWRP

Wipe data and system

Flash lineage

Boot TWRP

Flash gapps

Reboot phone

Lineage crashes

Lineage recovery askes to run factory reset which I do

Lineage boot into getting started I pick UK English ( have also tried US English)

I see "Just a sec" on screen > Phone reboots

I am now stuck in a boot loop with "Just a sec" showing up for a second after Lineage takes a very long time to boot

Without Gapps

If I flash lineage on its own I enter a boot loop with just the lineage bootscreen

Boot into TWRP

Wipe data and system

Flash lineage

Boot TWRP

Flash gapps

Reboot phone

Lineage crashes

Lineage recovery askes to run factory reset which I do

Lineage boot loops

Have I missed something here?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Iscariah:
Got the exact same thing as you yesterday when trying to flash lineage-17.1-20200415-nightly-pioneer-signed.zip with GApps open_gapps-arm64-10.0-micro-20200416.zip via TWRP 3.3.1-6, "Just a sec" message for 10 to 20 seconds, then reboot and loop... If anyone has some advice, I'm also interested! (coming from a 50.2.A.3.22 Belgium FW)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Thanks mate. Just tried that and it worked. This saves me a whole lot of pain trying to get to a pc everytime I need to restart my phone.

---------- Post added at 02:51 PM ---------- Previous post was at 02:49 PM ----------

I got those messages multiple times with the 15th build. Was OK for the 14th build.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] samson291:
Take your sd card out , seemed to be a formating issue, thanks to Luk for helping me out on IRC!