yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
Downloading now. I'll put it through the same paces as the other ones after I finish attacking my lawn. Big dogs mean big poo.

I believe I have intact 'oem.img' and 'system_b.img_sparsechunk.2' files from when I got the download to 2.7GB through a VPN. Hoping there's a hash in mightysween's new one to verify that though. My 'system_b.img_sparsechunk.3' file is borked though, as is everything after it in the archive.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mcd1992:
Yea the MD5s verified except for system_b.img_sparsechunk.1, system_b.img_sparsechunk.3 and oem.img. A different unzipping app shouldn't make a difference, it looks like the INFLATED data is actually corrupted and is failing the crc check.

The servicefile.xml has MD5s in it that you can verify your files against. See the comments in my gist https://gist.github.com/mcd1992/9f76cdb2c51f8f8e5208a99d4a95fdf1
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
Quite helpful. Many thanks to the both of you!

It will open with the an archiver manager under linux and display the contents. None of the previous attempts could do this. However, it still fails on extract no matter which program I use. I did get more files than all the previous attempts have yielded, but it fails to properly extract oem.img, system_b.img_sparsechunk.1, system_b.img_sparsechunk.2, and system_b.img_sparsechunk.3.

In looking back through the other archives, I was incorrect about having an intact oem.img file. I can confirm, however, that I have intact versions of system_b.img_sparsechunk.1, system_b.img_sparsechunk.2, and system_b.img_sparsechunk.3 from a Kiev/Singapore download attempt. I've combined files across the 4 or 5 different versions I have and checked sums against the MD5s we now have. After that, it looks like all I'm missing is an intact oem.img file. Every other MD5 is a match. Going to keep trying to re-download using different VPN servers. Maybe we can frankenstein this together.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Thanks, verified... same hash errors on this end. What we really need is a hash file from the Motorola server. (unless that file is actually corrupt, as we are theorizing!).

---------- Post added at 08:31 PM ---------- Previous post was at 08:28 PM ----------

This is great teamwork.... what XDA is all about :)

I am over my head in learning about patching boot.img for root on an A/B partition...hahaha. But, I think we are close to having root, which will lead to partition locations, which will lead to device tree, TWRP and LOS.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
I think I've got it. Full download through wget in a Linux terminal. No errors upon extracting from any program. All MD5s match the figures in servicefile.XML. I was just hoping for an intact copy of oem.img this time around, but wound up with the whole thing.

I'm a bit out of practice uploading files this large. Which service do you recommend I use? While I'm happy to have backup firmware to flash, I haven't got a clue how to tinker with it apart from Magisk. I am no developer! :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Awesome! Mega is free and has reliable servers. Some people hate it :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
I'll give Mega a shot. Sorry for the delay, it's been a busy day.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
It's uploaded to Mega and available here. I don't know much about Mega so hopefully it doesn't give everyone too much trouble.

I downloaded it from my Mega link and checked the sums - still good.

MD5: aaa29beca1b696314b75be74572c2ab7

SHA256: f4d388821e0693b34e9c1ba6c70b6285a0dc3b32d815b04674f63f7e70104b31

Please let me know if it works for all of you. The MD5s match for the included servicefile.xml on my end. Here's hoping!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
This is the most stubborn file I have ever dealt with! :)

Tried twice to download and came up 0.1 GB short both times with MD5 that does not match.

How about this... upload your versions of the 3 files we needed to complete the previous version I posted (system_b 1 and 3, and oem I think?)

I will repack it all or at least host the files individually somewhere.

Crazy!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
Will do. Uploading those to Mega now. ~1.5GB at ~600kbps... I'll try to stay awake.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
Uploaded those three to Mega. Downloaded them and checked the sums. All good.

oem.img

MD5: 98f1a1322f4629afe6f95224d81ef8fd

system_b.img_sparsechunk.1

MD5: 477fb9dc580898b358a8f7591303db0c

system_b.img_sparsechunk.3

MD5: 2a5fc32010989d7eb60e3b4e28d783b6
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] hotpl8:
Is the oem.img the one I need to get this to factory? Had a mishap with the root process need to get this back in working order., Stuck in boot loop and saying google play services isnt working
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
Has anyone seen anything in the firmware that makes you think this file is Fi (payton_sprout) specific? The build number and baseband version is identical across Fi and Best Buy phones, as well as a retail Brazilian phone (per reddit).

android version: 7.1.1

moto version: NPW26.83-34-0-1

baseband: M660_7020.05.01.52.01R
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
I'm not sure. When I looked up the Best Buy version it still stated XT1900-1, I want to return my Amazon version and get one from Best Buy just to be able to unlock the bootloader. Otherwise, I may get a completely different phone. I want the option for ROM's and root.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] caain:
It is not Fi-specific. It appears to be the retail version. You loose some Google-specific "Fi Magic" apps when flashing this firmware. Fi still works, but I don't know about auto network switching or wi-fi calling. You do get the retail X4 apps we missed out on. More Moto actions, Moto Key, wireless sound system, etc. The boot image also changes.

I don't know if this would work properly to restore a Best Buy purchased device. You would probably see better luck with it than with a Fi device, but I couldn't say for certain since I've never interacted with a Best Buy (or other retail) X4.

I'd advise caution when looking at rooting and using parts of this firmware - at least until we get TWRP working and can make a solid nandroid. Or until Moto officially publishes firmware for the variants (not sure if they ever will). It looks like one person on here is having issues too, and I had someone reach out through PM who seemed pretty worked up about a bad factory reset. Not sure if he actually rooted though.t
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] 8711:
From poking around in the firmware files (oem.prop):

#
# OEM_BUILD_PROPERTIES
#
ro.build.version.incremental=2
persist.radio.fi_supported=1
ro.product.name=payton
ro.mot.build.oem.product=payton
ro.build.display.id=NPW26.4
ro.mot.build.customerid=retail

The "persist.radio.fi" line is interesting. There's also files in there referencing Telus Wireless, Tycho (Fi), and Republic Wireless.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] blowingoff:
my device is xt1900-6, build version npw26.4. does anyone know if this image would work for me if I brick my phone?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
No guarantees, but I believe this is the full RETAIL image.

Please use it at your own risk for the files within (not as a full flashable image), as the ZIP has been altered. In other words, extract and flash manually.

https://drive.google.com/file/d/1jWXG7-r1gEybvBdHnATTPGKr6Zw5igFO/view?usp=drivesdk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
FYI, looks like the Amazon firmware has made it out into the wild:

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

There is also a retail firmware here... not sure if it is the same one we had previously.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
I can download it and compare the retail version you previously posted to the one you just posted a link to.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DiDGR8:
I THINK the main difference between the retail and the Amazon versions is the lock screen ads (and the bootloader can't be unlocked). Since Amazon will allow you to pay to bypass the lockscreen ads, maybe someone paid the ransom and got an unlock code. I don't know though, really. Just WAG.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] blowingoff:
is there anyone whose device is xt1900-6??? aaaah i wanna know if any of these images would work for me to flash
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kraatus90:
If the software version is same, yes you can flash it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
I did a cursory view of the files and yes sir you are correct. I returned my Amazon version and did not pay them the extra ~$70 to get rid of the ads. I can't say if I had that would have given the ability to unlock the bootloader, considering the IMEI. I believe Amazon and Motorola would have to exchange some kind of info and I don't see that happening.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] darkdaemon32:
Welp, I tried to do my part. Motorola simple directed me to their crappy forums to stay in limbo waiting for a response, please post here if you want to support the effort for a firmware image:

https://forums.lenovo.com/t5/Moto-X4/Moto-X4-Firmware/td-p/3878482

[IMG="Motorola "support""]http://oi68.tinypic.com/1425vfb.jpg[/IMG][/QUOTE]
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] cupanoodle:
I replied in the thread. Hopefully if we remind them enough they will get on top of it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
I read the thread on Moto/Lenovo's forum and appears they don't want to offer support at all for stock firmware. It is weird considering we have Project Fi devices that sell from Google's own website and Google believes in open source. That is the whole reason I bought the phone from Google.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Has anyone tried/succeeded in compiling the kernel with default config? It isn't working on my end, which is my hold up for TWRP right now (prebuilt kernel isn't cutting it).

Thus far, I haven't been able to compile the kernel... currently stuck at some include/prepare errors.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kraatus90:
https://github.com/kraatus90/Moto_X4_kernel/commit/b9c958e10ea0caaf516fce4e01e16237d9b261b4

you need this to fix those errors. i have compiled it successfully but haven't checked if it works. hope it helps.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Well hot damn, those look to be exactly what I need.

Thanks... thought I was on the Build thread, will post the results over there later.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] cupanoodle:
I just saw this on the moto forums, Maybe if we sign up for this we might get access to firmware images: https://forums.lenovo.com/t5/Moto-X4/We-need-you-for-the-MFN/td-p/3860927

Or at least we might be able to request a firmware image directly from moto. Who knows, thought it might be worth a try.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
Do you think it's a good idea to sign up if your bootloader is unlocked?

EDIT: signed up anyway
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lohanbarth:
PAYTON_NPW26.83-42_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

https://androidfilehost.com/?fid=962021903579495545
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] michael28056:
Stock Firmware Images

https://firmware.center/firmware/Motorola/Moto X4/Stock/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gatomdl:
I have the Amazon version of this phone would I be able to replace the firmware to the Retail from Motorola? I have paid to get the ads off but would like to take out all the Amazon apps and have the version that Motorola's website is selling
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] bombaglad:
nope, your bootloader is locked so there will probably be no way to do that
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
I think if you could use a root exploit, then it might be possible, but you would have to get root access without the benefit of an unlocked bootloader.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
Are you sure? In my experience, an unlocked bootloader is needed, not root, to flash a different firmware.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] bombaglad:
you are correct, there's no hope for those who bought those damned amazon versions
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
If you have root access, you can flash any position with dd. I have an N5X with a locked bootloader and I update recovery using dd. It's a longer process, but you should be able to do it with root access. I think this is how the towel root method worked.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
My wording was wrong. I originally purchased the Amazon variant and returned it. A root exploit is not going to be easy, if even possible, on this phone without an unlocked bootloader.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rogerjbr@gmail.com:
would have the android one firmware link for the moto x4 ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
FYI, the retail x4 image boots with about 2GB more storage available (about 18GB) than the Fi/AndroidOne version... So don't get too hung up on Android One...it doesn't seem to be of any benefit vs the retail images.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] bombaglad:
except potentially a better update scheme
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DiDGR8:
The key word is "potentially". We have ONE security update to go by, so it's a limited sample size but...

Some Android One users got it about a week before some Retail Version users. Some A1 users got it AFTER the Retail users started getting it. So the difference is insignificant so far. It's the same phone with VERY minor software differences. I don't see the A1 being all that much quicker than the Retail version going forward.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] bombaglad:
ok, but now we know, the fi variant has got oreo... so it'd be nice to know it someone has successfully flashed the A1 firmware to their regular unlocked X4 :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
Has someone posted a link to the A1 firmware?

I looked earlier today and didn't see it anywhere.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fragviper:
Still hasn't been posted. I would love a stock Android One / Project FI image to flash to my device as well. The rooting process screwed me over to the retail side.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
Guys all stock available here

https://firmware.center/firmware/Motorola/Moto X4/Stock/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Fragviper:
No Android One / Project FI images are posted here yet.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lohanbarth:
new firmware PAYTON_OPW27.57-40_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

https://androidfilehost.com/?fid=673791459329071182
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rehanraza:
which model number this firmware is for ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mattyb132:
I successfully updated using your firmware on my bootloader unlocked retail US model xt1900-1
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
This is full firmware? Pretty light at 2 GB! Glad to have what I need to test TWRP/root with Oreo
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DarkLara:
Hi, how did you do it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rehanraza:
Just installed. An hour back and everything working fine. There are no 4 system b img file also system.img_sparcechecksum are 7 unlike 5 in nougat. Not sure it's complete firmware. Need to verify with another firmware source. This img is for US variant.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
The system_b image is consolidated into "system_other.img". Still gets flashed to B partition
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rehanraza:
Nougat system.img and system b img combined size is 4.67gb and oreo system.img and system_other I'm going combined size is 3.76gb. almost 1 gb less in oreo.View attachment 4380703View attachment 4380704
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
And that translates to about a 12.25 GB boot size with 19.75 GB available to the user on first boot. MAJOR improvement over 7.1.1.

I have already compiled TWRP with the Oreo kernel base and will update in the TWRP thread to include builds targeted to 8.0
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] olive23:
Can i flash this on Non Project FI version? US model xt1900-1?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Wich is the firmware for the model 1900-7

This is the EU (German) variant.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rehanraza:
There is no European firmware here only us version
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Can anyone upload the Stock EU Rom or tell me where they are? Thank you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rehanraza:
I am also on usa firmware now so unfortunately cannot backup my orginal firm. Here is a paid site. Unfortunately PayPal doesn't work in my country. You can download the stock European firmware. If u wish so. Also kindly share the link so i can download too.

https://top-firmware.com/index.php?a=browse&b=category&id=9230
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Thanks but I have the XT1900-7 and it is only for the XT1900-2, XT1900-4 and XT1900-5 and at least 20USD are at least too expensive for me. But in any case, great thanks for the effort.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Mikeo83:
Hello. Can anyone upload the Stock EU Rom or tell me where they are? Thank you for your help.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ulysse34:
Here is the European stock OTA update (Oreo) that I received on my XT1900-7

http://dl.free.fr/q7b6m45Sz
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Can you please upload the file to Google Drive or Mega because I can not download it. It breaks off again and again. Thank you
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Hello again, I managed to download it but how do you install this?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ulysse34:
Hi,

you need to use adb sideload from stock recovery
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Hello, thanks it worked and the system works unfortunately is still at the beginning of the message there and that although the boot loader is closed. Can you or someone else tell me how to get the message out?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ulysse34:
What message do you mean? My bootloader is locked, too.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
if the boot loader is unlocked, there is a message when booting and if it is locked with me, unfortunately. Right at the beginning of the boot logo. I'll take a picture later
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Hi, here is the message of which I have spoken.

https://drive.google.com/file/d/1olkHQwtRdpIfImvHqlXm6DHuK-eMCzEb/view?usp=drivesdk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] norrrmalny:
official stock firmware for (XT1900-7) dualsim 32GB

hi, did you load this firmware with locked bootloader?

do you also get this message about different system ?

can somebody please paste link for downloading offcial fimware nougat 7.1.1 for european motox4 32 dualsim ?

thanks for any help
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
No, of course I have unlocked the bootloader. I installed the us version and then via adb via the recovery the europa OTA installed and then locked the bootloader again. Unfortunately, I still get this message as you can see on the video is not removed. I hope that at some point an original European rome appears and I finally get the device in its original condition.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] PherChe:
Mine is dead :( devices corrupt. I need the last rom (with February patch)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] kraatus90:
just flash system and boot.img of oreo rom available (dec ) it will at least give you a working phone. but only flash system.img and boot.img. nothing else.

and after it comes alive, never take any OTA or it will hardbrick the phone forever.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] PherChe:
Is alive now, I have no idea how, someday just boot, I open the bootloader

:+)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Augustinmyhead:
how did you do it?

I have the same message on boot
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
I recently got this phone and played around (root, unlock bootloader, etc.) and now want to go back to factory. Is this the final re-assembled zip that I can extract and use? I accept the risk, but just wanted to know before I go ahead. TIA!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Wow, this is an OLD thread from before any firmwares were released. So NO, don't use this. Maybe search a bit more... there are current firmwares available
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
Thank you so much. :)

I have tried a lot of them, but my Android/Google Pay is still broken :( I'm not rooting or anything. All stock. I'm able to OTA upto 8.0/March 2018, but Pay is still broken. I have the non-FI Retail XT1900-1. Can you point me to the right stock ROM and is there a way I can wipe the phone clean to flash? I suspect something has left a "dirty flash". Everything but Pay works (Root Checker gives a CTS Profile Match error for Safety Net for some reason). The thread where I'm discussing this issue: https://xdaforums.com/showthread.php?t=3753071

Thanks again, and I am really desperate to get a clean stock (flash). Any pointers/links would be awesome.

PS: I re-lock the bootloader after flashing. But still Pay is borked.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Honestly, I know very little about the differences in fi/retail versions of the firmware... but images are available on many sites like this:

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

And there are many guides to flashing with fastboot here in firmware threads
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
Thanks again. That was my source too, for downloading the firmware. But something is definitely not right in what I'm doing :(
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Look through flashfile.xml in the zip... it can help make sure you don't skip a step. And also, don't try to skip erasing userdata... to truly start clean, you need to.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
Ok. I will try this. I always erase userdata (I hate dirty flashing). Thanks again. I'll report the results here.