yashsingh1/xdaforums huggingface dataset:
[Sony Xperia Z Ultra] tarkzim:
Changelogs

2021/10/13

Fixed modem firmware and RIL support for C6806 GPE variants.

2021/10/07

Updated to Android 11.0.0_r46 with October security patches.

Upstream updates and fixes.

Fixed modem firmware and RIL support for C68x3 variants.

2021/10/04

Fixed Camera Focus/Capture issues.

2021/10/03

Added missing SONY boot logo.

Updated libril sources.

Allow 3rd-party apps to access libOpenCL.

Adjusted configs for sdFAT. (SDCard kernel driver)

Misc updates.

2021/09/30

Fixed WiFi Hotspot authentication issues.

Disabled C2 codecs, which is not for legacy devices.

2021/09/28

Fixed an issue that sometimes camera service not starting correctly after booting.

Tweaked WiFi settings for better speed.

Fixed WiFi coexist with Bluetooth enabled.

Support 5Ghz wifi hotspot feature.

2021/09/26

Fixed Offline charging.

Optimized vibrator strength.

Optimized brightness level.

2021/09/25

Fixed Touchscreen.

Fixed NFC.

Fixed Audio.

Fixed C6802 RIL Firmware support.

Fixed Camera/Camcorder.

Fixed Vibrator.

Added LiveDisplay support.

Fixed Sensors.

Updated sdFAT drivers.

2021/09/15

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

View attachment 5418179View attachment 5418181

View attachment 5418183View attachment 5418185
[Sony Xperia Z Ultra] Bikkoism:
Because your twrp not working, I extracted system.img from your package by brotli and sdat2img, checked if it is actually mountable, then flashed boot.img and system.img by TWRP 3.0.0 terminal.

Not sure if this method is right & necessary, but anyway…

1. At the moment of powered on, SONY logo is not apperead. Just black screen, and purple led flashes.

2. Successfully get into lineageOS boot animation. but device did not get into system for 30 minutes. I tried it again with userdata cache erase but It stucks at boot animation forever. In other word, bootloop. Yeah.

3. Offline-charging seems not working. Red led flashes once and Just black screen. Device stuck at this state even if usb cable detached. So I need to turn off forcefully.
[Sony Xperia Z Ultra] tarkzim:
Okay, I will add a loggy service in the next build, then you can grab logcats for me.

EDIT: BTW, did you flash my boot_permissive.img? because i forgot to set SELinux to permissive in the first build.
[Sony Xperia Z Ultra] Bikkoism:
No, I flashed boot.img in zip file. I just flashed boot_permissive.img and behaviors are…

1 and 3 are exactly same with normal boot.img. but I could managed boot into system. System UI crashed and touchscreen not working. When usb connected, It charges, Xperia Z ultra Device appears in my PC, adb not working.

Seems It is very unstable also. It does not boot often and shows Boot animation -> Black Screen -> automatically reboot. It does not show full lineageOS logo even if when successfully booted. Boot animation -> Black Screen -> system.
[Sony Xperia Z Ultra] tarkzim:
Thanks for trying, looks like the init-phase of the ROM booting is working, once i have loggy service done, it could just output the logs that i need, hopefully we can figure this out soon.
[Sony Xperia Z Ultra] tarkzim:
Hey, I've uploaded a build which containing loggy service, it will start to record logcat to your /cache partition like this:

Let it boot into system and let it crash a few times, then go to recovery and grab the log files.

I also include a FIX for touchscreen, but not sure if it's working, let me know if you have tried it! thanks.

TEST BUILD: HERE
[Sony Xperia Z Ultra] Bikkoism:
After flash your rom, every twrp I have(include your one) not boot. I tried to use volume up button to get into recovery but It also not works. So I have no idea what recovery you are talking about.

Anyway, Your touch fix not working. I connected OTG mouse, keyboard to navigate your rom a bit.

LineageOS full logo apeared normally.

SystemUI: Does not response message once. But seems rom working normally.

WIFI: Seems working

Bluetooth: A2DP seems working. but no sound.

Sound: Seems sound itself not works. AudioFX app also not works.

Can't test ADB because There is no way to get authentication. Device get into bootloop(Full logo -> blackscreen -> soft reboot) soon so I coudn't test more.

I tried to get log by flash stock rom without cache partition. but there isn't log.
[Sony Xperia Z Ultra] tarkzim:
Okay... sad to hear that, actually when you wipe the "data" partition it also wipe the cache partition i guess.

I've ordered an old Z Ultra from used market, but not arrived yet.
[Sony Xperia Z Ultra] tarkzim:
DEVELOPMENT UPDATE:

I've got my Z Ultra device, and solved touch issues by running firmware update after every boot, now the major problem is Audio, Camera, and RIL, will try to fix them.
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed Touchscreen.

Fixed NFC.

Fixed Audio.

Fixed C6802 RIL Firmware support.

Fixed Camera/Camcorder.

Fixed Vibrator.

Added LiveDisplay support.

Fixed Sensors.

Updated sdFAT drivers.
[Sony Xperia Z Ultra] Bikkoism:
Offline charging still not working. Device won't be turned off automatically and just stuck at blackscreen afterward. Need to do force reset. This will be really problematic when battery completely ran out.

And Magisk not works. Have no idea If It is fault of rom or bridge or magisk.

I still didn't drive the rom in deep, only a few minutes. but I coudn't found critical errors till now. Some setting sections crashed but after reboot it back to normal.
[Sony Xperia Z Ultra] tarkzim:
Oh thanks for the heads up, I forgot to include a fix for offline charging.

Will be included in the next build.

For Magisk, I also don't know what's the cause of it yet.
[Sony Xperia Z Ultra] Bikkoism:
If possible I hope the rom could have root access for apps in near future. Using bridge or not, systemless or not, magisk, supersu, phhsu all not working and There is no way to get root access for apps currently.
[Sony Xperia Z Ultra] tarkzim:
Try this Magisk MOD , Found it on THIS thread and it worked on our device.

Flash it under TWRP.
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed Offline charging.

Optimized vibrator strength.

Optimized brightness level.
[Sony Xperia Z Ultra] msi.1362:
You're awesome man. Revived this device after a long time
[Sony Xperia Z Ultra] Bikkoism:
Make Xperia Z Ultra great again.

After 2 days of using : Magisk root works. All sensors seems fine. Experienced weird battery drop while sleep once but can not determine if it is old device failure or rom fault, overall battery management seems fair.

Some serious problems I have experienced :

1: 5ghz wifi is ridiculously slower than 2.4ghz and not really usable.

2: Some major apps I using simply not start. I attached logcat for those. logcat.txt for com.newin.nplayer.pro, logcat2.txt for com.jetappfactory.jetaudio

Edit:

1: Problem 2 is kinda random error seems related with camera app somehow. When this problem occurs, There is no camera app in launcher and I need to reboot the device to solve problem. And after camera app disabled, Problem seems gone.

2: 2.4ghz wifi also being unreasonably slow when bluetooth in use. Not really sure if it is hardware limit. but as far as I remember, Other roms are not like this.

Edit2:

1: Forget bout first section of first Edit. Problem back. Some major apps do not start regardless camera app disabled or not and need to reboot.

logcat

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed an issue that sometimes camera service not starting correctly after booting.

Tweaked WiFi settings for better speed.

Fixed WiFi coexist with Bluetooth enabled.

Support 5Ghz wifi hotspot feature.
[Sony Xperia Z Ultra] msi.1362:
WOW, so fast.

Could you make it for microG instead of GApps? (Due to ZUltra limited resources)
[Sony Xperia Z Ultra] Bikkoism:
2.4ghz wifi + bluetooth seems improved a bit, 5ghz wifi still strange. -10~-20dBm, but It stucks 2mbps on speedtest.
[Sony Xperia Z Ultra] tarkzim:
It's quite stable on mine with both 2.4ghz and 5ghz and the speed is fast.
[Sony Xperia Z Ultra] msi.1362:
I can't use of my hotspot. wrong password error on guest device, even with qr_code scanner
[Sony Xperia Z Ultra] tarkzim:
Okay, will be fixed in the next build.
[Sony Xperia Z Ultra] Bikkoism:
Tried on different router and confirmed There is no problem with 5ghz wifi. A bit strange because other phones are fine with originally tested router.
[Sony Xperia Z Ultra] tarkzim:
Maybe you can try this NanoDroid microG
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed WiFi Hotspot authentication issues.

Disabled C2 codecs, which is not for legacy devices.
[Sony Xperia Z Ultra] kat256:
Hello, Thanks for the ROM. My phone feels new. Only issue is cellular network and sdcard are not working
[Sony Xperia Z Ultra] tarkzim:
What's your device model? and SDCard works fine on mine.
[Sony Xperia Z Ultra] kat256:
Its a C6802. Cellular network doesn't come up no micro SD card. Could it be hardware issue or kernel or driver issue. Just asking?
[Sony Xperia Z Ultra] tarkzim:
If they were both working on stock rom, then there might be something wrong on my ROM, but if not then it could be your hardware fault.

BTW, I'm using the same model as yours but the my sim card slot is broken physically so I can't tell, at least the baseband version is showing correctly in About Phone.
[Sony Xperia Z Ultra] kat256:
They were working before
[Sony Xperia Z Ultra] tarkzim:
Well, I have no idea then...
[Sony Xperia Z Ultra] tarkzim:
BTW, Are you using my TWRP to flash this ROM?

And can you take a screenshot of your About Phone with baseband version shown.
[Sony Xperia Z Ultra] kat256:
Hi, baseband not showing anything and imei shows unkown, imei sv unknown. So sim status not available. Maybe mu phone is lacking some drivers. That i need to flash. During installation i did wipe data system cache.

Yes am using yo latest twrp.

Thanks
[Sony Xperia Z Ultra] tarkzim:
That's weird, because I'm using the same model C6802 and my install scripts will automatically install the properly modem firmware for C6802 device.

Unless your real model isn't C6802?
[Sony Xperia Z Ultra] kat256:
hi. is it possible to flash the drivers separately. if possible can you share a link and i try then i give u feed back.

Thanks
[Sony Xperia Z Ultra] tarkzim:
Try this zip.
[Sony Xperia Z Ultra] tarkzim:
New build released

Added missing SONY boot logo.

Updated libril sources.

Allow 3rd-party apps to access libOpenCL.

Adjusted configs for sdFAT. (SDCard kernel driver)

Misc updates.
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed Camera Focus/Capture issues.
[Sony Xperia Z Ultra] whaaaaat:
sim card not detected on c6833. everything else works fine
[Sony Xperia Z Ultra] tarkzim:
Can you give me information as following comment?
[Sony Xperia Z Ultra] whaaaaat:
Your twrp ,same as #36 baseband not showing anything and imei shows unkown, imei sv unknown. sim status not available.
[Sony Xperia Z Ultra] tarkzim:
That's weird, because the built-in modem firmware should be already for C6833 LTE variant.
[Sony Xperia Z Ultra] tarkzim:
Can you flash this zip and let me know?
[Sony Xperia Z Ultra] whaaaaat:
works great. Thank You :* <3
[Sony Xperia Z Ultra] Jint Nijman:
Mr. Tarkzim,

you saved my day and my Sony Xperia Z Ultra!!

I flashed the twrp-3.5.2_9-20211003-togari.img and your lineage-18.1-20211004-UNOFFICIAL-togari.zip files yesterday. After that everything on my phone seemed to work just fine, apart from the fact that the SIM card was not detected and the IMEI number had dissapeared. I already tried flashing other modem.zip files, but those did not work.

The file you posted above worked immediately. The SIM card is now detected and the IMEI number has reappeared.

I now have a 6 or 7 year old phone running Android 11. Amazing!!!

Thank you for your great work here in this forum!!!
[Sony Xperia Z Ultra] tarkzim:
Glad to hear that, actually it was my mistake for missing some files in my build, so from the next build it will become normally without any zip needed, also expect Android 12 soon!
[Sony Xperia Z Ultra] tarkzim:
New build released

Updated to Android 11.0.0_r46 with October security patches.

Upstream updates and fixes.

Fixed modem firmware and RIL support for C68x3 variants.
[Sony Xperia Z Ultra] kulio97:
Hi developer. this rom support VOLTE in z ultra or will support…? Im finding can able VOLTE rom …
[Sony Xperia Z Ultra] tarkzim:
No, this phone doesn't support VoLTE.
[Sony Xperia Z Ultra] cezarL:
Thanks for your work on this!

For some reason my device doesn't enter deep sleep, losing around 4-5% per hour when not used. BetterBatteryStats reports only "Awake (Screen off)".

Tried wiping and reflashing twice, with just a couple extra apps installed alongside the GApps Pico package.

Does anyone have any idea what might be causing this or any advice?

(no problem with deep sleep with the previous ROM, an old stock-based release)
[Sony Xperia Z Ultra] kulio97:
Hi developer.

This rom do not supported VOLte…? Or you will have support function make plan…?
[Sony Xperia Z Ultra] opyel:
The best ROM for my old C6802! Everything perfectly work!

My 2013 Z Ultra is like new! Thanks a lot! :)
[Sony Xperia Z Ultra] opyel:
i can not turn on/off NFC

not working?
[Sony Xperia Z Ultra] tarkzim:
IT WON'T, NEVER GONNA HAPPEN ON THIS PHONE.
[Sony Xperia Z Ultra] tarkzim:
New build released

Fixed modem firmware and RIL support for C6806 GPE variants.
[Sony Xperia Z Ultra] opyel:
what about nfc? I can not on/off nfc on my C6802.
[Sony Xperia Z Ultra] rjcxlove:
@tarkzim Hey just wanna say you a very big "THANK YOU"

Great job, we really appreciate you, for giving life to our outdated device.

Will be eagerly waiting for Android 12.0 build :love:
[Sony Xperia Z Ultra] wlau7:
hi, i have zultra C6833, 5.1.1 STOCK ROM UNROOT AND BOOTLOADER LOCKED

can flash this rom?

NEED UNLOCK BOOTLOADER FIRST?

any step by step guide? many thx

delete link...sorry

i just find this guide... should be ok?

i am newbie....sorry
[Sony Xperia Z Ultra] tarkzim:
That website just stealing my work, don't link them.

You have to Unlock your Bootloader first:

Unlock Bootloader - Open Devices - Sony Developer World

developer.sony.com

Then FLASH my TWRP

Then follow instructions in the first post of this thread to flash the ROM.
[Sony Xperia Z Ultra] wlau7:
thx tarkzim
[Sony Xperia Z Ultra] wlau7:
system, advanced, reset options, erase all data( factory reset)

than fix gps problem, now google map can use

thx
[Sony Xperia Z Ultra] Alexand_r:
Hello. After installing the firmware without additional applications, the c6833 phone in a sleeping mode drains the battery by 15-20% per night. Moreover, the official firmware consumes 2-3%. Is it possible to solve this problem?
[Sony Xperia Z Ultra] msi.1362:
Thanks, Have anyone tested this?
[Sony Xperia Z Ultra] msi.1362:
Microphone doesn't seem working.

Error comes up and the recording app shuts down.
[Sony Xperia Z Ultra] msi.1362:
Dear @tarkzim

Is it possible to add virtual RAM to this ROM? Like Xiaomi and Samsung phones, which have increased the user speed of their mid-range phones by increasing the amount of RAM.

Thanks
[Sony Xperia Z Ultra] tejljr:
@tarkzim For some reason I cannot install Magisk with this rom. I tried installing thru TWRP and fastboot. Still says its not installed.
[Sony Xperia Z Ultra] tarkzim:
Use the version that i provide on first post.

And flash it from TWRP.
[Sony Xperia Z Ultra] Mirborhan:
oh man u saved me!!! after wanderin fo 2 days, finally this rom worked on my C6802, great job! Wish no bugs, but if any will inform you.

----------------------------------

Update:

I lost cellular network although the IMEI is intact, Wifi can't connect, I, working on the wifi for 2 days now, realized that one of the problems is that the MAC address is invalid, I even used "MAC Spoofer" to change it a valid one but still nothing!

----------------------------------

By the way I have to mention that I downloaded open_gapps-arm-11.0-mini-20211113 but the size of partition is small for it after flashing this ROM. I even added a "gapps-config" file in gapps exluding many apps but still coulden't install it, currently busy solving WIFI and cellular network, afterwards I may download smaller versions of gapps to check the results.
[Sony Xperia Z Ultra] tejljr:
@tarkzim

The rom is stable for the most part, but tends to freeze when waking up the phone from sleep. I will attach a kmsg later on today.
[Sony Xperia Z Ultra] rjcxlove:
@tarkzim Any update on when Android 12 will be released for our device.

And We love the Android 11 build btw. Just perfect :)

Thanks!
[Sony Xperia Z Ultra] rjcxlove:
@tarkzim Does this rom support MHL? Is there anyway to enable on it?

UPDATE: It doesn't sadly
[Sony Xperia Z Ultra] tejljr:
@tarkzim Attached is the last kmsg file so you can investigate the freezing when waking the phone up from sleep.
[Sony Xperia Z Ultra] tejljr:
Apparently XDA is not letting me attach the kmsg file.
[Sony Xperia Z Ultra] ml13:
Guys, which gapps did you use in this rom? I choose AMR/11/pico and after intallation i have bootloop.

@tarkzim Thanks for your work, rom looking nice for now. U giving second life for this really old device.
[Sony Xperia Z Ultra] rjcxlove:
@ml13 Are you sure you have downloaded correct gapps? Same file works for me perfectly fine. Could you try micro version? Or just do not flash apps and then try if the rom works for you.
[Sony Xperia Z Ultra] zaicandco:
c6802 работает нормально, но nfc завелось только с обновления оригинальной прошивки 5.1.1, не делал вайп system. Было еще у меня ядро с двойным тапом на 5.1.1 при обновлении двойной тап остался. Но потом сделал все заново и двойной тап слетел. Можно сделать ядро с двойным тапом для пробуждения?
[Sony Xperia Z Ultra] zaicandco:
У меня часы амазфит бип. Если сделать вайп system при обновлении, то в приложении LikeApp они коннектятся только если убрать галочку с нового ble сканирование. Если вайп не делать, то все работает нормально. Но если с часов начинаешь искать телефон ничего не происходит, но тут наверно мелодию нужно где-то воткнуть.
[Sony Xperia Z Ultra] MG70:
@tarkzim I registered in this XDA with the sole intention to thank you for your work! You had giving a second life to my Z ultra. i always find this iconic device a beauty and such a waste that Sony couldn't kept it alive. btw it took me a lot of effort to flash this rom (this is my first time and I have totally zero knowledge on flashing) but I guess it took you even more effort to build this rom so really appreciate all your hardwork! :)
[Sony Xperia Z Ultra] THE0JACKAL:
Hello and thank you so much sir for reviving this phone 😀 one issue i can report is the google assistant hot word is not working, it something related to Android 11 and blobs files for hot word, i have not been able to find a solution yet. Thanks for the awesome build😊😊
[Sony Xperia Z Ultra] Daniel.Medeiros:
@tarkzim thank you for your work we need more kind people like you in this world!

any chance we can get official builds from LineageOS? we might attract other devs to help maintain it :)

again, thank you so much for your work!!! keep it up!
[Sony Xperia Z Ultra] nawebona:
HELP!...

Phone rooted, bootloader unlocked, TWRP supposedly install via ADB no errors..

I have also tried on the phone itself using the .apk - it appears as it does succeed.

Problem: Im a noob - and I cant get into TWRP, holdiong keys, ADB command, Quickboot... nothing works

please help!!
[Sony Xperia Z Ultra] Daniel.Medeiros:
just curious, what's your model and what keys are you pressing to boot into recovery?
[Sony Xperia Z Ultra] Daniel.Medeiros:
try to boot into recovery using fastboot (this won't install but only boot into recovery, but might give you a chance to do a full wipe/format partitions)

fastboot boot <recovery_filename>.img

i think this command will format data partition

fastboot -w

then if everything goes well you try to flash recovery

fastboot flash recovery <recovery_filename>.img
[Sony Xperia Z Ultra] msi.1362:
Hi everyone. As you probably know, in Android 11, it is possible to integrate microSD memory with the phone's internal memory. Therefore, if you put a high-speed memory inside the phone and select the integration option when launching it, the speed of the phone will change significantly.
[Sony Xperia Z Ultra] Bakadesu:
Hi there!

I'm getting an error with:

E3004: This package is for device: C6802, C6806, C6833, C6843, togari;
this device is .

E: unknown command [log]
Updater process ended with ERROR: 1
Error installing zip file '/filename.zip'

Within the zip file you have:

./install/bin/
backuptool.sh
backuptool.functions
c6x02.sh <--
c6806.sh <--

And content of the `c6806.sh` as an example

#!/sbin/sh
strings /dev/block/bootdevice/by-name/LTALabel | grep -q c6806
if [ $? -eq 0 ]; then
for i in $(ls /mnt/system/system/etc/firmware/c6806/); do
mv /mnt/system/system/etc/firmware/c6806/$i /mnt/system/system/etc/firmware/
done
fi
rm -rf /mnt/system/system/etc/firmware/c6806/

And there are no 'other' models, I was asking if that was intentional.

Sony Xperia C6833

Your version of TWRP
[Sony Xperia Z Ultra] tarkzim:
Are you sure you were using my latest TWRP?

Those scripts was only for the OTHER models than the default blobs included in the ROM.

So if your model is not listed in the scripts then you are fine with them.

Please make sure that your TWRP is the correct version or send me recovery logs.
[Sony Xperia Z Ultra] Bakadesu:
Sorry to have bothered you, my bad, I renamed your version as `recovery` and mixed up!

It works as you expected, and looks great!

Thank you very much for this ROM <3
[Sony Xperia Z Ultra] erfandl:
thanks a lot. With this ROM, the phone got a new life.
[Sony Xperia Z Ultra] msi.1362:
Hi @tarkzim, do you have any idea about porting "LOS 19" for Xperia Z Ultra? Thanks
[Sony Xperia Z Ultra] Daniel.Medeiros:
is there any work done recently to enable SELinux?
[Sony Xperia Z Ultra] rjcxlove:
@tarkzim any plan of releasing android 12 based rom?
[Sony Xperia Z Ultra] tarkzim:
Work in progress.

No.

Work in progress.
[Sony Xperia Z Ultra] shil40:
@Bikkoism , could you kindly help me out?

I must have the same sku C6802 with you, which don't have original recover pattern I guess?

I came from stock 5.11, official unlocked, rooted with Kingroot

but indeed, unable reboot to Twrp recovery interface anyway...

Entire process I try to in line with Tarkzim's guidance 100%, feedback seems ok but Twrp's recovery just not work.

I even installed official Twrp apk (with root function of course) , process seems ok but still no use.

@tarkzim , great appreciate your masterpiece of the rom, if any guidance to have an easier way for C6802, pls kindly advise. Tks a lot.
[Sony Xperia Z Ultra] Bikkoism:
You should flash twrp into boot partition instead of recovery partition. In this case, Your device will boot into twrp nomatter what. then you can flash zip file which include new kernel through it.

Try it first. If It is still not working, I'll write up about zip -> img convert method.

Edit1:

There is another method which actually not flash twrp into your device.

example)

You should try this first whether if work or not before you flash sth on device actually.
[Sony Xperia Z Ultra] shil40:
Tks, Bikkoism.

Actually, I have read through your tips, which had tried to use that commend boot to TWRP img "on the fly", but it was not succussed.

It seems I have to flash TWRP into boot partition anyway.