yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] mongo0:
Hi, I could be wrong since I'm compiling for myself, but it should be the same problem: When pulling '/system/framework/framework-res.apk' and running 'aapt d xmltree framework-res.apk res/xml/power_profile.xml' it should return the values from the overlay (folder). However, the output corresponds to the default values in 'frameworks/base/core/res/res/values/xml/power_profile.xml'.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
RROs aren't a compile time but a runtime feature.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] mongo0:
Thanks for your reply. Nevertheless it should be included in the ROM (somewhere), no? I'd like to include the bromite webviewpackage in config_webview_packages.xml (same folder) but this does not seem to work. Somehow the content in the overlay folder is ignored.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Change the value of an app's resources at runtime | Android Open Source Project

source.android.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] brod56:
I've noticed that exact same bug on a Mi A2 on an official 18.1, and not on my XZ2C on this rom. I would love to see this getting official
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
I have a H8314 equiped with the following chip (because of battery replacement):

https://stellatech.com/en/sony-xperia-xz2-compact-dual-(h8324)-antenna-module-nfc,a,831661.html/

After booting, NFC works, but then crashes occasionally in the background... maybe the attached logfile (and the screenshot of the errors just before the crash can help).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnRossJennings:
Hi

I'm looking to flash my phone as I've run into the Stock issue where the secondary mic stops working (annoying.. happened after a factory reset).

Anyhoo..

I'm weighing up between Official 18 and Unofficial 19. I saw the Sony camera doesn't work with Unofficial 18. Doe it work with 19?

Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Only as a magisk module but it's not the stock version camera but an updated apk. Check xperiance at gitlab.

I would suggest waiting for the official 19.1 builds. Everything is in place, just some stuff needs to be merged from someone with write privileges to those repositories.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnRossJennings:
Thank you
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Official builds are now available!

In order to switch from unofficial to official builds a clean flash is required. Please refer to the official installation guide on how to clean flash properly.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Thanks to dtrunk90 for this rom.

Due to update crash with 18.1 i just switched to 19.1.

Can someone point me to the camera app what was/is used by 18.1?!

The new one doesn't fit my needs.

No panorama, No storage switch to sd-card.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kufuska23:
but there is not even a single custom rom available for sony xz2C SO-05K since its launch. many users like me are facing hard times. Do/suggest something for SO-0K. still we are struck in on screen button era🤒. suggestions pleasr
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] sometx:
thanks but…error：packages is for product xz2c but expected h8234
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Ermann123:
Just in case: is there a tutorial/guide somewhere, how to easily rollback to 18.1 , if 19.1 show strange behaviour still?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] lba810701:
Thanks Dtrunk90 and Lineageos for support our XZ2C device! :)

I know that in principle I would have to do a clean install to switch from 18.1 to 19.1 rom, but since I have a lot of applications ( 96 piece ) and gmail accounts ( 3 piece ) and email address settings ( 6 ) on my phone, I tried to make it dirty for the first time. A refresh from 18.1 to 19.1, saying if I fail I will do it from the ground up.

BUT, it worked without any serious error at first try. The process if someone is interested in:

- Downloaded everything, and put they to my adb folder. The los.zip, the los.recovery.img, and gapps.12.1-arm64.zip ;

- Booted phone to fastboot mode ;

- In fastboot " fastboot flash boot lineage-19.1-20220617-recovery-xz2c.img " ;

- Plug uff USB, then rebooted into recovery with key combo ;

- In recovery if I choosed the upgrade from adb ( sideloads ) I've got error message, something like: " los recovery error package is for product xz2c but excepted 8324... "

- after that, In the recovery I enabled adb ;

- then from pc " adb reboot sideload " ;

- after it " adb sideload lineage-19.1-20220617-nightly-xz2c-signed.zip " ; <- it went perfectly now

- rebooted to recovery from recovery ;

- then " adb sideload MindTheGapps-12.1.0-arm64-20220605.zip " ;

- rebooted phone once ;

- made patched magisk boot img file with magisk app

- rebooted to fastboot, then flash patched magisk boot img ;

All of my programs, settings, passwords, mail accounts, are remained as they was. What I've looked at so far is all working. The rooting process still good. My Telekom and Bank applications could still hided from they root detection. And what surprised me was, that the poweramp equalizer also works properly, although on my other " gaming " phone on an xperia x compact ( kugo ) also under lineage os 19.1 i can't work it at all. And here is perfect. ( At least in addition to spotify ).

Thanks again!

Edit: My phone is a H8324 ( DualSim , EU version )
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
LOS19.1 Camera2-app with flash on in dark environment takes picture 'after' flash. It resuts in a dark image.

Anybody here encounter the same issue?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Carljaynp03:
Does anyone know of any Gcam compatible with the Sony Xperia XZ2 Compact?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
In 18.1 we used this: https://github.com/LineageOS/android_packages_apps_Snap

It was dropped in 19.1 and replaced by Camera2.

So, not sure if Snap even works on 19.1.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Feel free to build it yourself. Maybe adding the nfc driver to the kernel and changing it in defconfig might be enough to get everything working.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Which recovery and recovery version are you using?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yeah, just follow the installation guide. You'll need a clean flash if you want to downgrade.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kufuska23:
you may be sarcastic here....but

is there tutorial available for that?🤗
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No, i'm not sarcastic. There are build instructions in the official wiki. But you'll need to find out on your own how to add drivers into the kernel.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kufuska23:
ok, i will start digging that. thank you. if i start something and if i struck at something and if i ask some guidance regarding that... you should help us 😑
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
You may have figured it out by now, but I'll take your questions anyway.

Updates on unofficial builds are typically done by downloading the OTA file on your PC then adb sideload it in recovery mode.

Updates on the official builds are supposed to work by going into the phone settings and downloading and installing them directly to the phone, until about a year or so from now when (if) the next Android version update is released, then it'll need to be updated the one time in recovery mode.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zastor61:
Thanks. But what about upgrading let's say from official 18.1 to offical 19.1? Updater says "Update blocked" and to follow procedure https://wiki.lineageos.org/devices/xz2c/upgrade, but it is not clear does all my data (apps, pictures, mobile banking app tokens,...) stay on the phone or is it like a clean install?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
The procedure described there is a so called dirty flash, without wiping data. So it will keep your data. But I would always recommend a backup. Just in case. "No backup? No mercy!"
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
Thanks, I was wondering the same. I also noted that in this method there is no need to install the 19.1 recovery. Just straight in with the zip and Google Apps. Has anyone had any success with this method?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

To install LOS 19 you need LOS 19 recovery.

If not, you should have the message "error：packages is for product xz2c but expected h8234"...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jcummings2:
I saw reports of VoLTE on T-Mobile working on xz2c (AKA xz2 compact) with official lineageos 18.1 builds. So using the instructions on the LineageOS website, I flashed the more recent and presumably also working lineage-19.1-20220617-nightly-xz2c build on my Sony XZ2 Compact model H8314 over the stock 52.1.A.3.49 build. Everything seems to work fine except Voice over LTE (VoLTE) at least on T-Mobile in the US (Wi-Fi calling does not work either but I did not expect Wi-Fi Calling to work).

Calls go through but best I can tell it is not VoLTE as the mobile network switches back to 3G and there is no HD voice indicator. I attempted to set my preferred network type to LTE but then calls do not go through but instead immediately says "Call Ended." I've toggled VoLTE on and off in settings while trying calls each way along with changing the network type as mentioned before. All to no avail.

Per this message, I did try taking the SIM out and putting in a known work VoLTE device (a stock Samsung S10 in this case) and indeed VolTE worked fine in that device but it still didn't work on my xz2c.

Is there something else I should try or do?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
There's something which needs to be merged so the apk could load: https://github.com/sonyxperiadev/SonyOpenTelephony/pull/10

Might be the reason for the broken VoLTE. I'll investigate.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Should be fixed with next build. If not, let me know the modem config of your notification and I'll have a look.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
It's nearly the same instructions for xz2c: https://xdaforums.com/t/rom-11-lineageos-18-1-official.4276833/post-87057103
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kufuska23:
in this link only for NFC they are talking but here for SO-05K, we need complete custom rom. not even a single supported rom for that deviCe so far in thr internet. since the device update stops at android 10, an Custom rom based on android 10 will be good, sufficient and enough. here i have started digging youtube for tutorials for building custom rom and before that i almost forgot to order apiggy bank to save some money for buying a decent PC to build that custom rom based on andriod 10😎.. so definetly on that fine day with complete generousity you will be developing the custom and we expect that you will provide that rom for us.. so please do something for on screen button community. atleast a patch for gesture based navigation would be HUGE!!🙆
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I will not support/maintain something I cannot test. You're free to build it for jp models yourself.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
Does it support VoLTE and/or VoWiFi for Europe carriers ? For example T-Mobile PL ?

Or I have to add IMS configs by myself ?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes, orange, play, telekom and many others got added here: https://review.lineageos.org/c/LineageOS/android_device_sony_tama-common/+/327624

But better wait for the build of tomorrow since SonyOpenTelephony isn't working on latest build right now.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kufuska23:
சரி டா மொட்டை... நீ ஒன்னு பண்ணித்தர வேண்டாம். நானே பாத்துகிறேன்..thanks🙂😙
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jcummings2:
With today's update (lineage-19.1-20220624-nightly-xz2c-signed.zip) applied via the Updater, I can confirm that VoLTE (Voice over LTE) is working on T-Mobile in the US on my XZ2 Compact model H8314. As expected, Voice over Wifi doesn't work.

Thank you @dtrunk90.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
For me in T-mobile PL not.

Modem configuration used: S8657.1

No VoLTE, no VoWiFi.

On stock + simple hack (oem partitions from branded software) both worked well.

/edit:

VoLTE works only in SIM1. When i put card to SIM2 then not.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Did you selected to prefer calls over wifi in sim settings? it should work if your provider allows voice over wifi.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
did you activated volte on sim slot2? and also check the preferred network types so LTE is in use.

nevertheless, i'll put it onto my todo list and have a look once i have time. thanks for reporting.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
Just tested 2x TmoPL SIMs in Zenfone 8: 2xVoLTE works, 2xVoWiFi works (in normal and airplane mode)

Then I put them to ZX2c

SIM1 (slot 0), IMS status: VoLTE only or VoWiFi only.

No VoLTE and VoWiFi at same time.

VoLTE randomly disapears.

VoWiFi not working at all (even if IMS says it's available)

SIM2 (slot 1) - no IMS, no VoLTE, no VoWiFi

No IMS in airplane mode at all.

If you need more info, logs, etc... pm me what and how I can send it to you.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
And both slots are using modem config S8657.1? Thanks I'll take a look.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] darbieg:
Does the dedicated Sony case with screen blocking work?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
Yes, both use same config (S8657.1)

Is there option to turn on VoLTE and/or VoWiFi indicator?

Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes see attached screencast

EDIT: oh sorry, you're talking about an indicator. I don't think there's an indicator other than doing a call and check the on screen icons.

EDIT2: Btw: You can't use both at the same time. Either VoWiFi or VoLTE.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jcummings2:
Yes - using the two options that allow mobile appear to just use the mobile network - is there a way to know for sure? With the Wi-Fi only option selected calling fails with the message: "Connect to a wireless network to make a call" even though the device (N8314) is connected to the internet via wifi. Provider (T-Mobile in US) does allow voice over wifi calling.

On possibly related note, I have been getting notifications today from Open Device ModemConfig. It typically says "Slot 0" for the title with the message itself saying "Modem configuration: S264.8 Firmware file: mcfg_sw/generic/row/tmobile/vl/us/mcfg_sw.bin". When toggling out of Airplane mode the message itself is "No modem configuration found" until it switches back to the message above (presumably after it has restarted the modem). Other than blocking all notifications from Open Device ModemConfig, is there a way to silence this notification?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
There's only one notification channel you can block. So you could also block whole notifications for that app. I'm doing that myself. It's just for debugging purposes if some modem configs are missing i can ask which S1234.1 and i can check if the config exists or if i have to add it. But it's also not my app. It's from https://github.com/sonyxperiadev/SonyOpenTelephony
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
Thanks for this. Followed the steps and worked perfectly!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] FoobyKamikaze:
I saw dtrunk90's reply to me in the 18.1 thread. I have no idea how to submit the modem config that seems to be installed/running after reading the link to the guide on submitting patches. Being completely new to android I could be failing to perform a step correctly when installing the OS. I will list the steps here just now in case someone notices what might be the issue, even though I used 18.1 I don't believe it would make a difference.

1. I used xperifirm ver 5.6.5 to download H8314_Customized UK_52.1.A.3.49-R6C

2. I copied those files over into the newflasher folder and deleted the .ta files from boot and the main folder.

3. I flashed using newflasher, with the options of N, N, P, N.

4. I then put the phone into flash mode, fastboot flash boot the recovery image 20220610

5. rebooted into recovery mode, update via adb, and sideloaded the partitions zip linked in the installation instructions

6. rebooted into recovery mode again, did the factory reset/erase data

7. apply update via adb, sideload lineage 20220610 zip

8. rebooted into recovery mode, apply update via adb the gapps zip from opengapps.org (the arm64 android 11, nano)

9. Then rebooted the device to boot into lineageOS and the notification shows modem configuration S263.1 again.

I tried using unsin to see the modem_X-FLASH-ALL-B6B5.sin file but it produced a .img that ext2explore and ext4_unpacker could not read. Unsin did work with oem_X-FLASH-CUST-B6B5 creating a .ext4 file but inside the modem-config I only see S21, S22 and S23 folders so I have no idea where the S263.1 is coming from or how to get that off the phone.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fifiks:
I have the same problem. Moreover, even on stock ROM android 10 or 9. NFC does not work on any custom, except OMNIROM. It all started from the moment of switching to one of the custom ROM. Idk what is happened, when i switch from android 10 stock ROM on lineage 18.1, all works fine, and when im back on stock ROM android 10, NFC still works, but i think, when i switch to OMNIROM, and flash OEM_android 9 kernel, from fastboot tools, then back on stock ROM, its the moment when all started. Maybe I'm mistaken, and the problem started earlier
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
I filed a bug report:

NFC crashes shortly after boot (#4844) · Issues · LineageOS / issues / android · GitLab

I have a Sony XZ2 Compact (H8314) equiped with the following chip (because of battery replacement): https://stellatech.com/en/sony-xperia-xz2-compact-dual-(h8324)-antenna-module-nfc,a,831661.html/ After booting, NFC works...

gitlab.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yeah there's no modem config for your carrier on stock rom. I could try and check the Xperia 10 stock rom or we try and create one from scratch in hope the mbn file for your carrier exists. Which carrier do you have? Do you have a rooted phone so you could try it before I add it?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I don't think there's anything wrong with the rom itself since NFC works just fine here. On my daily driver and on my test devices. Maybe the NFC chip isn't the original one despite its stated as that in the product description?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fifiks:
I have the original chip installed, the phone has never been disassembled to replace the battery. And have the same problem with NFC, and not only on this ROM, but even on the stock. But I agree with you, this is most likely definitely not a problem of this ROM.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fifiks:
Could you confirm work of your NFC module on any other ROM? For example stock?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If it happens on stock it seems to be a hardware issue.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
Yes, just simple indicator like in stock to see when it's working..

And yes, i now i can use only one... ;-)

I took some other sims from my coworkers...

Plus PL - Personal SIM and Company SIM -- no IMS, config: S185.1, firmware file: default

Orange PL - Personal SIM - IMS ok, VoLTE works, no VoWiFi. But when in SIM2 then no IMS. Config: S187.1

I can't start VoWiFi/WiFi-Calling on any card so far...

(but... T-mo works fine on stock)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fifiks:
Here's just a nuance, the module works correctly on the "OMNIROM" ROM, which indicates its complete serviceability. I could even make payments from my bank's app.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Sure, but we're not relying on omnirom or any other custom rom. We use stock blobs. That said, if it doesn't work on stock it won't work on lineage. If someone is interested in submitting a patch, feel free. But since i cannot reproduce it i'm not able to test and fix it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
For S185.1 there's no modem config in tama, so it won't work on stock too (and the only way we can try is modelling our own modem config in hope there's a firmware mbn file available). For S187.1 there is one. I'll have a look why VoWiFi isn't working. That's something I can reproduce here. And I'll check if I can reproduce the missing IMS for sim slot 2.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
I can't understand one thing... Why I need to enter pin when I'm back from airplane mode... Maybe airplane mode is buggy... and that's why VoWiFi is not working - fully disables sim card ?

In normal IMS is registered, VoLTE available(and works), but UT Interface is unavaiable... why?

On stock I don't have to enter pin and UT Interface (in IMS status) is 'available'... :unsure:

/edit:

also i have randomly info about no modem config when entering airplane mode...

/edit2:

xperifirm shows branded software for H8216, CID: 1313-247 - but I can't see mbn file for it there :-(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Well, airplane mode should disable all connectivity. It's logical to me it disables SIM cards so you have to re-enter your pin. Maybe that's something new in Android 12, I don't know. And yeah, there's no IMS info if you're in airplane mode. Provisioning and VoLTE/VoWiFi is really weird and I can only forward you all to this comment: https://gitlab.com/LineageOS/issues/android/-/issues/3494#note_999924750

There's nothing I can do much about. You can however try to add a folder /vendor/modem-config/S185.1 and copy an appropriate modem config file of your carrier into that folder (requires root access), restart the phone and see if it works. If it does, let me know and I'll add it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
For me airplane mode = disable all radio...

But as we see, we still can enable (and use in airplanes) Bluetooth and WiFi...

Connection to IMS can be via other network, ie. WiFi... And then we need active sim to auth to carrier...

Screen from ZF8 in airplane mode with IMS connection active... (Also I don't need to re-enter pin when disabling airplane-mode)

I think we need sim active to make VoWiFi possible...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Wrong, because I've set VoWiFi to be preferred and still can't do VoWiFi. It's a provisioning issue I can't do anything about.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
Hi everyone,

It is my first time looking into roms for my XZ2 Compact. Since SONY stopped updating this phone, I wanted to switch to something else that would be updated regularly.

LineageOS seems to be great and pretty established. But I have no idea how stable it is for the XZ2 Compact. Browsing the 18.1 thread it seems like there were still issues even at the EOL of this version.

Is the current 19.1 build usable daily without any issues? Or would I need to troubleshoot my phone once in a while because something is not working properly? I don't want to troubleshot my phone too often.

Thanks!