yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] patomovil:
Hi. I have a Moto X4 that I haven't used in a while, and I think it has LineageOS 18.1 on it. I have forgotten the passphrase to unlock the device. I have tried many options that appear when I boot with POWER + VOLUME-DOWN. I have tried connecting USB to my computer, but `adb` gives no results. I have tried `fastboot` to TWRP recovery, with no success. Maybe I'm making an error in the process. Please, any help to make this phone usable again would be a great help. I'm okay with wiping the data -- there's nothing of interest on the phone. I just want to erase it, update it, and use it.

The info on the POWER + VOLUME-DOWN screen is this:

AP Fastboot Flash Mode (Secure)
BL: MBM-3.0-payton_fi-eca8056931-200924
Baseband: M660_7048.65.01.101R PAYTON_NA_CUST
Product/Variant: payton XT1900-1 64GB P4
Serial Number: <filtered for privacy>
CPU: SDM630 1.0 (2)
eMMC: <blah blah>
DRAM: <blah blah>
Console [NULL]: null
Tools Mode Config: DISABLED
Power OK
oem_locked
Connect USB Data Cable
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jtnc:
I think you have your answer there, the boot loader is still locked. You need to unlock that. You can follow the instructions on the LineageOS install page (Payton Install). note that step 4 of unlocking the bootloader requires you to go to a Motorola site link from that page.

If you really don't care about data or anything I'd just follow the lineage OS install steps for 19.1.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] patomovil:
Step 3 of the LineageOS 19.1 installation instructions:

> 3. Enable USB debugging on your device.

I cannot enable USB debugging without unlocking the device. Therefore, I cannot execute `adb` commands. I tried `fastboot` to boot TWRP, but that failed.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] patomovil:
I did a hard reset following these instructions: https://www.alphr.com/google-pixel-2-2-xl-forgot-pin-password-what-to-do/

Finally I know how to access the menu in recovery mode! Here I come, LineageOS 19.1!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] warhead1721972:
Hi, thanks for replying back. Yes, i do wipe dalvik cache, data and system before sideloading LOS. What i noticed is that LOS boots up normally if i dont flash GApps at all. Normally you flash GApps after rebooting the recovery to slot B right? If you just skip installing GApps completely, LOS works fine. But i really need some basic Playstore functionality, or i wd have used a ungoogled android anytime. Sometime back, i did flash LOS in my old Lenovo K8 Note with GApps, and it worked fine.

Just temporarily flashed ViperOS with GApps, to see if something is wrong with my handset, ViperOS works just fine. Why cant I install LOS?

Thanks for taking your time and helping me out, really appreciate the hard work yall do.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] @vrishab:
if you get stuck in bootloop, reboot to bootloader and type in cmd/terminal:

fastboot -w

and reboot
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
@warhead1721972 I just flashed to boot the "lineage-18.1-20210211-UNOFFICIAL-payton-boot.img" and then factory reset and adb sideloaded the "copy-partitions-20200903_1329.zip" and then adb sideloaded "lineage-18.1-20210211-UNOFFICIAL-payton.zip" and then reboot to recovery and sideloaded "MindTheGapps-11.0.0-arm64-20210220_140101.zip" and I was able to sign into my Google account and finished setup and it's syncing my Google account without any bootloops.

I would recommend starting from scratch in your case though, flash a stock fbrom of your choice that is Android 9.0 (pie) as older device firmware is not supported. After that? Please try using Lineage Recovery instead of TWRP just in case for some reason that won't work for you and follow the same method I just did. (y)

Before I wanted to make recovery flashable device firmware zips but I totally bricked my payton and it was a pain to try and get blankflash going... so I only recommend fbrom flashes to ensure the device firmware is up to date
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] warhead1721972:
ive never used Lineage Recovery, where do u download it? and how to install?

What is "lineage-18.1-20210211-UNOFFICIAL-payton-boot.img "? How to install this? By sideloading or flashing thru TWRP?

Edit: I just did "fastboot boot lineage-18.1-20210211-UNOFFICIAL-payton-boot.img" and now its stuck at the moto bootlogo image.

I cant switch it off bcz believe it or not, my power button is bust. It does not work. What should i do now?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
@warhead1721972 hmm yikes! Broken power button definitely makes this more difficult... If it's stuck at the logo and your power button doesn't work? Your only real choice is to wait for the power to drain and then before you plug it in to charge then you must press and hold the volume down button so once it charges it'll just boot to bootloader
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] warhead1721972:
Yup, just did that and now its in bootloader mode. Actually this happened many times before in a lot of different circumstances. Anyways, how to install the Lineage OS recovery? And how do i flash that "lineage-18.1-20210211-UNOFFICIAL-payton-boot.img "? Without having stuck in a bootloop ofc.

P.S- Thanks for not giving up on me yet :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
I made a whatsapp call. And the quality was better than in lineagoes 17.1. At first i heard my voice twice, but only takes 5 seconds. Then it was ok. Here is the logcat.

Edit: Noticed screen flickering when i write only on plus messenger. I am on stock kernel and not installed magisk or any other mods. Also tried with gboard keyboard app, same issue. When I write on other apss, there is not such issues.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
@warhead1721972 , well you can do fastboot flash boot for that LOS recovery boot.img and then reboot to recovery, but fastboot flash boot should have worked which is odd... For some reason my Windows 10 PC or Ubuntu Mate 20.04 wouldn't let me use fastboot, but my Chromebook and my wife's Windows 7 Notebook did work, so if you can't use fastboot command on your PC you could try a USB live boot of Windows 10 or Ubuntu 14.04 or something?

@Sujanth thanks man I'll try to review those logs when I get some spare time... I'll be on night shift out of town for two weeks, so no idea if I will get spare time soon tbh...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] warhead1721972:
@ThE_MarD It booted up!! Google apps works fine!! What i did:

>In bootloader i booted into twrp recovery using the command-

fastboot boot *insert twrp boot image.img*

>TWRP boots, wiped everything except my external sd card

>Went to advanced settings, enabled ADB Sideload

>Sideloaded the LineageOS rom zip

>Booted to LOS to check if everything works

>Booted back to Lineage Recovery using the advanced restart feature in LOS to restart in Lineage Recovery

>Went to Update-ADB Sideload update

>Sideloaded MindTheGApps

>Rebooted into LOS and boom. I was greeted by the Google screen.

Somehow flashing GApps using TWRP doesnt work. I think this is a bug in TWRP?

Thanks @ThE_MarD for helping me out on this!!

Edit: Moto Gestures like chop chop for flashlight and twist for camera does not work in LOS?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Myabe not enabled in Options / System / Moto Gestures?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] warhead1721972:
Looked for them, but there is no option for "Moto Gestures". I think LOS does not support Moto Gestures.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
It does for me, Moto X4 (XT1900-7 RETEU) with LOS 17.1, as i told when activated in options (last option in System menu on my phone).
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jasonmerc:
Off topic, but have to post this. I love this phone, and this community is awesome at porting new versions quickly. You devs out there rock. I'm gonna be using this device for the next 10 years, I can already tell
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Crystawth:
I do apologize if this is somewhat off topic, but I don't really know much about the differences between operating systems and I was wondering;

what is the fundamental difference between 17.1 and 18.1? And if I already have 17.1 installed on my device what actual legitimate reasons should I have for putting 18.1 on it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
@warhead1721972 yay! That's fantastic news! Tbh I haven't tried flashing GApps via TWRP as I always only ever tried flashing the ROM and the reboot to recovery I just let Lineage Recovery come up and then adb sideload. If you want to reboot to TWRP, maybe it would be best after the ROM flash to reboot to bootloader, confirm the slot changed and then fastboot boot TWRP?

Tbh one of my plans when I get more time is to revamp the TWRP Payton, Z01R and Zippo trees for TWRP based on Android 10...

For Moto Gestures not working for you, can you please send me logcat? There's a chance it could be something like an selinux denial maybe?

@jasonmerc glad you enjoy all the work! Lots of great community devs work on Motorola devices so it is indeed good to see them putting out lots of quality updates as they go. :)

@Crystawth , for 18.1 tbh you're only going to get the system upgrades that Android 10 bring, like the revamped power menu which is nice if you have smart home devices and the changes to the notification area. The only downside is WiFi Display (Miracast) does not work for us as we are waiting on a stock ROM release with a compatible SoC so we can kang blobs... afaik, the closest one right meow is the Nokia 3.2 but no idea when it comes out though... If you're happy with LOS 17.1? I'd recommend at least staying on there until after LOS 18.1 official comes out (no idea on that either, I just work on device trees and rarely ever touch system).
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Crystawth:
Thank you for taking the time to let me know. I do really like what I have at the moment!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
Reddit app is crashing when using dxt kernel. That happens randomly and only sometimes. You have to use reddit for a long time to face this issue. I don't know if it is a rom issue or a kernel issue. On lineageos 17 there is no issues with dxt kernel v.3.5 uc.

And also face screen flickering on plus messenger with lineageos 17.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo @Sujanth , please report dxt kernel bugs to the dxt kernel dev as we do not support mods on LineageOS. I tested both Reddit and plus Plus Messenger on my payton without any mods and they both work without any issues and there isn't any screen flickering so I'm chalking both bugs up to dxt kernel or any other installed mods.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rahulg09:
I need to try lineage 18 on payton. When will be the official release. Can I exect soon?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
Yeah, its a kernel bug with reddit crash. But facing screen flickering without dxt kernel and without any mods in los 17 and 18. But only happens on plus messenger and when i using keyboard to write. Tempory fix is to disable hw overlays in dev options, but setting get reseted after rebooting it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
@Sujanth I tried plus messenger on my payton and typing I get zero screen flickering.

If you want, you can grab logcat from boot to plus messenger typing and I can try to take a look at it
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
@ThE_MarD Here is the logcat from boot to plus messenger typing. Thanks for looking into it. I am on latest los 17.1 without any mods and kernel.

Edit: Facing also screen flickering in audiofx when setting bass or virtualization.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] eesteves8939:
Hello everybody.

I'm get an Moto X4 a month ago, and installed LOS 18.1 20210211. Everything works fine, except ram management. If I switch applications, all are reloaded instead of switching. Eg. Whatsapp to pdf reader, and looks like we are ran out of memory every single app we opened. Is there a way to tweak lmk to fix that issue?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
@ThE_MarD Just to let you know. Whatsapp and Zoom work fine. Telegram Videocalls have massive echo.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
@leetripper try lastest havoc out. There I had no issues with echo
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] tikisbytyler:
Has anyone experienced issues with phone crashing when using navigation? I have had this issue now on every custom ROM I have tried, from pie to 11 including several builds of lineage. I love this os and want to use it but I travel too much not to be able to use nav.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
Thanks, I'll try over the weekend.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Francesco Libera:
I've tried only LineageOS 17.1 and I never experienced this issue
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] tikisbytyler:
Lineage 17.1 was one of the ones I tried along the way - same thing... I have tried going back to stock, I have tried several different variants of stock... Always comes back to this issue. Has never happened while I am on stock, but crashes on every non-stock ROM I have tried. Some ROMs I also get loss of OTG USB function.

The crash when using google maps is not immediate, but it is relatively predictable. It will never happen if I am stationary, but regularly happens while driving. I have never collected a logcat after one of these crashes because it tends to happen when I am out driving, often far from home... Really irritating, been enjoying custom ROMs on devices since my Moto Bionic 10 years ago, I feel restricted not being able to... The consistency of this issue keeps making me think it is either something I am doing out of habit or a firmware issue, but I have tried to eliminate the firmware question by reloading from various stock images.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
Meanwhile I tried havoc. Massive echo in Telegram Videocall for the called.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
Oh. I tried only whatsapp call.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Updated today on official lineage-18.1-20210401-nightly-payton.zip

For now, all seems working except WiFi (Network could not be connected).

Networks already reset in network options, no success.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
Hmmm... wifi is an important feature, so I will stick to 17.1 until it will be fixed.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Yes, i also keep in mind to rollback to 17.1, should be as quick as update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Some more information:

When activated "WPA2 + WPA3" in Access Point, WiFi does not connect network, when set to "WPA2 (CCMP)", WiFi is connecting and working. First setting worked before in LOS 17.1.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
I have just a WPA3+2 setting in home wifi. So, I can set WPA2 as workaround until 18.1 will be fixed then.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akillenb:
Updated my X4 to official 18.1 release.

1. booted twrp to make a backup of 17.1

2. wiped cache, system and data using twrp

3. rebooted to 17.1 recovery

4. enabled adb

5. adb reboot sideload

6. adb sideload lineage-18.1-20210401-nightly-payton-signed.zip

7. adb reboot sideload

8. adb sideload MindTheGapps-11.0.0-arm64-20210328_143848.zip

9. reboot, add my wifi, login to google, restore apps from backup

10. enabled developer mode, adb - don't find advanced reboot options?

Pretty much everything I've tried seems to work, the only app I've had any issue with is X-plore file manager - it complains about my external-storage/Android/data directory "Can't rename base dir (err 1 EPERM)" - the builtin? Files app can go to that directory but sees no files. Not a big deal - just puzzling.

So far, so good - but really am missing the reboot options.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] WackyDoo:
I took the plunge and updated to yesterday's official 18.1 release from stock and tried to follow the official Lineagos Payton guide (i.e. without TWRP). My Moto X4 is a android one project-fi variant with no SIM.

The only issue I had was that from the Lineage recovery, I couldn't find the "Wipe" and "Format Data" options , so in recovery I choose 'Factory Reset" since that seemed the closest! The installation worked fine and everything works as before. It would be nice to get google pay working again, but maybe that is not possible with an unlocked bootloader.

Waiting to see if the battery runtime changes, but I see there are performance options in the settings which seem to give the option to reduce the CPU clock speed to save power.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo @akillenb , reboot options are now under Settings > System > Gestures > Power Menu > Advanced Restart

@WackyDoo the wipe options are for TWRP. Lineage Recovery has Factory Reset options

Also, since official 18.1 builds kicked off? I updated the thread title and first post to include upgrade from 17.1 instructions (y)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo, a new test build is going up. Link as always in the first post and I'm uploading meow so the upload should be done in 10 minutes. lineage-18.1-20210404-UNOFFICIAL-payton contains more echo reference / fluence fixes to try out

UPDATE: I had to redo the upload as I missed one change I wanted to also test for fluence, so if you have the 20210403 download? Please discard it and test the 20210404
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] d1r4c:
First of all thanks for all the work still being done for this device. I'm still on 15.1-20190224-NIGHTLY-payton, and I finally have some time to play. If I want to update to 18.1, is it enough to first flash the latest stock firmware for my device once it becomes available? Or should I flash earlier firmware as well? Also, once the correct firmware is installed, should I install the Copy Partitions Zip again?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
I did a Telegram video call without echo. ;)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rahulg09:
Just installed new Lineageos 18.1 on my moto X4. The ROM is pretty smooth, stable without any lags. Battery is okay. Thanks for such a stable ROM.

Fast charging (Today (Apr 5) I noticed fast charging working, previously it showed charging slowly)

Major missings

Face unlock

Three finger screen shot. That also support long screen shot)

Hope this will be updated upcoming builds.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Yes, Fast charge is a "must have".

And WiFi cannot handle setups with WPA3 enabled.

Also LTE is only using 4G and not 4G+ anymore.

Moto Camera 2 App does not start anymore.

All points worked flawlessly on 17.1. Hopefully it will be fixed on 18.1 soon.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] prowebtips:
Hi! I am new on this thread, recently I have flashed my MOTO X4 with Lineage Os 18.1 (come from PE+ 10), But I am facing an issue with GPS, It seems not working. When I open G Maps, and find my location it not work. If anyone has solution about this bug, please refer me. Thanks guys to be part of LineageOs ✌️
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Build lineage-18.1-20210406-nightly-payton-signed.zip solves WiFi issue (WPA3) and Fast Charge issue for me. Moto Camera 2 still doesn't start and LTE stays 4G only.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo, a new test build is going up! Link as always in the first post. lineage-18.1-20210406-UNOFFICIAL-payton contains a few more echo / noise cancelling tweaks as one user was saying webrtc apps for him still had echo... It also contains changes to test Widevine L1 which I can't test on my Payton as I have a FI model which wipes DRM keys on bootloader unlock oof... So I really need community members to test it out.

@prowebtips If your GPS is not working I'd recommend trying to reinstall the ROM. Make sure you are on the slot you had a booting ROM working and then do the copy-partitions zip and then wipe cache, system, vendor and data first and then try again.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
Hey! In the newest test build there an echo in Telegram videocall for the called again. Was much better in the test build before.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
Just installed Lineage 18.1 Everything seems fine, apart Moto Camera 2, as reported. I ahve however other trouble. I use Nova Launcher, when I close an app and return back to the launcher, it opens Trebuchet instead. I have checked that the defualt launcher is set to Nova...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo @leetripper , ok I'll just merge the stuff from the previous commit and I'll leave the disabling of libqcomvoicepreprcoessing out, so the next official build will have those echo-reference fixes from the previous test build. Thanks again for helping me diagnose this stuff. (y)

Anyone by chance tested out Widevine L1 btw? Not sure tbh if I'll pursue it or not since Widevine L1 working properly in custom ROMs is a nightmare to get going because of codecs and stuff... (I didn't merge the Widevine L1 stuff or update blobs from the EOL Payton Fi build either)

@artu72 , not sure why, but I've seen this bug too. I've rebooted and it works fine, sometimes it's because of changing a lot of settings at once too... so I'd recommend resetting Nova Launcher to defaults and make sure it's working fine and then only do a few changes at a time and see what happens.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] sevenrock:
To fix Moto Camera 2 I use these reverts:

cd frameworks/base
git revert --no-edit 0f1fd8c236a
git revert --no-edit d95058f1cd4
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
I have rebooted and now Nova works fine! Thank you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] doug.passerini:
I'm coming from stock ROM and a feature I miss a lot is locking device with a long press on fingerprint sensor. Is there any way to get this for LOS18.1? Or maybe is it available on previous LOS versions?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
What about double-tap on status bar?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
If that issue is so simple to fix, hopefully it finds a way to the developers and into one of next builds.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] doug.passerini:
Yes, double tap on status bar works. But long pressing fingerprint sensor is more convenient IMHO.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
For me, i just short-press Power or Automatic by time to lock and fingerprint to unlock.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] maelopam:
Is it just the Moto Camera 2 app that isn't working, or is the default camera app also not working?

Also, I'm assuming that upgrading from 16 is basically the same as from 17?

Google fi has started taking like 5 min every time I go to a different street before it is able to re-connect to the mobile network. I'm hoping 18 will fix it if it's from my side. Do you typically update firmware to the latest moto firmware (as given in the stock link from the second post)?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
The update build of today (20210413) again breaks WiFi (with WPA3 config) and Fast Charge, which was fixed in build before.

Fixes should be somehow persistent merged.