• 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

[UNOFFICIAL][16.0][TREBLE] LineageOS for Motorola Moto Z2 Play (albus)

EmaMaker

Member
Nov 21, 2016
32
19
8

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

Code:
#include <std_disclaimer.h>

/*
* 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.
*
*/
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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

Known issues:
  • Moto Mods Projector and Hasselblad Camera are unknown to work.
  • Moto Mods with Battery do not report the battery
  • VoLTE and VoWIFI not working

Moto Mods:
  • Moto Mods Projector and Hasselblad Camera are unknown to work.
  • All the other Moto Mods work, but Battery Mods do not report the percentage in the status bar

Instructions:
Always have a backup of the EFS partition made with TWRP stored somewhere, as you may lose IMEI. Restore it if you get 0 as IMEI when booted into the ROM.
Before installing, make sure oreo was the last stock ROM you installed. See notes below if you come from Stock Pie
  • Download Official TWRP from twrp.me
  • Flash the TWRP via fastboot
  • Enter TWRP, go to wipe menu and Wipe Dalvik, Cache, Data, System and Internal Storage.
  • In TWRP Wipe Menu, do Format Data, then reboot into recovery
  • Flash the latest build
  • Flash eventual GApps and SU addon
  • Reboot

Downloads:

Notes
TWRP

If the touchscreen doesn't work when rebooting into recovery, press the power button twice to turn off and on the screen. The touchscreen will now work just fine.

GSIs
This LineageOS build ships with Project Treble compatibility (lite VNDK), meaning you can flash a GSI as System Image from TWRP. Please don't report GSI bugs here, report them instead to the GSI's maker. A Format Data from TWRP is required after flashing a GSI in order to avoid problems.
Technical details on our Treble implementation:
This device is a community-treble device, meaning other devs before us made it compatible with Project Treble (lite VNDK), using the oem partion as a vendor. GSIs still have some problems regarding cpu frequency scaling and camera. You have been warned.
.

Coming from stock pie?
For the sake of simplicity, I said that coming from stock oreo was needed. In reality you just need to flash the oreo modem files. There's a script that does exactly that, made by @juniorpassos: https://mega.nz/file/IRxjGDjL#vkdvh4JcMy-LuWgQz4rHhgpWV80029X4ql0_zcMpVug. The script will erase your userdata and cache.
Before starting this script, make sure you have a backup of your EFS partition stored somewhere safe, outside phone's internal storage. After the backup is done, you can reboot your phone into fastboot mode and start the script. Now reboot into TWRP, go into "Wipe" menu and Format Data. Now you can reboot into the ROM. If you get 0 as IMEI, or any other problem related to RIL, go into TWRP and restore the EFS backup made previously.

Wanna help?
If you find a problem or a bug, please share a logcat with us, alongside an explanation of the problem and steps to reproduce. We won't accept bug reporting without a logcat. Collect logcat with:
Code:
adb logcat -b all > logcat.txt
You can also join our Telegram Channels:
Global: https://t.me/z2play
Ex KVT group: https://t.me/Z2PlayGSI
There's a guide made by a user to install the ROM, written in both Portuguese and English, here it is: https://telegra.ph/Como-instalar-LOs-160-How-to-install-LOs-160-08-04

Thanks
Many thanks to @marcost22 for the pair-working we are doing in this adventure, to @davidsonsjesus for his work on KVT, to @jeferson1979 for his help and teaching. Thanks to all the testers that have helped us testing this ROM.

Sources
Device tree
Vendor tree
Kernel

XDA:DevDB Information
LineageOS 16.0 Motorola Moto Z2 Play (albus), ROM for the Moto Z2 Play

Contributors
EmaMaker, marcost22, rahulsnair, @erfanoabdi @vache @kubersharma @jeferson1979
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: ALBUS_OPS27.76-12-25_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC

Version Information
Status:
Stable
Current Stable Version: 16.0
Stable Release Date: 2020-09-27

Created 2020-07-31
Last Updated 2020-09-27
 

Attachments

Last edited:

meelten

Member
Nov 21, 2018
35
10
8
So how's battery? I'm not sure what does it mean:
CPU governorns have some issues. Conservative is recommended for an optimal battery life
Also if I run Oreo 8.1 ROM currently and never had Pie installed do I need anything to do before flashing this? Like upgrading firmware or something?
 
Last edited:
  • Like
Reactions: jeferson1979

EmaMaker

Member
Nov 21, 2016
32
19
8
So how's battery? I'm not sure what does it mean:


Also if I run Oreo 8.1 ROM currently and never had Pie installed do I need anything to do before flashing this? Like upgrading firmware or something?
Regarding battery: it's quite good, it can get you through the day without any flaws. Since I'm doing frequent tests and I often hook up the phone to the computer, I don't have good screenshots to show you. Will edit the post eventually when I get some. In alternative, you can join the telegram groups and ask someone. We worked on the cpu scaling and governorns and an update will come for it soon.
Regarding firmware: no, you don't have need to update firmware, and updating it may actually cause some problems with RIL. It's perfect if you stay on the oreo firmware.
 
  • Like
Reactions: meelten

EmaMaker

Member
Nov 21, 2016
32
19
8
Changelog
2020-12-08: Cleanup and uprev kernel (3.18.113->3
18.116). Update camera blobs: fix Electronic Image Stabilization, bring back laser focus sensor, fix recording in WhatsApp., fix issues with video recording in Snap cam Fix encryption and decryption (official twrp over at twrp.me is needed for this to fully work). SeLinux is now Enforcing. Update VNDK to full enforcement. Update graphics props. This is the final build for Android Pie 9.0. We will will soon start the Q bringup, and will not be building any Pie ROM anymore, unless some critical bug is discovered: https://www.androidfilehost.com/?fid=17248734326145679504
2020-09-27: Updated Moto Mods blobs. Updated Audio and BT Blobs. Updated media profiles. Thanks to @marcost22: https://www.androidfilehost.com/?fid=8889791610682947394
2020-09-10: Updated Radio blobs and radio init scripts. Workaround for Ambient Display in Q GSIs. Remove batt_health (has been discovered useless): https://www.androidfilehost.com/?fid=8889791610682934965
2020-08-03: Fixed CPU governors. Updated init scripts. New kernel, updated to 3.18.113. Batt_health is back. Fixed offline charge. Updated perf and IOP blobs : https://www.androidfilehost.com/?fid=8889791610682905855
2020-07-29: First beta release: https://www.androidfilehost.com/?fid=8889791610682905855
 
Last edited:

meelten

Member
Nov 21, 2018
35
10
8
I'm tempted to give it a try and probably will next weekend but as Z2P is my main phone I want to ask few things:

1. Do fingerprint gestures work?
2. Does notification LED work?
3. Does "active display" (showing notifications and time with locked screen) work?
4. Have you tried it with Magisk? I'd prefer Magisk rather than Addon SU.
 
Last edited:

EmaMaker

Member
Nov 21, 2016
32
19
8
I'm tempted to give it a try and probably will next weekend but as Z2P is my main phone I want to ask few things:

1. Do fingerprint gestures work?
2. Does notification LED work?
3. Does "active display" (showing notifications and time with locked screen) work?
4. Have you tried it with Magisk? I'd prefer Magisk rather than Addon SU.
1. Work
2. Work
3. The feature you are speaking about is Ambient Display, and yes, that works
4. Yes, magisk works
 

meelten

Member
Nov 21, 2018
35
10
8
I tried today. ROM installs and boots fine but my SIM card is not detected at all (I live in Europe if it matters).

Also, encryption doesn't work. Every attempt to encrypt phone resulted in bootloop.

Can't say much more because without SIM I can't use it and had return to LOS 15.1


UPDATE: I tried restoring ESF partition as well as flashed stock modem as stated in #1 post but with no luck. Even tried install 15.1 first and then flash 16.0 on top of it (without full wipe/format) but it didn't help either. SIM is just not detected.
 
Last edited:
  • Like
Reactions: Klen2 and ozlacs

fenrir_asgardswolf

New member
Aug 8, 2020
1
0
0
On-Screen Navigation Bar

I upgraded from the old Official Lineage 15.1 today. I am having a problem getting the navigation bar to show up (Back, Home, App). I search the settings and it hits "Enable on-screen nav bar" in the "Buttons" sub-menu, but when I go there, there is no option shown
 

Nahuel123

New member
Sep 1, 2017
1
0
0
Hi. I installed this rom a few days ago from Havoc based in 8.0 and I had to flash modem cause my imei was 0 in lineageos, after this i have signal normally but can't get H+ or 4G, only H. Another problem is that my whatsapp voices notes are recorded with low volume. All the other things work fine, battery, performance, active display, fingerprint and motorola gestures, all it's ok. Great rom!

I would like that the power off menu and quick settings can't be disables in the lockscreen. In third world it would be usefull haha.
 

marcost22

Member
Jun 26, 2019
36
0
6
Hi. I installed this rom a few days ago from Havoc based in 8.0 and I had to flash modem cause my imei was 0 in lineageos, after this i have signal normally but can't get H+ or 4G, only H. Another problem is that my whatsapp voices notes are recorded with low volume. All the other things work fine, battery, performance, active display, fingerprint and motorola gestures, all it's ok. Great rom!

I would like that the power off menu and quick settings can't be disables in the lockscreen. In third world it would be usefull haha.
Yeah, first issue is modem, second is audio; both things were updated and are now in testing. So keep an eye out!
And lastly, i dont think that's possible, at least on our side, it seems to be Lineage controlled

---------- Post added at 11:05 PM ---------- Previous post was at 11:02 PM ----------

Did you flash this modem linked in first post? I wonder what your "fastboot getvar all" shows because mine says "baseband: not found". Which is strange to me because on Oreo roms everything works. I don't know if I flashed that modem correctly.
There were some issues on modem on the latest release, mostly location-related; so keep an eye out for the update!
 

Rigulel

New member
Mar 21, 2017
2
0
0
How to get an on screen navigation bar

How to get an on screen navigation bar:
1. Root phone (I used the SU addon in the OP)
2. Enable navbar with the app "Navigation bar remover/activator (root)" by Conena
3. If you want to customize the navbar use "Custom Navigation Bar" by paphonb (you can reorder buttons freely in "Expirimetal tweaks")

---------- Post added at 09:55 AM ---------- Previous post was at 09:54 AM ----------

Does anyone know how i can disable the fingerprint gestures ?
 

marcost22

Member
Jun 26, 2019
36
0
6
How to get an on screen navigation bar:
1. Root phone (I used the SU addon in the OP)
2. Enable navbar with the app "Navigation bar remover/activator (root)" by Conena
3. If you want to customize the navbar use "Custom Navigation Bar" by paphonb (you can reorder buttons freely in "Expirimetal tweaks")

---------- Post added at 09:55 AM ---------- Previous post was at 09:54 AM ----------

Does anyone know how i can disable the fingerprint gestures ?
Use adb shell as su and run setprop qemu.hw.mainkeys 0
 

voxit

Member
Mar 30, 2016
26
8
0
Hey there, I was about to tell a friend to give a try to this ROM instead of phhusson's AOSP v222 to see if by any chances it could solve his trouble with NFC not working.

Therefore can we have any feedback from people here about this? So does the NFC work?

Thanks by advance :)

And thanks @EmaMaker and others for this work!
 

EmaMaker

Member
Nov 21, 2016
32
19
8
Hey there, I was about to tell a friend to give a try to this ROM instead of phhusson's AOSP v222 to see if by any chances it could solve his trouble with NFC not working.

Therefore can we have any feedback from people here about this? So does the NFC work?

Thanks by advance :)

And thanks @EmaMaker and others for this work!
NFC it's not reported in the Know Issues section, hence it's a working feature
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone