yashsingh1/xdaforums huggingface dataset:
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alberto97:
/*
* 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.
*/

Moto Mods are not supported, fork my sources and add the support yourself if this is so important to you
​

AOSP is Android as Google release without other modifications, similar to Pixel/Nexus stock rom but without gapps.

Features such as Chop Chop, Double Twist, Fingerprint sleep and Ambient display gestures are kept.

Google does not release an AOSP Browser anymore since Marshmallow, thus there isn't a default browser. If I find the time I might port and revamp it in the future.

Working

Audio playback

RIL (Calls, SMS, Data)

Wifi

Bluetooth

Hotspot

Video Playback

LED Notifications

Camera

GPS

NFC

Biometric sensor

Night Mode

Not Working/Bugs

-

Camera2 APIs disclaimer

If you decide to enable Camera2 APIs, be aware that in certain conditions photos and videos quality might be extremely low.

This happens because Motorola on our device officially supports only the old camera apis.

For this reason old camera apis are currently enabled by default.

Preconditions

Unlocked bootloader

TWRP (3.2.1 or newer)

Oreo modem and bootloader

Installation

Place ROM & Gapps in your virtual SD

Reboot in Bootloader Mode

Go to "Recovery" (Vol +/Vol -) and confirm (power)

Wipe system if you're coming from a different Android version

Wipe Data (only if you come from a different ROM/Android version, not required while updating)

Wipe Dalvik cache

Install the ROM zip

DO NOT REBOOT

Install the Gapps zip (optional)

Reboot

Downloads

arm builds

arm64 builds (No more supported)

Sources

Device Tree

Kernel

Sensor HAL

XDA:DevDB Information

Android Open source Project 9, ROM for the Moto Z Play

Contributors

Alberto97

ROM OS Version: 9.x Pie

ROM Kernel: Linux 3.x

Based On: AOSP

Version Information

Status: No Longer Updated

Created 2018-08-15

Last Updated 2020-01-06
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alberto97:
Changelog

09/08/2019

August security patches

Enabled IMS carrier settings in Brazil as per latest stock oreo (you still need to insert yourself the IMS apn)

Android for Work Profiles should work properly now

02/07/2019

July security patches

09/06/2019

June (and May) security patches

Vibration intensity is now adjustable on three levels from accessibility settings

Occasional crashes at boot/bootloops caused by the sensor hal are now fixed

Exposed through sysfs some SD infos (SD status register + speed class + uhs speed grade) and internal storage health

05/04/2019

April security patches

Fixed adopted storage

09/03/2019

March security patches

Device now goes in deep sleep mode when using Always on Display

09/02/2019

February security patches

Device correctly boots when setting pin/password/pattern *at boot* now

19/01/2019

January security patches

Device specific gestures entry points in Settings have been reworked to be consistent with the rest of UI

LZ4 kernel-side improvements from Pixel 2 kernel

Back to Moto's F2FS kernel sources

Video stablization is now working

---- From now on all builds will be 32bit, wipe data is required if you're updating on the top of a 2018 build ----

Old ARM64 builds changelog

28/12/2018

Lags and slowdowns have been fixed

Bootanimation does not crash anymore

22/12/2018

exFAT support for sdcards

Rebased kernel on the top of Moto pie sources

Now using stable f2fs kernel sources instead of Moto's fork

09/12/2018

IMS related stability issues should have been fixed now

07/12/2018

December security patches

Low speaker volume is now fixed

Proprietary stacks have been upgraded to pie

BFQ is the default IO scheduler

Enforcing selinux

Flip to Mute: the phone now vibrates when you mute/unmute it, just like Google's Flip to shhh

10/11/2018

November security patches

IMS is possibly working now

4K video recording is now available on AOSP an third party cameras

1080p and 720p video recording on Moto Camera is now fixed

Camera2 APIs are now working

Prima wlan update to LA.UM.7.6.r1-03400-89xx.0 CAF release

03/10/2018

October security patches

Reboot to recovery is now working

Wifi - BT crash fix from the experimental build included

Moto kernel patches from 28.85-13 release included

Blobs updated to OPNS27.76-12-22-9 moto release

Added some padding between mobile signal groups (before - after)

15/09/2018

September security patches

Flashlight now works in DND mode too

Rebased kernel (again) on the top of qcom pie sources

26/08/2018

Auto brightness fixed

Encryption support implemented

Removed wifi display support (reason here)

Added Google Sans font

MAC address is properly set now

Added missing F2FS moto changes in kernel rebase

15/08/2018

Initial Release
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alberto97:
Do I need to update modem and bootloader?

Download DevCheck or CPU-Z or any other app that let you see your bootloader version.

If the reported version is not 0xC180 or 0xC182, you need to update them.

Anyway before installing the rom TWRP will do this check for you and will stop you if your device is not compatible.

How do I update modem and bootloader?

This does not wipe your data if you closely follow these steps

Download the latest firmware for addison (available here, lolinet.com mirror, moto.netlib.re mirror).

Alternatively I made a package (up here) that only contains the required images if you're short on data/have bad speed.

Once you have made sure adb/fastboot properly detects the device, open a terminal in the folder where you have extracted the firmware and run the following commands:

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Svensemann:
Holy COW! Thanks Alberto! I will try it now! Best thing to do, flashing before sleeping! Saved my evening. I am very glad that you take your time and support our Phone and make us happy! :)
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Milly7:
[MENTION=4480917]Alberto97[/MENTION] which gapps do you recommend?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Good question? Are they build-in like in GSI P builds?

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Svensemann:
When i want to start in the system it asks for a pattern, but i got a code to unlock, What should i do?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] tomy1802:
Thank you [MENTION=4480917]Alberto97[/MENTION] :good:
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Pie gapps unofficial :

https://builds.nezorfla.me/?dir=opengapps/pie/arm64

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] tomy1802:
You have to format data in twrp. Doing that will disable encryption but it will wipe all your internal storage, so make a backup before doing it.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Svensemann:
Yes read it now! Was my fault, sorry! :eek:
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Ok I'm going to flash it now [emoji846] see you soon I hope [emoji39]

So I restoring now my apps from titanium backup, those gapps from my link works but they are must flashed after rom booted at last one time ,so reboot is need after rom flash.Otherwise setup fc constantly.

Magisk 16.7 works [emoji846]

Bluetooth music playback via headphones works perfectly [emoji3]

Even Moto Camera works [emoji41]

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] allrightlite:
Not bad, you are fast :D
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] fooby_sjz:
Good job!!
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] W3ND31:
downloading now, soon i will post some reviews!

ps: AMAZING WORK, ALBERTO! U R A F***ING GENIUS!
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Milly7:
Can't seem to get the ROM to boot with gapps. Even when booting first before installing then. What else can I try?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] tomy1802:
Does your phone ask for a password or it just keeps trying to boot?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Milly7:
It boots without gapps. No password being asked for as I decrypted.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] tomy1802:
Try with these gapps https://xdaforums.com/redmi-note-4/...development/arm64-bitgapps-pie-9-0-0-t3828515
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] tomy1802:
Here are some screenshots of the rom
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] jujulechti:
I works after re flashing the rom, installing substratum 998, uninstalling useless Magisk modules, the only thing is that I had to compile, then when the compilation ends quickly go back to the substratum main menu to prevent the phone from crashing, then after a reboot I was able to enable my overlays :good:
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] AndroidNazi:
I think the room is responsible for camera2 not working. I got substratum working but after compilation all of the themes are disabled by feaukt so I had to go to manager and enable them all, now they work. ?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alberto97:
New build with encryption support and fixed auto brightness released.

If we're lucky enough the issue where connecting a smartwatch breaks wifi was related to a wrong wlan MAC address (that has been fixed) otherwise I need at least a kernel log and a logcat to see what's going on (I suspect that could be a kernel issue).

I'm also afraid I have bad news for miracast/wifi display users. It seems that Google removed its "media side" support in P (commit here). For some reason UI is still there and the same seems to be for connectivity related stuff. I don't know if this is a mistake (but it does not seem so) or if they're just going to reimplement it later (I hope so). The only thing I know is that it can't work in the current state, for this reason I disabled the feature so that nobody is going to face this horrible crash.

Now, this this has already been reported but I want to clarify it. For some absurd reason enabling "do not disturb" breaks flashlight. In particular as soon as you enable this mode, chop chop gesture immediatedly breaks while the flashlight tile might take a while (but you can verify this by enabling "do not disturb" and rebooting, in this case flashlight tile is always broken). I did not have time to check what's happening yet, but it does not seem to be a device specific issue or if it is, it is affecting many other devices too. All this just to say: be careful! ;)

There are less relevant changes too, check them out in the second post and good evening :)
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Camarda:
Unfortunately I still can't use my smartwatch along with wifi (althought I did a dirtyflash over the first version, will clean flash and report). Auto brightness is working well, but Pie's new implementation is kinda weird to me :silly:
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Hey my BT log is in #53, and I also have flashable PiE file for fixing BT and wifi for xiaomi note 4 or 5 maybe you want to look into it?

I will make logs with new build also , today .

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
No, I flashed both dirty and clean and Bt/wifi issue persists.

But auto brightness indeed works :)
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
How to get round icons on stock launcher? I mean, systemwide?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
I flashed fix I mentioned at post #184 --- phone boots and wifi still work ;) I 'll do some tests ................. no luck it don't work .

Logs BT/wifi attached
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] R4SHPro:
For some reason, SD card behaves in a queer way, its ok and not at the same time. Cannot use it, but got a couple of apps installed on it though.

Thank you for the rom!!!
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] AndroidNazi:
Can you take a look at camera2 api maybe? I'm interested in gcam but camera2api is required. Thanks for the update.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] soadcma:
BT is working or not?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Well, you can only set it for launchers. There is no setting to change them e.g. in app settings overview and I don't know if there is even a way after the ROM was build
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
I mean in the aosp launcher config.

In the previous build I was able to change the shape but now the setting is gone.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Oh...I haven't had time to flash it yet. Seems you'll have to wait for the next update
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Alone BT works with wifi on, not. So you can use wifi or BT.

-------------

About Pie itself hmm... Auto brightness work now I wonder if it is really adaptive and learn users preferences? I hate sound control new menu it is stupid it don't adjust ringtone loudness as default ?. Also why whole menu doesn't have dark theme - that is also stupid . I know in AOSP I can't change it. Maybe Google will fix it in 9.1 ;)

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sumitsilwal:
can we install secondary camera app?

I like to install google camera app in this rom. can anyone provide me the supported apk file. or has any one of you tried other camera apk which supports portrait mode and other features. :)
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] soadcma:
So to me I can use this ROM as daily ROM :(
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Well, you can always use the one on the themes and mods sub-forum that you can also use on stock ROM. If you want to use the latest one, you'll have to at least enable camera2 API and install it as system app or probably as priv-app
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
I've looked for some other Pie devices problems with BT - they are common - we are in the middle at last BT works on this rom (maybe it is not kernel problem) . Figer crossed for [MENTION=4480917]Alberto97[/MENTION] if you need more logs I can provide them .
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] joshua764:
Hi, I just installed the last buid and it does not synchronize contacts and the camera does not open! Has someone solved this?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
No problem with camera. Only video in Moto camera not working (it works on aosp camera).

About the contact sync, there are a few messages about that and the way to fix it.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Camarda:
To synchronize contacts, use magisk hide props config, you need to pass safetynet. About camera, you're probably with do not disturb on. For some really weird reason, aosp camera and flashlight won't work while it is on.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] joshua764:
¿Qué versión de magisk es la que viene mejor para arreglar esto? muchas gracias
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Always try latest one first. At the moment it's 16.7
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] joshua764:
Is work contacs, thanks

Enviado desde mi XT1635-02-SS mediante Tapatalk
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
I suspect that in battery saver mode - don't work alarms .... hmm ... need to test it again . But SOT is very good 9h15m is my ;)

Well I got SOT 10h 7m now -- love MZP ;)
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] jujulechti:
Yep battery saver mode is strange for the moment, on stock rom it turns off half of the cores but for the moment it doesn't seems to work
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] joshua764:
Anyone trying to do dual sim with this ROM?

Enviado desde mi XT1635-02-SS mediante Tapatalk
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
It seems not only DNT is crashing the camera, but even having vibration only activated at least let's the camera hang on the grey screen with the camera symbol. Very strange
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
Strange.. I don't have this issue, neither with DNT nor vibration mode.

The camera works normal on both. In fact, I am able to use video in Moto camera, something that I wasn't able on the first build.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Like I said, strange.

Oh, and encryption seems to be not completely working. It might be able to work with already existing encryption, but if you try to encrypt the phone it will just power down at about 50%. Just as a warning
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] fooby_sjz:
Qualcomm MSM8953 Snapdragon 625. The Kernel Linux 4.9.

Is this information useful?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alekyxander Almeida:
on my device did not work, which Gapps did you use?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Useful for what? The SoC is the same on every Z Play. But why is the kernel 4.9? Have I missed something?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] F3lir:
Doing that and nfc gone from phone. Or maybe it happend after flashing rom. But magisk work fine and pass safetynet.

Beside that the sensor button dont block the phone. Its really made me crazy. Anyone have this problem?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] zneto:
I think it's because the option is disabled by default, isn't it ?

There's an option on Settings that allows to activate it:

Settings > System > Gestures > Moto Actions

I tested and it worked
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] hamudistan:
After flashing bare rom (no gapps, no magisk) when rom boots, it shows boot animation, then homescreen for a second and then a notification that it will poweroff. And yes, it shuts down by itsself, no chance do anything. Tried about 20 times, when powering on, your in twrp. Booting system ...see above.

I saw roms crashing, but I never saw a rom shutdown itself
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] fablebreton:
may be I had same problem, fixed by changing the file system of my external sd card.

so If you use an external sd card first try to boot without it to see if it is same problem as me

Btw, flashed yesterday, and except this small issue, no problem so far the rom is ready for daily use for me, really good job Alberto.

I have not the issue that some people reported about Wifi / bluetooth.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] junyamada:
I used Bitgapps for it to work.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] hamudistan:
That realy did the trick. Booted without sdcard and everything just works fine.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] cristianodk:
other mirror the current one is very slow super slow
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Fábio Ferreira:
Did you find a fix for this?

---------- Post added at 11:38 PM ---------- Previous post was at 11:34 PM ----------

Just found the fix. Enable developer options (not 100% sure if needed) change default launcher to quickstep. Long press the screen, select icon shape and change. I was doing this in the pixel launcher and it wasn't working
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] dpavani:
Yes! It works!

Tks
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Fábio Ferreira:
Is there a way to use pixel launcher instead of quickstep) but still retain the overview double pull to go to the app drawer?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] nicollasandsil:
I stay on semi-GSI because I can't use pixel launcher on AOSP 9. Anyone have a way to do that?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Davidsy:
sorry when i tape SU >> su not found

i have now Magisk Manager with magisk17 and magiskhide config module ok.

thank for help
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] vmarhwal97:
Battery Backup

How is the Battery Backup for this ROM
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
My max about 10h SOT , typically 7-8h is easy to get .

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] hamudistan:
Had to travel today and no mobile data. After a little search I found out, I had to add and configure APN manually. After that, it worked.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Alekyxander Almeida:
When Rom will support the official pixel launcher, it has spy functions in them, and please add the option of round icons and support for the ggole app by pulling from the left, so your launcher would look great.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] McFlypants:
I tried the rom and it looked really good. But the quick-settings tiles were too big for the pulldown background. So i had the blue circles over the bright edge, that didn't look good.

I also got wifi-calling working via magisk module, but volte didnt work.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
This isn't the place to make such demands. Besides the fact that it's generally quite rude, this ROM is called "Android open source project" for a reason, since it's basically just what Google published plus drivers and some Motorola gestures.

So neither official pixel launcher nor the Google feed page will ever be supported as long as Google doesn't support that I'm their AOSP code.

So pixel launcher will only work with the new app that's basically the pixel launcher for all devices, and for feed page you can still use dozens of other launchers like Nova.

Round icons on desktop are supported in the other hand. But you'll have to go somewhere in the system settings for that reason, so the only thing worth considering would be to add that setting to the launcher settings you get when you long press on an empty area.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] rezanov25:
Anyone tried to install gcam on this ROM?
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] sebx_g1:
Just in case for everyone --- nandroid backup TWRP of this rom - restoring but then start into bootloader again and again

- only solution is to flash rom again without data wipe , next it says after boot it says lock pattern is wrong - > so locksettigs.db file in data/system must be deleted to boot and run restored rom correctly . (from twrp file manager)

If it could be corrected in the future in rom / twrp recovery it would be nice because newbies users have problems with that .
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] zneto:
I've tried, but isn't working and neither is Camera2API.

I tried to do some research and it looks like the traditional way of activating Camera2API it isn't working on Android Pie.

Maybe that's the reason why Google Camera isn't working, idk
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] Artim_96:
Is the method itself not working or is just the change not sticking? For all I know you could be able to change them with Magisk. Its resetprop feature should already have been rewritten to work with Pie.
[Moto Z Play ROMs, Kernels, Recoveries, & Other Dev] zneto:
I'm not sure, but everytime I've tried to activate Camera2API for a different method, including Camera2API Enabler (magisk module), every single camera app, including stock and Moto Camera crashes and doesn't work until I decided to disable the module. I've also tried flashing a zip with build.prop alteration that enable Camera2API, but experienced the same problems