• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][FINAL][9.0] LineageOS 16.0 for Xperia ZL

CyberWalkMaN

Member
Aug 22, 2013
49
228
33
Chelyabinsk
Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am 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 me for messing up your device, I will laugh at you.
 */


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

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org


Downloads Links
LineageOS 16.0 (Unlocked Bootloader) :
Test builds : https://drive.google.com/open?id=0B6bfB052NYwQcFNOWkx5STNVYWs

Google Applications (optional) :
OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 9.0, Nano or Pico)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
LineageOS clean install :
- (Optional) Flash the boot.img kernel from the ROM zip with Fastboot or Flashtool
- (Optional) Wipe the data & cache (Backup to make sure not to loose data)
- Flash the LineageOS ROM zip from the Recovery
- (Optional) Flash the GApps to have the Google Applications
- (Optional) Every additional zip you want to flash
- Reboot

LineageOS update / upgrade :
- (Information) Don't wipe anything unless you want to
- (CM / UNOFFICIAL) Nothing to wipe when switching
- (FUTURE RELEASES) Might need clean, informations will be updated
- Flash the latest LineageOS ROM zip from the Recovery
- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes
- (Optional) Every additional zip you want to flash
- Reboot

LineageOS addonsu for root access :
- (Information) Read the Root section of the Q&A thread
- (Download) Download the addonsu for arm : LineageOS Downloads / Extras
- (Optional) Flash the zip on a working Lineage installation (once)
- (Information) Upon ROM updates, the addonsu is preserved
- Reboot

Issues and reports
- Report issues only if you are using the ROM kernel
- If an additional mod is installed, make sure it's unrelated, and mention it
- Make sure the issue wasn't discussed earlier in the threads
- Share a log of the error with CatLog for example

About LineageOS Legal : http://lineageos.org/legal/

The LineageOS team would like to thank everyone involved
in helping with testing, coding, debugging & documenting! Enjoy!


Also thanks to :
- The LineageOS Team
- The CyanogenMod Team
- Everyone involved in working and testing​

XDA:DevDB Information
[ROM][FINAL][9.0] LineageOS 16.0 for Xperia ZL, ROM for the Sony Xperia ZL

Contributors
CyberWalkMaN, AdrianDC
Source Code: https://github.com/fusion3-common

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.4.x

Version Information
Status: Stable

Created 2019-04-22
Last Updated 2019-10-20
 
Last edited:

CyberWalkMaN

Member
Aug 22, 2013
49
228
33
Chelyabinsk
FEATURES AND ISSUES
Code:
- Boot : Ok
- GApps : OpenGApps Nano Ok
- FOTA Recovery : Ok (see below)
- WiFi : Ok (real SONY MAC address)
- Bluetooth : Ok (real SONY MAC address)
- WiFi Hotspot : Ok (2.4GHz only)
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- AOSP sensors : Ok
- FM Radio : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & external audio : Ok
- Bluetooth audio : Ok
- NFC : Ok
- Kernel : Ok
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok
- Offline Charging : Ok
- SEPolicies : Work In Progress
 
Last edited:

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
Switch from nkomarn Lineage 16.O build. Camera works okay, so it was great. Only problem is flashing twrp, cannot successful flash using the app. Always go back to lineage recovery even light indicator goes purple to orange. Any workaround?

Also power off function not work, it rebooted. Anyways, it was great and thank you for continue work on this. Cheers! ?

Sent from my Sony Xperia ZL using XDA Labs
 

Attachments

Django_Boy

Member
Apr 6, 2018
29
7
3
Just started testing this Rom, my feedback for now is:

Autorotate is not working.
Can't change any sound (calls, SMS, etc)- (APP crashes).
I've experienced some random reboots in the first few hours after flashing, it seems stable now.
Advanced reboot is not working properly.

Magisk is working fine.
Nova Launcher is working fine.

I'll continue to test...
Hope my feedback can help make this better.
 

theman0011

New member
Mar 24, 2017
1
0
0
hi, many thanks to develper! smooth running even such older device! the only issue is battery indicator always start from 12% but I am not sure if it is common issue.
 

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
Flash the latest build 0803, Sensors are now working. Auto Rotate is working, since sensor driver is there. FM Working properly also.

Still have issue on Turn Off, it keep restarting.
Cannot able to flash Twrp Recovery, still booting to lineage recovery.

But still, thank you for your time on updating this Rom :D

Sent from my Sony Xperia ZL using XDA Labs
 

Attachments

Last edited:
  • Like
Reactions: Django_Boy

Sonicjuninho

Member
Jun 26, 2013
15
2
0
Fiz uma instalação limpa do zero. Há 2 dias estou usando e sem bugs, ou reinicialização inesperada. Ótimo trabalho e muito obrigado por isso =D
 

CyberWalkMaN

Member
Aug 22, 2013
49
228
33
Chelyabinsk
New build uploaded (lineage-16.0-20190824-UNOFFICIAL-odin.zip), major changes since May:
  • All sensors works now (Thanks to @Chippa_a)
  • Manual network selection fixed
  • Telegram calls fixed (Need to confirm)
  • FM Radio fixed
  • Small gps improvement
  • Performance improvement
  • Updated kernel (fixed bug with rebooting instead of shutting down and some other bugs), also we now use binder and lmk from AOSP 3.18 kernel :cool:
  • SELinux denials resolved at 90%
  • Magisk issue fixed
  • Android 9.0.0_r46 (August security patches)
Addonsu is already included, you can enable root access in the developer settings :)
 
Last edited:

casouzaj

Elite Member
Oct 13, 2006
2,216
569
113
57
Maringá, PR
New build uploaded (lineage-16.0-20190824-UNOFFICIAL-odin.zip), major changes since May:
  • All sensors works now (Thanks to @Chippa_a)
  • Manual network selection fixed
  • Telegram calls fixed (Need to confirm)
  • FM Radio fixed
  • Small gps improvement
  • Performance improvement
  • Updated kernel (fixed bug with rebooting instead of shutting down and some other bugs), also we now use binder and lmk from AOSP 3.18 kernel :cool:
  • SELinux denials resolved at 90%
  • Magisk issue fixed
  • Android 9.0.0_r46 (August security patches)
Addonsu is already included, you can enable root access in the developer settings :)
Thank you for the update! I dirty-flashed it over the 0803 build. You see, I run the stable Magisk v19.3, which, along with some modules, then allowed me to pass both Safetynet tests. Not anymore. As you stated that Selinux was almost ready, I had uninstalled ibuprophen's The SELinux Switch app prior to flashing the new build. I was using it in order to set Selinux to enforcing. As Selinux is still off in the new build, I tried to install the app back, but the new build doesn't allow me to do it. Even the zip, although correctly installed in recovery, after booted up, no SELinux Swich app is in the drawer, because directory /data/app/com.ibuprophen.selinux-1 has been deleted during the boot up process! What's happening?

EDIT: I decided to do a clean install. Everything is back to normal! Thanks, anyway!
 
Last edited:

casouzaj

Elite Member
Oct 13, 2006
2,216
569
113
57
Maringá, PR
Pixel Launcher

Thanks again for your hard work in bringing Android 9 to this very old, but still powerful, device of ours.

Well, I prefer Pixel Launcher over the embedded home app, but it keeps crashing all the time upon being selected as the default home app. For those who also plan to use Pixel Launcher, edit /data/system/packages.xml, and add up the following entries, under <package name="com.google.android.apps.nexuslauncher"> and <perms>:

Code:
<item name="android.permission.STATUS_BAR" granted="true" flags="0" />
<item name="android.permission.MANAGE_ACTIVITY_STACKS" granted="true" flags="0" />
Could you make such changes in your next build?
 
  • Like
Reactions: M pigoli

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
After flashing the 0824 build, i experienced much better scrolling experience, performance improved a lot.

Also Twrp works now and turn off function work properly, no need to reboot and press volume down go to stock recovery just to turn this off. So thank you for continue working on this :D

Sent from my Sony Xperia ZL using XDA Labs
 
  • Like
Reactions: Django_Boy

CyberWalkMaN

Member
Aug 22, 2013
49
228
33
Chelyabinsk
New build uploaded (lineage-16.0-20191019-UNOFFICIAL-odin.zip), major changes since August:
  • Fast battery drain fixed (for 15.1 nightlies too)
  • SELinux denials resolved at 99% (You can make builds in enforced SELinux, but I would recommend continuing to build them in permissive). Current build in permissive SELinux.
  • Oktober security patches
  • Minor performance and stability improvements (for 15.1 nightlies too)
  • Added missing props for gps and Miracast.
  • Build status - Stable.
Addonsu is already included, you can enable root access in the developer settings :)

This is where my support for android 8-9 for Z/ZL/ZR/Tablet Z ends, this build will be the last. All the changes made in the sources are already available on github.com/LineageOS, if someone wants to continue supporting and get the official LineageOS 16.0 - write to PM, I will explain in detail what remains to be done in the sources. Also, if someone wants to try to build other roms for our devices based on android 8-9 from the available sources - try to choose CAF-based roms (for example, AOKP, LineageOS, Ressurection Remix, AICP, etc.), then with 95% chance you will build and run the rom. Our sources are based on CAF, and for the build of roms based on AOSP, additional fixes are required, plus there will be problems with sound anyway.

I also want to note that I made a most part of the changes made in 16.0 to the official 15.1 nightlies, which should significantly improve their stability and performance :)
 

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
New build uploaded (lineage-16.0-20191019-UNOFFICIAL-odin.zip), major changes since August:
  • Fast battery drain fixed (for 15.1 nightlies too)
  • SELinux denials resolved at 99% (You can make builds in enforced SELinux, but I would recommend continuing to build them in permissive). Current build in permissive SELinux.
  • Oktober security patches
  • Minor performance and stability improvements (for 15.1 nightlies too)
  • Added missing props for gps and Miracast.
  • Build status - Stable.
Addonsu is already included, you can enable root access in the developer settings :)

This is where my support for android 8-9 for Z/ZL/ZR/Tablet Z ends, this build will be the last. All the changes made in the sources are already available on github.com/LineageOS, if someone wants to continue supporting and get the official LineageOS 16.0 - write to PM, I will explain in detail what remains to be done in the sources. Also, if someone wants to try to build other roms for our devices based on android 8-9 from the available sources - try to choose CAF-based roms (for example, AOKP, LineageOS, Ressurection Remix, AICP, etc.), then with 95% chance you will build and run the rom. Our sources are based on CAF, and for the build of roms based on AOSP, additional fixes are required, plus there will be problems with sound anyway.

I also want to note that I made a most part of the changes made in 16.0 to the official 15.1 nightlies, which should significantly improve their stability and performance :)
Thanks for your hardwork and making a stable build, but i encounter issue Installing it.

Clean Flash it including system, but result in Rebooting to twrp, tried to flash previous Build then Update, stuck to Boot Animation and Reboot to Twrp. I'm quite sure the file is not corrupted, downloaded it two times. Sadly it was the Final build but hoping you will address and fix it. Thanks

[Updated]
 
Last edited:

luisx010

Member
Apr 1, 2015
7
0
0
Hello!!

Thanks for your hardwork and making a stable build, but i encounter issue Installing it.

Clean Flash it including system, but result in Rebooting to twrp, tried to flash previous Build then Update, stuck to Boot Animation and Reboot to Twrp. I'm quite sure the file is not corrupted, downloaded it two times. Sadly it was the Final build but hoping you will address and fix it. Thanks

[Updated]
Could you try the rom? or you can't intall it anyway? I gonna try it in the xperia zl that i will give to my father, but i can't get some error, He gona kill me! Actually , his ZL is running august version.