yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] cyh123:
Hello, do you have any resources for lineage17? Is it convenient to compress a copy for me? I tried to find it, but I couldn't find it. I really need it, thank you!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] cuynu:
LineageOS 17.1 - Android 10 - Google Drive

drive.google.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] manµ:
I ran into the same microphone problems with my xz2c with lineageos20.. How can I reinstall stock OS to rule out hadware damage? Do you have a link? Can I flash stock OS from recovery with adb sideload? Thanks
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
It's been a while since I've flashed stock on a Sony. I think this guide should get it done. I won't go into this further in this thread though as it is becoming off topic https://xdaforums.com/t/guide-downgrade-xz2-commpact-from-android-10-to-9-locked-bootloader.4071111/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mintoll98:
hi, does anyone have the latest or any lineage 18.1 build left with the recovery
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
https://xdaforums.com/t/rom-11-lineageos-18-1-official.4195805/post-87549605
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
Do you think you could include the device name in the header? As soon as you are watching several threads and only click on the ones with new posts, it's difficult to see straight away which thread it actually is. 🙃
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

Any chance to see a fix at this problem ?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Deleted...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Olivier:
We'll look into it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Thanks (y)(y)(y)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Olivier:
The first official 18.1 build is up, enjoy: https://download.lineageos.org/xz2c
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] IDariuz:
Thank you for your work!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

Good new and thanks for this build !

Unfortunately the microphone is still not working on call and video with Wire 😭😭😭
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Olivier:
Should be fixed in the next weekly build.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Cool (y)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Just switched from 17.1 to 18.1 on my dual-sim XZ2c. Great ROM. Also brought a palpable gain in battery life. The stock LOS camera also works well, I think better than on 17.1. Thanks a lot.

I have not used it much, but about the only problem I have encountered is the limited range of colors of the notification LED (no yellows, limited range of blues etc.). Been having this problem both on 17.1 and on SODP-based 10 and 11 ROMs. The only instance where the LED works correctly is the stock Sony ROM. Hardly a deal breaker for me.

Finally, one question. I have always had problems with updating on 17.1 (with gapps and Magisk), both OTA and via recovery. Almost always some small thing got broken and had to be fixed by a clean reinstall. The only way to make it work reliably was by first uninstalling Magisk, updating via recovery, then re-installing it. It's not a big hassle but I have no stomach to do this weekly. Any suggestions on this front?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ulogisk:
Thanks a lot for the 18.1 upgrade! Painless upgrade process following the official instructions.

Pretty cool!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
My experience has been quite then opposite. I finally put a custom ROM on my phone a week before 18.1 came out and had excellent battery life with 17.1. Upgrading to 18.1 has left me with awful battery life, similar to what Sony OTA updates have done in the past. (Usually fixed by a clean install)

Using Android built in monitor and also GSAM, I don't see any obvious culprit or excessive wakelock. I'm not sure what exactly causes this.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

Thanks for the last update, microphone works with Wire app. Just a little bit "echo" on my side, on the over side it's ok.

I updated with the update manager. Every think works fine, no need to re install Magisk (I don't use gapps). No need to use recovery.

Battery life is as good as Los 17, maybe better (loose 1% night in airplane mode, not bad :giggle:).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] :
Great news!

Does anyone know if also Skype works?

It had the same issue, but I do not know if the root cause is the same.

Also does anyone know if the stock camera works? It's currently whats holding me back...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Ermann123:
After upgrading from 17.1 to 18.1 via the built in update manager, I noticed, that the signature spoofing support for MicroG has gone. Anyone an idea to fix this?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I just installed LOS 18.1 on my XZ2 Compact and its running fast and efficiently! The battery life is lightyears ahead of the last stock update and it is running like a beast. Installation was a breeze. I'd go so far as to say that it actually makes me enjoy my phone and I've reconsidered buying a new one to replace it!

Three questions:

-Does anyone else find the speaker to be fairly quiet on phone calls? I've cranked up the volume but its still quiet.

-Can this be rooted with Magisk Manager? If so, does it have to be installed during the initial LOS install? Is there an authoritative guide to installing it or are the random guides found when googling "LOS 18.1 + Magisk" okay to use?

-I get a message when starting the phone to lock the bootloader. Is this normal with LOS 18.1? Should I be closing it? Is there a way of closing it?

EDIT: In regards to the question about the camera: the camera that comes with LOS 18.1 seems to be working pretty well for me. No complaints so far and there is less of a lag than the stock camera that came with the last stock update.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Hello!

I'm just running on LOS 18.1 (lineage-18.1-20210604-nightly-xz2c-signed) for 3 days now. I want to summarize some points which i ran into:

Battery life is decreased significantly when using the phone to read some news, checking mail, browsing through play store, and so on. The device also gets really warm in this time.

The lower limit for display brightness is to low. From it's actual state the improved minimum should be set to 15-20%

On call switching to speaker phone, volume is low, sound is coming from bottom speaker only. Additional the microphone isn't working on speaker mode.

If there is something to help out solving this issues, let me know.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

For me, the speaker is loud enough.

Yes. Go into recovery and flash Magisk from a sdcard ( I don't know how to mount internal storage) or use ADB. Install Magisk manager app.

Normal for a unlocked phone. You don't care.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Yes. I didn't notice that but I have the same problem...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
Hah I didn't notice this even though I exclusively use speaker phone. But that's because my top speaker is broken. I have the part to fix it, just haven't gotten around to opening it up.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
The loudness- bottom speaker- or the mic issue?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I have both issues. Speaker is loud and mic doesn't seem to work. I was talking to someone on speaker and had to hold it up to my mouth.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
Since we are having the same issue, I will say I've alleviated this by setting the scheduler to powersave using Kernel Auditor. But at the cost of performance obviously.

I am noticing that my cell signal is pretty bad, though entirely functional. Is your cell signal bad as well? And if so, which network? I'm on Verizon.

I might go look into APN settings and so-forth and make sure they're configured correctly.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I just realized my cell signal quality is bad but functional too although it does seem to cut out every once in a while.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Just an update, I decided to reflash the latest update to see if anything was fixed and my phone is heating up like an oven.

Also I tried a call with someone on speaker phone and they said it was completely muffled.

On a side note, anybody know where I can find instructions on how to revert to the latest stock firmware? I don't wanna mess it up.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Quick question: do I need to do the whole reboot to recovery after installing GAPPs before installing Magisk? Is there a place to download the Magisk img?

Is it normal for the active slot to change after installing the nightly? I noticed it switched from A to B after restarting into recovery before installing MindTheGapps.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I haven't noticed a bad cell signal so far but because my Signal messenger has problems when on mobile data plan i had a deeper look into the logs. It looks like something isn't working properly with the connection.

I also noticed the heating problem which is connected with the poor battery life time. But i'm not able to tell something where the issues come from. Waiting for a response from dev.

Speakerphone: Had a test on my desk with my second phone and noticed a switch of speaker and mic.

If on regular call the used speaker is the top one only and the used mic is the bottom only. If you switch to speaker mode both are switched to the opposite side.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I flashed the nightly that was released today and speakerphone issue still exists. I'm hoping this gets resolved soon as I use it quite often.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
Everytime I root the phone with magisk it results in the phone losing internet connection, both with WiFi and Sim card. There appears an x on the network bars. I tried with magisk 23 with selecting and patching the boot.img and also by flashing older versions with ADB and recovery. I have no problems with magisk on Lineage 18.1 on another phone (mido) so I think this is because of the phone?! Am I the only one with that problem?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

No problems with Magisk... Wifi and 4g OK.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
So weird. No idea at all what to check then.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
I use LOS recovery to flash Magisk. I have the old Magisk 21 on my sdcard. After flashing, I install Magisk manager and update to 23 version (direct installation)... That's all (I don't use gapps).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
I use LOS recovery too. Didn't know you could flash without ADB, but that shouldn't be the problem. And as I wrote, I tried like that, too, flashing Magisk I think 21.4 via ADB and then updaten via the app. I also reinstalled LOS after wiping the system and data through LOS recovery. Don't know what else it could be. My (Danish) provider?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] robert12345678:
why do these internals die so quickly, same for me , also had to replace the mic some time ago, now the top speaker is dead :(

+ thanks to faruk, I got VoLTE and VoWiFi to work ( O2 Germany )
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ulogisk:
Hi, i'm having issues with my VPN client on mobile networks. When i check my phone the VPN client will be disconnected and getting it to work again will some times require me to reboot the device.

VPN settings:

- Always-on VPN (yes)

- block internet connections without VPN (yes)

Manage battery usage:

-App can use battery in background

-Optimizing battery use

Client in question is PIA VPN, I had 0 issues on 17.1 only experiencing issues after the upgrade.

By guessing maby there is some powersaving feature under the hood that is restricting the PIA app? Not sure. Please let me know if i can get you any more info.

Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Wow so weird. Just noticed today that speaker phone works completely fine on Whatsapp but is garbage using the speaker on normal calls. This is on the latest nightly btw.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Does anyone know where we can report bugs? I'm surprised the lineage team is okay with pushing out a nightly without a working speaker.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] 30jp:
Hi, the speakers for calls and music are ok for me. I don't use whatsapp. LineageOs 18.1 dated June 11.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Same here.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Wait a couple of more days for the next nightly. Although no problems with the speaker on my device, at least on my use.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I'll try flashing the new one on friday. I'll give it a couple flashes and give you guys an update!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I sent some logs to @Olivier with an other issue, but not got a response jet.

I'm also interested whats the best way to put the mentioned logs.

@Cerhio

Is not a killer bug but it's a bug. But keep in mind LOS 18.1 for XZ2c is still really new (atm) and there could always be some bugs.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Thank you! I'll try and figure it out during my lunch break tomorrow.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
By the way, what is the best way to update LOS18 from a previous nightly?

I have gapps and magisk installed, and that may complicate issues. I had no end of problems when updating on the LOS17.1 (again, with gapps and magisk), both OTP and via recovery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] 30jp:
I wanted to install opengapp 10, but I couldn't. I think you need opengapp 11 for lineageOS 18.1, but it's not available on their site yet. So I don't have Google right now. You can download it through other channels, but I haven't tried that. Everything is working satisfactorily now without Google and won't have time to test things out for the next few weeks. Unless LineageOS 18.1 with MicroG is available for my XZ2 c.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Thanks for the answer. Unfortunately, my question was not clear (I edited it the meantime).

I already have LOS18 with gapps and magisk installed. (Test opengapps for 11 are available here: https://sourceforge.net/projects/opengapps/files/arm64/test/; I have tested them on 4 phones and a dozen different ROMs, and they work flawlessly.)

Specifically, what I wanted to know was the best route for updating to a new nightly the LOS18 that I have already installed, keeping in mind that I use magisk and gapps. On the previous LOS17 I discovered that the only sure way to do it is: uninstall magisk, sideload the new nightly and gapps, then reinstall magisk. But that's very cumbersome.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] 30jp:
Hi Landsom,

Thanks for the Opengapps site, I hadn't found it yet, I will definitely use it one day. With the last update of 18.1, I also had to reinstall Magisk. That goes pretty quickly. Change Magisk apk to zip, boot into recovery and install Magisk zip. In Lineageoss 17.1 I never had to do that, ota update and done. I think I used payload dumper then, but I'm not sure anymore, to install Magisk. https://www.thecustomdroid.com/how-to-extract-android-payload-bin-file/

I don't remember exactly how I did that. The notes are at home and I'm on vacation now ;-)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
Growing desperate here. Reinstalled LOS again after wiping the phone from LOSrecovery (is that the best way to wipe everything?). Then flashed Magisk 21.4 through LOSrecovery/ADB sideload, installed the Magisk App - and then mobile internet is gone. I am using Afwall and AdAway, but the internet isn't working even before that. Where could I grab a log that is relevant?

I also noticed WiFi having issues when connecting to a different router then my own. Am I facing a hardware issue?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
FYI

There is actually some progress on speaker issue.

https://review.lineageos.org/c/LineageOS/android_device_sony_xz2c/+/312774/

Edit: Sadly not included in this weekly build :-/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Amazing! I'm stoked to finally have a phone that works.

Sidenote: does anyone know how to revert to the latest stock rom? I just recently got into flashing roms on my XZ2C and its a lot more difficult than my previous phones which were a lot easier to mess around with.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

Sorry I have no idea… I'm just a lambda user... I'm using AdAway too but not Afwall.

Did you install LOS18 direct after stock ?

Sometime for custom rom installation you have to install the last stock rom at first, boot once on it so that the phone can catch something from your provider. Don't ask me what, I don't know.

Did you have a look at your Apn's ? I must always create a new one with good configurations, especially for MMS and sometimes for 4G.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
I checked the APN's according to my provider and they are fine. The weird part is that it works until the point when I flash Magisk.

I had LOS 17.1 before and in LOS Wiki they say it requires latest Android 10 firmware. It's some time ago, but I remember having done that. Where do I check if it has everything it should, do you know?

Edit: I'm on RQ2A.210505.003
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
Ok wow, OTA resulted in bootloop today and it is definitely because of something being wrong with Magisk. Happy to wipe the whole thing and start fresh. Is LOS Recovery good enough for that? Asking because their wipe functionality only says "Factory Data Reset" or something, is that what I'm looking for? And for future experiments: Do I have to do the copy-partitions-**.zip part again and could that have been the problem all along (did it once obviously when initially installing LOS on the xz2c for the first time.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
That should not have been the problem if OTA worked before - on LOS18.

My advice: if you start fresh, install the stock rom on A and B via newflasher (don't forget to boot both to desktop), then follow installation instructions to get LOS. Skip the copy partitions part if you do that.

As for the failed OTA, did you update from the previous LOS18 nightly?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
Yes but I don't think that's a ROM related problem. After I aborted boot and started it again, it finished booting with my Magisk modules disabled. I think there is a trouble maker among those.

And for your tips, thanks! Last weeks OTA worked without a problem. Do you mean flash stock on both partitions and then boot the phone (and I reckon with SIM in making it connect to mobile network, 4G and all?), then reboot to recovery and install LOS? And now as I'm in questioning mode: How important is the latest LOS recovery, does it have to be the same as the built all the time?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] curiousrom:
Could you please link to the post that helped you? Or was it via other media?

Or post the full XDA username like @robert12345678 for example? Searching this thread with faruk returns only your post @ the present & by Member does not work because nobody is using faruk only.

***
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Yes, exactly what I suggested.

I do not typically have the latest recovery. Rarely bother to update them. But maybe it's worth the bother, who knows...

Btw, OTA worked for me last time. With gapps and magisk. So I will just skip this one, I guess.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Just fyi, speaker phone is working for me now!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Same here.

Thought the fix get included in the next week build but it works as expected with the 20210619-nightly-xz2c-build.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Good to know. Thanks.

Did you update by OTA? If you had magisk, did the update break anything?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
For me, OTA yes, Magisk no break.

BTW, I find the phone goes very faster with the last build (y)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Just updated. Happy to report it works well.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
OTA, no Magisk, nothing broken
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] lba810701:
Hi! I've got another "bug" on my side. If i start the camera with quick button on the locked screen, I've got to the camera screen, but the shooter button doesn't work until i pull down the notification area, go to the settings on the right lower icon, push it, then type the pin the lock screen code.... And nothing work until I do this... Somebody else got that too?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] patroj:
It was a layer 8 problem! Had to tick another box in Afwall. :D

In my defense: this is in fact due to a different provider which apparently needs more access.

Long story short: NO ISSUES WITH THIS WONDERFUL ROM!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] 30jp:
OTA update went well. Magic also still works. Thanks developers.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jan8045:
After one day of having the latest weekly installed, I'm very happy:

- Did not experience a single crash

- Everything seems to work fine

- The phone is fast or at least as fast as the original ROM

- Battery life seems good too!

Many thanks for your work!

EDIT: Although SMS receiving works, sending doesn't. I tried both Signal and the default SMS/MMS app. Also a reboot did not help. Anyone with similar issues? Any idea? Many thanks!

EDIT 2: I could fix it by disabling VoLTE.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Ezezeze:
Hello everybody!

After three days of use with the last compilation these are the errors I found:

-NFC doesn't work properly, I usually use it to charge the bus card. But now the loading application doesn't recognize the card.

-The sound from the headphones is lower.

-If the device is locked the camera button does nothing (even configured to start the camera).

-Finally, some videos seen on instagram or facebook are choppy in terms of sound (it's worth clarifying that I use them from chrome).

Even so I am grateful for the work done, it really is going very well.

Sorry for my bad English.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
-Personally, I wouldn't trust anything as important as a bus card with a rom maintained by a handful of people online, especially when they're nightlies. I'm absolutely not saying that the work they've done is bad or that I don't appreciate them but stock ROMs have a lot more quality control to try and fix things before they get out.

-I haven't noticed headphone issues personally. Is it Bluetooth headphones?

-always use the apps made for these things. They just work better.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi,

Note that Bluetooth headphone with microphone is just working fine for me (Jabra 65).