yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TolokOFF:
I'm having trouble installing this build of LineageOS 19.1. After a successful installation, an error pops up mounting the / oem partition. I tried different versions of TWRP, downloaded the build again - nothing helped. Screenshot attached. The rest of the system boots and works, however, an internal Android error pops up, and factory reset does not help. So far, these are the only problems, I'm testing further.

View attachment 5685827
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TolokOFF:
So, in 5 minutes, the phone has already rebooted three times - the first time after turning on the flashlight, the second time after trying to unlock the phone with a fingerprint, and the third time after turning on the flashlight and locking the screen, the phone freezes and reboots itself. So far, it feels like bugs and instability is the same as on LineageOS 18.1

UPD: If you never turn on the flashlight and remove the fingerprint, then reboots no longer occur. If you turn on the flashlight at least once, the phone may freeze and restart either when the flashlight is turned off from the notification panel, or after the screen is locked. I don’t know how to make a log to help you solve the bug, if you tell me how to make it, I will try to send it

UPD2: Now reboots occur when using the camera and applications that use the camera (when Instagram was launched, the phone rebooted 3 times in a row!). Otherwise, except for constant reboots - I like this LOS19.1 build, even GCam works very well (but again - the phone constantly reboots from using the camera).

Thank you for your hard work, and please tell me how to make an error log to help you =)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Sjll:
Thanks for your feedback. It is a known issue that FPC and CAM might cause randomly reboot on tone platform after we upgraded to kernel 4.4. I do not have enough time and knowledge to debug so we will keep the two problems in future until some other developers try to fix them. Even though this ROM is not very stable on this device, we will continue to try to update its Android version, at least our devices are still alive right? I can keep doing the groundwork until a top dev fixes these, or I become a top dev in the future , LOL.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TolokOFF:
Yes, the device runs on the new version of Android, but what's the use of it if you still have to return to the stock version of the firmware from Sony, due to the unstable operation of the device? =)

However, you are doing a great job and thanks for that.

P.S. I don't know how to compile Android builds, but I think it might be worth trying to use Sony SODP resources, and patch this kernel to the required version 4.4? I'm talking about this, I think these software binaries come with a device tree and a kernel? https://developer.sony.com/file/download/software-binaries-for-aosp-android-10-0-kernel-4-14-tone/

P.S.S In general, this is the first ROM ever on this device, which I really really liked, even despite the problems that I encountered. Even GCam works great on it!

If I could solve the /oem partition error, android error after reboot (There is an internal problem in your device. Please contact your manufacturer.) and random reboots, I would immediately switch to this ROM, because otherwise it is much Better than stock Oreo from Sony. But for now I'll have to switch back to Oreo due to stability issues =(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TolokOFF:
By the way, another problem that I discovered yesterday is the lack of throttling. The processor cores heat up to 90+ degrees Celsius, and the processor clock speed does not decrease, which means there is a big risk of burning the processor. However, the thermanager.xml file is present in the system/vendor/etc directory, but due to the behavior of the device it is not used at all. Is it solvable? So far I am limiting the processor speed to 1036 MHz using the EX Kernel Manager.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TolokOFF:
I tried to get logs from the device, attached them. Maybe they can help somehow. In the log2.txt, the phone rebooted.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] ichrin:
It's amazing that the tone-family can be upgraded to Android 11 and even to Android 12, and you did some remarkable jobs, bro! Obviously, these bugs aren't very serious.

I've already used my Xperia XZ with Android 12 for 2 days, I still enable the fingerprint scanner to unlock the phone. Most of the time, it works fine!☺️
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] ichrin:
You can try Uperf on github and install it in Magisk manager to automatically control your processor speed and performance. It works great on my phone.

GitHub - yc9559/uperf: Userspace performance controller for android

Userspace performance controller for android. Contribute to yc9559/uperf development by creating an account on GitHub.

github.com
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Hello, I tried the tool you suggested but it doesn't work, I check the log file it generates and it says it failed in everything, is my kernel not allowing it to change frequencies or something?

BTW, I have F8331 rooted and using latest Magisk version.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] ichrin:
I have no idea...I never meet problem like this. So I'm sorry that I can't help you more because on my device, Uperf works successfully.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] &(*):
@ichrin & @Qattos ,

It would help to know which version you are running to debug the reason why one has it working and the other doesn't. Looking through the repo there is a Dev version (updated recently) and a Stable version from 5-2020 which displays support for the SD820.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] phhuang:
The ROM is great! Though the error notice popup due to sratup overheating it became OK after Upref worked. Just wait a bit to cool down then install Magisk app & Upref.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
Hi, which version of magisk did you install ? When I try to install 20-25 magisk ver. Twrp gave me failed error!

is there another way to istall Upref?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] phhuang:
Just the latest Magisk. And I use recovery below:

https://xdaforums.com/t/recovery-pitchblackrecoveryproject-pbrp-for-sony-xperia-xz-v3-1.4110895/
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
Thanks for your reply.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
I flashed this version of twrp " twrp-3.6.2_9-0-kagura.img "on my phone. When I flash "PBRP-kagura-3.2.0-20220625-0345-OFFICIAL.zip" in twrp after reboot in recovery mode I see just sony logo! I cant ge in twrp recovery tool.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Sorry for the late reply.

You probably misunderstood me, I still haven't used Lineage 19.1, check the screenshot below.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
I faced the same problem, almost had a heart attack thinking I bricked my phone, thankfully I could boot into system where I flashed latest TWRP version from teamwin through their app and now my phone can boot into recovery, but that custom TWRP refuses to work.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
if you are still interested using custom recovery use this version. it works. --> PBRP-kagura-3.1.0-20210606-1459-OFFICIAL.zip . Good luck.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] phhuang:
I'm sorry that the latest PBRP recovery doesn't work well. Still I think the previous working PBRP is the best I'd seen.

-

Yesterday I ran Geekbench 5 on XZ@Lineage 19.1 with Upref installed. The result seems even better than any OS on XZ before. It means the kernel & CPU/GPU driver are all set. Fantastic!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Sorry to bother you again.

Can you please share your Geekbench CPU/GPU scores on Lineage 19.1?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] phhuang:
Single-Core : 327

Multi-Core : 901

Vulkan : 585

OpenCL : 1467
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Thank you.

On my rooted stock ROM I get around 300 in SC and around 700 in MC when it's not so hot in here.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Just to give some feedback after testing Lineage 19.1.

Overall I love it, almost everything works well except for what was reported earlier by the other members.

- Camera does crash the phone pretty consistently after a minute or so, especially when switching to selfie camera, I did have root and installed uperf.

- GPS seems to work, to be honest I'm not sure if it's satellite or just through internet because I was connected through mobile data.

- Forgot to test the flashlight :/

- I managed to setup the fingerprint without any issues. (I used MindTheGapps BTW)

- I did get the "Failed to mount '/oem' (No such device)" message and pop up message every time I boot my phone.

Unfortunately, I had to go back to rooted Stock ROM because Whatsapp is such a crappy app when it comes to restoring your backups, thankfully I had a full TWRP backup.

I will definitely try it again later, and sorry for not providing any logs.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] phhuang:
Can we use SBC XQ on XZ? The dev setting is grey out.

Bluetooth SBC Dual Channel HD audio mode

Deep dive into the

lineageos.org
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] LinuxHippy:
I installed this ROM without the gapps and it seemed to work fine just as a WiFi device till I tried to encrypt my system. I see that is a feature in the first post that doesn't work but the phone tried and couldn't reboot past getting into TWRP. I tried to wipe the system and reinstall Lineage OS but it keeps getting stuck in a boot loop.

Can the messed up encryption just be formatted away?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] LinuxHippy:
TWRP lets me get to a terminal with toybox. Should I repartition this?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
Hi

The usb connection problem *still* exists here as well.

You cannot change usb mode from "charging this device" and all options are grayed out.

After adding fingerprint, locking the phone completely freezes and reboots.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] nghkh:
i have same problem
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
After using this rom for a while i encountered some problems :

General instability. Random crashes especially with low battery or under high loads.

OpenCamera completely locks up after taking photos, google camera Go often freezes the whole OS and reboots.

Recording video is not possible with OpenCamera.

Thermals are dangerously high, and downclocking the CPU results in further instabilities.

Also cast functionality is not working currently

For transferring files i use adb but that is not convenient.

Battery life is very bad. like 2hrs screen time.

The fingerprint problem persists.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
Installed uperf and had 5 reboots in 5 minutes and could not get into lock screen. so clearly that didn't work.

This ROM is too good to switch back from. I did switch back to Oreo but really did not feel good using stock oreo after using this rom for about 2 weeks. Now I'm on lineage again.

I could not compile the kernel to tinker with it. Because google gcc toolchain only comes with "aarch64-linux-android-gcc-ar" and "*-nd". and `make` failed with "aarch64-linux-android-gcc not a file or directory". Any help is appreciated.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
Update : looks like the latest "release" is very old. Installed latest pre-release

Release DEV 22.09.04 · yc9559/uperf

【更新日志】 改进 cpuset分组预留核心 改进 sdm8g1+隐藏频点支持 改进 减少二进制体积 修复 Exynos2100王者荣耀掉帧，感谢@chbqby ...合计8个commit 【已支持平台】 高通 骁龙 625/626/660/636/82x/835 骁龙 662/665/675/710/712/730/730g/750g/765/765g/768g/780/778g/7...

github.com

No crash or reboot so far 👍

Battery life and temps. if uperf can solve those two, I will stay on lineage for sure.

Update: IT DOES. and my temps are even better than stock oreo
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] project_2501:
@

What kernel flags have you applied with uperf, any crashes, reboots, or overheating like others have described? Just wondering if the switch from 18 to 19 is an actual upgrade considering what others have posted?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
Could you please explain how we do this.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
I tried powersave and balanced. the battery life and thermals were excellent with powersave, but I had a LOT of random freezes and reboots. especially while using camera.

Currently using balanced and everything seems fine so far.

without uperf expect very high thermals and very bad battery life.

As for comparison between 18 and 19, I can't say anything for sure because I did not gave 18 enough time and effort and flashed stock oreo a day after.

But because the gap between android 8.0 (Stock) and 12 (this rom) is quite big and there is a lot of useful features here, I'm trying to daily drive it.

If you don't have any problem with Noisy pictures (because BIONZ and other stuff is not available here and I don't think will ever be. those are proprietary Sony stuff), buggy camera, maybe slightly worse battery usage and temps, and a few reboots here and there, I would say go for it. I'm enjoying the experience overall (except when it does not work lol)

Currently the most game-changing problems are:

- MTP not working

- Camera reboots and bugs

- Random reboots and general stability issues.

- Fingerprint

If @Sjll is going to update the rom, I would say wait for the update to see If any of this problems end up getting resolved.

Install the zip file from magisk and reboot.

You can set the configuration in /sdcard/Android/yc/uperf
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
Thanks for the answer.

Which twrp and magisk version did you use for installation?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
I use 19.1 rom. When I try to install magisk.zip it gives me this error ---> "Failed to mount ' /oem' (No such Device). Anway , I cant mount oem part!

Do you have any idea what's wrong?

​
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
I used twrp 3.7

Download TWRP for kagura

Download TWRP Open Recovery for kagura

eu.dl.twrp.me

As for the OEM mounting error, just ignore it. If you did not get any other error it means the operation is completed successfully.

Remember to download magisk from official source : the GitHub repo

GitHub - topjohnwu/Magisk: The Magic Mask for Android

The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.

github.com

Install the APK as zip in twrp and also install it as an app in android
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
Thank you for your time .
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Add flashlight causing reboots to that list.

I tried this ROM for 4 days with uperf, enjoyed it at the beginning, but it slowly eats away at your nerves and patience with all the crashes and reboots, not even camera related, just waking your phone up and switching between apps.

@Sjll did great work and gave us a peek at what this phone could have been if Sony cared, and I thank him for it.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
yes I totally agree with that. random reboots happen a lot while doing totally normal things, like you said for example switching between apps. I really hope there is more to this rom than just this version.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
So a few important things happened

I have had a lot of connectivity issues over the past few hours and I would typically switch to another mobile network operator's roaming.

But I can't do that on this ROM. Because they all have the same name and switching to any one of them fails.

These would be other operator's network name such as IR-MCI, 43211, etc.

Also it looks like there is a serious problem with charging current pulled by the phone.

My battery charges too quickly and the ampere app shows this. I hope I don't burn my house down lol.

I will probably downgrade to Stock Oreo since these last two problems are not ignorable.

@star__dust

Looking forward to new releases and updated to this ROM.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Yeah that's what I did, I switched back to stock and it's actually running way better than I remember, you should do the same seeing that really high current charging will probably ruin your battery.

I believe there's a Magisk module that allows you to control charging current, called Advanced Charging Controller (ACC), never tried it personally.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
So I did not have the time to flash stock Oreo back.

So I did install AccA with lastest magisk module and it looks like it is working

One more problem solved!

Also audio equalizers such az viper4 android are working great
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
Final thoughts about this until the next update :

Overall pretty usable.

Basically by solving the biggest problems with battery charging and overheating with magisk modules, only 2 or 3 problems remain :

The fingerprint

The camera (and the flashlight)

Manual network carrier selection

Hey google (i guess that one is my fault for installing google app separately from GApps)

Battery life and temps are much much better than stock thanks to uperf, Apps are up to date, and overall I am getting much more out of this phone than what would ever be possible with stock oreo with apps that are last updated 3,4 years ago because... Sony.

Dual sim is working seamlessly, no network issues and mostly stable.

@Sjll

please do update this rom if you have the time to do so. this rom is just a few steps away from perfection IMHO.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
I said final thoughts but :

I had to reinstall the ROM because I messed up something very badly in /system, but this time I installed ROM and then installed Full NikGApps

USB Connectivity solved!

Carrier selection solved!

Hey google solved!

It didn't affect fingerprint tho
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] badboyblue:
Hi, can you tell me how to make USB Connectivity work? I installed rom and full Nikgapps, enable usb degging and set default usb config to file transfer, but PC doesn't recognize it when connected with a usb cable?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
I'm sorry, I went on to check again just to see it's not working anymore.

I really don't know what can caused it to stop working because I did install and changed a lot of apps and stuff between these two tests.

The thing I'm sure about is it really worked the previous time. I literally saw my interal storage folders in there.

Also for carrier selection to work you have to select the "NR/LTE/GSM/Evdo/TDSMCA/WCDMA" network option if anyone is trying to get that to work

Sorry again. I will try different things and report if it ended up getting fixed :(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
WiFi and Wireless hotspot often don't work until I reboot the phone

USB tethering does not work at all.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] waayo69:
hi! do you mind sharing your stock rom backup? somehow i cant flash firmware cuz the device always turns off (green led turns off and on when flashing firmware). i just want to go back to stock rom. or if you could point out the most stable custom rom for our XZ that would be great 😃. thank you!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
With an upload speed of under 1Mbps in Iran it would take 7 hours to upload the 3GB MEA firmware I have.

You can use xpirifirm to download your stock rom files and repack them into a FTF

How to Create own FTF Firmware Files using XperiFirm and FlashTool

When it comes to flashing the latest firmware files on any Sony Xperia device, the XperiFirm is one of the ultimate firmware flashing tools out there.

www.getdroidtips.com
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MiniGNU:
After flashing this ROM my F8332 device recognized as F8331. And because of this I can't flash stock ROM via Flashtool.

Got an eroor:

ERROR - The bundle does not match the connected device

How it can be fixed?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
@lumosimann​

OK here is how I managed to revert to stock image:

1. Flash this kernel: https://mega.nz/folder/iZYgkJ5I#GAZZW_uFltUPiL_TvDY84w/file/adwgVIDQ using fastboot (fastboot flash boot KERNEL_F8331_41.3.A.2.192_CLEAN.img)

2. TWPR sideload this project: https://xdaforums.com/xperia-xz/development/xplayztation-frago-t3504411 (this is for F8331 only, so *don't do this on F8332*, otherwise you are stuck with F8331).

3. Install stock image with flashtool.

(2) is needed because otherwise you canot use flashtool because it complains about an incorrect device.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MiniGNU:
I don't understand...

My device is F8332.

And you wrote don't do this on F8332.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] casouzaj:
You could try newflasher.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] project_2501:
Yeah that guy's suggestions for how to fix it were baffling too. Do you have an official firmware F8332 bundle? If not, you can download an F8332 bundle with Xperifirm (recommended). Once you do, do not close Xperifirm, instead locate where it was downloaded to (C:/Users/(User-Name)/.flashtool/firmwares/Downloads/F8332*), then right click the fwinfo.xml and choose to edit it with notepad. Simply change the line where it states F8332 to F8331, save and close. Now exit Xperifirm and it will pack the F8332 bundle as an F8331's allowing you to flash it back to the device it is. Just select the F8331 bundle you just packed and flash, problem solved.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] star__dust:
When you flash your phone with this lineageos 19.1 rom it has changed your phone model from F8331 to F8332. So, Your phone model is F8331 not F8332 right! That is why you cant flash back your phone model to F8331. if you want your phone model to be F8331 than follow the steps.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MiniGNU:
No. My phone physically is XZ Dual F8332.

So when I flash my phone with this LineageOS 19.1 ROM it has changed my phone model from F8332 to F8331.

I need to change it back to F8332.

I tried to flash stock kernel from .192 ROM for XZ Dual But nothing changes, it stills recognized by FlashTool like F8331.

----

Thank you! Looks like a working way.

But I have already restored the firmware with Emma.

Only Emma recognized the real phone model.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] navidmafi:
@Sjll will we get an update on this ROM? if yes can you give a rough estimation as to when?

thanks!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] bigbird2k1:
Cảm ơn bạn rất rất nhiều!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Cicada_3301:
So I might have killed my XZ, so I got fingerprint added and it seems that the phone got into a bootloop when I went to sleep and the power IC might have died as a result of this whole 8 hours bootloop fiasco
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Qattos:
Is it still dead?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Cicada_3301:
It's still dead until I can replace the power IC or the whole motherboard. Since most XZ(s) here are from Japan and almost impossible to unlock so it's gonna take quite a while