ROM [DISCONTINUED] [7.1.x] Unofficial LineageOS 14.1 (20171120)

varotone

Well-Known Member
Jan 26, 2017
238
849
93
23
#1
Disclaimer
Code:
/**
*  You flash this ROM at your own risk and responsibility.
*  This ROM is provided without ANY WARRANTY WHATSOEVER, not even the warranty that it works.
*  None of the developers of this ROM will be held accountable for any damages, complaints or thermonuclear war.
**/

Introduction

This is LineageOS 14.1 for our ZUK Z2 (z2_plus, z2131, z2132).

This ROM is mainly an adaptation of fedor917 and davidevinavil's superb work on this device. My sources are continuously being updated to their changes and improved to better work for LineageOS.


Features
  • LineageOS 14.1 with Android 7.1.2, including all features from LineageOS.
  • Always updated to the latest upstream sources and security patches
  • Clean builds without any additional bloatware
  • Updated every 1/2 weeks


Known Issues

You can view a list of the currently open known issues at the Github issue page for the device sources.


Requirements
  • Unlocked bootloader
  • Latest TWRP (Link)
  • Reading this whole post. If you don't read the post, it's important that you read at least the FAQ. If you don't read it and then ask stupid questions, I reserve my right to make fun of you.
  • Your Z2 and your brains :D


Installation instructions
  1. Wipe system, cache and dalvik
  2. If not flashing over a LineageOS 14.1 build, wipe data
  3. Flash the ROM
  4. Flash root if you want (Link)
  5. Flash GAPPS if wanted (Link, select arm64, android 7.1)
  6. Reboot


Downloads and changelogs

PLEASE, DO NOT MIRROR
Latest: Link
All releases: Link


Credits

Thanks to Fedor, Davide, dd3, cosme, SuperLamic, francesco and all other contributors!

Donations

I'm doing this in my free time and to use myself. Furthermore, both davidenavil and fedor917 have done much, much more work than I to make this ROM possible. If you're feeling like donating you should donate to them first.

If after reading this you still want to donate to me, here's a link:

Note that by donating you are confirming that you're not paying for any service whatsoever, but freely giving away your money without any warranty or right to refund. I take donations as a form of saying thanks, not as payment for my work or the works of others.



Dev information

Contributors
varotone, davidevinavil, fedor917, CALLMESuper, SuperLamic, IronColeman, cosmedd, many others
Source Code: https://github.com/z2-dev/

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.18.x
 
Last edited:

varotone

Well-Known Member
Jan 26, 2017
238
849
93
23
#2
FAQ
Does this ROM have OTA updates?
Yep, since release 20170420.

LTE/Calls not working?
Please make sure you're on the latest baseband before reporting these bugs. Also remember that flashing a new baseband will re-lock your bootloader and you'll have to unlock it again. Search the forum for more info.

The U-Touch settings are not in my language?
Some of the U-Touch strings were added by Fedor and others by me. I don't know any languages other than Spanish and English, and there's some Russian strings too.
If you want to translate the settings, send me a DM with this file translated to your language, plus which language it is and from which country. You can also send pull requests - do NOT open issues for this.

What's with the root in this ROM?
LineageOS have dropped prerooted roms in favor of a separate root addon. It is the one linked in the first post. This is managed in "Developer options" after you've flashed it.
You can also flash other root options (SuperSU, Magisk, etc.) if you prefer.

How can I contribute to this ROM?
You can contribute to my sources on GitHub by doing pull requests or issues. If you're serious about it, contact me and we can setup an organization.
You can also contributing by reporting bugs and errors, always accompanied by a logcat and a sufficient description of the bug. Please check it's not a known bug first.

Can you add PIE controls / Omniswitch / this app...?
No. I only build clean, bloatware-free LineageOS ROMs, without any extras.

You're running late on your updates!
This is not my job, and I actually have one. I will try to update frequently but I cannot promise anything.

How can I talk to you?
You can find me sometimes on ##z2_plus-dev at irc.freenode.net. You can also post your doubts or suggestions in this thread or the dedicated DevDB pages.
I will not answer any DMs or emails for bugs, feature requests or technical assistance. That's what the forum is for.

Reporting bugs
Should I report this bug?

If you find a bug you want to report, please check these things first:
  • It's actually a bug:
    Missing functionalities generally are not bugs. Bugs are things that are there, are supposed to work, but don't work. For example: camera crashes are bugs, but "there isn't a navbar option" isn't.
    As stated in the FAQ, I only build clean LineageOS, so only things in base LineageOS will make it to the rom.
    If some functionality is missing, wait until LineageOS includes it, do not ask me. This includes: navbar options, more quicksettings tiles, theme engine, etc.
  • It's not already been reported:
    Check the "Known Issues" list in the first post, and see if your bug is there before reporting it.
  • It's related to the ROM itself:
    I will only accept bug reports related to the ROM. That means I won't accept bugs related to DivineBeats, Xposed, Atmos or any other addons. Those addons have their own support threads in xda or similar forums.

How do I report this bug?
Once you confirm you've got a bug and it's not been reported yet, you shall do the following:
  1. Capture a log.
    There are plenty of tutorials on using logcat on the internet. You should reboot the phone, reproduce the bug and capture the logcat then. Do not send me logcats when the phone it's been on for hours.
  2. Send the bug report.
    Either make a post here, or open an issue in the github page. Make sure to write a sufficient description of the bug and instructions to reproduce it, and attach (attach, NOT paste) the relevant logs.
Bonus - dmesg: There's another type of log apart from logcat which is also useful called the dmesg. Again, there are tutorials on the internet on how to capture one. If you can also provide a dmesg, besides the logcat, that would be great! But remember, logcat is essential, I can't do anything without a logcat.

Bonus 2 - ramoops: If the phone hangs (black screen with led) you can get the logs by rebooting and getting the console ramoops:
Code:
adb shell cat /sys/fs/pstore/console-ramoops > ramoops.txt
Run this code on your computer after a reboot to get your ramoops log.

My bug is already reported, how can I help?
You can read the relevant GitHub issue and provide any missing relevant information via comments. If you see a bug with the needs-logs tag, that means no logs are available, so you can contribute by providing them.
NOTE: "I also have this bug" is NOT relevant information if the bug is already verified. Such comments will be deleted, and their author shamed. You've been warned.
 
Last edited:
Jan 29, 2017
38
4
8
22
#4
You say, i can dirty flash (after wipe of system, cache and dalvik) over fedors lineage? Would be great!
Rom supports f2fs? Encryption working?
Thanks!
 
Last edited:

Bodygard

Active Member
Dec 12, 2016
185
101
43
#6
Great work, congratulations!

A quick question, i assume F2Fs is working right? If yes, gonna try it right away.
 

varotone

Well-Known Member
Jan 26, 2017
238
849
93
23
#7
You say, i can dirty flash (after wipe of system, cache and dalvik) over fedors lineage? Would be great!
Rom supports fs2fs? Encryption workling?
Thanks!
You should be able to dirty flash, but keep a backup just in case.
Thank you @varotone

Donating to you as we speak, I really appreciate devs who support this device. Although some other builds seem to have been abandoned, hope this one is different.
Thank you! :) I will try to keep the ROM updated at least for as long as I have the device. Its planned life is about 1 year and a half
 
Jan 11, 2017
88
43
18
#8
Amazing work @varotone, I will try it soon.

Kernel is the same used by davidevinavil on the lastest DU and RR?

I'm on "baseband_2.0.079". Is it ok, or do you have any suggestions about what firmware is better?

The root file don't look the same as SuperSU? What are the differences, and what do you recommend?

Thanks! : )
 

varotone

Well-Known Member
Jan 26, 2017
238
849
93
23
#9
Amazing work @varotone, I will try soon.

Kernel is the same used by davidevinavil on the lastest DU and RR?

I'm on "baseband_2.0.079". Is it ok, or do you have any suggestions about what firmware is better?

The root file don't look the same as SuperSU? What are the differences, and what do you recommend?

Thanks! : )
Kernel is davide's n7x branch at the moment.

I'm using baseband from the latest official ZUI, working fine.
Edit: turns out I don't have the latest baseband, but it should work fine.

The root file isn't the same as SuperSU, it is the official opensource su addon from LineageOS. You can flash SuperSU or any other root if you prefer.
 
Last edited:
Jan 11, 2017
88
43
18
#13
I've got two files that I can flash with TWRP. Non of them are that version.

If someone thinks about changing firmware, you can brick you device - it can lock the bootloader!

"baseband_2.0.079" (I'm currently using this one)



"firmware_2.5ST"



Which is the best? I guess "baseband_2.0.079" , but not sure. I don't need to change anything, or be on the same firmware as you, @varotone, right?
 

varotone

Well-Known Member
Jan 26, 2017
238
849
93
23
#14
I've got two files that I can flash with TWRP. Non of them are that version.

If someone thinks about changing firmware, you can brick you device - it can lock the bootloader!

"baseband_2.0.079" (I'm currently using this one)



"firmware_2.5ST"



Which is the best? I guess "baseband_2.0.079" , but not sure. I don't need to change anything, or be on the same firmware as you, @varotone, right?
You shouldn't need to change your baseband version, as long as it works currently, it should work in LOS.