yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TK2023618:
Hello, my Bluetooth is not working properly. It will disconnect shortly after being connected.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
Post a logcat at least.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
still in my quest of "free mobile" service provider volte and vowifi on xz2 (it's looks like officials from service provider told only 1 sony device is compatible volte haha), im trying to experience the mcfg_sw.bin hack to get it on my xperia :

eg with :

[GUIDE] How to get working VoLTE and VoWiFi on custom ROMs

If you have non-working VoLTE/VoWiFi on your current custom ROM here is how to solve it. Requirements: Rooted phone Qualcomm PDC Tool and Drivers (attached) (QPST) PC + modem profiles (attached)...

xdaforums.com

even latest xperia, customers told me sony didnt moved a finger about getting vowifi on it (phones bought less than a year ago!!)

if you see any idea to solve this issue...

in a way,, Im sure it was on xda I saw a post saying xz2 model is locked on it's ESP, means the hack would be impossible.. hope Im wrong, but Id really like to test it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
@dtrunk90

Since the new june security update (2023-06-21) I can't use

/sys/class/power_supply/battery/_charging_enabled

anymore.

If I do

echo 0 > /sys/class/power_supply/battery/charging_enabled

it jumps back to to 1 and it charges again.

Also sadly my NFC is still broken since the may update.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
That's because we have a charging control HAL now. You can find it in settings > battery. That's probably the reason why it jumps back to 1.

NFC is working fine here on all my test devices.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird, it is deactivated by default.

But I will migrate to it and remove my battery app.

Thank you.

Yeah, probably because I used SODP before I think.

Maybe I should reflash the device with the latest stock firmware in the future and reinstall LOS 20.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
If it's disabled it shouldn't jump back to 1,that's a bug then. I'm in contact with the main dev regarding that.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you.

Also it doesn't stop if it should.

I tested it now (charging via USB from my laptop).

It stopped / vibrated at 80% and then it continued.

The same bug I had with the charger app and the terminal "echo @ /sys/" before.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Hm you should probably make sure there's no other mod interferring with the charging control/sysfs node. I didn't tested the issue with jumping back to 1 yet but i know that the charging control works for me perfectly well. The only issue i recognize is that when reaching the limit it jumps back to limit - 1%. That should be fixed in the future once the change got merged.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird

I don't use any mod and it only started with the new HAL.

Where do you see the -1%?

Here it just stays at 80.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It happened when i was charging connected to my pc in limit mode. Nevermind, it's fixed on gerrit already.

If it keeps charging you can check the logcat. There's a tag where it logs the start/stop reasons to. Can't remember now without checking the Java code.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It should look like this. That's the log when it dropped from 80% to 79% and re-charged to 80% because limit isn't reached with 79%.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
hi guys

nobody went up to get mcfg_sw.bin modified into its xz2? to get more volte/vowifi providers supported?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I think I found the reason.

The battery manager tells me the battery doesn't get charged.

But I still see the charging symbol in the status bar instead of my battery percentage.

Using the "sys" method in the past also the charging symbol disappeared.

Probably it is a bug with the new battery HAL.

I also hope for a hysteresis in the future so it won't charge again until it reaches a second value like 20% or a reboot.

Also a notification would be nice, so I can disconnect the device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
hi

do you know how to get in touch with sony/qualcomm engineers?

thank you :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please contact the SODP team. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Not sure what's wrong with your device but for me it's working and there's also a notification for charging control.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Just managed to reproduce your case. I disconnected the charger when limit of 80% was reached, connected it again some seconds afterwards when it was at 79%. And once it reached 80% again the notification and symbol were still present. It's reported now and I think it will be fixed in the future. It's still a new feature and bugs can occur.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you.

Yes, the status bar battery cycle symbol stays with an energy icon instead of showing the percentage inside after it stops charging.

About the missing notification on finishing charging:

I think I found the issue.

Somehow again this new LOS notification had the standard value "silent".

About the NFC issue:

I activated the verbose NFC protocol feature and saw the following in my logcat:

07-01 21:47:59.713 32547 974 W libnfc_nci: [WARNING:gki_ulinux.cc(98)] gki_task task_id=0 terminating
07-01 21:47:42.307 0 0 E i2c_geni a88000.i2c: i2c error :-107
07-01 21:47:42.307 0 0 E pn544_dev_write: i2c_master_send returned -107
07-01 21:47:59.766 1093 1093 W NxpFwDnld: firmware type not found. Taking default value: 1
07-01 21:47:59.768 1093 1093 E NxpFwDnld: NULL handler : unable to load the library file, specify correct path
07-01 21:47:59.768 1093 1093 E NxpFwDnld: Image extraction Failed - invalid imginfo or imginfolen!!
07-01 21:47:59.768 1093 1093 E NxpFwDnld: Error loading libpn54x_fw !!
07-01 21:47:59.768 1093 1093 E NxpHal : Image information extraction Failed!!
07-01 21:47:59.769 1093 1093 E NxpHal : Wrong FW Version >>> Firmware download not allowed
07-01 21:47:59.875 32547 977 W libnfc_nci: [WARNING:nfa_ee_act.cc(2211)] nfa_ee_nci_mode_set_rsp p_rsp->status:0x00
07-01 21:47:59.904 32547 977 W libnfc_nci: [WARNING:HciEventManager.cpp(152)] Incorrect Pipe Id

Is there something I should debug as well?

It worked on stock, on SODP and it worked on LineageOS stock in the past.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
For me the notifications were never silent. That's weird.

Regarding NFC: looks like your fw Image is corrupt. Nfc is also working here pretty fine. Paying all the time with gpay.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
How can I reflash the firmware image on stock lineageOS?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Not sure if that works but you can download stock OS from xperifirm, put the specific .sin file in a different directory and run newflasher. But better make a backup in case anything goes wrong and you need to do a clean flash.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Hichem2006:
get the firmware with XperiFirm, delete everything except the specific .sin file and run newflasher
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
Is it possible the same way to upgrad modem firmware to latest version? (Now S.75.1)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
No, you should already have latest fw flashed if you've followed the install instructions. There's no newer than what sony provided officially for this device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] brh150:
Some time ago I've asked in this topic about LOS20 performance on XZ2, as I was fed with how the stock ROM was working on my phone. So I've been using it for about 1,5 months and I must say, that it is pretty responsive - the performance is way better and all the slowdowns and lags that I've been having are gone.

However, I've encountered strange restarts - three times. I have saved logs from recent two. First time my phone restarted when I was watching a tiktok video. At some point it just restarted. After restart I've tried to watch it again and it restarted at the same time. I didn't try again... Second and third time occurred during my workouts, when Hevy app was about to sound notification for my next set - I could hear it just for a fraction of second and suddenly my phone restarted.

https://www.dropbox.com/scl/fi/0jf3...6-26.txt?rlkey=axisfhq7hoabhpmrz9z0tdmte&dl=0

https://www.dropbox.com/scl/fi/3bt7...7-03.txt?rlkey=wuup194x9tr2f4q12iofhu7l3&dl=0

Can you @dtrunk90 please have a look and see if there is something you can do about it? It will be much appreciated.

And there is another thing that has been bothering me - VoWiFi. Before LOS20 I've flashed latest stock ROM with T-Mobile PL brand to enable VoLTE and VoWiFi. VoLTE seems to be working correctly according to IMS status (*#*#4636#*#*) as it states that it is "available". However, VoWiFi "available" status can be seen only when system boots and WiFi is connected. When I turn WiFi off and on or loose the connection, even for a moment, the status turns to "unavailable" and stays like this till the next system restart.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
I am also experiencing occasional reboots, partly reproducible: when starting one of my map apps , Mapy.cz or Organic Maps, both with quite some maps downloaded to external (1 tb) SD-Card , immediate reboot.

Until recently, there was no such behaviour.

I'd also be willing to provide logs, if asked for.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Can you check `adb shell cat /proc/last_kmsg` after a crash reboot please? I think there's nothing in your logs which would cause a system reboot. Logcat isn't a reliable source when it comes to a reboot because it's cleared each reboot. Maybe dmesg could also be helpful.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] brh150:
I've tried to get last_kmsg.txt and dmesg.txt just now, but without success:

"c:\>adb shell cat /proc/last_kmsg > kmsg.txt

cat: /proc/last_kmsg: No such file or directory"

"c:\>adb shell dmesg > dmesg.txt

dmesg: klogctl: Permission denied"

1. Does it require root? If yes, how can I root my phone? Read something about Magisk - should I follow tutorial about magisk installation (https://xdaforums.com/t/discussion-magisk-the-age-of-zygisk.4393877/)?

2. Should I copy those logs right after crash reboot (via terminal emulator on a phone) or will I be able to pull them later in the day when I'll have an access to my PC?

Thanks.

And what about VoWiFi issue? It doesn't seem like a normal behaviour.

By the way, just remembered one more thing. I've followed steps recommended in the first post to pass safetynet, but my banking app bothers me occasionally about unlocked bootloader (and/or root access, which I don't have), but is still working, though. Is this notification expected? I didn't relock bootloader.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Searching in the LOS firmware there is only a "libpn553_fw.so", while LOS wants a "libpn54x_fw.so" in the logs.

I think that could be my NFC issue.

It's not a corruption error, it can't find the firmware file.

Also the stock 10 image only contains a "libpn553_fw.so".

Flashing the .sin files with newflasher didn't help.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Hm. That's definitely SODP related. LineageOS is stock based so the pn553 firmware is the correct one. SODP seems to use pn547. Something got messed up on your device due to SODP and I really don't know why.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
SODP uses the PN553 for tama as well.

I also looked for the error "Error loading libpn54x_fw !!" in the LOS source code.

It is used in the LOS 19.1 branch in the project "android_hardware_nxp_nfc".

But I found in the LOS 20.0 branch of the project "android_vendor_nxp_nfc".the error message "Error loading libpn5xx_fw.so !!!".

And this seems to be the successor of the previous 19.1 branch project.

And this error message doesn't occur on my device.

Is it normal that we use a project with a 19.1 branch in LOS 20 for this device?

Maybe this could be the cause of the issue.

I flashed everything except userdata from the stock firmware and installed LOS with gapps and magisk on top of it.

But it didn't fix it.

Of course I made sure I flashed and used the correct slots.

Edit:

I also created the following files according to the "if else"-code without success:

-rw-r--r-- 1 root root 37K 2023-07-06 13:51 libpn547_fw.so

-rw-r--r-- 1 root root 37K 2023-07-06 14:00 libpn548ad_fw.so

-rw-r--r-- 1 root root 37K 2023-07-06 14:01 libpn54x_fw.so

-rw-r--r-- 1 root root 37K 2023-07-06 14:00 libpn551_fw.so

-rw-r--r-- 1 root root 37K 2009-01-01 01:00 libpn553_fw.so

-rw-r--r-- 1 root root 37K 2023-07-06 14:00 libpn557_fw.so

Acording to "NULL handler : unable to load the library file, specify correct path" it still searches for the correct file.

Sadly I don't see the "phDnldNfc_LoadRecoveryFW" log entry which is mentioned in the source code.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for the info.

Don't ask me why but now my NFC started working again.

I did a logcat for "PN54X" saw the log entrys and sometime later it started to read my nfc card.

Either I need to find the EXACT correct position on the phone so scan my nfc card or maybe I've got a loose contact inside the phone.

But I think it is just hard to find the exact spot on the back for a successful scan.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sebastian1969:
Hi @dtrunk90, I just want to use the opportunity to say thank you for all your support for LineageOS. My Sony Xperia XZ2 (akari) is running perfectly with LineageOS 20. With Android 10 it was not connecting to some WLAN routers, probably because of security issues. So, I was forced to look for a solution – and found LineageOS!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] WhoIsSteph:
It works on H8296? (China, 6GB Ram)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
I`m running this ROM in my H8296 since last October, when it was still unofficial. LineageOS 20.0 is the only firmware which broght my NFC back to life, ever since I unlocked its bootloader.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird. The NFC worked for me on SODP and the original stock firmware, too.

On stock LOS 19 it just didn't work because I had SODP installed before and the stock LOS 19 NFC HAL doesn't support the AOSP NFC configs which got fixed with LOS 20.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
Months ago I tried to install your SODP Android 13 ROM, but, although following your instructions, I never managed to make my phone boot to system with it. Don't know whether it was due to the Android 12 OEM binaries or whatever.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
A12 boots.

A13 is alpha, if you want to help developing it please extract logs and create an issue ticket in the bug tracker.

The next build (after I managed to fix the new july build issue) fixes the XZ3 display issue if you own this device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fun0087:
Same here, on H8314, unlocking the bootloader killed my NFC on stock ROM (which I still use). The sporadic test I made on LOS brought it back, but I was not too fond of the overall experience and did not really need NFC after all :D

But I am willing to test SODP 13 since it uses updated binaries and Linux kernel, I just need TWRP to save the current state of the phone :D and revert back easily to my stock daily driver (until I don't need it anymore of course!)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The sooner we get stable mainline support the better :)

I use the open source app "Neo Backup" to backup my apps.

GitHub - NeoApplications/Neo-Backup: backup manager for android

backup manager for android. Contribute to NeoApplications/Neo-Backup development by creating an account on GitHub.

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] WhoIsSteph:
does dual sim work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
Although my phone is dual SIM capable, I never inserted a second SIM card in it, solely because I use a micro SD card. Sorry for not being able to answer your question.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
where? their telegram chan is totally silent..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
There is only an official slack group you need to get invited in by the sony community manager.

Please look at the official link in my thread.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
recently experiencing Stuck of Network Traffic / connection with Mullvad App as VPN with activadted kill switch. Since ROM Version from 2023/07/21

Not sure, on which side the reason for the problem is. Already tried reinstall from scratch. Problem persisting.

Anyone an idea?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
recently experiencing Stuck of Network Traffic / connection with Mullvad App as VPN with activadted kill switch. Since ROM Version from 2023/07/21

Not sure, on which side the reason for the problem is. Already tried reinstall from scratch. Problem persisting.

Anyone an idea?

Edit: data traffic jam always starting after change of used network. (While still stating , that there would be a good connection)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] DużePliki:
Hello. I wonder if the installation method with TWRP will work, did someone test it? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mopeso:
It probably does work in my case. I just use orange fox by cuynu to hop between roms so that I don't have to use a computer. 🧐
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Carljaynp03:
Someone has problems with the keyboard space layout, I installed the addon apps one by one and the keyboard space doesn't take full advantage of the screen resolution.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Carljaynp03:
When I install the app from the play store, the app uses all the necessary screen space
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ZYL456:
How to disable (or hide) navigation bar? I want to use Fluid Navigation Gestures.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] brh150:
Not sure if this will be what you want, but you can set system's gesture navigation and then hide its gesture pill (bottom navigation bar). Try settings -> system -> gestures -> system navigation -> gesture navigation and tap its cog icon. There you will find the option to hide the pill/bar.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mopeso:
You can use magisk module. Personally I use an app called iconify.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
just a little thank you for dtrunk and all others to maintain this rom and updates ! ;)

btw, i have read a while ago on xda, that xz2 is the only model where xz2 or other mcfg_sw coud not be updated.. know where it has been written on forums?

thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] w8man:
how to install twrp on lineage rom??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Not supported
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bromanbro:
Just posting to thank you for supporting the XZ2 - the Canadian edition was locked on Android 9 with its broken gesture navigation or softkeys. Nice to be on modern Android with updated UI\gestures. Still runs fine too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ZYL456:
What are these things used for? The installation guide doesn't mention them.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ngasbr:
Just finished installation of Lineageos on a H8216 (from stock Android 10). All seems ok, except two problems. The first is the calendar application that dont show entry, but Google Calendar application is working, so this problem is not very important.

The most important : No Volte call, phone show this in notifications at start : "OpenDevices Modem Config. Slot 0. Modem configuration S478.1. Default file."

......... update on 15 december........

After some test : In the Lineageos akari image the directory S478.1 is missing for Videotron, it should contain a modem.conf file with this : "mcfg_sw/generic/row/vtron/vlvt/ca/mcfg_sw.mbn". With that file Volte calls are enabled on a Videotron Sim card.

What should be done to add this directory (S478.1) ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gerstavros:
hello, i am still on Lineageos 18.1. Should i first flash 19 before going to 20?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gerstavros:
Update: To update from 18.1 to 20, i did the following

1) Download files from here: https://androidfilehost.com/?w=files&flid=339919

2) fastboot flash boot lineage-19.1-20221230-recovery-xz2c.img

3) Volume-down + Power buttons to boot to recovery asap (without booting to system)

4) choose update and sideload the lineage-19.1-20221230-nightly-xz2c-signed.zip. Then reboot to recovery from advanced menu

5) choose update and sideload the Gapps from here

6) Boot to system

7) Reboot to recovery

8) Sideload the latest lineageos 20. Then reboot to recovery from advanced menu

9) choose update and sideload the Gapps from here.

10) Reboot to system

11) If using magisk, then sideload from recovery the magisk apk again, and reinstall it from the app. All magisk modules will continue to work

I didn't need to do any wipe data hopefully, and upgraded two android versions. Of course, take backup first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TigerLake:
can you support TWRP later in the future? Lineage recovery is just.... not as great....
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mopeso:
Use cuynu's orange fox recovery, it works really great instead of LOS recovery.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It's not planned
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tomek2961817:
Does anyone have issues with audio cutting out every 3-4sec for 1sec~? its audio in videos / music and even ringtones. It was working roughly 3 weeks after flashing and suddenly it started to happen.

XZ2 - Was fully updated stock before going to LOS. Updating LOS does nothing.

Edit: Seems like the issue is with Magisk, once I removed magisk the audio is fine!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
after latest ROM update, I cannot install Magisk anymore.

Anybody experiencing the same?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Nope. Works fine here on my akari test device. Are you trying to re-install magisk after each update? That's not necessary btw. Are you using latest Magisk version which is 26.4?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Ermann123:
No, with OTA updates, I dont reinstall it.

But now I did manual wipe of system install of ROM and Magisk (26.4). Problem was still there, after several trials,

now suddenly it works again. So Problem solved for the moment.

But in the latest past I experienced the loss of Magisk power during allday use , for instance while updating some apps. This happened with masked / hidden magisk. But there the solution has always been to just reinstall the app.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Probably worth a try looking into existing (also already closed) issues: https://github.com/topjohnwu/Magisk/issues

If there's no such issue you could create one. Maybe it's a bug in hiding magisk, idk.