yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Thank you..That article put me on track. To the point of your initial question: FWIW, although I've never used Volte I have seen it be pursued and implemented in a few LOS ROM/Android versions and for a few different devices over the past few years. Each time it seemed to be an individual effort by the respective ROM developers. Based on this I'm hoping that Volte is added to the basic build requirements or covered by existing language there: https://github.com/LineageOS/charter/blob/master/device-support-requirements.md. Also, for some people there will be a cascade effect into battery management. I am in a tower-dense area where 3G signals are strong almost everywhere but the strength of LTE signals varies greatly. Forcing 3G mode is a huge battery saver. That forced use of LTE will significantly shorten battery life for me is not a guess. Ugh. Thanks again for the knowledge.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] neftv:
I have a MotoX4 was working great with 16.1. and this past week i upgrade to the 17.1 by downloading the latest version of 17.1. upon trying multiple attempts i manages to make a stable os till i put. The sim card in then it does an endless boot loop. Any ideas to fix this?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] maks_kyiv:
Finally, I made latest LineageOS 17.1 work on my phone.

I did next:

- Installed latest official Android for my phone.

- rebooted phone 2-3 times.

- flashed LinageOS

After that LineageOS boots correct but only from slot A.

Than I flashed latest official Android to slot B.(I run all flashing commands manually with some modifications).

And I rebooted phone 2-3 times.

After this manipulation I flashed LinageOS to slot B.

Now LinageOS boots normally(from both slots).

OTA updates also works fine.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
Links should be updated?

Hi everyone,

thanks for your fantastic work! :)

In post #2 the links acoording to "Copy partitions Zip" are no longer up-to-date (based on Android 10). Maybe you want to give them an update? I used the link from the LineageOS installation instructions instead, it works fine.

Best regards

Freed
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Francesco Libera:
Hi everyone,

I've noticed some strange behaviors and I'm here to share them with you and find out if I'm the only one they happen to.

XT1900-7 • Lineage OS Official 22 September Build • M660_7045.36.01.100R

Audio FX doesn't work with .mp3 files on the device

But it works with .WAV files on the device (tested with Eleven, Play Music, Youtube Music)

Audio FX works with streaming contents [YouTube (randomly on and off), Instagram (randomly on and off), Soundcloud, Chrome, and tracks that I have uploaded on play music and YouTube music's CLOUD.

Audio FX works but has an attack of few milliseconds. In fact everytime I play something there's a little step when you can clearly hear audio FX turning on, but the sound already started with audio FX turned off.

The clock moved to the right in the status bar, interpenetrate wit the navigation bar with 90° and 270° rotation.

Want to mention that these problems have always been there so I don't think it's one of the latest builds.

Sorry for the long message, but I wanted to be as clear as possible.

Let me know if you also find similar behaviors and have a great day.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] htsmi:
To any devs on here: can you tell me what Motorola stock firmware versions these both the current 17.1 and last 16.0 versions are built for?

I am running PPWS29.69-39-6-5 for the XT1900-1 (Google Fi/Android One version). I know the numbering is a little different for the other versions. I want to make sure I have the right firmware before updating.

Using this as my resource:

https://mirrors.lolinet.com/firmware/moto/payton/official/

Edit:

I may have answered my own question here:

https://github.com/TheMuppets/proprietary_vendor_motorola/commits/lineage-17.1/payton

which says PPWS29.69-26-6 was the last source of the blobs. Unfortunately pretty far behind. I'd like to try updating it all but I'm afraid I'll break things and not know how to fix them. And now the different variants have diverged with only Android One still getting updates, so the latest blobs would only work for that one.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Richy19:
Hi [MENTION=6298645]erfanoabdi[/MENTION], I just added a new bug as the camera app doesnt record any sound with its default settings when using selfie camera. https://gitlab.com/LineageOS/issues/android/-/issues/2580 this wouldnt be a big issue if it were just the main camera but its any app that records video with those settings and I have an app that is requiring verification and to do so records video at the highest settings with no way to change these in the app :(
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
Same here. But works with Open Camera.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] m0ngr31:
I've been running Lineage 16 since I got my X4, and I just did a clean wipe and install of 17.1, but GPS doesn't work and my microphone isn't picked up in things like Instagram video chats or Marco Polo. Do I need to update my firmware or something?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Richy19:
Hmm, I get no audio from a fresh open camera install, just open, flip camera, and record
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leetripper:
https://gitlab.com/LineageOS/issues/android/-/issues/2082

There seems to be an issue when recording with 1080p and AAC on front camera.

I could reproduce it. When switching to 720p audio is ok with AAC. When switching the encoder from AAC to AMRNB 1080p audio recording works. Don't know about the quality...

Open Camera works with audio input optimized for voice. Other options do not work
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MNelaer:
audio config file

Hi everyone! :)

File /vendor/etc/audio_policy_configuration.xml contains a mistake. Lines from 39 to 42:

<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">

<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"

samplingRates="41000,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>

</mixPort>

Should be:

<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">

<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"

samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>

</mixPort>

OS prevents any changes to this file. RootExplorer or TWRP - it doesn't matter, I've tried to delete this file too. The file is just overwrites every boot. Any ideas to force OS just don't touch it? Tried chmod in terminal, in TWRP, in RootExplorer.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Disable dm verity to edit vendor files.

Also I believe this is a moto thing..see here

https://git.rip/dumps/motorola/payt...vendor/etc/audio_policy_configuration.xml#L41
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mondalex:
Is pocket detection working?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo, allow me to introduce myself. I am Marc "ThE_MarD" Bourgoin and I got a Payton thanks to the kindness of [MENTION=7887589]SyberHexen[/MENTION] . :)

I currently am the maintainer of the LeEco Le Max 2 (x2) for LineageOS 17.1 and TWRP and I plan on helping out with Payton for both as well.

I have already submitted a bunch of selinux fixes for Motorola sdm660-common for stuff like NFC which have been merged, but there's still a few little tweaks I want to help with on LineageOS 17.1. :good:

I already have a test build of TWRP for Payton with working FBE and persist image backup/restore if anyone wants to test that stuff out too.

Looking forward to further helping out with Payton and Motorola sdm660-common!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] htsmi:
Welcome, that's great news! This is one of the few phones that checked all my boxes, with proper LTE band support, easy bootloader unlock, and official LineageOS. I'm glad to hear others with more skills than myself are interested in working on it.

I've used 16.0 for a while which was almost perfect but no longer being maintained. I've recently upgraded to 17.1 which seems good so far.

The only major issue has been that I really need more than the 20G internal storage that it offers, and with FBE, adoptable storage is not supported. I also have issues with the concept of FBE, because I don't trust it to encrypt everything it should, so I have tried to follow a few others and convert to FDE, as I have described here. I'm still having issues with it unfortunately.

Anyhow thanks for the help! I'll be happy to at least help with testing, and I'll see if I can learn something from the changes you make.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] drinkypoo:
I can't flash addons

Trying to flash addons from lineage recovery doesn't work. addonsu claimed it installed but there's no root option except over adb. MindTheGapps sideload failed at 47%.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo [MENTION=7591360]htsmi[/MENTION] , I'm glad to help out however I can! :)

Reading up on adoptable storage and FBE? According to this document from Google it should work fine on Android 9.0 and later. I haven't tested it yet on my payton tbh so I'll try to check into it.

https://source.android.com/devices/storage/adoptable

As for FDE? Tbh I hate it lol, it's annoying how it pauses boot which causes Power-off Alarm to fail... I'm unsure if maybe we are missing something in the kernel defconfig or not but I'll also try to look into this.

[MENTION=1811786]drinkypoo[/MENTION], there is no Addon-SU for LineageOS 17.1. I would recommend checking a third party root method.

As for that 47% thing on adb sideload? That is an AOSP bug, so just let it keep going and it'll complete later sometimes say "error message: success" or something like that. :silly:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
There are kernel limitations with FBE on 4.4 with adoptable storage.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] herr.mann:
I love the original Motorola Camera app, but why does the app on Google Play store has much less functionality than on stock rom? It states, that "Hardware does not support Portrait mode" and many options (Portrait, Live Effect, Face Effects...) disappeared when installing Moto Cam app on LOS.

Forgot to mention, that I've installed Gcam port already, but I'am disappointed about the quality of panaroma or sphere photos. Original Google Camera does this job a lot better.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gleenfield97:
It's not working for me, fingerprint unlock doesn't turn on the screen, I have to either

1. Tap on the proximity sensor while holding on the fingerprint sensor.

2. Switch on the screen through power button and then unlock.

Same issue even when it's disabled. I'm using 20201013 + DxT 3.0.

Disabling the feature did work as expected in Havoc.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo [MENTION=11199563]herr.mann[/MENTION], for Moto camera app? Here's a system version that could work, albeit I haven't tested it yet for Payton.

You would need to uninstall the Play store version first.

https://sourceforge.net/projects/nemesisteam/files/MODs/Moto-Camera-2/List-N1/Android-10/ARM-64/

As for gcam mods? I've been using the latest by wichaya which works with our wide-angle camera too. :good:

https://www.celsoazevedo.com/files/android/google-camera/dev-wichaya/

So on LineageOS, we have merged some selinux policy fixes for sdm660-common which is nice, plus a denial for our fingerprint sensor and also on payton's tree we merged some microphone fixes so that any camera app should work fine with our microphones. :)

[MENTION=4432729]gleenfield97[/MENTION], usually if fingerprint sensor doesn't work while the device is sleeping? That is a device firmware issue. I'd recommend updating your device firmware.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] cannondale0815:
Dirty flash 16 -> 17

Hello team -- I am looking to upgrade my mom's Moto X4 from LOS 16 to 17. It's currently stuck on one of the last available LOS 16 nightlies.

I want to attempt a dirty install first. Then, if there are any glaring issues, I would wipe and start fresh.

Any particular recommendations or issues from anyone having already done a 16 -> 17 dirty flash?

Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] exzombie:
It went fine for me. The one issue I have is that echo cancellation doesn't work in Element, but I haven't had time to look into that yet. It worked on 16, but given the current state of Element on Android, I think there's high chance this is unrelated to the upgrade.

In any case, it doesn't cost much to try the dirty way first ;)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] cannondale0815:
Thank you for that reassuring piece of information. I assume that phone calls and audio/video calls using other apps (like WhatsApp or Duo) work fine without echo issues, right?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] exzombie:
Heh, I guess I should have been clear that lack of time implies that I haven't even tried anything else :angel: . I mostly use headphones anyway. But since you reminded me of the issue, I tried Zoom via the speaker today, and it worked without a hitch.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
I've update successfully from 16 to 17.1 today, everything went really smooth. As my baseband and radio firmware was outdated (I've never updated them after switching to Lineage), I first followed this guide to get the latest firmware:

https://xdaforums.com/moto-x4/how-to/guide-how-to-flash-official-factory-t3808348

Then, I just followed the official instructions: https://wiki.lineageos.org/devices/payton/install

The naming in the Lineage recovery is slightly different than the guide, but it's easy to figure out what to do.

Now, I am stuck with two minor issues and was hoping you could give me some hints:

1. When booting, I can see a message on the top left corner: "verity mode is set to disabled". I've already looked through the forums, but couldn't find any way to get rid of this message. Any ideas?

2. With Moto Camera 2, I can select to store photos on the SD Card, but after selecting it jumps back to Phone. How can I save them to the SD Card? It was working on 16.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo [MENTION=9566980]dgsiegel[/MENTION] , for the DM Verity mode disabled message? Afaik there's no way to get rid of it as it's the bootloader checking for it... But I could be wrong? I'd recommend asking in the Telegram group for more information about it in case someone has a workaround for it.

As for the Moto Camera 2? Is that the Play Store version or the flash via recovery system version?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
Will do!

It's the Play Store version.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
Hi everybody,

[MENTION=6235294]ThE_MarD[/MENTION]: regarding to your hint about "NFC stuff":

My online banking app doesn't speak to card readers, and the app for reading German identity cards (AusweisApp2) complains because it lacks the Extended Length feature. Can this be activated somehow? Maybe this hint helps: https://issuetracker.google.com/issues/37005118

I used NFC TagInfo go get more information (have a look at the screenshot). Maybe it's because of "Maximum transceive length: 253 bytes"?

Best regards

Freed
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
[MENTION=9566980]dgsiegel[/MENTION], tbh I thought it would be the Play store version that would work without issues heh oops. :silly:

I'd recommend going into your settings > App > select Moto Cam 2 > permissions and make sure it has storage permissions for external. If it already does? Force close the app and try it again.

If that doesn't work? Then the next thing to try is to uninstall the Play store version and then try flashing via recovery the system version of it.

https://telegra.ph/Moto-Camera-2-List-N1-05-09

[MENTION=9324770]freed_de[/MENTION] please don't quote and mention in the same post, otherwise the other person gets dual notifications for the same post. I have done this to you as an example of what I mean

Tbh I'm unsure what controls the maximum transceive length and the Extended Length feature... I'll try to ask the other Moto maintainers to see if they know what I should be looking for.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JimDandy68:
Can anyone point me to or do a quick write-up of the best approach to making a Nandroid backup of the X4 when going from stock to LOS? I'm a little confused by the ab device process, but feel comfortable enough following the flashing instructions in this thread.

It's just the initial backup I'd love to have spelled out, and that would include which partitions to back up separately and which ones to back up together for restoring to a previous stock state. If it's best to just flash a stock image and restore user data, I think I'm fine with that, too. I expect I'll like LOS enough to stick with it.

Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mondalex:
Why is pocket detection not working? Is it the same for everyone else?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
Yeah, that I've already tried.

Unfortunately that doesn't seem to work either, similar to that post:

https://xdaforums.com/showpost.php?p=81616647&postcount=10

(...and it also seems to remove Snap which I'm not sure it should)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
[MENTION=9324770]freed_de[/MENTION], I have a new test build of LineageOS 17.1 for payton going up (upload will be done within 30 minutes of this post) that has a potential fix for NFC. I noticed the configs are super old (from an alpha build of stock ROM for payton) which could indeed be the culprit. I have opted for NFC configs and firmware blob from River (Motorola g7) which did receive official Android 10 stock ROM which should hopefully allow our NFC extended length to work. :good:

If it doesn't work? Please provide logcat.

https://osdn.net/projects/lineageos-for-payton/releases/73942/

[MENTION=4479909]JimDandy68[/MENTION], I would recommend backing up boot, data, system image and vendor image.

I would also recommend going into your TWRP file manager and deleting the /persist/.twrps file and then keeping a separate backup of efs, persist, fsg, dsp, boot logo and Bluetooth just in case something goes wrong as builds of TWRP up to 3.4.0-0 have a bug where the persist .twrps log file can grow so large that it can negatively affect any Motorola device and cause IMEI to be lost.

[MENTION=9566980]dgsiegel[/MENTION] sorry I don't have any better information for the payton save photos to SD card... I saw that you're on the Telegram group, so hopefully someone there has a better idea on how to solve this. Tbh I only store photos on the internal storage as Google Photos will backup photos from an SD Card but will not include it when "freeing up space" which I find too annoying tbh.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JimDandy68:
[MENTION=6235294]ThE_MarD[/MENTION], thank you so much for those instructions. Perfect, and much appreciated.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
[MENTION=6235294]ThE_MarD[/MENTION] Thank you so much for looking for a solution. I'm looking forward to trying it out this afternoon (CET :) ) when I get back home. I will report here! Best regards!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
I installed your testbuild (lineage-17.1-20201117-UNOFFICIAL-payton.zip flashed by TWRP, factory reset, reboot) and tried it again. Unfortunately, I was unsuccessful. "NFC TagInfo" shows the same data ("Maximum transceive length: 253 bytes") and the app for german ID cards ("AusweisApp2") still doesn't work either. I have created a logcat. I hope it helps finding the bug.

Just to be clear: I did not install the lineage-17.1-20201117-UNOFFICIAL-payton-boot.img - do I have to do that, too?

Best regards and thanks in advance

Freed_de
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
[MENTION=9324770]freed_de[/MENTION] hmm darn, well that is off your logs are showing PN54X though as we are pn553 and I don't even think the PN54X series supports extended length...

Or maybe it doesn't like the river configs and blobs? Here, let's try latest NFC configs from Payton pie stock ROM and see what happens.

https://osdn.net/projects/lineageos-for-payton/releases/73953

As for your question of boot image? That's more if you wish to use Lineage Recovery to flash with or if you replace the boot.img with something else.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
I tried it. But I only got a bootloop :confused: . There seems to be something wrong, in my flashing process or in the image provided. Hmm... I reflashed an official LOS and everything is fine again. :D

Is it possible that your image is corrupt somehow? Or did you suppose a mistake while flashing? Should I try it again?

Best regards

Freed_de
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Heyyo [MENTION=9324770]freed_de[/MENTION], I just gave it a shot via the download link and it does work for me. Just to check, if you are flashing it via Lineage Recovery, please ensure that after you flash the zip that you reboot to recovery and flash your gapps before rebooting to system. Not sure why, but Lineage Recovery messes up addon scripts for any mods like gapps if manually flashing updates.

Please note, RIL does work in this zip as literally the only thing touched is NFC configs. I'm just out of town working from a camp in the middle of nowhere and cell reception here sucks lol...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
Hello again,

you're right: I did a clean flash and my device is booting again. But our NFC problem is still there :(

I attached a log again. Are there any further ideas?

Best regards

Freed_de
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
Oof! So I totally didn't notice that android.hardware.nfc was crashing! Thanks to Rohan Habase (he maintains chef on Moto sdm660-common devices) for pointing that out. Looks like we're still trying to run NFC 1.1 service when we should be running NFC 1.2 service in Android 10. NFC on my payton I noticed was really hit-or-miss, which could be due to mine also crashing. I'm guessing the only times it worked was when I caught it in between crashes? :silly:

Here's a build using lake's (Moto G7 Plus) NFC configs and FW loader blob. lake is also a Moto sdm660-common so in theory it should work better for us than river.

Hopefully this works! So far on my payton no crashes, but in my work bag I don't have an NFC test card though, so no idea if it works...

https://osdn.net/projects/lineageos-for-payton/releases/73977
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] freed_de:
Okay, I did:

adb sideload with your new image (20201123)

wiped cache and dalvik

rebooted once to recovery

rebooted system

Unfortunately the problem is still there. As I can see in the logs my payton does indeed use NFC 1.2. But there seems to be a crash, too. Somehow even my logcat has ended on its own. :confused:

Maybe there are more ideas "in the middle of nowhere" ;)

Greetings, Freed_de
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
[MENTION=9324770]freed_de[/MENTION], thanks for constantly testing these builds btw. Hopefully, we do find the correct solution. :good:

For some reason XDA won't let me download the file, it says 404 not found... any chance you could please upload it elsewhere and link it here?