yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kenbw2:
I have two XZ2 Compacts - a black single SIM one, and a green dual sim one

I've flashed the same build of LineageOS 20 to both of them and it works perfectly

Except for the Quick Settings pulldown on the green dual sim phone. It's obviously a lower frame rate, and isn't a smooth animation

This also only happens when the home screen is active. If I'm in another app, it's smooth on both.

What could be causing the difference? And Can I fix it?

Black Phone - smooth animation:​

Streamable mirror: https://streamable.com/3hifd6

Green phone: Jerky animation​

Streamable mirror: https://streamable.com/0anrn4
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Have you tried messing with the settings in developer options?

Window animation scale

Transition animation scale

Animator duration scale
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kenbw2:
Yea they change the duration, but not the smoothness

But I just found the issue. On the Black phone I had the gesture navigation hint hidden, whereas on the green one it was shown. You can see that on the two videos.

I've removed the navigation hint and it's smooth on the green one now. Odd.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Orphee:
Hi !

Thanks for it.

It means it has to be flashed after every Lineage OTA update ?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No but the Fingerprint in the 1st post doesn't work anymore. Google is blocking even more Fingerprints now. If you find a working one let me know.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Orphee:
How to restore default LineageOS XZ2C values then ?

Thanks
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Cleanest way would be an uninstaller. But there's no such ih8sn uninstaller afaik. So, simply put an empty config file and flash that.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I decided to give LOS20 an other chance and flashed 'lineage-20.0-20240105-nightly-xz2c-signed.zip' today.

The modem issues with mobile data connection seems to has been fixed but I still need to observe a bit longer.

Due too there was no related input of yours in the meantime it looks like LOS was the culprit. 🤷‍♂️

The only difference i've done before flashing was to disable security scree lock in advance.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
@dtrunk90 ,

Your xperiance camera module is abandoned and 120fps & 960fps recording has not been solved, correct? I believe there are encoding/decoding (a .so somehwere) libraries missing.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Correct. But feel free to fork the project and give it a try if you want. It's all open source. Unfortunately I don't have the time to keep working on everything.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
Hi folks, I have run LineageOS on a variety of phones over the years but am new to the Sony. My wife likes small phones and the XZ2 Compact looks perfect for her. I know I must get model H8314 or H8324, not SO-05K. Then visit Sony's developer site to unlock the bootloader: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader/

My questions are: model H8314 is VERY hard to find. The only ones I can find are from eBay sellers in China with questionable feedback ratings. Any tips for finding this phone? The SO-05K model is much easier to find and less expensive. Can it be reflashed to run LineageOS?

Also, I've read this phone doesn't work with some US Carriers. Can anyone confirm that it works on US T-Mobile? I've searched but can't get a definitive answer on this.

Also, I read here that for the initial LineageOS installation, the phone must be running the OEM Android 9 or 10 build - nothing more, nothing less. Is that right?

Thanks, and please forgive the noob questions.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
I thik you better get a Google pixel 2. I have both. And the sony doesn't feel so much smaller.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Accordiing to official LineageOS installation instructions, to install LineageOS you'll need Android 10 firmware (which is the latest).

Maybe you read about another guide which requires a lower Android version to backup the unique Digital Rights Management (DRM) keys. Sony has some special features protected by DRM which are lost forever when unlocking the bootloader. I found a noob friendly guide to backup DRM TA partition (which I used) that you can read about here. Until now, backup of DRM (TA partition) is possible but restore isn't (yet). I backed up my XZ2c DRM keys nevertheless in case one day it's possible to restore them.

I'm curious about the SO-05K model for testing purposes myself. I think I read about other users who attempted to use H8314 firmware on the SO-05K variant reporting battery drain issues due to incompatibility with the different NFC hardware (someone correct me if I'm wrong).

AFAIK, there are H8314 H8324 devices on AliExpress. I can't attest to whether the customer service is good or not specifically to buying XZ2c phones though.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
Apps are crashing in the latest build. Have anyone else encountered this?

Edit: fixed with reboot
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
So, I just got one of these phones, model H8314. It's 100% functional and working on T-Mobile US (WA State). All factory updates installed, build 52.1.A.3.49. However, it doesn't work as a phone. It sends & receives mobile network data, SMS, etc. and I checked my T-Mobile account, they recognize this phone on their network. But no voice.

I dialed *#*#4634#*#* and it shows Provisioning is OFF/disabled for VoLTE, Video Calling, WiFi Calling. With my other phone that works, all three of these are enabled. Lower down on that screen for the H8314 there's a button that says "Trigger Carrier Provisioning", which I clicked, but it doesn't appear to do anything.

Are these phones able to do voice on US T-Mobile? I've read mixed messages on this. And I did read one place where they said these phones can do voice ONLY on LineageOS because the essential VoLTE code was added in version 18.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
Does this mean that VOLTE will work in LOS *only* if it was already working on the OEM build before you install LOS?

Put differently: currently my phone's VOLTE is not working on TMobile USA. Can I install LOS 20 and it will start working? Or must I get VOLTE working in this OEM Android 10 first?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Exactly

The problem is: There's a firmware partition with binary modem files provided by the carriers to the OEMs. If it's not working on stock android 10, there's unfortunately no chance to get it ever working unless you get the carrier to provide the mbn file for this device's modem. The only thing you could try is checking your SXX number, see if the folder is available in the github repo and mess around yourself if there's a modem config file which is working for you since i remember there were many TMobile USA modem config files. Maybe you just have to create the folder, copy an existing modem config file so the mbn file can be used and it will work.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
Thanks for the tip. Sounds like this requires rooting the phone, so I'd have to do that first.

Or, figure out a way to flash a different version of the OEM Android, for a different region or carrier. This phone seems to have a generic international version.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
If you think you have the correct firmware and it still doesn't work, try voenabler Magisk module.

I used voenabler to get VoLTE working on my XZ1 Compact phone with modem firmware ir51_ir92.

Maybe worth a try on the XZ2 Compact.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
So it seems I have 3 options to make this phone handle voice calls:

1. Flash a different OEM ROM (different region, carrier, etc.)

2. Root the phone & hack it (Magisk, voenabler, copying build.prop & modem cfg files)

3. Set up Google Voice and forward the cell phone # to it

I did use Sony XperiaConnect to reflash the phone from my PC. It got the exact same OEM build it already had, which does not support VoLTE.

Options 1 and 2 go down rabbit holes that will consume a lot of my time and risk getting the phone in an unstable/unusable state that will prevent me from returning it for a refund.

Option 3, I set up this morning and it works seamlessly.

All of this is independent of whether to run LineageOS on this phone, because in this thread I learned that LineageOS won't get VoLTE working if it wasn't already working in the OEM build. So thanks for making that clear. I didn't intend to divert this thread to the topic of VoLTE, but it does relate to LineageOS so hopefully this info will be useful to others.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Option 2 and copying modem cfg files would help me, you and probably others in case you find the correct modem config so I can add it to the rom and you can unroot it again. Since I'm not based in the US I'm unable to test this and I depent on the help of others in that case.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
Not necessarily true; mainly it depends on how the carrier registers the device when provisioning occurs and if there is a config supporting the bands it operates on. There's an option 4 that more than likely will work: flash the oem partition from an XZ3 build to your XZ2 Compact.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
This advice sounds like a mix of options (1) and (2). If this were a "development" phone, I might be tempted to go down that rabbit hole. But my wife had love at first sight with this phone, so now it's her primary and I can't mess with it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
The phone is running an open source rom ...

It's a very easy process to test/swap the oem partition from xz3 back to xz2 compact if it's unsuccessful establishing VoLTE with your carrier. I guess spending hours instead of minutes is logical to fix a problem?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
This particular one is still running the Sony OEM Android 10 (exact build # mentioned above).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
So, why are you here on a LineageOS thread if you're runnning stock? I'll assume you mean you flashed the final stock build before upgrading the system to LineageOS. If that's what the device has flashed, you can easily pull the oem partition from an XZ3 running the same version software and flash it to your XZ2 Compact with Xperifirm. The method I'm describing has been tested and in the past provided VoLTE running LineageOS, without the need of provisioning on stock.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
@MRC01 ,

I see what the issue is here, the region/build doesn't have what you need to get it working on the network (final US build is .137 not .49). More than likely you're running another regions firmware that doesn't have the correct configs you need to get proper tx/rx on the network. You should definitely unlock your loader and upgrade to this by carefully following the guide. You'll get VoLTE support working once you do.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
I do this to ensure I get it right with no nasty surprises, which means reading about the details and issues that aren't necessarily in the installation instructions. For example, whether VoLTE will work.

Nope, it's still on the OEM build. I applied all OTA updates, which got to build 52.1.A.3.49. Then I used Xperia Companion to reflash it from my PC, which ended up with the same version.

So you are saying that if I unlock this phone and install LineageOS, VoLTE will start working? Even though it does not work with this OEM build. And without hacking the modem files or installing partitions from an XZ3? That would be great, but it contradicts what the developer @dtrunk90 said above.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
You're right - nothing has changed since the opening post of the thread with the device. Stay on stock and be safe.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
The LineageOS build has a modem firmware changer built into the settings. Would that mean getting VoLTE to work even if starting from an OEM stock firmware which isn't compatible in your region?

Also, about unlocking the bootloader. You might want to first backup the Digital Rights Management keys on the TA partition which are unique on each device. They are forever lost after unlocking the bootloader otherwise. Although no one has yet figured out how to restore the saved keys, you might still want to do this in case it's possible in the future. Here's the guide I used https://blog.andresgomez.org/2020/0...ux-2-5-backing-up-the-trim-area-ta-partition/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] wtor68:
I used your second build some days now. All works like a charm, in means of normal use and testing all whats possible with that device. I don't found anything which is not working. Currently i have two devices running on 18.1 for daily use and i would skip the version 19. Are there any blocking bugs which must be resolved before going official with 20?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Not I'm aware of. There are some things on my todo list but i wouldn't consider them "blocking". These can be done even after shipping.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] sodnwsdho:
Thanks for your work, I have been using your build since android 11, will this a13 version become an official build? (Machine Flip)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes, should get the first official build in some days: https://review.lineageos.org/c/LineageOS/hudson/+/346756
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] sodnwsdho:
Thanks, there is also a problem that your "Xperiance: Battery Care" Magisk module does not work on Android 13 and will cause the device to get stuck on the boot logo and restart repeatedly
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yeah I'm thinking of giving up these modules since it's hacky as hell and I don't have enough time to maintain them as well. And afaik there's something similar planned for Lineage: https://review.lineageos.org/q/topic:charging-control-hal-20
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Is it common to make a hard cut from 19 to 20?

Why not build both versions for some weeks or so?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I don't see any reason to do so. Other maintainers are doing the same.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Thx for clarification.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
First official build will be available on Friday! I've already updated this thread so I don't have to do it later.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] sodnwsdho:
Thank you.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fritz-67:
Version lineage-20.0-20230106-nightly-xz2c works very well. Only the WhatsApp photo function does not work properly.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
What exactly doesn't work properly? Any crashes or logs you could provide?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MisterDams:
Just updated from stock. So far everything is working, that's awesome!

I'm not using it much as it became my backup device (though, my main is still running Android 12), but it's nice to know that everything will be up to date if I need it, and keeping gesture navigation will be a huge relief 😉
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
Coming from 19.1, I followed this (maybe too) complicated procedure:

1. Flashed original Android 10 ROM with Newflasher on slot a

2. Flashed original Android 10 ROM with Newflasher on slot b

3. Flashed recovery on slot b

4. ADB sideloaded LineageOS in recovery of slot b on slot a (automatically flashed on inactive slot a).

5. ADB sideloaded GAPPS and Magisk in recovery of slot a.

Result: Works like a charm and is stable! Including NFC (regardless of the tag scanned) which was broken for me in 19.1.

Many thanks (I donated)!!!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yep, no need to flash 10 Stock ROM when coming from Lineage 19.1 because you did it already before installing a previous Lineage version.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] lba810701:
First of all, thanks to dtrunk90 and everyone else who contributed to making this rom available to us.

I refreshed from 19.1 to 20.0 and it's worked flawless. All of my programs, passwords, settings and mail accounts remained. Rooting with magisk and pass safetynet still good. Everything working like a charm. ( my bank apps, netflix, etc... ) :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
Many thanks to dtrunk90 and team for this. Upgraded last night and works perfectly :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] BENETNATH:
just updated from latest 19.1 without a glitch.

eveything works well, even photo from whatsapp (issue was reported before)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Hi

Is there a way to get TWRP on my XZ2c without unlocking bootloader and loosing drm keys? Want to flash this rom but phone is still on stock rom. I'm using my XZ1c for now with unlocked bootloader and LineageOS 20.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
DRM keys for watching HD video on a 5" screen - very useful 🤣. Maybe for the original camera software if the keys allowed for ease of porting it to an up to date system 🤔. There's not much purpose to saving those keys as the loader cannot even be relocked. There are plenty of better devices out there to support the features DRM has to offer.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
Nice. I have not seen this mentioned before. It seems model-specific as my Moto G7P running LineageOS 20 doesn't have that (though VoLTE works).

Thanks for the tip - you mentioned this above. That site links to XperiFirm, where I can get any version of Sony ROM. Looks like the version on mine (52.1.A.3.49-R6C) was for France and UK. So I can download 52.1.A.3.137-R7C which was for USA, and that may have working VoLTE.

To flash the ROM, I've seen at least 3 different tools mentioned: flashtool, newflasher, and Sony Mobile Flasher. What is most commonly used?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Keeping in mind that this thread is for LineageOS 20, I'll redirect you to this link https://xdaforums.com/t/guide-downgrade-xz2-commpact-from-android-10-to-9-locked-bootloader.4071111/

Pay particular attention to step 4.1
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MRC01:
OK so getting back to the subject of LineageOS 20, the question remains whether VoLTE will work for a phone that previously was running 52.1.A.3.49 and VoLTE was not working.

Some say it will, some say it will not.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
@dtrunk90

Are you also still running XZ2c as your daily driver? Not sure this already has been asked at some point but do you have plans about pushing this device to LOS 21?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes, it's still my daily driver. It was asked in other threads already. It's planned but no ETAs.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] falskmyntarn:
hi all,

followed the installation instructions on the wiki but I can't seem to boot into recovery after flashing boot.img (which runs without problems) - I only get the warning about re-locking the bootloader and then infinite Sony logo.

I've unlocked the bootloader - it looked like there was a problem with it but when I run it again it says "device already unlocked" so I don't think that's the issue.

any help is much appreciated!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] old.splatterhand:
Immediately after the device starts rebooting, keep the power button and the volume down button pushed.

This should bring you into recovery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] falskmyntarn:
thanks - yeah I tried this many times but it seems like it's being caught before recovery by this re-lock warning so I can't really get it to budge. might try and restore the bootloader somehow and see if I can try again - right now it seems bricked.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] old.splatterhand:
Flash the latest stock rom and start from the beginning.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] falskmyntarn:
it's the weirdest thing - turns out it was possible to reach TWRP the way you described, but with a caveat: I had to hold volume down+power for around 10 seconds, and I noticed that something came up on the screen but disappeared as soon as I let go of the buttons. eventually I learned that I could reach TWRP if I kept pressing the buttons and then releasing volume down (but keeping power pressed), scrolling down, and then I could release the power button and use TWRP. releasing the power button would activate the first choice on the TWRP menu (which is reboot system) and that's why I could never reach it.

so now LOS 20 is installed and working! thanks again.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
AFAIK TWRP isn't officially supported. Use the provided recovery as mentioned in the instructions.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
Morning guys! (at least it is morning over here).

I bought a H8324 and planned to use it as my main phone due to the size.

I have prepared my PC with drivers, ADB and such and downloaded the OS and Mind-the-gapps.

I read through the instructions a few times and noticed the ih8sn code for the Safetynet:

"# Does not work anymore as of 2023-11-15"

Does this mean that I can skip flashing that zip and everything works or does it mean that Safetynet won't work?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
That safetynet thing means, Google replaced it with play integrity check. There are methods to cheat, but it is better to avoid apps that do unfriendly device integity checks.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
So.

Installing the ih8sn package wont matter anymore?

And if I install LineageOS along with Gapps, will the banking apps work?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] norman0:
The banking app probably won't work this way. It doesn't work for me, for example. I therefore use Magisk with Zygisk. I was able to trick the app and it works. However, there is no guarantee that it will work with your app.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
Crap.

I (as well as most Swedes) use the phone for most banking and money transfers.

There goes the LineageOS idea down the drain.

To bad, because the phone is way to sluggish as it is now.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Some banking apps work on vanilla LineageOS (I don't use GApps). Depends on which bank. My bank even works as a webpage in a mobile browser.

You might want to search this thread https://xdaforums.com/t/hide-my-applist-a-brief-guide.4519731/ to learn more about banking apps on a custom OS.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
I just remembered that I installed an older version of LineageOS on my old Shield K1 (lineageOS 15.1 or something).

Is it safe to assume that if my banking apps work on that tablet, they should also work on this phone?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Banking apps exist in all flavours. From runs everywhere to needs a new cheat after each update. Maybe for yours ih8sn makes a difference. I doubt.