• 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][7.1.2] Unofficial LineageOS 14.1 [26.11.2017]

Da Bozz

Senior Member
Jun 2, 2012
78
61
0
Vienna
Code:
#include 
/*
 * 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.
 *
 * Submitting bug reports on nightly builds is the leading 
 * cause of male impotence.
 */

Introduction:
A friend of mine (Fusionalex) and me were very unsatisfied with the current state of custom ROM development for this - at least concerning the hardware - great device. The maintainer of the official LineageOS has done nothing for months. Fixes for basic issues and features (see our features below) haven't been implemented although the source has been available for years now. For us, switching to one of the numerous bloated Lineage forks (which at least fixed some issues, but brought other unnecessary problems) was no reasonable option. Apart from all the bloat, many of them don't get regular updates anymore, even though major security issues like KRACK or Blueborne have already been fixed in the official Lineage source. There are some great builds out there like CM 13.0 by MrColdbird or 14.1 by OrdenKrieger (from which we took most of the code for the major fixes, a big thank you goes out to you).
So which ROM did we choose? An up-to-date official LineageOS, but extremely bugged? Or a fixed, but incredibly bloated and mostly unstable custom ROM without the latest security patches? We chose to create our own Lineage experience, as close to the official as possible, but with most of the big issues fixed and up to date.
We will continue to update this ROM until LineageOS 15 by OrdenKrieger is stable enough to use as daily drivers.

Features:
  • U-Touch
  • Headset buttons and headset hook working, especially with Xiaomi headsets
  • Ambient Display
  • GLONASS
  • OTA updates
  • some customizations to update the user interface, because apparently Google refuses to push its new design in the AOSP source

We are investigating/working on the some more things, just follow our changelog below!

Screenshots:

Installation instructions:
Files you need:

You can switch from official LineageOS to our ROM by flashing this small zip, which removes the signature check and then our ROM. Do not flash GApps again, this is only possible on a freshly installed ROM! If you want to go back to official, you need to flash this file.

Steps to install:
  1. unlock bootloader
  2. flash TWRP 3.0.0 using fastboot (v3.0.0 is currently the only version with Aroma support, which we need later on)
  3. if you get this error message, you can ignore it: E: unknown command [log] - this happens because the old TWRP version you need to use doesn't support certain logging commands used in updater scripts, this does not affect the integrity of your installation
  4. flash ZUI 2.5.358ST (this flashes the latest available official firmware)
  5. wipe system, cache, data and Dalvik cache
  6. flash our ROM
  7. (optional) flash OpenGApps, you can use Aroma installer (the interface is bugged, but usable and the phone doesn't crash thanks to the TWRP we are using)
  8. flash updated TWRP 3.2.1-0 (has more features and is more up-to-date, Aroma isn't supported, but you don't need that anymore now)

Changelog:

Downloads:

Sources:

Bug reports:
Please do not report non-functional fingerprint sensors. You need to flash the ZUI firmware before, as it includes the updated fingerprint sensor drivers. Take a look at the instructions above please.
Feel free to report any other bugs!

Thanks to:
  • LineageOS team, for maintaining our beloved OS
  • ashwin007, for maintaining our device (in the past?)
  • OrdenKrieger, for being the reason why this device is still alive
  • MrColdbird, for investigating all the big issues

If you want to support the most important developer for the Z 1, consider donating to OrdenKrieger, his PayPal donation mail address is [email protected].

XDA:DevDB Information
Unofficial LineageOS 14.1, ROM for the Lenovo Zuk Z1

Contributors
Da Bozz, Fusionalex
Source Code: https://github.com/DaBozzz

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: ZUI 2.5.358ST firmware
Based On: LineageOS

Version Information
Status: Beta
Current Beta Version: 20171126
Beta Release Date: 2017-11-26

Created 2017-11-22
Last Updated 2017-12-23
 

Attachments

Last edited:

Da Bozz

Senior Member
Jun 2, 2012
78
61
0
Vienna
Announcements

Changelog:
All builds contain the latest LineageOS changes.

Code:
20171126: some UI changes, Ambient display
[LIST]
[*][changed] settings icon updated, to apply this change you have to delete the icon database of your launcher: navigate to [I]/data/data/[Launcher Bundle-ID/Package Name]/databases/[/I], delete [I]app_icons.db[/I] and restart your launcher
[*][changed] updater accent color updated to match recent changes
[*][new] Ambient Display
[*][new] Toast message icons
[/LIST]

20171123: some UI changes
[LIST]
[*][changed] blue accent color
[*][changed] documents icon updated, to apply this change you have to delete the icon database of your launcher: navigate to [I]/data/data/[Launcher Bundle-ID/Package Name]/databases/[/I] and delete [I]app_icons.db[/I] and restart your launcher
[/LIST]

20171122: initial release
[LIST]
[*][new] U-Touch
[*][fixed] headset buttons and headset hook working, especially with Xiaomi headsets
[*][new] GLONASS enabled
[*][changed] custom OTA updates
[*][changed] rounded icons
[*][new] apn: added support for spusu MVNO (Austria)
[/LIST]
 
Last edited:

shubhambhise

Senior Member
Aug 16, 2016
327
1,553
93
Pune
Nice work guys.. keep it up.. hope to see a bug free ROM from you..
Little advice :
Try to make radio images inline with device tree so that users don't need to flash a big chunk os before flashing this zip just only for latest radio images ... :)
 
  • Like
Reactions: Sharma_Ji

Da Bozz

Senior Member
Jun 2, 2012
78
61
0
Vienna
Nice work guys.. keep it up.. hope to see a bug free ROM from you..
Little advice :
Try to make radio images inline with device tree so that users don't need to flash a big chunk os before flashing this zip just only for latest radio images ... :)
Yeah, you're right. I created a flashable ZIP containing only the firmware, now about 33 MBs in size.
 
  • Like
Reactions: Vaibhav Puri

Vaibhav Puri

Senior Member
Dec 12, 2016
140
62
0
New Delhi
Please bring Camera2 API

Hello @Da Bozz Sir, I highly appreciate your great work and I only have two requests.... Please please implement the Camera2 API in your future build...

I know that one has to make changes to the device tree but I don't know how to do it...

(...in the QCamera2 folder by adding HAL3, etc...)????

But please, please implement it, the chipset SD801 does supports it?

And please add Ambient Display Feature...


Please reply sir...
 
Last edited:

shubhambhise

Senior Member
Aug 16, 2016
327
1,553
93
Pune
Hello @Da Bozz Sir, I highly appreciate your great work and I only have two requests.... Please please implement the Camera2 API in your future build...

I know that one has to make changes to the device tree but I don't know how to do it...

(...in the QCamera2 folder by adding HAL3, etc...)

But please, please implement it, the chipset SD801 does supports it

And please add Ambient Display Feature...


Please reply sir...
Its impossible mate... Try and understand... In your listing of msm8974 devices, does any device has HAL3 enabled ?

AFAIK the answer is no... Our chipset is too old to implement it
 

Fusionalex

Senior Member
May 21, 2012
248
67
28
Vienna
Hello @Da Bozz Sir, I highly appreciate your great work and I only have two requests.... Please please implement the Camera2 API in your future build...

I know that one has to make changes to the device tree but I don't know how to do it...

(...in the QCamera2 folder by adding HAL3, etc...)

But please, please implement it, the chipset SD801 does supports it

And please add Ambient Display Feature...


Please reply sir...
Hello,
we are still investigating the possibilities of using the Camera2 API on this phone, but please note that it's highly unlikely that we get things to work flawlessly.

Ambient Display shouldn't be a big problem.
We just have to investigate if it causes any problems.
 

Sharma_Ji

Senior Member
Oct 17, 2016
897
304
63
Bikaner
Hello,
we are still investigating the possibilities of using the Camera2 API on this phone, but please note that it's highly unlikely that we get things to work flawlessly.

Ambient Display shouldn't be a big problem.
We just have to investigate if it causes any problems.
U can take help from @shubhambhise , in his AEX, ambient display works super fine.
 

Vaibhav Puri

Senior Member
Dec 12, 2016
140
62
0
New Delhi
Hello,
we are still investigating the possibilities of using the Camera2 API on this phone, but please note that it's highly unlikely that we get things to work flawlessly.

Ambient Display shouldn't be a big problem.
We just have to investigate if it causes any problems.
Thanks for your reply sir,

And I'm very happy to have great developers like you, who proved to be the best, I've just downloaded the 24th November build, and it's great that finally lineage os has ambient display enabled....

All the credit goes to you (@Fusionalex), @Da Bozz & @OrdenKrieger...

Sir, I would still have the request to test Camera2 API on this phone

You people are our last hope, because editing the Device Tree is beyond my reach, as it requires great dedication, knowledge and ambition, that I don't possess...

Sir, besides Cam2, I have one last request for you, please add three finger screenshot gesture and toast icons to your upcoming builds...

Please sir...

Waiting for your reply...
 
  • Like
Reactions: Fusionalex

Fusionalex

Senior Member
May 21, 2012
248
67
28
Vienna
Can i use Magisk and Substartum.
Hello! Yes, you can use Magisk of course!
I don't know about Substratum sorry, it isn't included in the rom.

---------- Post added at 06:16 PM ---------- Previous post was at 06:15 PM ----------

Thanks for your reply sir,

And I'm very happy to have great developers like you, who proved to be the best, I've just downloaded the 24th November build, and it's great that finally lineage os has ambient display enabled....

All the credit goes to you (@Fusionalex), @Da Bozz & @OrdenKrieger...

Sir, I would still have the request to test Camera2 API on this phone

You people are our last hope, because editing the Device Tree is beyond my reach, as it requires great dedication, knowledge and ambition, that I don't possess...

Sir, besides Cam2, I have one last request for you, please add three finger screenshot gesture and toast icons to your upcoming builds...

Please sir...

Waiting for your reply...
Thanks! I'm glad you like our work!

The ambient display build from 24th has been taken down for now, because the implementation is incomplete, it's missing some settings which we will add later today.
Camera2 API is still work in progress sorry!

About the other 2 things: please describe more precisely what you want and we will consider it ;)
 

Vaibhav Puri

Senior Member
Dec 12, 2016
140
62
0
New Delhi
Thanks for your valuable reply sir,

I was requesting for a popular gesture nowadays called the 3 Finger Swipe Screenshot

In this one, a user has to swipe from the top to the bottom dragging 3 fingers on the screen, this works as a gesture and takes a screenshot, it is very popular in Xiaomi devices (MIUI) and on OnePlus devices....

And now, many custom ROMs like Resurrection Remix, PureNexus, etc. have this feature

Attached picture 1 & 2 show a demo...
-----------------------------------------------------------------------
Second of all is the app icon that will appear on the toast message...

CM12.1 & CM13 stable versions have this feature which works flawlessly, attached picture 3 & 4 demonstrate how...

But in the nougat ROMs, users are provided with a switch to either enable it or to disable it...

But this "switch" has proved to be buggy in every nougat ROM that I have used (picture 5)

To implement this, one has to add this code to Toast.java file in the framework:
(android_frameworks_base/core/java/android/widget/Toast.java)
Code:
ImageView appIcon = (ImageView) mView.findViewById(android.R.id.icon);
                if (appIcon != null) {
                    ActivityManager am =
                            (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
                    if (!am.isPackageInForeground(packageName)) {
                        PackageManager pm = context.getPackageManager();
                        Drawable icon = null;
                        try {
                            icon = pm.getApplicationIcon(packageName);
                        } catch (PackageManager.NameNotFoundException e) {
                            // nothing to do
                        }
                        appIcon.setImageDrawable(icon);
                    }
                }
I ported out this code from RR OS source code, but please consider investigating as I'm not sure if this will work on lineage os...

Link- https://github.com/ResurrectionRemi...ob/nougat/core/java/android/widget/Toast.java

Link to Lineage 14.1 toast.java :
https://github.com/LineageOS/androi...b/cm-14.1/core/java/android/widget/Toast.java

Link to CM13 toast.java :
https://github.com/CyanogenMod/andr...3.0-ZNH5Y/core/java/android/widget/Toast.java


Please have a look at this, whenever you get time.....

I will patiently wait...
 

Attachments

Last edited: