yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jcummings2:
I've been using 19.1 daily myself for a little over a week now and it certainly is usable. In fact, with the addition of VoLTE support in the nightly 20220624 build, it's even more usable than the stock firmware that doesn't have such support. Depending on your carrier's 3G shutdown timeline that could mean the difference between a usable device and an expensive brick.

Of course, there's no guarantee that you won't have issues since your usage patterns may be different. However, posting any issues here can help improve the experience for everyone.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
I flashed 18.1 to test VoLTE/VoWiFi... And it worked OOB. Then fashed back 19.1... works... Strange :unsure:

But still no VoWiFi i airplane mode (so it's useless in travel outside EU - expensive roaming) and not working after going back from airplane mode. Reboot needed.

If only you can make it working in airplane mode... :rolleyes:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
This worked perfectly for me. The only difference being that after sideloading Gapps and rebooting, I unistalled magisk. I then went back to recovery and sideloaded v24.3 of Magisk. Was very straighforward - I just downloaded the Magisk .zip file to my adb folder and renamed to .zip
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
I received my device today and wanted to start installing the ROM. Requirements stated in the wiki are fulfilled (esp. Android 10 installed).

I have two questions:

1. Do we lateron need to clean flash in the way that we first re-flash the Sony stock firmware and continue flashing the LOS afterwards?

2. Is the LOS recovery able to backup the Sony stock firmware and restore it in the case anything bad happens during the installation process of LOS?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
1. No, you only need to be on latest Android 10 stock fw because of the persistent partition. This is only required for the very first install. Later on you can simply use the Updater app to update the 19.1 nightly (or to be more precise weekly) build.

2. No, in case you want to go back to stock you can use xperifirm to download stock firmware and flashtool or newflasher to flash it. Please check out the appropriate guides for xperifirm and newflasher here or in case of flashtool at the sony website.

https://xdaforums.com/t/tool-xperifirm-xperia-firmware-downloader-v5-6-5.2834142/

[TOOL] Newflasher (xperia command line flasher)

Disclaimer: newflasher tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using newflasher, you must agree that you using newflasher on your own risk, I am not responsible if you brick...

xdaforums.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
I succeeded so far that I reached step 5 of the installation instructions where the recovery is to be flashed temporarily. Since in fastboot mode the device's screen keeps dark, I don't know exactly what it does, but the prompt on the PC said

which appeared ok according to the instructions. Now I need to put the device into power off, since it did not on its own. Could not get it to. Pressed the power button >10s, nothing. Now I tried to put it back into the system to power off from there (I said "fastboot reboot"). Now it stuck at the SONY logo. 😕

Did I already brick it?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No. Everything's ok. Just unplug the usb cable and wait for the blue LED to turn off. Then your device is fully powered off.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnBay:
Does anyone know if there is a way to change the type of clock on the lock screen?

There were other types apart from the standard digital one in LOS 18, but it seems to have been removed in 19 - unless I'm overlooking it somehow.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
Ok, this may apply for the case when the device is still in fastboot mode. But how can I get the device out of the "stuck at SONY logo" mode after I (probably stupidly) tried to boot it into system mode? It does not react on anything I tried, and of course not on fastboot or adb commands.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
There's only Settings > Display > Lock Screen > Show clock in two lines toggle afaik.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Press and hold volume up (iirc, maybe it was volume down) and power for some time. you'll notice a single vibrate. keep on pushing and wait until it vibrates 3 times.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
Thanks a lot. I'm sorry to bother the developer of a ROM in such a forum with a simple question how to power of a (to me) new device, but I did not succeed in googling (which is anyway non of my strengths).

Now I could enter recovery. The rest will most probably "go by the book" :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnBay:
Yeah, thanks mate.

I've just 'braved' (as opposed to 'googled') some answers to that question and it seems to be one of those 'improvements' Google made to the 'most-customizable Android ever', which in fact remove options that were available in 11 & before.

I did the upgrade, like several others here, to see if I can get VoLTE working on this device, so if that proves to work in Australia. Long shot, probably, but worth checking out.

At least the move from 18 to 19 seems to have gone without any issues (so far, anyway), so I'll live with the clock.

Thanks for all your work!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
I managed to install the ROM, including the MindTheGapps package. To my displeasure the camera2 app seems to be unable to take photos with the high resolution that is offered by the device's camera, only up to about 8 megapixels. Does that mean only Sony stock firmware can use the full resolution?

Edit: And when I click into the upper field above the picture area, the app crashes with "no connection to camera".
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Can you provide a logcat of the crash please? I cannot reproduce it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
I will provide one. Would you please tell me anyway if the camera app of the LOS ROM is expected to be able to work with the device's full resolution?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
All right, I went through installing Lineage OS for the first time on my Xperia XZ2 Compact. It took quite a long time, but in the end it worked.

I have two issues currently, but they might be linked to Android 12 and not Lineage OS :

The Twitter app is stuttering a lot when scrolling through the main feed. This was not happening before on the stock OS. It seems to happen to some people on Android 12, I don't know if this is something the LineageOS people can look into it ?

Android messages are displayed weirdly. I had a save through Google, it tried to restore it, but it messed up somewhere. Messages that were sent through RCS are either missing, or "duplicated" (to be more precise, there is the message itself, and following this message a blank space that shows the time of the previous message if I click on the blank space).

I don't think the second issue is linked with Lineage, but maybe someone here went through the same issue than I did. A bit sad that I lost some messages.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes, i can see the full resolution in camera settings and it actually works that way. I now was able to reproduce the crash. Didn't know I had to tap on the black area above.

EDIT: You could however try Magisk + https://gitlab.com/xperiance/camera/ (keep in mind there are still some issues with the sony stock camera like slow motion video crashes the app)

I will check the camera2 crash when I have enough free time.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Twitter is running fine for me on my daily driver. The backup and restore procedure might be a google thing and not related to lineage but I'm not sure and that's also something I can't fix, sorry.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
Thanks for answering and looking into the log. I indeed can also go to the camera settings and select the 19MP, but the photo taken with that setting results to be of a resolution 2160x2880.

Furthermore, I read somewhere the flash only flashes after the photo is taken, and I can confirm. For the next photos, the flash keeps quiet completely.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yep, I've added all of this to my todo list.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
Ok, that means I don't see ghosts here. I'm relieved.

To confirm I understood correctly: The fact that the photos don't have full resolution although selected in the camera settings, is a matter that can probably be fixed?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I hope so. I need to take a deeper look into that issue first.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
That would be great.

For the other option you mentioned (Magisk with your camera module) I would need the boot.img of this ROM. Can somebody link a howto for that? The LOS ships with a big .bin file.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Just sideload the Magisk.apk in recovery
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
I'm sorry, I'm used to TWRP. I already "installed" the Magsik apk, but did not know that "sideloading" it contains the whole process of patching the bootloader.

That was easy, I will keep that in mind.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
I'll try and capture a video of Twitter. I can't identify when it stutters and when it doesn't. There is some micro stutter right before the scrolling stop, but it happened on the stock OS too I think.

For the second point I agree with you, the restore froom Google messed up.

I noticed something with Telegram (last apk version from their website) that was not happening before too.

If I try to take a picture with the camera in Telegram, it will make a sound. I disabled "sound in application" in Telegram, my phone is on silent mode. I thought it was an OS settings to change, but there's no "camera sound" in the settings.

There is an old bug report on Telegram's tracker that is similar to this issue, where they say it is an OS issue.

If you don't think this is a LineageOS, let me know, I'll fill an issue for Telegram.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If it happened on stock that's something i don't want to investigate. Might be an app issue from twitter itself.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
For the micro stutter issue, yes I agree. For the exagerated stutter, I'll get back to you if I notice them again.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
Will 1080p 60 fps video recording be available here? Installed stock camera app (your magisk module) and there is no option to choose.

This is the only flaw I've noticed so far 🙃
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] linuxteddy:
As I understood the slow motion is (almost?) the only thing that does not work with his Magisk module camera. But that would be 120fps.

I also read about the "predictive capture" feature of the camera, but don't find that somewhere in the settings.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
I mean a simple recording, not slowmo
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
Just an update on the described NFC issue above: I changed SCREEN_OFF_POWER_STATE from 1 (always powered) to 0 (default, sleep mode enabled) in /vendor/etc/libnfc-nci.conf and now it seems to work.

Edit: NFC crashed again. But not as quickly as before :-/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
The camera in Telegram is definitely buggy (does not happen on stock, 100%) :

- The shutter sound triggering for no reason.

- It randomly hangs when trying to take a picture and displaying the picture taken (with the UI to send this pic). Sometimes it is quick, sometimes it takes a few seconds, and sometimes I wait so long that I have to close the app.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ALEX88_XDA:
You can help me with these two errors ... I can't get wipe data factory reset..at the first error ... following some tutorials on the internet I managed to clean them one by one by repairing the partition and changing the partition format .... I tried to install zip ... but it gave me a doya error ... You can help me ... I want to mention that I don't use twrp from the official lineage site because it doesn't even enter and stay in bootlop ... I use Apollo 3.1 .1 twrp..it's the only one that comes in...Whay is A And B??

ERRORS::::

Tryng to wipe:

E: unable to set policy for path: data/cache

E: unable to set encryption policy for data/cache

Tring ți Flash:

Flashing A/B to inactive solt B

To fapsf additional zis, plecase reboot recovery to swich to the updated slot.

Error instaling zip file /external sd/ Xperia xz2 compact/lineageOS.... zip.pkease help me😅

Thanks🙋
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
TWRP is not supported and afaik doesn't work at all. Please follow the install instructions to flash lineage 19.1 recovery instead.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
@dtrunk90 can you answer my question above, please?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Didn't had time yet to check and provide an answer to your question, sorry.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ALEX88_XDA:
Well, why do you think I'm not recovering ??? I do not install it in the flash tool with fastboot .. it shows me that it flashed ... I will try another method .. what's on the site if there is one ..🙄🙄
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ALEX88_XDA:
I managed ... I pressed the volume up I had many phones and so I knew it was going into recovery..😅😅 Can you help me with a gapps pakage ?? Pls ... I tried with MindTheGapps 12.1 arm64 and I don't work ... 😭😭😭. I want to have at least Google services ... with google play ... etc
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

I you want a perfect world with google, stay on stock.

It's just like the people going to Linux who want to use excel, word, outlook (but it's possible)...

LineageOS is not perfect, it requires sometimes long researches to make it work as you want.

For me, open source philosophy is not compatible with google shiiiiit.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
What? No. Just, no.

Just carefully read the install instructions. Everything you need to know is there. If you follow the instructions you'll get MindTheGaps working. There's nothing I can help you better than the install instructions.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
@dtrunk90 don't want to be annoying, but my question is still open: will 1080p 60 fps video recording be available? Installed your stock camera module and there is no option to choose the framerate. Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If it's possible by hardware it just needs a proper software. Camera2 is crap and my camera module was just a quick win. If there's no option to set the framerate it's not possible. I'm not sure if it was selectable on stock version camera (my module uses a newer version of the app which actually wasn't made for these old devices). I'll try and check if I can get the stock camera version working somehow. That's all I can say for now. If you need more details I need more time to elaborate.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
Yeah, it was selectable in stock camera. It feels sad when you can't record a 60 fps video with a flagship device, especially sony :(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
Is Google Pay supposed to work on the XZ2 Compact with LineageOS?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
All right, I can't add my credit card, the app is talking about "root" and "modified phone". Maybe Magisk is the one causing the issue, I don't know.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You'll need the following magisk modules: MagiskHide Props Config (run props after installing that module to set a valid fingerprint), Universal SafetyNet Fix and then you have to enable Zygisk and add Google stuff to the deny list (both can be found in magisk settings).

EDIT: And don't forget to delete the app data of Google Pay after you did that. Otherwise this app will keep complaining about root.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ALEX88_XDA:
Excuse me again ... I managed ... I want to mention that I installed lineageOS ... and after the setup I went into recovery again and I installed gapps .... the first time I installed both at once but I didn't no application appears ... it is still to be mentioned: after installation the google play application must be updated..if not, you will not be able to connect ... at least to this version of gapps..🙋
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You forgot to reboot to recovery after installing lineage. That's covered by the installation instructions. That's why I said to read them carefully.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
I think I got NFC now working (at least for a couple oft days which was never the case before). Not sure, what exactly the solution was but those were the chaotic steps:

- Copied libpn553_fw.so from here to /vendor/lib64 (version 2nd Jul 2021)

- Copied libpn553_fw.so from here to /vendor/lib64 (version 9th Sept 2020)

- Copied libpn553_fw.so from here to /vendor/lib64 (version 30 April 2020)

- Copied backup of Lineage OS firmware version back to /vendor/lib64

- Again copied libpn553_fw.so from here to /vendor/lib64 (version 2nd Jul 2021)

(after each copying, a reboot)

- Toggled module several time on/off in settings.

During testing, it showed that I'm still affected by the Mifare-issue linked below, but that's OK for the moment for me (I rely on other chips):

NFC crashes when reading (Mifare) NFC tag on Xperia XZ2 (#4324) · Issues · LineageOS / issues / android · GitLab

Expected Behavior NFC Should work and be able to scan my NFC tag Current...

gitlab.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] iceeyes91:
Clean flashed from stock android 10. Flashed according to the install instruction provided and had no issues during install.

So far no hiccups. Thank you for this superb ROM :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] gvine89:
Has anyone been able to add a work profile using Google Device Policy?

I had this working on 18.1, can't remember if I had to do something to get it working. Now I just get the error "can't add work profile"
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] namenloserframderjoe:
It seems to me that split screen functionality does not work. (no complains, just want to report.)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] z1c-me:
Did today the upgrade from LOS18.1 to LOS19.1 following this guide:

Upgrade LineageOS on xz2c | LineageOS Wiki

wiki.lineageos.org

But hit the problem of an outdated recovery 18.1 version.

To solve this I followed this section "Temporarily booting a custom recovery using fastboot"

of this guide: https://wiki.lineageos.org/devices/xz2c/install

But hit the problem of no device connecting at fastboot.

To get this working I had to install the fastboot driver by following this guide:

Fixed: Fastboot not detecting your Android device

Fix the Fastboot not detecting your device. If your device is not detected by the Fastboot then these tricks will really help you.

www.qasimtricks.com

That helped me upgrading succesfully.

I guess I'm not the only one hitting these problems.

Maybe a good idea to add above steps to the wiki guides.

Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] namenloserframderjoe:
Thanks for your respond. Hmm, interesting... Than it's just my device. Maybe this is my reward for not making a clean flash...?

I tried activating split screen by setting "System", "Buttons" "Recents long press action" to "Splti Screen" and than... pressed long. but nothing happend. Using other buttons has the same result, while the action "Last App" works this way just fine.

Is there an other way to activate split screen?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
Open recents and hold the app icon, then press "split top"
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] namenloserframderjoe:
Oh yeah, thank you very much! That's very good to know. This way it works with my device, too.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] samsungs3neos3neos3neo:
Is copying the slot contents with copy-partitions-20210323_1922.zip unnecessary if it was done after updating stock then originally installing Lineage 18? I know the Lineage instructions say it's only needed once per device but since installing Lineage 19 involves reverting to stock first, I want to be certain it's okay to skip this step due to the hard brick warning.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
There's no need to flash stock and copy partitions if it was done before installing 18.1 already.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] samsungs3neos3neos3neo:
Great! Thank you. The Lineage wiki upgrade page says to downgrade, but I suppose it is referring to firmware (which will never be updated by Sony past Android 10?) and not the ROM?

"If your current installation is newer or older than Android 10, please up- or downgrade to the required version before proceeding"

Also, is there any situation where the partitions would ever need to be copied again? Like say if downgraded firmware to Android 8 or 9, I'd have to then go to Android 10 and copy partitions before installing Lineage 19.1? I don't anticipate doing this but just want to fully understand any potential risk of hard bricking.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] samsungs3neos3neos3neo:
I may have bricked the phone. Was I not supposed to flash Lineage 19 recovery??

I installed the Sony developer drivers, which let 'fastboot devices' work (I am on a new computer since when I installed Lineage 18.

Then "fastboot flash boot lineage-19.1-20220722-recovery-xz2c.img" which said boot_a and Finished. Then it was stuck on Sony logo. I was able to boot back to recovery and retried but then it said boot_b and Finished. After that I got "Your device is corrupt. It can't be trusted and will not boot".

I flashed Lineage 18 recovery and it said boot_b and Finished. And now it is back to stuck on Sony logo.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] samsungs3neos3neos3neo:
Okay I got really lucky and found the old 2021 Lineage recovery img that matches the ROM date. And unlike the newest 18.1 recovery, this one worked and I successfully booted into recovery.

It said the system is corrupted and it let me do a factory reset and successfully boot into Lineage 18.1. Then I tried to flash Lineage 19.1 and it failed saying it package is for product xz2c but expected H8324. I used the system updater app to update to the latest 18.1 (20220610) and am still getting this same error.

So now I'm confused because I'm simply following Step 5 from https://wiki.lineageos.org/devices/xz2c/upgrade
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] samsungs3neos3neos3neo:
I tried flashing Lineage 19 recovery again and it said boot_a finished. I had the issue again being stuck on Sony logo but somehow managed to get to recovery. But it said slot b recovery and it had the old December 2021 date even though I updated Lineage 18 to June 2022. It said corrupted and I did a factory reset back to December 2021.

So how do I update to Lineage 19?