yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Garfield24:
Yes, I have tried that, too, just now again. As before, not working. I have tried so many things by now. The flash of the LOS image completes, but in step 2/2 I get "Unable to find partition for path /cache" , and it says completed. In the recovery log, there is an error "unknown fuse request opcode 2016" . The system partition is empty after the flash (7MB used).

I wonder, if there is a difference in the partitions on this specific phone. I am attaching the output of the following command:

cat /proc/partitions > /external_sd/partlog.txt

It writes an overview of partitions and their sizes to a file on the SD Card. There are 74 partitions on /sda. I wonder why anybody needs 74 partitions?

Can someone run the same command on their phone with a working and installed LOS and compare it to my file, if there is any difference to a phone that is working (partitions-sizes/-ordering?)?

I run the command from TWRP. Start up recovery TWRP and go to Advanced -> Terminal. There you can run the command.

cat /proc/partitions > /external_sd/partlog.txt

I would appreciate if someone could run that command on a phone where the LOS image works, and compare the file to my file, if there are any differences in the partitioning scheme or sizes. Sizes are important.

Any other suggestions also welcome.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] lba810701:
I attached it, but I'm on 17.1. Maybe help? But first round, it's seems the same except the last two line of the logs... In yours, there are "mcblk0" and "mmcblk0p1" what's missing from mine, but I haven't got sdcard so, maybe thats why.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Garfield24:
Yes, that definitely helps. Thank you. The last two lines is the SDCard, that's correct.

That means my phone has the same ROM size and partition size than yours, so the System partition is the same size.

I find an additional partition in your file in line 19:

254 0 1048576 zram0

I don't have a zram0 partition in my file and my phone.

The question now is: does that make any difference? Can that missing partition on my phone can cause the flash to fail?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Deleted member 3586283:
Hello,

if there is anything I can help with getting official support for LineageOS 18.1 pls let me know.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
So this works for 17.1 - but have you tried it on 18.1?

Asking because 17.1 works well for me following the official install method (via stock LOS recovery), whereas 18.1 fails.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Garfield24:
It works on my phone, however:

I only have a 18.0 image from Olivier. Link is here: https://androidfilehost.com/?w=files&flid=320371

Use the 700MB image, the 200MB image (dated 20201206) probably won't work, the file size is too small. Not sure what the 200MB image is for. At the time of this post the image that worked was dated 20201205.

Anybody working on a 18.1 image, please post it here? I don't have the expertise to help with 18.1 image.

Directly flashing 18.0 image by Olivier crashed my phone, I am not sure why. There is no real reason I know of, but it did.

I first flashed official LOS 17.1 image from LOS homepage using the method above, and it worked. Boot the image to the home screen to intialise everything on LOS. Should it fail, you have a corrupt LOS image. I only had nightly builds available at the time of this post. Maybe that changes soon...

I then went back to slot B and booted TWRP again. I then sideloaded the LOS 18.0 .zip image from Olivier with adb sideload <imagefile.zip> without wiping anything. Don't wipe any partitions, just flash the 18.0 LOS image over the existing installation in Slot A.

When booting the LOS 18.0 image, it says data corrupt (I don't know why), and it boots into the LOS recovery and asks for a factory reset. Do a factory reset, you'll loose all data on the phone, so backup what needs to be backed up first. You probably need to install the apps again as well.

After the factory reset, the phone boots LOS 18.0 just fine.

I noticed there is no email client in the LOS 18.0 image from Olivier. Should you need it, the following tip:

IMPORTANT: When in TWRP (before you flash LOS 18.0), MOUNT System and Data in the mount menu.

You can then find the apk for the LOS email client in the LOS 17.1 image:

/system/system/product/app/Email/Email.apk

/system/system/product/app/Exchange2/Exchange.apk

Copy these apk in the TWRP file manager to /data/media/downloads

Boot LOS 17.1 and backup these apk files to your PC to install on LOS 18.0. The apk files are in your phone's download directory after the copy operation in TWRP.

The Exchange.apk is an extension package to the Email.apk to add Exchange client functionality.

IMPORTANT: After installing the apk on LOS 18.0, and even before you start them for the first time, go to Settings, and give "Email" and "Exchange" all permissions on your phone. Just allow everything. If you don't do that, the applications will crash upon start.

Hope that helps. Any questions, please ask.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Olivier:
A new build is up, please check the OP. Feel free to test and report bugs - we'd like to enable official 18.1 weekly builds soon.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Thanks. We appreciate this.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

I have a problem with Wire application.

Microphone is not working on call and video call.

Microphone is working to record a message. Permissions are OK.

I had the same problem on LOS 17 so I thought upgrade will resolve it. NO.

Did anyone experience the same problem?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Deleted member 11611145:
I have the exact same problem with LOS 17, and with 18 too!

Wire is not only the affected program, skype has for example the exact same issue.

And unfortunately I do not know how to fix it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Thanks for your reply.

Ok, good to know. I have a Z3 compact on LOS 17 and a Z5 Compact on LOS 15, Wire is working fine.

Microphone is working with whatsapp calls. Maybe Devs are whatsapp shareholders :D:D:D
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Deleted member 11611145:
I can confirm to that LOS 17 and 18 on other devices have no issues, thus it seems xz2c specific
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] shezy14:
Are we going to get lineage 19? and how can I fix blown out speakers on this rom as it doesn't happen on stock
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] djsnakezinho:
Hey! Thank you for your reply! I had already done that battery calibration thing (twice actually) before posting here. Well, I didn't use that extreme rubber band technique, but it's always good to learn something new 👍

Right now, however, the problem seems to have fixed itself... I don't really trust this type of self-solving, but well... I'll take it 😁

I'll take this opportunity, though, to talk about another (no so important) issue: backlight; sometimes, when the devices wakes up in a totally dark room or when I set it manually to the minimum the backlight will go to such a low level that the screen is barely usable even in total darkness. This is not consistent, though: if I mess with the brightness slider a bit I eventually end up setting it to the absolute minimum and still have a higher usable brightness level.

Has anyone faced this issue?

Thank you!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
Hi, first at all I hope I am at the right place to ask my question! I have a Xperia XZ2C with latest LineageOS 18.1 build "lineage_xz2c-userdebug 11 RQ3A.211001.001 10036515", version "18.1-20211105-NIGHTLY-xz2c" . The problem is that I can receive WiFi calls but I can not call another one via WiFi. Then I get a message, that I have to be connected to WiFi which is still the case. The options are all enabled, router is AVM Fritzbox 7590 and SIM provider does support WiFi calling too.

Any ideas? Is this feature missing?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
I think I have the same or a similar issue. I can receive Wi-Fi calls when SIM is not connected but I can not call via WiFi. I always get a message that I need to be connected to WiFi. And I am connected to WiFi.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
Last weekend I tried to put the latest LOS version on my phone (from stock android), but no matter what I do, I always get the same error during the side-loading process (step 1 of 2)

Error applying update: 28 (kdowloadoperationexecutionerror)

I tried multiple versions, checked hashes, re-downloaded the files, also tried a 17.1 one just in case. always the same error. Tried to push it onto the /sdcard and install via TWRP, unable to install.

is the alternative installation method from page 1 post 11 a solution for this problem?

though before I try again, is there a way to completely copy/backup my phone as it is, so I can quickly restore it to the status-quo in case that installation method fails as well? (I am kinda sick of setting up the same things over and over again)

thank you in advance!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I don't know what's causing the issue. Is your device an H8314, H8324 or SO-05K? Was your stock firmware updated to the latest version before starting?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
It is an SO-05K, it was updated to the latest firmware before starting the process, yes. (at least as far as I can tell)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Problem identified. SO-05K Japan variant isn't officially supported.

Info about xz2c | LineageOS Wiki

wiki.lineageos.org

There might be something available for that variant posted on XDA. There may also be a trick such as trying to first install H8314 Sony firmware onto an SO-05K device before installing LineageOS. But I haven't tried it myself for an XZ2c.

I did manage to do a similar thing on an older Z3 D6683 Hong Kong variant by first installing D6633 firmware (must first delete fwinfo.xml file). After that step, the D6683 worked with LineageOS for D6633. You'll read more about it in the Z3 section.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
thanks for the response! I am sadly not well-versed in all of this... as someone who mainly worked on PCs for the last 20 years, I just keep thinking "why can't I just format the internal memory and install whatever I like" - in short, the convoluted way smartphones work are still a mystery to me... So I can understand what you are telling me, but cannot quite translate it into action, yet.

I have unlocked the bootloader of my phone, which should make things easier, though I wouldn't quite know where to find said fwinfo.xml, or which information from the z3 thread is actually useful to my case :/ (at least I think i read through the correct thread?)

could you give me a little bit more to go on?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
There are a few special tools to install on your PC for Sony phones. (I use these tools on Linux, but they are on Windows too)

1. Xperifirm to download stock firmware which includes binaries for hardware drivers as well as the stock operating system.

2. Flashtool which converts the files downloaded from Xperifirm into a flashable .ftf file and also flash .ftf files to the phone.

3. (Alternatively, there's Newflasher which can flash .ftf files as well)

This guide which includes steps to build an .ftf file for a phone (which isn't the exact model specified by the downloaded firmware files) explains the steps inbetween in a bit more detail. (The example used is for an XZ2 non-Compact) https://xdaforums.com/t/need-help-flashing-xz2-ftf-flash-fails.3873024/

There are more illustrated guides on these Sony Xperia tools which can be found in YouTube too.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
For me it is really urgent that WiFi calling is working well because there is no mobile connection at my home. Does anybody know an alternative ROM for XZ2C where WiFi calling is working well?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
its working on this phone h3824 and rom , search for mbn config in the telegram channel but dont expect it to be easy, faruk told me there how to do it
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
Can you please tell me the link to the Telegram channel?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
Group name : Xperia XZ2/3 lounge
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
I am not used to use Telegram groups or even searching for them. I don't find anything.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
me neither i dont know how to link it sorry :P
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Stock firmware I guess. Assuming Wi-fi calling is supported on stock.

Here's a screenshot of the group as it appears in the Telegram FOSS app
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Xperia XZ2/3 lounge

t.me
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Tralien:
In the first post a year ago you say: camera not working. Are you still working on this issue and will it be fixed soon or will there be no camera for this phone and lineage?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
The camera itself works. It's just the stock sony camera app which isn't working in 18.1. I'm working on a magisk module right now to get some sony stock apps back like smart charger, gallery, and so on. No ETA.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Tralien:
Ahh, just the stock app.....thats quite normal for lineage users....great news. I know sony phones where cameras didnt work at all with lineage, at least for some month after release
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
One important question: did you get a message that you have to be connected to WiFi before? I contacted Faruk and He helped me with the mbn config. But it still isn't working :(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
nope i just checked with *#*#4636#*#* About -> IMS-Status Voice-over-WIFI / Voice-over-LTE, the one which is active is "available"
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
So you do not really know if it is working now? And you did not try to make a WiFi call before, you just checked the IMS state and because if was not available you contacted Faruk? That sounds strange ...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
its available and wifi / lte calling works for me
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] RelaxIamOnlyAghost:
I am almost certain that I am missing the correct configuration file. I need one for Congstar / ja.mobil in european region. I suppose you have not Congstar as carrier.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] majorwedgy:
Does nfc payments work on this? Just bought a second hand device I'm looking to flash but always use my phone for payments
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Yes, NFC payment is working. You might need to root it and use MagiskHide + MagiskHide Props Config (and change the device fingerprint) in order to pass SafetyNet though.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] majorwedgy:
Thanks for the response mate. Out of interest, that just Los or that all roms for xz2?so annoying as done custom roms on loads of phones and had a few with safetynet issues recently
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If I understand you correctly you need to pass safetynet which isn't possible without root because the device fingerprint isn't from sony.

I'm using nfc payment myself quite often on my xz2c.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
since replacing the incompatible firmware on my phone with one that is compatible is giving me trouble, I was wondering if there is any way to add comparability directly to the LOS rom?

the hardware for theH8314 and SO-05K (zx2c) appears to be the same, so I see no reason why the rom shouldn't be able accept either of them.

It worked flawlessly with sailfish after all
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
afaik the japanese models need another nfc firmware. if you want to buy me one i can test it and add it to the supported models list :-P i have already bought all of the tama devices (xz2c, xz2, xz2p, xz3) and don't want to buy others.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
tempting.. but I am not sure if I want to sink more money into this project just to get NFC functionality (which I don't need at all...). I guess I will give the firmware thing another try, or go with SFOS :/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
if you have some dev experience you can also build lineage yourself and contribute so we can make the model officially supported. Somehow or other we need the model physically to test. Already spent around 400€ to have all devices as testing devices and don't want to spend more money.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
I very much appreciate your dedication!

I would very much like to contribute to the effort (depending on my available time), but have no experience on phones particularly. I think I came across a build guide a few weeks ago and it didn't look too bad - except for getting information on all the hardware components, which seems like a pain.

Is there any way you could help me to make the process less painful?

or is there anything in particular I need to be able to do? what would testing the device entail?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Some informative wiki pages:

* https://wiki.lineageos.org/devices/xz2c/build

* https://wiki.lineageos.org/how-to/submitting-patches

Most important folders are `kernel/sony/sdm845`, `device/sony/tama-common`, `device/sony/xz2c`, `vendor/sony/tama-common` and `vendor/sony/xz2c`. All changes made in the tama-common folders need to be tested for all tama devices (which are akari, akatsuki, aurora and xz2c).

Driver stuff is part of the kernel. With defconfigs (`kernel/sony/sdm845/arch/arm64/configs`) features like drivers can be enabled/disabled. Drivers itself are in `kernel/sony/sdm845/drivers`.

It's quite easy if you have some dev experience to get into all of that.

If you get your SO-05K device working feel free to submit patches.

Also feel free to join our Telegram channel: https://t.me/+GfiiorF6n-I5NjNk
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Z0rnica:
thanks! looks reasonable enough, and sounds like a fun project for my Christmas holidays. I'll report back if I manage to succeed (or fail)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Suffie42:
First of all, a massive thanks for the developers to keep this device alive, keep up the good work.

Recently I've upgraded from Lineageos 17.1 to 18.1, I'm using opengaps but that is broken, it no longer boots, dumps into revcovery, proposes to wipe stuff, which doesn't help for the next boot). As such that upgrade failed but also a complete install (after wiping everything), it's not lineageos itself that boots (if installed without opengaps, the issue is with opengaps (a clean install with mindthegaps, doesn't have this issue). I've updated this issue on their github. My work-a-round use a much older opengaps build, that will boot and afterwards update updated google stuff.

The most recent Lineagesos build (lineage-18.1-20211126-nightly-xz2c-signed.zip) complains with every SMS send with: "Messaging is sending a large number of SMS messages. Do you want to allow this ap to continue sending messages". I'm using stock messages (only have opengaps nano, it's version 1.0.001). the build two weeks earlier and before didn't have this.

I've red some updates about folks with ghost touches. I've the reverse quite frequently after I unlock touch works briefly and then does nothing (unlock with a fingerprint but after that no response to any touch. Pressing power button twice unlock again and all is fine.

Furthermore in this direction. I've a sleeve with plastic cover to mount my phone on my bike. The screen keeps on lighting up (like pressing the power button with the phone locked), I've no idea where this comes from, lineageos 17.1 didn't have this. In my normal leather phone case it doesn't happen either. I've tried to recreate this issue by tapping my phone when locked but nothing happens, I do have a glass screen protector which has working fine for ages.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] TheeWolf:
The volume in which I hear people on phone calls is incredibly loud, and that's even after I turned down the volume as low as possible. It's so loud that other people in the room can hear the other side (I don't want that), and I have to hold the phone away from my ear (something I didn't have to do before).

Is there a solution to this?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Olivier:
Hi everyone,

as some of you may already know, I've decided to step down as device maintainer for the Xperia XZ2 Compact.

Thankfully, @dtrunk90 has volunteered to take over - he's a skilled dev who has already made valuable contributions in the past few months, and I'm sure he'll continue to do so.

That being said, I really enjoyed on this device. I want to thank @Sjll who made all of this possible and everyone contributing to the Xperia Open Devices Program -- even though we don't always share the same views (which is what made Sjll and me start this project in the first place), I have nothing but respect for their hard work.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Thanks for the fabulous effort.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ki_maung:
does this rom work for xz2 compact docomo SO-05K device?

My device is ubl yes and also rooted/twrp
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Please check the wiki page: https://wiki.lineageos.org/devices/xz2c/

Supported models

H8314

H8324
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ki_maung:
not listed models SO-05K.

Does that mean it doesn't support?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] 30jp:
Thanks for all your work. As a result, I still enjoy my XZ2C every day.

Greetings
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Amunhateb:
Does lineage bring mhl to xz2c? I mean if its possible to connect Phone to tv via type c hdmi cable.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] TheeWolf:
Hi,

I have a problem with the in call volume, it's way too loud, so loud people in the room can hear the other side.

Of course, I lowered the volume as much as possible but it's still way too loud.

After some Googling I may have found the solution which is changing some values in a file called mixer_paths.xml.

However I see there are four different mixel_paths files:

mixer_paths_i2s

mixer_paths_qvr

mixer_paths_skuk

mixer_paths_tavil

From what I understand, the values I need to change are DECn values (n - number):

<ctl name="DEC1 Volume" value="84" />

<ctl name="DEC2 Volume" value="84" />

<ctl name="DEC3 Volume" value="84" />

<ctl name="DEC4 Volume" value="84" />

<ctl name="DEC5 Volume" value="84" />

<ctl name="DEC6 Volume" value="84" />

<ctl name="DEC7 Volume" value="84" />

<ctl name="DEC8 Volume" value="84" />

<ctl name="DEC9 Volume" value="84" />

<ctl name="DEC10 Volume" value="84" />]

My questions:

1. Those values are in all of those files except for mixer_paths_i2s. So, which file do I have to change?

2. Can anyone confirm the DECn values really are the ones I need to change?

Thank you.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
What about simply lowering the call volume in settings > sound?