yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
If you've not submitted a viable bug report with log then you've got nothing to complain about regardless of the century. ;)

Lineage OS Bug Reporting How to: https://wiki.lineageos.org/bugreport-howto.html

Lineage OS Bug Report at Gitlab: https://gitlab.com/LineageOS/issues/android

Bug reporting at XDA: https://xdaforums.com/wiki/Reporting_A_Problem_-_Android
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Quantumstate:
ITM, if I am the only one after all this time, I need to move along.

The point of a forum is to gather and share information.

Those who chastise are here for the wrong reasons and do not belong.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
More specifically this is a development thread and there are reasons for the thread categorizations. The purpose of development threads is to provide input that informs development. You complaining while offering no evidence whatsoever that is actually an LOS issue and without any of the expected details or logs does not do that. If this is a real issue then, what a waste.

No one here "does not belong" but we are all obligated to follow certain rules and expectations. You refuse to do that, and someone told you so. If you don’t like the effect then don’t produce the cause.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
I'd say go back to stock to see if the issues persist. Then you can determine if it's a software or hardware issue. It might also be a carrier issue.

Then, if it works in stock, update to the latest and do a clean flash of the custom ROM. If it works, then you had a firmware issue. If it doesn't work, you now have a reproducible issue.

You could also try flashing other custom ROMs. Sorry if you have already tried this.

Lastly, flashing this phone is complex. It seems that there are several ways to do it, multiple reboots that have to happen in a specific order, and certain chants to utter while holding specific buttons. Munchy's videos are a good reference, although you probably already tried that too.

I feel comfortable flashing this phone, but I don't flash gapps, magisk, or anything else.

Hope that helps.

Edit: I will add that when I flash and want to restore data, I reboot into the os first before restoring data. Slightly different twist since I'm restoring, but all the other guides say to only reboot into recovery, not the os. It's ironic, but it works for me just fine.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
I've been flashing ROM (both LOS15 and LOS16) , Gapps, and Magisk (or LOS SU) successfully with on device TWRP, mostly as described in the OPs but with one exception similar to your data restore. For some reason flashing Magisk consecutively with Gapps (after having flashed ROM & TWRP then rebooted into recovery) does not work until booting into OS then back into recovery. [Still haven't had time to figure out TWRP back/restore but have one of your previous suggestions filed away for when I get to that.]
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Peluson:
how do I install it in moto x4 XT 1900-4 ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Quantumstate:
Your anger IronTechmonkey, does not change the fact that forums are to share information and ask for help.

Wagging fingers and scolding are just taking out your personal frustrations on others, in a catastrophically inappropriate place. And yes you do not belong here with that kind of behavior.

Deal with it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
You were reminded graciously enough about rules and expectations, and you were provided resources and instructions. I've not said a word in anger. That you must perceive a reminder to follow the rules (which you choose to ignore) as the anger of others is your problem.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Quantumstate:
Much nicer, EARTHLING - New Yorker - American. Thank you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
I'm new to the X4 and did not linger long on stock but to your point, both LOS15 and LOS16 for Payton seem to have good battery life.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Peluson:
Help

how do I install it in moto x4 XT 1900-4 ?, Help please,
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Ecthelion3:
FYI, I am using LOS 16 from April 10th and telephony and messaging are working fine. I upgrade to LOS from Motorola's Android 9 version for the X4.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] EntropyZer0:
Thanks for the tip: Messaging now works. Still no luck with calling though.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Quantumstate:
If you do get calling to work, you won't get popups on incoming calls. You have to unlock, then pull down the header to get any kind of 'Answer' button.

Lineage 16 is a real mess for the X4, even though it's still only Oreo.

This morning I ended up with "No boot partitions"! Couldn't even boot TWRP on either partition! So I went to the bootloader and selected Factory. That looped a couple times, then I went back to bootloader again. I went through this process to install stock. Then fastboot boot twrp.img -- the TWRP image which can actually decrypt the SD cards. That failed to boot the first time but worked the second time.

Now I'm downloading the closest thing to AOSP that we have. I can't use stock as it has G**gle apps all tangled up with it, and I don't use G**gle. Scared to death about not finding a functioning firmware. I use my phone in business -- can't afford these sloppy firmwares.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] upcboy:
I'm still getting the "Roaming Indicator Off" showing instead of my carrier. What should I do to help get this fixed? Would a logcat help?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Considering that this is occurring on some devices and not others there could be a provider component to the cause. This is not to say that there is nothing in the ROM that may need adjustment but there is no evidence of that yet. Knowing the details about provider on the affected devices (as well as all the good stuff that a log would capture) might indicate the path towards a fix. Also, where this might (or might not) have been caused by recent commits it might be worth reviewing the LOS Payton changelog.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
The previous suggestion might also apply to your situation (and other issues that might have a provider/carrier specific component).

As to logs: If this is an actual ROM issue a logcat would not only help prove that and isolate the cause, but is the best way to see what is going on, and is actually required at LOS official problem tracking system Gitlab. The more helpful information that can be provided to the developer, then the more likely the issue will be picked up unless it's something that's very easy to reproduce.

Lineage OS Bug Reporting How to: https://wiki.lineageos.org/bugreport-howto.html

Lineage OS Bug Report at Gitlab: https://gitlab.com/LineageOS/issues/android

Bug reporting at XDA: https://xdaforums.com/wiki/Reporting_A_Problem_-_Android
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] noogi:
Hi,

Is notification LED working on this ROM?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] edufur:
So I have to say... the battery life of this ROM is amazing when it is idle. But when I actually use my phone, it seems to deplete battery faster than stock. Is that anyone else's experience?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Easily found by searching thread but - Yes. The physical LED can be seen just to the left of the earpiece bar, it works as expected for notifications (and while being configuredin LOS settings).

---------- Post added at 05:05 PM ---------- Previous post was at 04:59 PM ----------

Different usage cases would yield different results. For instance I'm using the device without a SIM card ATM so it is using less battery handling and switching networks and therefore not a good comparison to real world phone use. You might consider using an app such as Better Battery Stats to determine what in particular might be draining the battery and if it is something that LOS can or should address.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
FYI: New version of TWRP for Payton has significant changes for AB devices. Changelog here: https://twrp.me/site/update/2019/04/15/twrp-3.3.0-0-released.html. More info inXDA article here [Thanks [MENTION=2790198]gee one[/MENTION] for the article reference from here https://xdaforums.com/showpost.php?p=79347621&postcount=2]
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jf.navica:
Not sure if [MENTION=6298645]erfanoabdi[/MENTION] is monitoring, but I'd like to bring back the fact that FM radio does not work : https://gitlab.com/LineageOS/issues/android/issues/413
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
To see if the FM radio had been restored was one of the reasons I was looking at the TWRP update. Thanks for the coincidental confirmation. Will add notes to the ticket you created.

[EDIT] Here is a potential workaround (oe even permanent fix?) for FM radio shared earlier in this thread by [MENTION=4977500]sevenrock[/MENTION] here: https://xdaforums.com/showpost.php?p=79230445&postcount=1091. If that is effective perhaps it could be made part of the ROM.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jf.navica:
Actually, thanks to Meinhard Deinhard (@henanigans) for going through the trouble of opening the ticket.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
It works but there was some issue with distribution of Moto FM app.

Though honestly this can be forked in without app included and users can download via playstore, etc
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
check the dialer notification settings, if its not allowed to pop up on screen, then it wont show the regular incomming call screen
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Quantumstate:
So many other things were wrong that I went to Havoc and am now happy.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rkimbal45:
I cannot find an easy answer to this, so I apologize if I missed it when asked previously, for Moto X4 on Lineage OS 16? is there no option to format sd card as internal anymore? I know the OOTB moto x4 didn't have it, but I would have hoped lineage still would?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
No roms have that enabled, i also couldn't find it anywhere in the build.prop so im not sure if its a supported feature on this device. I know theres an ADB comand that will force it but i don't remember what it is and i don't know if it'll work
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rkimbal45:
It amazes me that they block it. Works amazingly on my NVIDIA shield. Gotta keep pushing everyone to biy another in a year. Can't do that if they have plenty of room and don't have troubles.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
As far as i can tell, the reason its not enabled in the stock ROM is because of issues with file based encryption. The universal disable force encrypt script actually works so my moto x4 is currently unencrypted. It would be awesome if the lineage os devs would look into enabling it if force encrypt is disabled. I'd do it myself but i can't find any lines to change in the system files
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
In Pie for adoptable storage to work with FBE

The kernel needs patches/backports so the SD card doesn't get double encrypted.

This is documented on the AOSP wiki regarding fbe/adoptable storage.

Another problem is the patches are seen in kernel 4.9

While our device is on msm kernel 4.4 which makes these patches incompatable without Re writing the FS part of the kernel
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
I have encryption disabled entirely so I don't have to deal with FBE. Would that make it possible to enable adoptable storage on this rom?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Yes, if you disable verity and edit the fstab under

Vendor/etc/fstab.qcom

On the SD card line you have to change

voldmanaged=sdcard1:auto

To

voldmanaged=sdcard1:auto,encryptable=userdata

At this point you can try to use it.

If its fully working is still unknown
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
Well, im pleasantly surprised. Its actually working and it even has the double capacity glitch. Thank you for pointing me towards the fstab file, i never would've looked there
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jtnc:
Has anyone noticed their APN switching on them? I have mine set to Verizon but periodically it flips to Straightalk, at which point LTE is lost until I notice and flip it back to Verizon. I am suspecting this is happening when reception drops and it starts to roam.

I didn't see this on stock pie nor have I tried Havoc or other ROMs yet. Trying another ROM is on the list to experiment with when I get a chance.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] sketchman16:
THANKS! Stupid forced encryption was making me have to turn off fingerprint and PIN unlock just to use TWRP.

Where do I find the script?

EDIT: Found it. https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
That disable force encrypt script is a godsend
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Gearswar:
im new to this A/B slots thing. I always used nexus 6 and nexus 6p for custom roms. Need a little of understanding the use of the (Partitions zip mentioned in the op. Im on pie firmware and i dont see the zip for the pie firmware. Is there something im missing or do i need to flash back to oreo build in order to use the Partitions Zip? Im coming from android stock p firmware. Thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] sketchman16:
I was on Pie as well. Flashed the zip from OP, and it worked fine.

You will also need to login to Motorola's website to get an unlock code if you haven't yet. To unlock the bootloader.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Gearswar:
Thanks for replying. I have the bootloader unlocked already. Just need to know about Partitions Zip. Do i flash it on stock pie, and also do i need a sd card in order to use sideload push zips commands. I booted to twrp but pushing the twrp installer doesnt do anything. Can i get clearly details on how you managed to get lineage on your moto x4? Thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] sketchman16:
PMed you. And, yeah, I did everything starting from stock Pie.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] boyscout61:
Having the same issue here, it looks like it is connecting, but then it crashes and I am back at the lock screen, just like when as I had booted the device. It worked on Payton under LOS 15.1, though. Try searching for "miracast branch:lineage-16.0" in LineageOS Gerrit (cannot post links here, sorry, but it is fairly easy to find). I am not sure but I think it looks like a general problem with Android Pie as some attempts are done for a handful of devices to fix it. I hope it is only a minor issue and can be eventually fixed for Payton as well.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kristofthewise:
It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot

I gotta stop goofing around with my device when Im tired.

"It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic."

I misread the above and did this without rebooting in between and now my device is dead and wont even boot up. Anything I can do about it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] edufur:
Probably the blankflash method.

---------- Post added at 09:08 AM ---------- Previous post was at 09:05 AM ----------

How is it that this ROM has made it to "official" when one of the big pieces of functionality have been missing since day 1? Android Auto has never worked and still does not work. The logged bug has been ignored. https://gitlab.com/LineageOS/issues/android/issues/397
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Similarly, I've been surprised that FM Radio is missing in an official ROM. There is a list of criteria for going official. I'll see if I can find the link later. That being said, I don't want to complain too loudly about it because at the very least we are getting general updates. Also, even though the issues may not have been fixed yet IMO there is some benefit to the ticket.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
I thought the issue with the FM radio was distribution. I was under the impression that the Moto radio apk works if installed from the playstore or sideloaded, but couldn't be included in the official rom because of legal issues, similar to gapps.

Try adding it and see if it works. I've been curious, but haven't had time.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
I believe that

You need the FMRadioService.apk as well.

When you pull from stock rom I remember it said apk was incompatable and wouldn't install.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
you dont get the point. anyways, good for you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lucasbitencourt:
Adoptable storage works?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] valeriopastore20:
Does One button nav work with this method? https://xdaforums.com/moto-x4/help/one-button-nav-disabled-android-one-t3716877
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
No. Not since 8.1.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Hariiiii:
Actually I had it working in 8.1 stock before I transitioned over to LOS. As I recall I just used the adb shell am start method as detailed in the linked thread. I think there is a blob or a driver missing somewhere in the LOS tree because even the fingerprint sleep option under moto gestures (as part of LOS) can't be toggled. I also tried loading the moto actions apk, and although I can start the onenav tutorial, it won't recognize taps on the fingerprint sensor.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
I am on stock 8.1. Android One version. Prior to 8.1, there was a method to enable it. I assume you were on the retail 8.1 version, right?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Hariiiii:
Nope, mine is the Project Fi Android One version. Use the adb shell am start method and run it twice as is described.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
I confess, I did not try the ADB method, but tried creating the shortcut to the activity with Nova launcher, but could not find the activity. Interesting...I may try again, now that we have ADB back.

Sorry for OT.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
if you have a look at the logcat when you are trying to do that, it might throw an exception/failed to load for a missing .so file.

that will be one of the files needed.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Flashed lastnight, seems to work ok except for im getting really bad cell service and have issues making calls through hangouts using a separate Gvoice number. I was always connected to USCELL LTE now Im almost constantly in Tmobile, when I switch back to USCell I have not LTE and it auto switched back to Tmobile. I'm not sure why this would change after the Rom install. Everything else is awesome.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
try adding APN for USCELL LTE on los rom.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Hariiiii:
I didn't get anything particularly juicy, this is the most interesting thing that happened (happened during installation):

06-15 17:50:14.427 20099 20111 E mot.actions.reflect.MotorolaSettings: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.motorola.android.provider.MotorolaSettings$Secure" on path: DexPathList[[zip file "/data/app/com.motorola.actions-97LQ6ZPPCeXX67_Ja8PMGQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.motorola.actions-97LQ6ZPPCeXX67_Ja8PMGQ==/lib/arm, /data/app/com.motorola.actions-97LQ6ZPPCeXX67_Ja8PMGQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]

**EDIT: Here's the whole logcat:

https://pastebin.com/Eh7UZErS
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
I don't have any options to change the apn settings via settings/mobile networks. I click advanced and advanced just disappears and nothing happens.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] trwrt:
I think it's the Project Fi app that causes those settings to disappear. I know I don't have them on my A1 X4 either. Try temporarily disabling or removing the Project Fi app and see if they come back. Maybe you can add the APN and then reinstall Fi and see if it starts working.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
These are Fi switching issues... not something we can control from in a generic ROM/firmware.

If you need perfect Fi network performance, you must stay on stock.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Thanks I'll try it, I've been working on it for hours
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] QWZR II:
I'm getting

when I try to run fastboot -w, any ideas?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Thanks for the info.Small world, I'm in Maine too man (up by Bangor) nice to meet ya.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Prayas29:
How is the battery life and camera quality on this rom?

SOT? And is the main camera on par in quality with the stock?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
reboot and see if factory reset was done.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] noogi:
True, FM Radio not working.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
Does anyone here know how to get drivedroid to work on this phone? Drivedroid says the kernel has mass storage functionality, but the USB mode doesn't change when i select mass storage. I'm assuming the kernel is preventing the USB mode from switching. Theres nothing obvious in the build.prop or fstab.qcom files. I've looked at the USB config files too but I don't see any toggles or obvious ways to allow the switch to mass storage. If this works I'll finally have everything I've wanted out of this phone
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
I found this line in the build.prop

persist.sys.usb.config.extra=none

Not sure what the extra means
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
IIRC, thanks to Google; Mass Storage Mode from within the OS was effectively replaced by forced MTP a few Android versions ago for "security reasons" (Google wants more control of your data). The few hacks that I've seen to work around that have faded away. [MTP is so fickle and slow that I get better speed and reliability by using FTP client/server between devices on same via WIFI LAN but that work for you.]
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Online Gravy:
The reason i want mass storage to work is to host bootable flash drives on my phone. In Android 6 it worked beautifully and i could switch between virtual flash drives as i pleased. I don't need a mass storage option in the main USB menu, i just want drivedroid to be able to flip it on when i host virtual flash drives
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Ahhh, got it. In that case the info I posted would not apply. Thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Toboe3:
Would the license of this app work?

https://f-droid.org/en/packages/fm.a2d.sf/

It used to work before 16.0, maybe will work with the patches. (Requires root, though)