yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Does the button work when the stock rom is installed (without installing TWRP)?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eusouumdiospiro:
No, although now it does start booting only when I press it together with volume up, so that's an improvement. However, I'm not totally sure if this was the case without TWRP, since in the meanwhile I tried to flash several versions of it. It turns out that I was simply not renaming the file to "twrp.img". Once I did that I can already go into recovery.

Then I tried to flash LineageOS again and am now in a reboot loop. But at least this is a less uncommon situation than the one with the power button.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
Update: the only problem I'm experiencing is that I cannot be heard in regular phone calls (and I think they hear themselves too?) unless I turn on speaker phone. Once that gets turned on everything is fine. I've tried both AOSP Phone and Google Dialer.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] arcman:
After clean install of lineageos 20 my gps stopped working - it catches only one satellite and never gets a fix on a position. Did anyone encounter simillar issue?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] windows7fan:
Does this work on the so-02j?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] yessey111:
hi does the sound bug still happen? ive actually ran off back to stock rom because of it and it kinda sucks not to have gcam :D
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] funkoot:
Had the same issue. You need install GPS test and run it on your phone outside away from any buildings. I did this and got a fix after 2 minutes.

Dave
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
Yes, it does.

I didn't do a clean install, I updated, and I didn't encounter this exact issue; but I did experienc was that it would take like a minute for the GPS to find my location accurately in the beginning. I cleared cache and data on Google Maps and now it's back to normal.

EDIT: Actually, it's not fixing the problem. I'm going to clean install the previous version because I had no problems with that version.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
Hi!

Thank you for this awesome rom!

I have a question about the speaker volume configuration.

I notice sound distortion on high volume mainly from the upper speaker.

I examined the mixer_paths_tasha.xml file and compared it to the mixer_paths.xml file in the stock rom. I discovered that HPHL Volume and HPHR Volume values are set to 20 in LOS rom and 9 in the stock rom. Should I tweak this value to have less distortion? I also have same echo during call when I use hands free mode. Which value controls the mic sensitivity?

I attache the image of the opened files (left stock, right LOS).

Thank you.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
Hi!

I tried to modify the /vendor/etc/mixer_path_tasha.xml file but nothing happened. Although if the file is missing or there is a syntax error in it the phone goes to completely mute.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Try this.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
Hi Marius!

Thank you! these are the keys.

I changed RX7 to 82, and it's good.

I also wanted louder voice sound when someone calls me (when the bottom speaker not turned on).

I think i found the section (see picture).

But if i raise RX0 above 86, it will distort.

Is there anything to modify (analog signal?).

Thanks.View attachment 6034014
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Hello again, here is my new version of my tuning script. Big cluster now is used a bit more to prevent lag and now the settings are correctly applied at every reboot.

I just want to remind you that after the last update of the ROM, this script is not essential anymore, but it helps to save battery because it optimizes CPU usage and disables every stune boost.

How to apply: copy the attached script in Magisk directory '/data/adb/service.d', make it executable and reboot your phone.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Dont know.:(

This rom it is not my default driver for my phone.It is used only as a tablet,no sim card,no calls,etc.Too many bugs.:(

For my phone I am on LOS16 by Chippa_a, pretty good rom:).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Tri Akbar Fitriana:
Does anyone know why if I install Greenify on my device it bootlops on the latest LOS 20 update ROM?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] dumkm:
@Chippa_a , could you also upload another codes such as android_device_sony_kugo lineage-20 branch to github?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Chippa_a:
New build is available!

December 2023 security patches

Fixed audio loss issue (to be confirmed)

Device side updates and improvements

LineageOS upstream updates and fixes

You can install the new build manually or using the built-in update application*.

* Please note that unfortunately the updater from previous build (20231015) cannot find a new update, so you need to download and install it manually.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] neniu nomo:
The December build still hasn't fixed the issue when I play media, the audio is just white noise like on TV. The rest I found to be "mostly" functional. And can I ask, why not develop more the FM radio features?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
@Chippa_a, thank you very much for your work. I use your LineageOS roms on this device since the 19 version and i'm very happy with it.

Everything seems to work fine.

The only thing that bothers me is a battery drain problem :

The battery discharges even when the phone is turned off, the problem seems intermittent as you can see in the screenshots.

I also noticed this problem on LOS 19. I tried to flash different Gapps packages but nothing worked. I'm still not sure if its a harware or a software problem.

I ordered a new battery just in case. But i'd be interested to know if anyone encountered the same problem ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
Hi Chippa_a!

It's been a week now since I use the new rom without rebooting and the audio is still good!

I'm using different speaker calibration file (attached if someone's interested in, extract the zip and place it into vendor/etc/acdbdata) because the speaker audio was too distorted for me (maybe hardware fault).

Thank you!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] william.pezo:
Hi there,

First things first, Chippa_a! thank you for such a nice and smoooooth custom rom for device like XC.

I migrate from LO 19 to LO 20 and I don`t regret it. After about 2 weeks of using LO 20 ( DEC 2023 UPDATE) I have to say this rom became almost stable, although there are some annoying bugs:

1- Audio loss issue (sometime restart can help)

2- Distorted sound (noise) from lower speaker (like TV white noise)

3- Battery Darin issue (maybe this is hardware problem)

looking forward to see these bugs to be fixed and we`ll see final and stable version.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
Regarding the discharge problem when the phone is turned off. I replaced the battery with a new one but the result is the same. My battery level went from 60 to 3 percent in 48 hours.

All I have to do now is install the stock ROM and carry out new tests, to be sure that it´s not my motherboard which is damaged.

Update : After investigation, it was indeed the motherboard ...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
My sound hasn't gone out once since the December update. Thank you, Chippa.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Chippa_a:
New and final build is available!

January 2024 security patches

LineageOS upstream updates and fixes

This build is the final one for LineageOS 20. Unfortunately, due to a lack of community, the next major version and further development for this device is in doubt for now.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Shane Gooseman:
Just saw it. I´m using your builds for quite some years man. Thanks for your work and stay healthy.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Nitecon:
Hello. I am somewhat of a noob when it comes to custom firmwares, so I've got couple questions:

1) If I unlock bootloader and update to this firmware, what features will I be losing due to not having drm keys anymore?

2) On stock, x compact requires power button to be pressed to unlock via fingerprint, while newer devices require just touching the sensor, and only some have the option to require press. Which behaviour is used here?

3) Can I easily revert to stock from this? Any preparation I need to do before updating to make process easier?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] funkoot:
Chippa_a . Donation made. Thanks for maintaining this device.

Dave
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Sinowei:
Was the sudden loss of sound fixed in this latest update?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
1) You'll lose some camera and streaming functionalities (don't know more about it because I have 2 xperia x compact and I unlocked only one of them).

2) In this rom both behaviors are available.

3) No: you'll need to follow a drm export procedure (available here in xda, maybe in sailfish section) but I don't know if it worked for me because I never tried to revert to stock.

Some users reported this bug has been solved.

Now, my congratulations to Chippa because in this last version the camera is more stable. There are some errors but it automatically recovers very quickly and there's no need to close the app and reopen it again.

I think now this firmware is quite perfect: only the hotspot bug is here (but my workaround solves it ;))
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
To complete what xxirioxx said :

1) I confirm that you will lose streaming functionalities (Widevine certification). It is possible that you will lose some proprietary features of the camera, but the good news is that you will still be able to use the Camera2 API, I was surprised to see that the two cameras (Front and Back) were completely compatible (Level-3).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Nitecon:
xxirioxx, 0ut0fTime - thank you very much, I think I know all that I needed to make the final decision.

Since the camera works with Cam2, and the fingerprint sensor can keep the original press to unlock behaviour, I will likely pull the trigger.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] commanderclean:
Hello,

i installed Lineage OS 20 with TWRP 3.7 but the weirdest thing happened. After installing the OS in TWRP and booting into system, setting it up and not letting lineage OS tinker with the recovery, i wouldn't be able to ever go back to TWRP. When I try it shows the TWRP screen and then just stops.

i tried it with Lienage OS19 and still the same TWRP 3.7. Everything that is expected to work, works even going back to TWRP.

Doeas anybody have any idea why that one constellation works (TWRP 3.7 + Lineage OS 19) and the other one (TWRP 3.7 + Lineage OS 20) does not?

I did not encrypt anything yet so FDE Android 12 vs FDB Android 13 shouldn't be an issue or should it?

A little hint if anyone has an idea would be much appreciated.

thx
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
Did you try with the Unofficial version of TWRP :

https://xdaforums.com/t/ub-recovery-twrp-v3-7-0-for-xperia-x-compact.3793837/post-89104774

You can try to load (not flash) the last unofficial version of TWRP in Fastboot mode :

fastboot boot twrp.img
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] MiniGNU:
Hi everyone.

On the latest firmware I did a factory reset and I got recovery bootloop.

I tried flashing recovery again via fastboot, but it didn't help. The phone is still in recovery bootloop.

What's happened? Is it bricked now?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Try reinstalling the stock firmware.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] MiniGNU:
To close the quick settings menu, I need to swipe up twice. It looks like a bug, and it's really frustrating, making me consider switching back to LOS 19.1.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
Hi!

When I open camera, there's a message:

Several thermal throttling, it is recommend to let the device cool down.

Even the phone is cool.

Can I hide this dialog?

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ralfbergs:
Many thanks for your efforts and dedication, I appreciate it very much.

Can I ask what that means? With "community," you mean "developer community," i.e. people who are technically able to contribute? Because from the users' side, I believe there should still be a reasonable community...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OKalman:
After a reboot the message don't come up again.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
@Chippa_a, cant send a tips for you (PayPal).Sorry!:cry:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] I_hacker:
Is there a fix for camera error: "Error while setting up the session. The app will try to recover."?

Only fix for this I found so far is restart. Camera works for a while and then when I start camera app, this error shows up again.

Clearing cache and force close, doesn't help...

I can't use camera unless I restart phone...

Other than that, Lineage OS works amazing on X Compact! 🥹

P.S. I miss FM radio also 😕

Thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Massimo Selis:
Hi everyone, I installed LineageOS 20 on my X compact and I'm having a great time, I wanted to thank you for the work you do and share.

I wanted to know if there is a compatible app to listen to FM radio.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
Now I've got a nice little X Compact and I can't get the boot loader to go away. Everything is according to the instructions and if and no matter how I enter the unlock code, I only get error messages.

Does anyone have a tip
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
The first command is the right one. What the command "fastboot devices" returns ?

Are you sure your device is in fastboot mode ? Sometimes it doesn't work on USB3 port, try to plug your device into a USB Hub (to force USB2). If it still doesn't work, check your USB driver.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
Thanks for the tips, I've worked through them. I updated the X Compact before all attempts with Xperia Compagnion and took the next steps according to these instructions https://wiki.lineageos.org/devices/kugo/.

Then I started another desktop with USB 2.0 and the results were identical.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
Bootloader is gone. I don't know why, but when I asked for the unlock code again, I got another one and it worked straight away.

Now the installation, so far I have always downloaded the boot file and the LineageOS zip file for my Xperia XA2. I had no need for TWRP and never used it. I installed the boot file via USB and Fastboot and then started the recovery. There I installed the LineageOS zip file on the SD card and that's it.

Now I only have the

lineage-20.0-20240129-UNOFFICIAL-kugo.zip

How do I deal with this, do I extract the recovery.img located there like here

Install LineageOS on kugo | LineageOS Wiki

wiki.lineageos.org

and install it via USB and Fastboot?

But which LineageOS.zip do I then take as described below?

Thanks if anyone can help, unfortunately I can't manage with the instructions at the beginning of the thread.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] I_hacker:
In addition to my previous post, I can see that camera somehow disappears and I don't know the reason. I've used default org.lineageos.aperture camera app then i switched to LMC 8.4 (google camera), but problem remains.

In last 24 hours only camera app was using camera. So other application are not responsible for this.

Logcat listing these errors:

"Camera 0: initialize: Could not open camera session: Function not implemented (-38)"

"Failed to open camera device 0. Attempting retry in 200 milliseconds."

"open: cannot open camera 0!",

"<HAL><ERROR> openCamera: 978: camera_open failed. rc = -1, mCameraHandle = 0x0"

Also, in terminal, dumpsys media.camera says: Number of camera devices: 0

After phone restart, camera works again for some time... Then main back camera disappears and I can use only front camera, but after sometime, front camera disappears too 😵

And yea, camera was working fine on Nougat 7.1 and few weeks ago i switched to LineageOS 20 and problems started...

I appreciate any help.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
As they say, all good things come in threes, it works after a few tries.

Instead of FM radio, I use the Transistor app from F-Droid. I don't have the camera problem I mentioned yet, but it may come. I also use the camera app https://github.com/GrapheneOS/Camera/releases

But I have another problem: when I switch off the X, it restarts after a few seconds. Usually once and then it stays off, but sometimes it restarts several times. Is there any help for this?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 0ut0fTime:
I use Transistor app too, it's a very good app to listen FM Radio Online. For the camera, i use Open Camera.

When you know how to use it in manual mode, it can takes very good photos (as good as GCam, but that's my opinion).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
Not everything worked after all, there were repeated restarts after switching off. I ran EMMA twice more to clean everything up.

Now I still have a problem, but a small one. The WLAN doesn't log in when I restart, I always have to activate it manually. Now it always shows this error message:

>>Saved / Access point temporarily full.<<

Even if it is the only WLAN device. When I click on it, it logs in immediately and is connected.

My router is a 7490 from AVM, no other device generates this error message. At first I thought it was because of the Karma app I use to block internet access for apps that can't be removed, but that's not the case.

Any ideas?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
One step further...

When I insert a SIM card, network detection and activation with WLAN is no longer a problem.

When I remove the SIM card, the stupid WLAN message appears again: >>Saved / Access point temporarily full.<<

Any idea's?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
It looks like the WLAN problem has been solved, no more problems.

My router had 2 special characters in the SSID, which the XPERIA X Compact didn't really like. Now I've set up guest access, which you can give your own SSID, and logged the X into it.

Thanks for the excellent LineageOS version for the old X Compact.

Edit:

Unfortunately, the jubilation was premature. The supposed solution was not successful, the WLAN message is still there. The devil knows what it is, I spoke to the router manufacturer but only got empty phrases.

Good, I can still live with it but it would be nicer without it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] I_hacker:
In case someone has similiar problem with camera, I found solution. It seems like enabled HDR was responsible for camera problems. I disabled HDR and now camera works fine and there is no more "Error while setting up the session".

It's not perfect solution and I don't know why this happens but atleast I can use camera...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] rev.s:
Thanks alot for your work! my current samsung a20e broke, so i found your excelent work for my old phone. did everything like you said and everything works. whatsapp detects custom rom but still works. saftynet etc works with shamiko and playintegrity fix. ota update to 29.1.24 build worked flawless.

i dont expect a14 for this phone but your work is greatly aprecheated and get used for atleast the next few month until securitypatches are too out of date.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
YOU DID IT !!!!!!!!:)

Build 2024_01_29.

First look.Tested 5 days.

SOUND OK.No problems.

Battery drain very very good.THANKS.

Wifi OK.No problems.

This rom is great.Need a little help from us.Kernel Manager,sound mod,etc.

Xperia XC is back alive.Los16 is past.

Next week a full review and mods to improve this rom and make it a very very good rom.We are back in 2024.

Thanks to you @Chippa_a (95%) and users (5%) here on XDA.

Keep that link open.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] I_hacker:
Just to correct myself, turning off HDR ddn't fix camera... I still experience camera apps crashing... Reboot fix the problem but only temporarily :(
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Egon77:
Try this

Releases · GrapheneOS/Camera

Modern camera app focused on privacy and security with QR & barcode scanning. - GrapheneOS/Camera

github.com

It is sufficient for my requirements.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
OK.I am Back (Terminator....He he He).

This rom is GOOOOD.Can be better,much better.:)

Let's START the "bussines".

PART 1 - Clean Rom,first setup.TWRP RECOVERY.

00. Full wipe.

01. Install Los20.

02. Clean Rom (optional).

03. Disable Encryption

RIGHT NOW

(optional) give us +speed, +battery (more or less) Picture_1.

04. Simple bootanimation (optional) give us +speed, +battery (more or less).You ca change png file easy.

05. Disable Rescue Party (optional).Picture_2.

06. FORMAT DATA - RIGHT NOW - only if you want to disable encryption (optional).

07. Reboot phone RIGHT NOW.

08. First setup Xperia XC.

09. Magisk v 27.0 (optional).

Xperia XC it is ready for next step,install,remove app,second setup.

Tested on my phone,no problems.See files.Unpack on computer How_to_clean_rom.zip

Right now,nothing special.Next week we will start real "bussines".;)

To next week.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] I_hacker:
Thanks, but it's not app problem. I've tried 5 camera apps and all of them result camera dissapearing after some time, and that is the cause for camera app to crash.

Log listing this errors:

"Camera 0: initialize: Could not open camera session: Function not implemented (-38)"

"Failed to open camera device 0. Attempting retry in 200 milliseconds."

"open: cannot open camera 0!",

"<HAL><ERROR> openCamera: 978: camera_open failed. rc = -1, mCameraHandle = 0x0"

Also, in terminal, dumpsys media.camera says: Number of camera devices: 0

After phone restart, camera works again for some time... Then main back camera disappears and I can use only front camera, but after sometime, front camera disappears too.

It's not hardware issue because camera worked fine with Nougat. I don't know how only me have this problem. I did clean flash and followed every step...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Fs00:
Hello @Chippa_a!

I've recently learnt that signature spoofing support for microG was merged in LineageOS in February (https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/383574).

Could you please release a new build of the ROM just to include the newest LOS upstream changes? Signature spoofing support would be super-useful to avoid fiddling with LSPosed, FakeGApps and so on to get microG working.

Thank you for your awesome work on this device!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Mr. Death:
I can't turn off the phone. Instead it reboots. Do you have any idea how to solve it? It's clean install, factory reset didn't helped.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] didshema:
Same problem, fresh install after factory reset/full wipe, only other thing I flashed is Gapps. Everything else is working smoothly, except that I can't shut it off without it rebooting a few seconds afterwards (sans draining the battery)