yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] norman0:
Hello all,

what is the actual resolution of the pictures taken with the native camera app?

Under LOS19 I can select 19.2MP in the app settings. But then the actual picture is only 2160x2880 (6.2MP).

Thank you
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
Update from LOS19 to LOS20:

1-copy the new ROM to my SDCARD

2-update the recovery with adb fastboot

3-Restart smartphone in recovery

4-choose Update menu on smartphone

5-update throw "disk" (my sdcard name) instead of ADB. I did not undesrtand in the first time smartphne should be in a specific mode, to be in fastoboot is wrong, to use ADB you should be in recovery. For me using sdcard with recovery menu is more simple.

6-Done (step1/2 is long with no status bar, don't panic, we all do :) )

Damn it, too easy, nothing lost. I have no choice to donate again to @dtrunk90. Cheers!

Hope I won't have to share some logact :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
When i boot the phone it shows H8314 in service menu but when phone is connected with USB to pc it shows H8324 on Emma Flash Tool. So my phone is H8314 or H8324 ? When checking SD and SIM slot there is only 1 slot for SIM.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
If the hardware is the one of H8314, then you know the answer ;)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
But why emma shows H8324? Only stock UK firmwares are available. Bought xz2c with broken display very cheap and replaced it myself. Now with no sim card and wifi error. I'm trying stock roms all week but no good. I should give up but somehow i can't. 😂
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
Use xperifirm for stock ROM and newflasher for installing. Happy reading.

https://xdaforums.com/t/tool-xperifirm-xperia-firmware-downloader-v5-6-5.2834142/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Scalee:
Ever since upgrading from LineageOs 19.1 to 20, my bluetooth headphone crack and stutter allot . I wasn't able to find anything on google, anyone have an idea of what to try?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
Hey, yes I had a similar issue with a device and fixed with following steps:

- go to bluetooth settings

- find your headphones and click on the icon to the right - this will bring up "Device Details"

- turn off HD audio

This just happened with one of my bluetooth devices. Other ones running really well and if anything seem to be working better!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Scalee:
I tried turning of HD audio in in developer settings, but ill try as you describe.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] a.bispo:
Just checking in to (also) report some buggy/choppy audio when having Bluetooth HD Audio AAC on.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
FINALLY !!!

After a HARD WEEK of flashing, rebooting, searching, flashing I FIXED my XZ2c !!!

Problem was with wrong stock firmware flashed because phone is H8324 not H8314. Unlocked bootloader about week and a half ago, flashed stock H8314, LOS recovery and LOS20. After two days of working with the phone it suddenly turned of and strange NO Wi-Fi, NO SIM CARD DETECTED and RANDOM REBOOTS . Tried everything with stock ROMs for H8314 and H8324 but always same issue NO Wi-Fi , NO SIM CARD DETECTED and RANDOM REBOOTS. Thought phone is dead and i need to use my old good XZ1c with LOS20, but ....

Solution was very simple. I was using Sony Emma Flash Tool that showed only UK firmware for my xz2c from Android 8 to Android 10 but after flashing result was evetytime same with no sim Wi-Fi. Today was a teardown try, so I removed screen and motherboard. Next assembly all together, new glue and screen back. Connected phone and flashed with Emma with UK Android 10 for H8324, turned on and everything is back to life : Wi-Fi , TWO SIM CARDS. HAPPY ME, but most of all I think the solution was disconnecting the battery from motherboard and maybe something was just wiped and got back. NOW IT's TIME FOR LOS 20 :)

:LOL::coffee:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] boet61:
Hi,

My problem with this rom is.

When i put it on the charger, i have no service in the Morning.

When i take it of the charger in the morning i also have to type my sim pincode.

Then i see i missed some calls, which is not strange because it does not ring at all.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] norman0:
Short feedback about native (LOS) camera:

LOS-Camera 4:3 -> resolution is 3264x2448 (7.9MP)

LOS-Camera 16:9 -> resolution is 3542x2160 (7.6MP)

Stock-Camera (magisk module) 4:3 -> resolution is 5056x3792 (19.1MP)

Fortunately, the Sony camera is available as a magisk module and it works under LOS20. Otherwise you are wasting resolution. This is also visible when you zoom into the picture.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] wtor68:
I use OpenCamera since long time. There i got always the full resolution of 19MP. So no magisk module is needed.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] norman0:
Cool, thank you. OpenCamera takes pictures in full resolution 👍
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] odiad:
Hello boet61. Are you sure just service was off, maybe your phone rebooted during the night. Then, of course, you have to type in Sim pincode in the morning.

You can see in settings->about phone->"up time", means how long your phone is running since booting. If this time is just few hours then phone has restarted.

I am not a developer, but in case of random reboots maybe your have to flash again.

Greetings Odiad
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Wifi Display will be fixed in the next update
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Magchild:
Thank you so much for looking into this for us. It works great now.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnBay:
Hi mate,

I've been trying & hoping to get the XZ2 Compact (dual SIM H8324) work with VoLTE in Australia.

The phone was originally bought in Europe and when updated to the official Telefonica/O2 Central Europe Android 10 firmware, VoLTE did work on O2 in Czech Republic.

I am now back in Australia and my current carrier, Vodafone AU, is to switch off all 3G services by the end of this year, so without VoLTE capability, the phone will not be of much use here.

It is a pity because I like the smaller format of this phone and with the LOS 20.0 upgrade, it works better than many newer models.

You did mention elsewhere that you extracted all the available firmwares and those were included in one of the LOS 19 nightlies.

So this is probably a long shot, but there appears to be a lone Australian firmware available via Xperifirm, called H8324_Customized AU_52.1.A.3.49-R4C

Is there any way to find out whether this may have the necessary config files for any of the Australian carriers? Or have you already included it in the LOS ROM?

Thanks a lot for all your work!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Hey, should be already included. Please check the modem config notification against https://github.com/LineageOS/android_device_sony_tama-common/tree/lineage-20/modem-config

If the folder exists.

Also make sure the AU stock firmware was flashed before installing LOS since these modem configs only have a reference to the actual mbn file which is part of the firmware which is not shipped with LOS. That's the reason you have to flash stock 10 before.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnBay:
Thanks for all that!

So just to make sure I understand you correctly:

Are you saying that the possible reason why I cannot get VoLTE to work now is because when I upgraded the phone to the official Android 10 (before loading LOS 19.1 on it), it was the 'wrong' region (i.e. O2/Central Europe)?

If this is so, then do I need to restore the phone back to original via flashing the AU/Custom firmware, and then load LOS 20.0?

I guess doing that would require wiping the phone and starting from scratch?

I don't suppose there is any way of finding out just what, if any, VoLTE settings the AU/Custom firmware may include, before going through the full reset?

Thanks again mate - your ongoing assistance to people like me is greatly appreciated!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] JohnBay:
Also, regarding the modem config folders/files on github:

Is there any way to find out which firmware each one relates to, without opening the actual modem.conf files?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
There's a modem config notification with an SXX number. With that you can check if that folder exists in the github repository. If that's the case the reason for missing VoLTE probably is that you were on the wrong stock rom (region). So, yes starting from scratch with the correct AU region should solve your issue. But it's not a 100% guarantee since there are providers who added VoLTE support after the latest stock rom was released by sony and that mbn file is either not existent or it doesn't contain the VoLTE support. In that case there's nothing I could do unfortunately.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Relating to my previous posted issue with mobile data connection I gave it another try with the actual LOS20 build (20230127) and tried to generate some details about the differences. Not sure if this could provide some new input but I'm willing to help finding the root cause. As you can see both roms are using the default modem file but while LOS20 shows a enabled 3g connection in the quick settings it's not connected.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zastor61:
Hi, i just upgraded from 19.1 to 20.0, didn't notice any issues so far except weaker vibration which has been reported.

Question for @dtrunk90, do your xperiance apps from GitLab work with 20.0? Should i just follow Magisk installation guide and then gradle wrapper on your apps?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
which stock fw you were on? maybe the beforementioned UK fw is not the right one for you. Check if there's one for austria or probably try the one from germany. but which is confusing for me is that with same stock fw it worked on LOS19? if so, that's weird. maybe you could send the output from "adb logcat" while enabling/disabling mobile data. only the last part when you started enabling/disabling mobile data please.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I didn't tried the magisk modules tbh and i will abandon them because i don't have enough time and there are still issues on all of the modules. for the camera resolution there's https://issuetracker.google.com/issues/162121234 so if this is the reason why you want the sony camera app it might be better to wait for google to fix their CameraX library. Then, hopefully, Aparture will have the right resolution too.

Btw there's no need to build the modules yourself. There are built zip files already.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Thanks for the logcat. i'll put it onto my todo list.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] norman0:
The sony camera app works as magisk module under LOS20.

But as @wtor68 already wrote, Open Camera offers the full resolution.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I always flashed H8324_Customized CE1_1313-3194_52.1.A.3.49_R2C which should be the correct one for Austria. Isn't it?

I will give it a new try on weekend and send you the logcat afterwards.

Do you also need LOS19 logcat for reference?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
To check correct stock rom i'm using Sony Emma Flash Tool. It'll show you available firmwares for your model and region. Mine is UK but flashed CE1 and everything is working without any issue.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No 20 is enough. I hope to see something there but I don't think so tbh.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
-deleted-
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Do you guys know of any good cheap bluetooth device which supports hd audio? unfortunately i only have a jbl charge 4 here which doesn't support it. can be a used one, it's just for testing. also for future bringups. probably something around 30-40€ or cheaper.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] a.bispo:
I recently bought some wireless earbuds for jogging. Used they are around 40-60€ at least where I am located. Model is Jabra Elite 7 Active. The lower series (3, 4,..) are also widely available, though I don't know if they support hd audio.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
We have chosen not to enable this option in settings since it's known to cause troubles (including dataloss or non-booting devices. You can maybe build for yourself and see if you can make it work, but we won't include it in officials.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Wow, that's pretty expensive (at least for testing purposes only). Let's see if there's something in a lower price range.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Is there a way to get L1 on Netflix app and play HD quality videos on LOS20 if bootloader is unlocked? Can play only SD with L3.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
See 1st post about passing safetynet
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Rrreutel:
Hi @dtrunk90 I have some questions about how to make your magisk modules work on other Xperia devices , i.e. XZ1C. (this might not be the right place to discuss, but didn't find an appropriate thread, and not allowed to DM you).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Sorry, but I don't have enough time to give support for that.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Rrreutel:
I understand about time constraints, I was hoping for some initial pointers from you and do the porting work myself. Would that be an option? If so, I'd appreciate a PM, if not I'll leave it at this.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Here are some resources to read through:

Developer Guides

The Magic Mask for Android

topjohnwu.github.io

Apktool - Documentation

Apktool - Documentation (Decoding, Rebuilding, FrameworkFiles, 9patch images)

ibotpeaches.github.io

Then try to understand what the gradle build file is doing
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
I have SafetyNetFix 2.4.0 magisk module installed but still only SD
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
USNF is not enough, please read 1st post again.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] raphidae:
I understand that the option is turned off, that's why I manually enabled it. And that's fine.

However, when I enable adoptable storage now the whole OS crashes and goes into a boot loop, even though it can work with it fine.

Because if I first load LOS 18 and enable adoptable storage there, and then upgrade to 20 it will continue to work with no problems.

It's just the format that's crashing for some reason, and I figured maybe it's an easy fix :) That the format crashes is a regression since LOS 19
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
adoptable storage isn't supported for a good reason. please don't run these weird adb commands.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
@dtrunk90

Wanted to send you the logs as PM but it seems to me you have disabled messaging function.

How could I forward them to you privately?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
dtrunk90 gmail
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Carljaynp03:
Why don't you add the quick wallpaper selector?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Carljaynp03:
No support for PS4 AND XBOX controllers yet, when paired to Bluetooth please.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
1. That's the Pixel Launcher. LineageOS has Trebuchet.

2. I'm not a developer of LineageOS but a device maintainer. If you want features in LineageOS feel free to push your code to gerrit.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
That's on my todo list already
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] fnoup:
Hi,

First, thank you, overall L20 is working fine on my device!

However, some minor disturbances remain:

- the selection list for device flip action (in alarm settings) is... weirdly displayed... It kinda works so no big deal but I don't know if this is already tracked somewhere (I'm lost in gerrit)

- "Accessibility > Vibration & haptics" does not let you set the strength of vibrations. I don't know if this is just my device but it is quite weak and I miss notifications.

Thanks again!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Device flip action is tracked on the issues project on gitlab and there's a fix for that in place on gerrit which waits for approval.

I'll check the vibration thing once i have time and put it on my todo list if i can reproduce it. Thanks for your feedback.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] PerfectJam:
Hello,

First of all, thanks for continuing maintaining this phone up to date !

Simple question, currently running LOS18.1, can I directly upgrade to LOS20, or should I up to LOS19.1 before ?

Best regards,
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If you want to be on the safe side, do it one by one. I've never tried dirty flashing two major versions later. And do a backup of your data of course. Just in case.

Edit: Oh and please don't forget to also upgrade your recovery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] jaxwithanx:
Longshot but anyone running this on Google Fi without issue? I've read various APN issues across builds and unclear whether anyone really has a daily driver because of it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] stuartxzz:
Hi

I’m currently flashing 20.0 on a xz2c(docomo) and during which an error always takes place.

Says: Error applying update:28(Errorcode::kDownloadOperationExecutionError)

E: Error in /sideload/package.zip(status1)

I’m so frustrated could someone please help me? I’ve tried everything I could.I used the 19.1version but it was all the same. What should I do?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] stuartxzz:
Hi

Thanks for all the effort

Is there any solution to this?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] old.splatterhand:
Docomo is not supported, as far as I know.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] stuartxzz:
Many thanks and I’ve already given up lol
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Adoptable storage should be available once these changes are merged (i'll leave them open for some days so i can test it first): https://review.lineageos.org/q/topic:tama-adoptable-storage

There's also no need to run some adb command to force enabling that. You can "format another way" directly in the storage settings. But use at your own risk!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] King-Ossy:
is it possible to lock the bootloader again or remove the warning at every restart?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Afaik Nope

This has been discussed here already.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
May I ask if you had time to check the logs and got an idea whats going wrong?

Thx ;-)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
sorry, didn't had the time yet.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Ugh again extreme RAM usage, almost 3GB taken mostly by Android and Google :/

Slows down the phone extremely... any tips and tricks to counter that?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Carljaynp03:
Because lineageOS 20, I was testing the stability of the ROM but many aspects still need to be polished, more and have the stability that LineageOS 19.1 provides, that's why I mention Bluetooth compatibility in Android 12.1, which is the only thing that is missing, in comparison with android 13
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
I have problem with mobile network connection. When on 3G i have internet connection but when it turns to 4G internet is lost after a while. Randomly i have to type PIN code when phone is on the desk with screen off.

On my XZ1c i also have LOS20 but without any mobile network problems. Tried clean flashing stock Android 10 and latest LOS20 but same thing happens. Modem configuration S187.1 .What could be the problem with my XZ2c ?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Please read first post about how to pass safetynet. Both problems you have are because your device doesn't pass safetynet.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ILCAMPIONE:
Thanks for reply.

I read first post, and i tried method 1 but my device is 8314 and the string is for 8324 ( and for now does not work)

I just ask you, how i need to modify the string and if this method can work for my decide. ( for netflix i google after the post and i understood that it is the same problem)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Did you installed the zip in recovery? Did you rebooted into recovery after installing lineage before installing this add-on? It doesn't matter if the fingerprint is for 8324 instead of 8314. It just needs to be a certified fingerprint. You could also use a totally different devices fingerprint.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ILCAMPIONE:
I install linageos, i reboot in recovery

I installed gapps

I installa the zip.

Can i try ti reinstall now(i am using the smartphone)? Or i Need to wipe / format all data?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You can install it again. No need for a wipe.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ILCAMPIONE:
I try again with Option1 but SafatyNet Test failed again:

CTS Profile Match FAILED

Basic Integrity Success

Response Signature Verification Success

What can i do now?

Many thanks
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Please attach the final zip file you've installed. Your device is not rooted, right?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ILCAMPIONE:
Here the file

offcourse no rooted (i just install rom and MindTheGapps )

Many thanks for help
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
The # sign at the beginning of a conf file means it's commented out and has no effect. Please follow the instructions exactly by replacing the whole file content with the fingerprint code snippet from first post.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ILCAMPIONE:
Really thanks to

dtrunk90​

Now Google wallet (and Netflix) work ! I have some issue with paypal app, i can not open the app.

Do you have same issue? Can i give you some feedback to solve the problem? (i don't know how to send you a log of this crash)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
yes, i have the exact same issue. it started some weeks ago. i always thought it was due to a paypal app update. i can't see something useful in the logs either. But I'll check it more deeply.

EDIT: Since we can use the paypal website instead of the app in the meantime i'm considering this as a low priority issue.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Do you use any ad-blocker? In case you do, disable it. I also have this problem whenever I want to use PayPal

Also PayPal refuse to work if root is available so you might hide PayPal in Magisk deny list (I checked everything in PayPal)

In any case => clear cache and data, sometimes reinstall it