yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fuzerator:
I take this to mean that I should copy the fstab.qcom that is in / to /vendor/ect

I did that, made the edit, and rebooted. Still no option to format as adoptable.

I have encryption disabled with the disable forced encryption script.

---------- Post added at 04:50 AM ---------- Previous post was at 04:43 AM ----------

Weird. After I rebooted the /vendor/etc/fstab.qcom I had put there is gone. How can I make it stay?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IngolfN:
Yes, I have read this after my last post. Thanx.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
I don't know if this is better, I just know that it is an existing and functional option for anyone who thinks so. :good:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
This is because you haven't disabled verity

Also I would not change the location of your fstab

Caution advised these are some advanced runtime changes that can potentially case your system to not boot.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fuzerator:
Hmm. I thought verity is disabled. I used this script https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389 Also, on bootup there is some text at the top of the screen saying verity is disabled. Is there something else I need to do to make sure it is disabled?

I know this is kind of advanced, but I'd really like to be able to use adoptable storage. I'm willing to keep experimenting and share if I get it to work.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
If I remember correctly LOS 16.0 Has issues disabling verity
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fuzerator:
It seems like it's always something else! Any pointer to a way to get it disabled?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] shar88:
Did anyone successfully apply the firmware only to lineage?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
If your bootloader is unlocked, the easiest way is to grab the firmware from moto, unzip it, and use fastboot to flash the firmware. Then flash the copy_partitions zip to put the new firmware on both slots.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fuzerator:
Is there an option in Lineage OS 16 to randomize the wifi MAC address? I vaguely remember seeing something in stock Pie before I flashed Lineage.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] BugOfSilence:
I fixed all my issues by fastboot flashing some images from factory firmware PPWS29.69-39-2-1: bootloader (reboot afterwards), modem, fsg, bluetooth, dsp, logo and erasing modemst1, modemst2 and carrier.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Hello commarades

Thanks for everything!! This is great. I'm currently using it and the only problem I've come across is that USB seems to be broken: windows doesn't detect the phone on any mode (mtp, photo transfer, etc), I can only connect the phone if I'm on twrp recovery.

Also, is there any way to port the wireless sound system?? I think it'd be an awesome addition to the ROM.

Anyway, this is somewhat better than stock, thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] st0nedpenguin:
So yesterday I updated Lineage, made a backup, then flashed the latest official release from Motorola, then restored my backup, and my phone still lists March as the most recent vendor security update.

Am I missing something here or is that actually the latest security update from Motorola for the X4?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
As I understand it, the LOS rom includes the vendor image, so this will overwrite the moto one. The LOS vendor image is made from payton files and also files from similar phones, such as daisy, chef, and nash.

We only use the firmware updates from moto- bootloader and radio.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] st0nedpenguin:
So since it's gonna overwrite any updates from Motorola anyway, I guess I should just stop worrying about it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
Yup, I think it was on October for a while too, so March is pretty recent. I think a lot of it has to do with if we can find compatible blobs that work with our phone. I believe moto had a strange way of signing the blobs that's not suitable for use in lineage... That's just my take on things, so take it with a grain of salt. I'm certainly not qualified- I've been trying to build a rom for the last week and all I get are bootloops.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] st0nedpenguin:
Honestly it's a relief to not have to worry about flashing back to stock every month.

Now if I could just figure out why the whole process caused TWRP to not accept my encryption passcode I'd be set lol.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] N8Fall2XS:
Newer Firmware availble?

Hi, where did you get the firmware.zip? Also is there a newer version (say for Android 9) available somewhere?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
Firmware link:

https://mirrors.lolinet.com/firmware/moto/payton/official/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Hello, so i want to revert back to stock but lineageos seems to have break the usb on my phone so I can't do it. Neither ADB nor fastboot detect my phone, I can't install twrp from the crappy lineage recovery and I've tried everything, from flashing another lineage nightly to uninstalling and re installing usb drivers on my PC.

Please help!!!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
I imagine that Android debugging is active

Enviado desde mi Moto X4 mediante Tapatalk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Yes it is, but PC doesn't seem to recognize it, it doesn't matter if it's booted on OS, on bootloader mode or whatever. Also I cannot install twrp in any way :(
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
Does lsusb show anything? It's a Linux command.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Well, I'm on windows and the closest thing to Isusb is the device manager, but it doesn't seem to recognize my phone, even though it's charging. I've tried different usb ports and different cables, but no luck. I'm getting desperate :crying:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Ecthelion3:
Can you use a different driver for the phone? Perhaps installing some driver package from Motorola would help.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Thanks for trying to help :)

I've already tried that: re-installing motorola drivers, and also intalling a bunch of different ones. But I can't get the PC to recognize my phone. I've also tried with different cables and ports. I'm trying to get another PC to try all of that, tho.

Edit: I've tried using adb with a Fedora distribution,but it doesn't recognize it either. I'm sure it has something to do with lineageos.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] N8Fall2XS:
Thanks, but the firmware.zip from erfanoabdi is 70 MB in size, the firmware link you posted are over 2 GB. Also the files in there don't match.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Deydjesus:
a bug detected. When disabling my mobile data to save a battery, mobile data began to "flash" and does not connect.

Watch

http://youtu.be/CdoXTCxWAh0
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
What date is the lineage you are using?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] juniofdm:
After install Lineage OS, i dont see/access internal storage on Lineage System!

Please help!

---------- Post added at 03:17 PM ---------- Previous post was at 03:15 PM ----------

lineage file manager dont load internal storage
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
in the options of the application of lineage file manager you can activate the option called show storage or something similar to that...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] juniofdm:
I am wipe cache/data/system and reinstall LineageOS, and all job fine again! :D Thanks!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
August 19 :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
I just installed lineage os from August 19 and the adb and fastboot works for me both are correctly detected, it is worth mentioning that I use windows 10 pro with some generic package downloaded from ADB + Fastboot with its respective driver "adb-driver.msi".

With this I would rule out that the problem is laneageos.

have you tried to do a factory reset?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
Something I noticed on August 19 lineage is that the updater was not working well since it allowed you to download the following update but did not allow the installation to close before starting to install, so I had to do the installation with twrp
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Organics:
Yes, it was a bit tricky. I had to install through twrp as well but after that I lost twrp and magisk.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dooshbagel:
I briefly owned an Xperia XA2, which I returned after the soul-crippling horseshıt I experienced when trying to install ROMs on it (with that being my first attempt at Android customization). Long story short, one of the boot slots became unusable, while other people report that switching slots on fastboot has a small chance of completely bricking the device.

I'm going to get a Moto X4 instead, which thankfully seems a bit more resilient - at least that's the impression I get from this thread. However, as I'm reading these installation instructions I have some questions. If these questions seems obvious or even stupid, trust me - coming from what I went through on the XA2, they are anything but. Please explain the following, as you would to a small and fairly slow child:

-	In the instructions, I see something about "installing "Copy Partitions Zip" from post #2". By "install", what do you mean? Which commands do you use? Do you do it on both slots? Please note anything critical regarding this step, or whether you need to unplug the cable at any point.

-	The instructions say "ADB sideload the newest weekly". On the XA2, sideloading never worked and I had to use the "Install" function in TWRP. This worked fine - insofar as it was able to install things, all other bricking bullshıt aside. If sideloading doesn't work, can I use the "Install" in TWRP to do stuff instead?

-	Is there some tool to quickly restore the phone back to stock/normal if (or rather when) I screw things up? Or is the instructional video in post #3 as good as it gets?

-	The instructions say "Flash SU - you'll need to turn it on from in developer settings after first boot". What does this mean? After you flash it, you will need to boot into system and turn it on? If you don't, does it disappear on next reboot?

-	It says it is necessary to reboot between flashing the ROM and the addons, but do you also need to reboot between flashing each individual addon?

This thread is over 100 pages long, sadly - so I would also kindly ask for anyone to mention any common/fatal mistakes regarding this phone (or not-so-common mistakes when flashing in general) which I might have missed, thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] T1Coreon:
After booting into twrp, flash the copy partitions file like you would flash a custom rom. You only need to do this if you're currently on stock and are going to install a custom rom. It flashes to both slots.

"adb sideload" is their recommendation for getting the rom file on your phone. I always jut put the rom on my sd card, then proceeded to flashing.

because the phone has a qualcomm chip, if it ever gets hard bricked you can flash a file called blankflash to in a way bring the device back to life. You can also flash the stock rom through adb commands on the bootloader screen if you ever want to.

"flash SU" refers to lineage os specific root. you can flash that and enable root in settings, or you can use magisk.

I recommend using this video as reference if you get stuck or confused. This guy also has videos about returning to stock. https://youtu.be/NWOBa88eJRs
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dooshbagel:
Which command do you use? Or do you use the "Install" thing in TWRP?

I've installed stuff from the SDcard as well (it was the only thing that worked), but how do you proceed afterwards? Do you use some command or use "Install" in TWRP?

Thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] exzombie:
Hm, XA2 has the same Qualcomm SDM630 chipset, and mine (same as [MENTION=9997350]dooshbagel[/MENTION]) is beyond help. So what's the difference?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] T1Coreon:
in both cases, use the install function to flash the files in twrp

---------- Post added at 02:51 AM ---------- Previous post was at 02:36 AM ----------

For some clarity, it's a motorola qualcomm device. a qualcomm SoC function allows data to be sent through the usb port to the device even when hard bricked.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] andyrtr:
I've also hard bricked a Sony XA2. The Sony device seems to be flashable well when coming from Android v8 but has a high risk to kill boot partion and fail to get into any fastboot or recovery mode when the device is already flashed to stock Android v9 Pie version.

[MENTION=9997350]dooshbagel[/MENTION] - the X4 installation went smooth here. No issue so far.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] stegomon:
Wi-Fi drops after a while when coexisting with Bluetooth

When Wi-Fi and Bluetooth are turned on simultaneously and are used (Wi-Fi is connected and Bluetooth is coupled and e.g. playing music), after a while, the Wi-Fi connection drops and the device cannot reconnect to a Wi-Fi station. Bluetooths stays working.

If the active Bluetooth connection is interrupted (BT still on), Wi-Fi reconnects immediately.

System: LineageOS 16, newest build (29. August 2019)

Does anyone else experience this issue?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Hows you Mobile data connectivity? I flashed mine and have no data.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
add APN for your carrier.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Prayas29:
Why is the fingerprint sleep option not available? Anyone knows how to use it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abhi212b:
I am not sure, but I actually did a factory reset from TWRP and It worked! after flashing the Firmware! :confused:

---------- Post added at 03:48 PM ---------- Previous post was at 03:47 PM ----------

Read the thread Bro! Some files are still missing, it is an engineering build! :p
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] brandontowey:
Mine's good. I'm on project fi and I think there may be an issue with switching since I'm in the NYC area and lose service for 30 seconds or so sometimes but other than that, no problems.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Im having trouble finding the My MSID user/password so I can add those to my apn settings. any ideas?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
has nothing to do with Engineering build.

Moto Onenav gestures are NOT supported.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
I am sorry, cant help with that.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Hariiiii:
Hey, I looked through the tree for Nash a little bit, and I noted the presence of these files which seem directly related and are not present in the tree for payton as far as I can see.

https://github.com/LineageOS/android_device_motorola_nash/tree/lineage-15.1/keylayout
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Mine did the same I just ignored it. Ive flashed stock a few times since and tried both RR and LOS both booted fine for me but I had no mobile data so im back on stock until I figure out how to change my APN settings.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Always nice to see another Maineiac on here :)

If you haven't tried it, the "Fi Switch" app from the Play Store works well to automate keeping track of the current network and switching or forcing to specific networks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
They are in sdm660 common tree.

https://github.com/erfanoabdi/android_device_motorola_sdm660-common
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abhi212b:
Ohh! Yeah lineage doesn't support it.. While writing that i thought we were talking about screen on and screen off feature! Got confused! :p
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] erfanoabdi:
new build is up : https://www.androidfilehost.com/?fid=962339331459000822

* fixed FM radio

* userdebug build (no more red border)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
that was another crazy hackathon to fix fm radio :P Thanks :highfive:

OP updated
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
Congratulations! Now you're cooking with fire and steel!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Yeah I use the fi switch app but when I'm running LOS or RR when I switch to USCell it usually times out or indicates that I'm connected but to USCELL (unknown) for voice and (unknown) for data. I believe once I figure out my msid and my working apn settings from stock I can copy it down and input in to the LOS apn settings and I should be all good.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] brandontowey:
Yeah, froze the Project Fi app and the settings come back. Thanks for the tip, might need to mess with the APNs in the future.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] brandontowey:
And someone else mentioned that if you freeze or uninstall the project fi app, you can add APNs in mobile networks advanced settings. Tried it and it works. Once the app is gone, the setting show back up.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] bot_rosco:
Not working on -5 (eu retail)

I attempted to run this on the 5 (eu retail variant) and it was unsuccessful (unable to flash recovery after installing LOS). Unfortunately i was unable to get any logs etc as i was panicking but i was able to Mfastboot flash 8.1 firmware.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dooshbagel:
Is there a way to use MicroG? Would this guide work?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] stegomon:
Yes. Just follow the guide on the MicroG website.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dooshbagel:
Oh, nice. I thought you had to compile special ROMs to have MicroG work, or something.

Edit: Ah fuсk, apparently you need spoofing for it to work. However, it seems there are Moto X4 LOS releases bundled with MicroG which work perfectly!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
Does anyone know if the fingerprint gestures disappeared? update to lineageos of September 3 and I can't find the settings for those gestures
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
Something strange happened, but after doing wipes everything worked again
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 5u4573:
Hello @SyberHexen there is the possibility of changing in your FP_NO_ASSIST module the "# key 617 VOICE_ASSIST VIRTUAL" key that is disabled by "key 617 POWER VIRTUAL" so that when the fingerprint sensor is pressed for a long time, the phone locks as it does when Press the power button once?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] pteek:
Has this been fixed in the latest nightlies?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] onlycash:
I personally don't know if this ever got fixed.

I'm also curious if it did.

I installed a third-party SMS app which DOES work properly.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] exzombie:
Nope, I tried with the latest nightly (September 7th). I use QKSMS instead.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] maiconjs:
How can enable VoLTE on Brazilian carriers? I love this rom, but with Lineage I can't make calls with VoLTE
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jw243:
On newest build, when I change the icon appearence to e.g. Squircle, the icon for the dialer becomes invisible. The icon is still there and can be tapped to open the dialer, but it is invisible. Clearing all data from Trebuchet app restores the icon, but obviously removes all other changes to the home screen, too.

Anybody else noticed this problem? Any solutions?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Tirenoth:
This doesn't seem to be a 100% reliable option either.

I've tried stock and QKSMS. Sometimes SMS/MMS comes in correctly, but sometimes they're delayed by 20-30 minutes.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] maiconjs:
My device is an XT1900-6, and I noticed that the FM Radio does not work properly. Although it seems to synchronize, because I see the transmission information, the audio output is not working on both the internal speaker and the headset. I am using the build lineage-16.0-20190919-nightly-payton-signed.zip
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] flyers00:
TI noticed recently that the notification Sim HD is enabled is no longer displaying or active. This has been happening on the past few nightly builds if lineageOS 16. Is there a,way to activate it?

Fyi my phone is xt1900-1
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] weegh:
Wifi bricked

Hey there,

first off thanks a lot for bringing this device to true greatness with LOS, i love it!

Sadly i followed the official¹ steps on how to flash, which is missing the "copy-partitions-payton.zip" step.

After some more flashing i was able to boot lineageOS, but there was no Wifi.

After that i went back to stock, but still no wifi :(

Does anyone have a clue on how to fix this?

[1] wiki . lineageos . org/devices/payton/install
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jeroen-80:
Exactly the same issue here...

Everythong works, including tuning, RDS and recordings, but no sound on head phones / speaker.

Running latest official daily.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Randy Power:
I also didn't know to run Copy Partitions when I installed Lineage on both of my X4s. WiFi works fine, though. Sorry, I don't know which variant I have. (Can I find out now, without Stock installed?)

From what I can tell, after a month everything works fine (except for yesterday's nightly with the CPU idle bug).
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Is the copy partitions step not still mentioned prominently in post 1 of this thread and made available in post 2 as it was when In installed this ROM few months ago? That is one of many reasons to read the OPs.

As to FM radio, unless something has changed recently there is supposedly some legal impediment to having FM radio in this ROM, although I find that puzzling because it is in other LOS ROMs. You can find out more about this by searching the thread for FM radio and reviewing the more recent posts.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] st0nedpenguin:
I thought the copy_partitions zip was only required if flashing directly from stock to LOS on a new device?

Mine updated all the way to the most current Pie build at the time before flashing LOS and I never had any issue with not using the copy_partitions zip.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
D'oh! You are right, and there I went citing the bolded line of text without having fully read it. Thanks for the correction. That being said, if copy partitions is needed for jumping from stock to LOS, did you jump from stock pie, having never flashed a custom ROM, to LOS without copy partitions?