yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] SeraOne:
The first version of 2022/12/13 that I tested have bugs like :

- No charging indicator if the power is off.

- The interface is constantly crashing.

- The web browser can't download.

- Some streaming videos become gray, and we must choose high resolution available to see the video normally.

- The interface of an Opera mini like one in this screenshot appears frequently then it will crash after 15 secound. This appears for all version of opera mini I have installed.

View attachment 5877201

After installing the lineage rom, the camera doesn't work, the next day it works fine and I don't know the reason.

The version 13.0.0_r35 is more stable but something need to be fixed:

- The bleutooth still not working.

- No charging indicator if the power is off.

- The video playback haven't grai scale color but now we can't read any local video and local audio from the apps who use video & audio codec from the android system. These apps who doesn't work include mp3 reader, gallery apps, calling ringtone, notification rintone, screen recording, video camera recording and others apps like ES Explorer etc. So to watch videos I use mx players and poweramp to read mp3 because they use theirs codecs, and turn on the phone vibration for Incoming call.

The default web browser can't download.

Overwise, the version 13.0.0_r35 that I have tested for 3 weeks is more fluid than lineage 18 and 19. It's offered good interface and games rendering. The audio output is good and if we use the audio calibrator we will see the difference.

Waiting the stable version, I downgraded to lineage 18.1.

So that the lineage 18.1 does not overheat on my device, I made some changes:

- Install a new keyboard whose size around 15Mb.

- install a google webview size 'between 40Mb and 55Mb, install as system apps by using lucky patcher, root required.

- install an app launcher, because trebuchet consumes a lot of CPU resources, currently I use hyperion hundred five 5Mb found at apkmirror.

This will solve the problem of overheating. The interface become more speed and allow us to run lot of apps like Duolingo, Vidmate , snaptube etc.

Sorry for my bad English because it is not my first language.
[Xperia Z Original Android Development] miss_barfin:
this looks great, thanks
[Xperia Z Original Android Development] foxy-soft:
When will there be an update and a fix? Are you planning to release a port of android 14?
[Xperia Z Original Android Development] Nexonian:
@tarkzim: Impressive work so far, hoping for an update that is stable enough for a daily driver. For now, nothing beats your 18.1 build.
[Xperia Z Original Android Development] bladesss:
Don't you have any more updates planned for this software? Has the topic died?
[Xperia Z Original Android Development] tarkzim:
I have a build completed, but haven't tested it myself, and I'm hoping to fix major bugs then make a release, not rushing with only security patches.
[Xperia Z Original Android Development] tarkzim:
New build released

Updated to Android 13.0.0_r67 with 2023 September security patches.

Upstream updates and fixes.

Fixed Bluetooth.
[Xperia Z Original Android Development] pda4wham:
the BT cannot work. it look like connected the BT earphone, but in fact it doesn't connect at all. thx
[Xperia Z Original Android Development] tarkzim:
2023/10/26

Fixed Bluetooth Audio and connecting issues.
[Xperia Z Original Android Development] miss_barfin:
great work, thanks
[Xperia Z Original Android Development] tarkzim:
New build released

Build a custom audio service try to fix bluetooth audio issues.
[Xperia Z Original Android Development] ChaoticNeutralCzech:
Thank you very much, this ROM is awesome! I'll be testing it and donate accordingly within a month (I've set a reminder).

Maybe you could give details how you figured out the Bluetooth audio issue to the authors of LineageOS 17.1 for SM-J530F/j5y17lte so that they can try your fix.

Attaching advice for people installing this in 2023:

Don't bother with SONY official tools, they no longer support the device. Neither Xperia Companion nor Emma will work anymore. The only thing you can get from them is the bootloader unlock code.

Don't use the newest version of Flashtool (Sony Mobile Flasher by Androxyde) because it does not work with its included drivers. I use 0.9.16.0. You need to disable driver verification by pressing 7 at the Advanced options screen in the Windows Preboot Environment.

I got the phone with Android 5.1.1 but this version cannot be exploited to gain root, AFAIK. I downgraded to C6603_10.1.A.1.350 SG_unbranded.ftf (4.1.2, as even 4.4.2 is too new) and DooMLoRD's Easy Root worked! I am not sure if I needed to do that or could just do the following steps in Fastboot.

The old firmware will not let you boot to recovery using buttons (you get no pink light on boot indicating to press 🔊+) nor ADB commands. I needed to flash the recovery into both the recovery and boot partitions (which is not recommended) and then flash the new boot.

The download link for this ROM's recommended boot image is broken but you can just extract it from the ZIP.

Use archive.org to view defunct websites and expired links. It does not work with most ROM download servers, though.
[Xperia Z Original Android Development] SeraOne:
Thank you for this new version. I've been testing the Lineage ROM version 2023/10/26 for a month now, and it's working perfectly. My Bluetooth headphones work without any issues, and Wi-Fi, Wi-Fi hotspot, and video streaming all function normally. The only problem I've noticed is that when I turn off the phone and recharge it, it doesn't display anything after the Sony logo disappears. To restart it, I have to press the power button + volume up, otherwise, it never restarts if I only press the power button.
[Xperia Z Original Android Development] alex.meyus:
A big thank you for the great work, to provide a usable current version for a 10 year old device!

On my device the camera didn't start after the first reboot.

After charging and next restart the camera seems to work perfect.

👍
[Xperia Z Original Android Development] ChaoticNeutralCzech:
When I extract boot.img from your ROM and flash it via Recovery or in fastboot mode, I can boot normally into your ROM of course. But if I flash a copy patched with Magisk 26.3 or 26.4, it bootloops on the logo screen.

How do I root? Is there a Magisk ZIP I can try installing via TWRP?

Edit: I figured it out, see below
[Xperia Z Original Android Development] pda4wham:
I get the same issues, can't root this rom
[Xperia Z Original Android Development] ChaoticNeutralCzech:
@pda4wham Well, I am no expert but I just figured it out... partially. The following steps worked for me but my reasoning may be incorrect. Make sure to back up your data and boot image using TWRP before messing with everything!

How I rooted this ROM​

First of all, TWRP did not really work from the Recovery partition (it might not be a real separate partition but I'll just keep calling it that). It booted fine with the orange light but rebooted every time it attempted to ask about the TWRP app installation, or about 20 seconds after boot. This meant that I had time to flash a boot image (which I can do in Fastboot anyway) but not to install a ZIP.

So I remembered that the old way of installing Magisk/SuperSU was to flash a ZIP, and that to boot into a functioning TWRP when first flashing the ROM, I needed to fastboot flash it as a boot image (this is not recommended because you replace your system's bootloader). (You might not need to do this if your recovery works normally without sudden shutdowns.) So I made sure I had the system ZIP (lineage-20.0-2023xxxx-UNOFFICIAL-yuga.zip) on the phone storage, ready to reinstall so that I could regain access to the system. (I will not go through the process again but if my assumption of the TWRP app causing the trouble is correct, disable "Prompt to install..." in the recovery settings before you reflash the ROM!)

However, installing the system meant I lost access to a working recovery, so I needed to flash Magisk right away. The ROM seems to attempt installing Magisk 26.4 but it fails; however, I manually flashed the Magisk 25.2 ZIP right after installing the ROM and that worked. It is not the newest version and Magisk Manager threw a warning but it worked. I tried to direct patch in the newest version with Magisk Manager but then the boot partition got corrupted again. Thankfully, I had a TWRP backup of the 25.2-rooted boot on the SD card, which I could flash in fastboot mode! Therefore, I will stay at Magisk 25.2 unless specific instructions for a newer version are released. There might be security implications but I will keep the app at 25.2 too to prevent accidentally corrupting the boot image again. Also, I could not really hide Magisk: I successfully reinstalled the new package name but then the app crashes whenever I tap the top-right ⚙️ settings icon. Luckily, this does not corrupt boot.

This is how I got root, and my settings and data stayed in so I didn't even need to restore any from a backup! Even Zygisk works!

BTW if you're using gestures and are annoyed by the remnants of the navbar below all software keyboards with the ⌵ and 🖮 buttons, you can install the Fullscreen/Immersive Gestures Zygisk module.
[Xperia Z Original Android Development] pda4wham:
Thank you, i will try it
[Sony Xperia Z Ultra] tarkzim:
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

Introduction

LineageOS is a free, community built, aftermarket firmware distribution of Android 13 (T), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Bugs

What's working:

Boot

Bluetooth

Camera / Camcorder

RIL (DATA/Call/SMS)

WiFi

WiFi Hotspot

USB (ADB/MTP/PTP)

NFC (not-tested)

LED lights

Sensors

FM Radio

GPS

Audio Playback

Video Playback

Touch screen

ExFAT SDCard

What's not working:

Hardware encryption

SELinux is permissive

You tell me.

Installation instructions

Download the zip(s).

Install a compatible Recovery

Perform a NANDroid backup of your current ROM (Optional)

Wipe system / data / cache partitions

Flash ROM.

Optional: Install the Google Apps addon package.

Optional: Install Magisk for Root.

Supported models:

C6802,C6806,C6833,C6843

Downloads

Recovery : My Unofficial TWRP

Gapps : BiTGApps

Magisk (Flash under TWRP): Unofficial Flashable APK

Rom : Download

Sources

Device/Kernel/Vendor Tree: Sources

Donate

DONATE To Me

Big Thanks

LineageOS Team.

AICP Team.

all sony-msm8974 / sony-rhine contributors.
[Sony Xperia Z Ultra] tarkzim:
Changelogs

2023/10/20

Updated to Android 13.0.0_r67 with 2023 September security patches.

Upstream updates and fixes.

Fixed Bluetooth.

2023/03/27

Updated to Android 13.0.0_r35 with March security patches.

Upstream updates and fixes.

2022/12/13

Initial release of LineageOS 20.0 for Z Ultra.
[Sony Xperia Z Ultra] tarkzim:
Screenshots

soon
[Sony Xperia Z Ultra] shil40:
Glad to check out this model is still being maintained with talents like Tarkzim.

Used to have performance backward on A12, so I have stayed at A11 for a longtime.

Hope A13 could make some improvement for the ancient SKU like Z ultra then.
[Sony Xperia Z Ultra] Khrizto:
Any chance of ever getting SELinux Enforced?
[Sony Xperia Z Ultra] shine668555:
did install this, seems all good, nice noticeable upgrade over a12 in terms of performance.

anyone tell me if there is a way to make apps think bluetooth is working? Im running my device as a google home hub/smart controller thing, but i cannot set up any of these apps as they all want bluetooth ON for setup.. I dont mind that its a bug and bt actually dont work. thanks bros
[Sony Xperia Z Ultra] The_Tech_Dude:
Wow what a good update I'm still surprised you're still supporting this phone, didn't expect to see the z ultra to get android 13 but its really smooth while scrolling thru the UI there's still some jitters when opening apps but that's fine. But unfortunately touch still doesn't work on mine I'm the guy with the screen replacement z ultra, and camera doesn't work on mine. But still thanks for this amazing update for the z ultra community.
[Sony Xperia Z Ultra] bipolarbit:
Same here, I would very appreciate it if anyone had the time to make it work on the replaced screens. The touch works on twrp-2.8.5.0-togari.img and that's a 11mB file but still could find why it works and doesn't work on higher androids or recoveries.
[Sony Xperia Z Ultra] bipolarbit:
I've copied files out of the TWRP2.8.5 recovery only install to the attached zip if anyone were interested to investigate in.

Also I think it might have to do something with the power and wake files as the touch work on RR-N-v5.8.3-20170525-togari-Official as long as the device doesn't go to sleep. After going to sleep you have to reboot device to make it work again.

Device tree files for the recovery are here:

GitHub - TeamWin/android_device_sony_togari

Contribute to TeamWin/android_device_sony_togari development by creating an account on GitHub.

github.com
[Sony Xperia Z Ultra] The_Tech_Dude:
Yeah that's quite interesting, I've also experience that before when I was trying out other roms too. And the funny thing is my friends realme 5 pro touch works on the latest android that also has its screen replaced, but maybe that's a whole different code works compared to our z ultra. Maybe one day I'll try to figure this out, this is why I've chose computer engineering lmao.
[Sony Xperia Z Ultra] bipolarbit:
So I looked into some files and in the proprietary-files.txt file form https://github.com/TeamWin/android_device_sony_togari mentions two files that I didn't see in Tarkzim's device tree for TWRP.

Also I checked https://github.com/Sony-Kernels/android_kernel_sony_msm8974_togari_5.x and https://github.com/vovanx500/ConceptKernel in the \drivers\input\touchscreen some files are different in each and in Tarkzim's kernel. I saw some lines in max1187x.c that was related to power mode and stuff and had some extra stuff in it.

The https://xdaforums.com/t/rom-resurrectionremix-5-8-3-25-05-17-7-1-2-nougat-for-togari.3588285/ which is the only 5+ ROM that my touch works (only if I don't put the phone to sleep) mentions using Sony's A7 kernel but the link is dead.

I would like to try to build TWRP at least to test out stuff but I don't have a good internet connection and free space to download all the necessary files to build. So just dumped this info here if you were interested.
[Sony Xperia Z Ultra] The_Tech_Dude:
Damn you really went at it. Thanks for all of these information, if only you had the resources you need you might be able to solve this mystery of ours.
[Sony Xperia Z Ultra] tarkzim:
New build released

Updated to Android 13.0.0_r35 with March security patches.

Upstream updates and fixes.
[Sony Xperia Z Ultra] sebaskitten:
heya! good day!

Absolutely amazing to see this device still getting updates.

recently picked one up this phone. absolutely insane how sleek it is. especially for the size. and it's not that slow either for a decade old device.

i am going to use my ultra as a car digital dash so i sadly need to use the older android with working Bluetooth.

is there any chance this version of android is going to get Bluetooth working for it?

and also. i noticed a discussion about touch not working only on replacement screens? what's up with that?
[Sony Xperia Z Ultra] Farriman:
So I flashed TWRP-3.7.0 but touch wasn't working so I hooked a mouse thinking it's only a recovery issue and flashed the Lineage20.0 and BiTGApps with no error and phone(C6802) booted fine. but Touchscreen still doesn't work.(touchscreen has been replaced)
[Sony Xperia Z Ultra] piemanny:
Just wondering, how long does it take for lineageos to first boot, it's just been on the boot screen for ages!
[Sony Xperia Z Ultra] Farriman:
Is this "replaced touchscreen not working" issue a CustomROM, LineageOS problem or it's specific to this build?

I'm asking because I'm thinking about buying another touchscreen, one taken from another C6802 to see if it works.

Should I try it?
[Sony Xperia Z Ultra] phhuang:
Just install the Adreno 330 preview driver

https://xdaforums.com/t/module-qualcomm-adreno-300-series-latest-developer-preview-drivers.4092447/

The OPENGL ES is updated to @145 from @140. It seems got a bit smoother.
[Sony Xperia Z Ultra] piemanny:
Hi guys, so I just installed this ROM and its really not stable, now the phone won#t stop infinitely booting. Just wondering, out of the 11, 12, 13 roms, which one is the most stable? I love this phone, but it is really strange that it doesnt perform better than the note 2 despite a year younger
[Sony Xperia Z Ultra] piemanny:
One of the thigns i notice, is that the System proces or UI process always asks me to end process. I'm not sure why. And now it won't even boot, so trying to get people's advice on a smoother ROM
[Sony Xperia Z Ultra] bipolarbit:
For anyone with replaced touchscreen wanting to use this ROM:

You can boot the ROM, and after it is fully booted, unplug and then plug your touchscreen. It will make the touch work until the next reboot of the device.

Hopefully, it will be possible to emulate this unplug/plug action with a script after startup.
[Sony Xperia Z Ultra] The_Tech_Dude:
Huh that's actually interesting, gonna whip out the dusty z ultra and try this out one last time when I have free time.
[Sony Xperia Z Ultra] tarkzim:
New build released

Updated to Android 13.0.0_r67 with 2023 September security patches.

Upstream updates and fixes.

Fixed Bluetooth.
[Sony Xperia Z Ultra] The_Tech_Dude:
Yup this actually works and it even works on twrp, thanks for this tip.
[Sony Xperia Z Ultra] Iojkin_Kot:
Thnx for this fw.

Can I run Magisk on this fw?
[Sony Xperia Z Ultra] pedroivogama:
Does anyone know how to disable blur effect on media art work on lockscreen (so i can see full artwork from music album?). I already tried with aosp magisk mod without success
[Sony Xperia Z Ultra] XDATe123:
Hello!

How can I get root access to this system?

Can you provide me with some methods?

Thank you very much!
[Sony Xperia Z Ultra] ch3mn3y:
So I tried it, meaning OS + MAGISK, but got kernel bootloop. Any idea?

I didnt have latest stock, just some rom i don't remember, but that stock was before, that I know.

Isn't MAGISK supported, or maybe not the Alpha one (that I tried)?
[Sony Xperia Z Ultra] tejljr:
What I usually do is I install the rom, gapps and magisk all in recovery, in that order. I keep Magisk 24.1 as a zip file and install that. Then I boot up the device and update Magisk to the latest version and root works fine.
[Sony Xperia Z Ultra] SteveLime:
Hello. Is anyone here? Help me please. Got myself a Z Ultra just like the old times. Thought everything is gonna go smoothly, but no luck. Couldnt install twrp via Fastboot.

fastboot.exe flash boot twrp-3.7.0_9-0-togari.img

Tried this command but it Fails.

'boot'

FAILED (remote: Command not allowed)​

Thought maybe i have to unlock the BL. Tried that via Flashtool. Now in Device menu it says Rooting status Unknown.

Ok... I've rooted the device via Kingoroot and tried to flash the twrp via Rashr but it wont boot into recovery.

I believe i got no recovery at all on my device rn.

Android 5 is cute but unusable. Really hope that somebody is still here.
[Sony Xperia Z Ultra] SteveLime:
All i could find is that have to unlock or relock the BL. Not sure how to do that when Rooting status is unknown. This is very sad that i cant stupidly just flash the rom into my device via twrp or PC without all this Bootloader bs, like samsung. i threw my samsung tablet into the usb port and easily got twrp on it and just flashed it.
[Sony Xperia Z Ultra] SteveLime:
Managed to find an old version of Flashtool and relock the BL. But when im trying to unlock it the phone shows Rooting status is unknown and sometimes the phone bricks so i have to flash 5.1 official rom. its working quite well on 5.1 but its pretty much a moviebrick. quite useless. but the phone feels great. i really wish to give it another chance with your android 13 rom.
[Sony Xperia Z Ultra] dasrum:
Hi. This is wonderful. I would like to install LOS20 on my C6833.

It has one problem. My C6833 has bootloader locked.

I have twrp 2.8.7 on my C6833 android 5.1.1. but, I can't flash new twrp 3.7 on fastboot mode.

Could you help me?
[Sony Xperia Z Ultra] SteveLime:
How did u get twrp 2.8.7? Dual recovery?
[Sony Xperia Z Ultra] dasrum:
Hi. Yes. I used Kingo root and then used Dual recovery.
[Sony Xperia Z Ultra] SteveLime:
I couldnt even get to this point. the link nut.xpria somthing is not working. could u pls share the files with me? i was gonna give my z ultra the last chance. want to instal dual recovery and check which version of android i could install. im pretty sure this one can't not be installed. but what if i could get lineage os 15 or w/e. still better than android 4 or 5.
[Sony Xperia Z Ultra] SteveLime:
also im quite qurious what kinda of pc uve got. i only have 2 laptops with no usb 2.0 ports on it. so im still thinking that some old hardware could help us to get our z ultras in shape. but idk.
[Sony Xperia Z Ultra] dasrum:
I can't install LOS18 and 20. So, I want to know how to flash the latest twrp 3.7.xx.

I can share the kingo root.apk file. you can download on your device and then install unknown app. after install you push one click root. and then you can try to install.bat for dual recovery using rootkitXperia.

I want to know the next step. how to install LOS 18.
[Sony Xperia Z Ultra] SteveLime:
i dont think there is a way to update the twrp this way. its called LOCKEDdualrecovery. ive actually read somewhere that u are unable to update twrp.

we have to unlock our bootloader. when i do that my phone says Rooting status unknown and fastboot stuff is not working. i can share the flashtool version that allowed me to Lock/Relock the bl if needed.
[Sony Xperia Z Ultra] SteveLime:
and u said ur unable to install 18 and 20. tried any older virsions that this?
[Sony Xperia Z Ultra] dasrum:
Could you share the flash file for bootloader unlock? I would like to try it.
[Sony Xperia Z Ultra] SteveLime:
Here u go. im tryting to find an older version of lineage os for our phone. what if ill be able to install dual recovery as well and install something like android 9
[Sony Xperia Z Ultra] dasrum:
Thank you for providing Flashtool. I have 0.9.36.0 Flashtool. I don't know what kind of things different between yours and mine.

BTW, Do you have PRFCreator ? If I get this, I will try to use it also.
[Sony Xperia Z Ultra] SteveLime:
This one does Lock and Relock our phones. And yours and any other one dont.
[Sony Xperia Z Ultra] dasrum:
OK, I will try to use this. Thank you.
[Sony Xperia Z Ultra] SteveLime:
To be fair it doesnt really help though. Im quite sad u skipped a couple of my questions.

What kinda of PC are u using? Does it have USB 2.0 ports? And have u tried to do something interesting via twrp 2.8.7 or w/e. What if out there is a ROM of android 9 or something.
[Sony Xperia Z Ultra] dasrum:
I am sorry. I had mistaken. I used below attached file for install dualrecovery. Please check it.

BTW, Do you have PRFCreator1.3？If you have it, please share to me.

(My Z ultra are two. one is SGP412.the other is SOL24 (When I boutht it, it was C6833. it maybe changed by prior owner. I don't know why I can flash it to SOL24. I just tried it. Today I can get SOL24. ) So, I will try to change C6833. )