• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][11.0][UNOFFICIAL] LineageOS 18.1 [togari] [STABLE]

Search This thread

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
2okPze5.png


Code:
 * 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 11 (R), 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)
  • FM Radio
  • WiFi
  • WiFi Hotspot
  • USB (ADB/MTP/PTP)
  • NFC
  • LED lights
  • Sensors
  • GPS
  • Audio Playback
  • Video Playback
  • Touch screen
  • ExFAT SDCard

What's not working:
  • 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 : Open Gapps 11.0 ARM
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.
 
Last edited:

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.
 
Last edited:
  • Like
Reactions: phhuang

Bikkoism

Member
Sep 1, 2018
18
3
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.
 
Last edited:

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.
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.
 

Bikkoism

Member
Sep 1, 2018
18
3
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.
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.
 
  • Like
Reactions: tarkzim

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.
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.
 

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.

Hey, I've uploaded a build which containing loggy service, it will start to record logcat to your /cache partition like this:
/cache/logcat_2021-XX-XX...txt

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
 

Bikkoism

Member
Sep 1, 2018
18
3
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
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.
 

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.

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.
 

Bikkoism

Member
Sep 1, 2018
18
3
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.
 

tarkzim

Recognized Developer
Feb 11, 2015
1,862
3,911
Kaohsiung
Sony Xperia Z
HTC One (m7)
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.
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.
 

Bikkoism

Member
Sep 1, 2018
18
3
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.
 

msi.1362

Senior Member
Jul 19, 2009
96
10
2okPze5.png


Code:
 * 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 11 (R), 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)
  • FM Radio
  • WiFi
  • WiFi Hotspot
  • USB (ADB/MTP/PTP)
  • NFC
  • LED lights
  • Sensors
  • GPS
  • Audio Playback
  • Video Playback
  • Touch screen
  • ExFAT SDCard

What's not working:
  • Camera capture photos (Might be freezing, Use 3rd-party apps)
  • 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 : Open Gapps 11.0 ARM
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.

You're awesome man. Revived this device after a long time
 
Last edited:

Bikkoism

Member
Sep 1, 2018
18
3
You're awesome man. Revived this device after a long time
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.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    The best ROM for my old C6802! Everything perfectly work!
    My 2013 Z Ultra is like new! Thanks a lot! :)
    1
    I can't use of my hotspot. wrong password error on guest device, even with qr_code scanner
    Okay, will be fixed in the next build.
    1
    It's quite stable on mine with both 2.4ghz and 5ghz and the speed is fast.
    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.
    1
    Hello, Thanks for the ROM. My phone feels new. Only issue is cellular network and sdcard are not working
    1
    @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:
  • 3
    2okPze5.png


    Code:
     * 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 11 (R), 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)
    • FM Radio
    • WiFi
    • WiFi Hotspot
    • USB (ADB/MTP/PTP)
    • NFC
    • LED lights
    • Sensors
    • GPS
    • Audio Playback
    • Video Playback
    • Touch screen
    • ExFAT SDCard

    What's not working:
    • 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 : Open Gapps 11.0 ARM
    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.
    2
    The best ROM for my old C6802! Everything perfectly work!
    My 2013 Z Ultra is like new! Thanks a lot! :)
    1
    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.
    1
    1
    @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: