yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Randy Power:
To those having no-audio-recorded issues, are you running old Baseband? I had that problem and it's resolved after upgrading. I had to go to stock and walk through the OTA updates... maybe there's a way to avoid that, I don't know. Flashing just modem did not work.

Old Baseband: M660_7045...

New Baseband: M660_7048...

I have Fi (XT1900-1, Android One?) devices and am on the T-Mobile USA network, if it matters. I did this on two devices after noticing my third (on stock) had a different Baseband.

I still have low but acceptable audio volume on calls, and speakerphone is unusable because the other person hears a terrible echo.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kelderek:
Baseband version

Motorola has abandoned the X4 and I just switched to LOS about a month ago, so I think I am current. The version I have is:

M660_7045.36.01.100R

I couldn't find a reference point for the current version, and the only other version I found was 7042 posted here on xda-developers, which was the Sept 2018 security update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] andyrtr:
I'm on baseband 7042.

Is bluetooth stable for you? My BT headphones (various models) keep stopping/resuming the playback every now and then since LOS17 update. Still happening with recent 20200630 update. Maybe I need to catch a logcat.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kelderek:
Sorry, I don't use bluetooth.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] luca_brasi:
Installed the latest TWRP (3.4.0.0) today and the backup on los16 working perfectly without removing pattern before.

Maybe someone can try on los 17.1.

By the way: I did not wrote partitions, I wrote permissions.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mikib1:
Yes TWRP 3.4.0.0 working fine on LOs 17.1
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Francesco Libera:
Upgrade baseband to fix no-audio-recorded issues on videos

Great to hear that you have been able to resolve the problem! I'm on XT1900-7 and the baseband version is M660_7045...

The only way that let me record videos with audio is the option "1080p [MENTION=7825661]60fps[/MENTION] trough Open Camera app". Every other option or application doesn't work.

Searching on the internet I can't find a way to upgrade baseband on this device, nor which baseband version is contained in which firmware version. And I'm afraid that even walk through all the OTAs updates after going back to stock, I will end to have the same baseband I have today as I think that the latest firmware update is only for the Android One variant (?).

Thanks in advance.

Sorry for bad English.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Randy Power:
Your English is great! [emoji16]

Thanks for passing on that info. I wish I could tell you whether there is a higher Baseband version for the XT1900-7. I understand it would be painful to go through the stock process then find out it won't get any better. [emoji2369] Good luck sorting that out.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Yea Im with you on that one I got XT1900-7 aswell but mine does not tell me baseband anymore in fastbootmode. Not really sure why, it works very well on los 16 anyway atm.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] osvaldo.17:
Could please some one confirm that module "ExSDCard" is working on the latest version? for some reason I was not able to make it work. Regards.!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Knuxyl:
So I need USB Mass Storage UMS support in the kernel, I'm guessing add CONFIG_F_USB_MASS_STORAGE=y to the Kconfig in the configs folder for payton?

Please help with this, I have no knowledge of how the kernel works.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Alright so I had a field day testing a few official roms from lolinet to see which have the newer baseband M660_7048 and I tried the newest RETAIL and RETEU more specificly these XT1900-7_PAYTON_RETEU_DS_9.0_PPWS29.69-37-5_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml and PAYTON_RETAIL_9.0_PPWS29.69-40-3-1_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml Those 2 sure didnt have any newer modem drivers and they didnt recieve updates either.

So I figured I may aswell try and flash the FI firmware XT1900-1_PAYTON_FI_9.0_PPWS29.69-39-6-9_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml and yep that sure did have the M660_7048 baseband I was looking for in hope of fixing the no audio issues on every camera. And before I flashed the newest nightly on slot b I checked for updates on the fi rom aswell to be sure there wasnt anything missing. Sooo did it help you may ask? It didnt. To be fair I didnt really think a newer baseband would make any difference anyway but maybe something in the FI firmware.. My device is a XT1900-7 but it booted fine and all is well but camera apps still wont record audio. So here I go again sadwalking back to LoS 16.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Knuxyl:
I would flash the entire stock image with fastboot each file one at a time in the order listed in flashfile.xml. But NON-HLOS.bin is for the cell modem, nothing to do with camera audio recording. For that I would think it is the dsp file, certainly not the modem file. And i believe reatil is pretty much the same as retus, i would stick with your reteu iif thats what 1900.7 is
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Yea I was using the flash-all.bat from munchy ins this guide https://xdaforums.com/moto-x4/how-to/guide-how-to-flash-official-factory-t3808348
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Knuxyl:
I would not recommend using others flashing scripts, open the xml file in the ota zip file and read through it to know what partition to flash with what file.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Okay so to clarify, it seems alot (if not everyone, hello everyone having issues recording audio?) of people cant record audio on 17.1 and one guy suggested checking which baseband we were using and claimed his works fine since his was newer so thats why I wanted to try for myself.

I flashed everything in those firmwares using the flash-all-bat and it seems to flash everything in the correct order.

After flashing a factory image I restart to bootloader and boot twrp and flash "copy partitions.zip" and then I go to wipe to format data, reboot to bootloader again boot twrp and transfer the latest lineage nighly and flash it. Reboot to bootloader yet again and boot twrp to flash opengapps pico and magisk and then finally reboot system.

Phone booted fine on all the stock firmwares too and reported XT1900-7 and RETEU in settings.

And after a day of flashing I ended up with the newer baseband but it made no difference on XT1900-7 atleast. So I can't confirm the baseband makes any difference.

I can't see mixmatching RETEU with FI baseband and such being a good idea.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] flieswithhawks:
What are the final few version numbers for the latest modem/update?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
m660_7048.65.01.101r
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Knuxyl:
Like I said before, the baseband will have nothing to do with the audio recording. if you were having problems with call audio then probably, but if you can't record audio seperate from phone calls than that is another problem. What I suggest you do is reread my post, read your xml file and flash yourself, do not use someone else's flashing script. do everything from start to finish (typically fb mode set), boot into stock firmware, test audio recording, then flash lineage and test again. Sometimes partitions are labeled differently for different regions and different phones and even different android versions. It won't always be the same, so if you want help any further, you need to flash the files manually by what is in the flashfile.xml in the ota zip and test what I have said above.

if you are not sure how to flash manually here are the steps

1) open cmd as administrator

2) open your flashfile.xml in notepad

3) the parts to pay attention to are under <steps interface="AP">

4) for each step, it will look something like this

<step operation="getvar" var="max-sparse-size"/>

the way to manually do this is to do

fastboot operation var

which for this step would translate to

fastboot getvar max-sparse-size

5) for flashing, same idea as above

<step MD5="e3ce0c2a203084dc4cd3d6c7cb44a741" filename="gpt.bin" operation="flash" partition="partition"/>

fastboot operation partition filename

so this command would be

fastboot flash partition gpt.bin

6) do all the steps until you have done

<step operation="oem" var="fb_mode_clear"/>

and you are ready to reboot and test everything

The main reason you need to do this is because the dsp I was talking about previously. I have seen this partition labeled as dsp, sometimes adsp, and there was another one from a zte that threw me off too. You need to make sure you are flashing the correct partitions with the correct files. Once you do that, I'm sure we can work out and narrow down where your problem is.

Also, I am seeing 2 different models under RETEU. I'm not sure what that's about, but I would say it's worth trying the xt1900-5 firmware too.

https://mirrors.lolinet.com/firmware/moto/payton/official/RETEU/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Yes I figured it wouldnt matter what baseband it is aswell and im sure it's a lineage 17.1 bug but since this other guy got it working by having a newer baseband and/or since he had a XT1900-1 device i figured I'd try it.

And yes the scrips do look very much alike! The flash-all.bat and the flashfile.xml is flashing the same files in the same order. I had no issues with any of the stock roms im very positive it's a lineage bug since it works fine on LoS 16.

---------- Post added at 04:28 PM ---------- Previous post was at 04:19 PM ----------

"fastboot flash dsp_a dspso.bin" in the flash-all and operation="flash" partition="dsp" filename="dspso.bin" in the flashfile.

The 2 versions is for single sim(SS) or dual sim(DS)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Skeeterdrums:
Giving this a shot as well since my upgrade is having the same issue.

Update: was flashing an older (non Pie) version of the firmware. Getting the right version fixed it :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Richy19:
Is it possible that flashing just the latest baseband/modem may get volte working?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Maybe. There was a new modem baseband recently
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] aipaloovik:
You part-time devs need to really fix your shxt because I'm stuck in bootloop and I can't even get my crap to be viewed by Windows. I flash the latest daily, along with TWRP (3.4.0.0), and the RECOMMENDED Open GApps (that's in your WIKI). Oh, a "Let's get started"... Waiting... And goddamn bootloop. Latest nightly, and latest GApp. No mods, no Magisk. As vanilla as you can get with the modding scene. And I can't even use my device.

And inb4 "Did you disable driver signing?" Yes. I did.

I've been doing this **** since the OG Nexus One. So I'm no fraking n00b.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Tbh Sounds like you didn't wipe your userdata from fastboot before starting rom.

> fastboot -w

In future maybe detail your steps in order so folks would have an easier time offering assistance. :svetius:

You can always search this thread for more in depth instructions or checkout another thread like havoc which outlines a detailed step-by-step process.

The flashing process itself is generally the same on all a/b devices with roms.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Knuxyl:
and maybe change your attitude a little. u apparently arent doing something right because its working for everyone else, idc how long you've been using "software other people have developed". if i was the maintainer i would just completely ignore posts like that.

moto x4 is known to have compatibility issues with certain usb ports in fastboot, maybe try another computer.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] timtaw:
Umm... so how much have you been paying for this "shxt"?

Don't forget that somebody has been investing his/her free time to give you something *for free*. So the minimum you can do is to show some respect.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] grosobart:
hello this rom allows to format sd card as internal storage? Thank you
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] OverkillTASF:
I'm using Microg but... I've got reboots occurring after boot up after upgrading to 17.1 from 16-whatever. I did an ADB sideload, then reboot back to recovery, then install Magisk. Magisk shows as installed. But it reboots quickly with the radios on, slower with the radio off, and a lot more slowly in safe mode with the radio off. The logcat has some OOM errors sometimes, but so far I see nothing in the logs that is consistent. I do see that it seems to badge my phone as T-Mobile now instead of Ting... though I'm using T-mo towers, it previously would show me as Ting. And at the bottom of the quick settings tray when you pull it down it has the edit pencil and then "10 (QQ3A.200805.001)" which feels unusual and a little broken, though not sure if related.

I also don't know how to safely downgrade to the previous version of LOS. Oh boy.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Falling_Rock:
I used opengapps rather than microg, works great and stable as a rock. Try reflashing the os and use your choice of opengapps, see if that works.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] OverkillTASF:
I just wiped, went back to stock, applied all OTA's, and then went back to LineageOS+MicroG+Magisk and it was fine. Something in the upgrade process, or possibly old firmware... broke me. But doing it from scratch and all up to date works fine.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
I tried the lineageOS with microG version the other day and it worked pretty well but ofc snapchat(privacy nightmare sure but whatever) didnt work since it runs a safetynet check on LOGIN.

Funny thing tho I reflashed the usual lineageOS with opengapps restored my phone and logged into snapchat then booted into twrp and ran "NanoDroid-microG.zip" to remove the old gapps and then "lineageOS-for-microg-keys-migration.zip" and then flashed the lineageOS-microG version and magisk without any wipe and it kept me logged in and works fine:) Safetynet fails ofc in magisk but it's not an issue for me other than snapchat. Im still using v16 of lineageos in both cases tho.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
Hi to all, since Motorola has ended support of X4, I would like to switch to LineageOS. Would you suggest me best procedure to install lineage 17.1 from the latest stock Android 9 firmware? I have noticed two procedures, the post #1 on this forum and the one from LineageOS site. Are there some bugs/concerns? What recovery between TWRP/Lineage? Thank you!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
For me it worked with following exactly the wiki instructions from LOS download pages. Started with update MotoX4 XT1900-7 RETEU from Oreo to latest Pie as Warning said so.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Same!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
Good new, I have a xt1900-7 reteu also. I have however a question. Citing a note in the LOS installation procedure:

Note: Newer fastboot releases dropped legacy A/B support, so it might attempt to flash to boot__a / boot__b rather than boot_a / boot_b if you try to flash boot. In this case, you must manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash to boot__a, you must flash to boot_a.

I do not understand very well. What should I do at this stage? Perhaps the following command

fastboot flash boot <recovery_filename>.img

or

fastboot flash boot_a <recovery_filename>.img

or

fastboot flash boot_b <recovery_filename>.img

?? In particular the sentence "For example, if fastboot fails to flash to boot__a, you must flash to boot_a." is very ambigous...

PS Lineage or TWRP recovery?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
I used just "fastboot flash boot twrp-payton-xxx.img" to flash TWRP, after that the parts with the sideloads of copy_partition.zip and LOS-Payton-xxx.zip
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
I am in the process of uprading from 16 to 17.1. While the steps are clear, I was wondering if I do need to upgrade my firmware first?

I currently have M660_7036.16.01.69.01R as baseband/modem firmware on a xt1900-7 reteu, which does not seem to be the latest one. Will 17.1 include a newer version, or do I need to go back to stock, upgrade firmware and then install 17.1? Or should I flash only baseband/radio via fastboot?

Thanks!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
I do not think you need to tbh I tried a few older and the newest and it still makes no difference in 17.1 with the issues I was having.

For me 17.1 is still a bit too un-done for me to switch 100% But your milage may vary :) I have a reteu -7 aswell if it matters at all as I flashed a -1 firmware just fine.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Oh hey since you're on 16 already I bet you could just boot twrp> switch slot to the one thats inactive(on the reboot tab at the bottom you can pick active slot)>reboot to bootloader> and boot twrp again so now when you flash a zip it is flashing to the 16 slot.

Using fastboot boot twrp.img ofc :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
What would be the advantage to switch a/b and overwrite the current partition?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] artu72:
I have installed flawlessly LineageOS 17.1. Thank you all. One question: is it possible to reproduce the behavior of fingerprint sensor as navigation button? I used it by Moto Action app, but I cannot install it since the device is now not compatible...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
That way you wouldnt destroy the motorola android if you happen to need to run the copy partitions again. Other than that I dont think it would make much difference.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] holovin:
Continuously auto reboot system then the sim card in slot! Who have this error?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Does your wifi work? Im thinking maybe you missed flashing the copy partitions after the factory wipe.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] holovin:
Continuously auto reboot system then the sim card in slot

Wifi works. Then device without sim card everything works well. What you mean "flashing the copy partitions"?

---------- Post added at 12:17 AM ---------- Previous post was at 12:05 AM ----------

Ahh ok, I am understand you, I missed this step. I will try to do this.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] holovin:
Continuously auto reboot system then the sim card in slot

I tried to install copy-partitions.zip, but device reboots anyway :(

---------- Post added at 12:32 PM ---------- Previous post was at 11:44 AM ----------

I have installed LineageOS 16.0. Everything works perfectly. I tried to update the system to 17.1 according to the instructions but it is not work for me. Continuously auto reboot system then the sim card in slot. I will use LineageOS 16.0. I will try to update again later...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Oh man! I never had mine autoreboot like that but i loose sim and wifi when I forget to flash the copy partitions before flashing the lineageOS zip.

Since Im not sure now what the issue is I would do the loong sollution by flash a stock rom, reboot to bootloader right away instead of booting the system, boot twrp and run the copy partitions before anything else and then finally flash lineageOS again. And if you wanna flash Opengapps or magisk reboot to bootloader once more and boot twrp so the system changes slot correctly.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] holovin:
I tried it. I could not understand why this phone was updated to a maximum of android 8 (official).

In the site lineageos.org this warning:

Warning: Before following these instructions please ensure that the device is on the latest firmware available Pie (9.0) build for your variant. If you follow these instructions on any other firmware (eg. Nougat 7.x/10), or a firmware not intended for your variant, you are very likely to damage the device.

But my phone was on latest firmware Android 8.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wkn000:
Maybe have a look on this? https://xdaforums.com/moto-x4/how-to/guide-how-to-flash-official-factory-t3808348

I did update from Stock Android Oreo to Stock Android Pie for my MotoX4 XT1900-7 RETEU before start to install LOS according to the warning you mentioned in wiki instructions.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] holovin:
Perhaps this is the reason, I will try to install on a new phone later, because this phone is in use. Thanks guys :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
To all it may concern, there is audio patch for fixing audio recording/mic in tonight's build 09012020
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Falling_Rock:
Fantastic! Thank you for your work on this, assuming that it was you that wrote the patch!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
Looks so indeed! Thank you SyberHexen can't wait to try it out on my friends phone first :D
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
No, just got things rolling.

Let us know if this solves mic or creates any VoIP problems
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] akavillian:
VOIP in telegram worked fine, standard camera app recorded video with audio aswell.

sadly I couldnt try any other apps.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] st0nedpenguin:
Will this fix the mic randomly not working that's "fixed" by not letting the Google app access the mic? If so thanks a bunch!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] maks_kyiv:
Hi all,

I have installed latest linegeOS nightly build(lineage-17.1-20200908-nightly-payton-signed.zip) on my Moto X4 XT1900-02.

My phone freezes and reboots shortly after boot if sim cards are installed.

I can see next errors in kernel logs:

<3>[ 40.025608,0] modem subsystem failure reason: dog_hb.c:263:DOG_HB detects starvation of task 0x9cd48db0, triage with its own.
<6>[ 40.025636,0] subsys-restart: subsystem_restart_dev(): Restart sequence requested for modem, restart_level = SYSTEM.

Please advice what I should do?

Maybe update of modem or other firmware is required.

Thanks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] onlycash:
VoLTE???

I have a question or two if someone could help...

My X4 has an old install of LineageOS 16.0-20190608 and I don't believe I have VoLTE working, not sure if it even works on 16.

For what I understand T-Mobile in the US will require VoLTE at some point in the near furture so I need it to work.

Long story short will LineageOS 17 on the X4 get me VoLTE?

If so whats the easist way to update my 16 to 17?

Thank you for any help you can give.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] IronTechmonkey:
Pardon my OT question but could you share of source for that information? I use T-Mobile US (prepaid) and would be interested in exploring that information.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] onlycash:
https://www.xda-developers.com/t-mobile-att-require-volte-phone-calls-shut-down-3g/

Also, you can Google "T-Mobile in the US will require VoLTE" and you'll get news stories with the info.