yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] mikeoswego:
I don't know about magic but I'm on Verizon and everything works as it should (VoLTE, WiFI, Bluetooth, etc.) I never ran TruPure but it shouldn't matter, there is nothing in TruPure that prevents you from going to another rom. I'm using the latest 18.4 rom that I dl'd from here: https://www.androidfilehost.com/?fid=24562946973630501

The "fastboot erase modemst1" and 2 commands will never hurt anything and can be tried if there are strange connection problems. I think the modemst partitions contain cached connection information that is rebuilt when they have been erased. They should always be used when when the modem is flashed (NON-HLOS.bin)

You could try not flashing fsg.mbm and BTFM.bin and flash them later if there is a problem. I have always flashed all the files for a given version of the rom on the belief that they are all made to work together and mixing files from different roms might have unpredictable results.
[X Style (Pure) Android Development] SR3TLAW:
It actually worked both ways line you mentioned. Ended up using existing BT/Cellular modems from latest download in OP. These are probably same modems from link to ROM you posted.

Now to figure out all the systemless root & magisk nonsense. What is your setup for all of this? Applications are becoming more and more aware of modified system. Ans if I understand correctly - Systemless root isn't adequate for bypass of "Safety Net" i.e. Android Pay

Super appreciate your detailed response
[X Style (Pure) Android Development] HaggisIV:
I flashed the stock recovery, but I am getting an error when trying to do the ota up to marshmallow. Is the only way I can update to flash twrp again and then flash the marshmallow zip from the OP?
[X Style (Pure) Android Development] SR3TLAW:
Are you flashing every line like the OP mentioned under "useful commands"
[X Style (Pure) Android Development] quakeaz:
MPHS24.49-18-4 - Mirror

Here is my Google Drive link for the MPHS24.49-18-4 firmware. The original Mega.nz link is terribly slow.

Android 6.0 - May Security Patch (stock)

XT1575_CLARK_RETUS_6.0_MPHS24.49-18-4_cid9_subsidy-DEFAULT_CFC.xml.zip

https://drive.google.com/file/d/0B1tb_AIZ5QUwOFJjRV8tMk1LRFU
[X Style (Pure) Android Development] jmark13:
I am on TruPure and interested in going back to stock rooted 6.0. Can I flash the 18-4 firmware without having to flash the previous stock 6.0 firmwares (18, 18-3)? Also, if i flash the stock firmware, does it include the moto apps and other needed system apps? Final question, will the firmware contain the radios, modem, bluetooth? Thanks.
[X Style (Pure) Android Development] quakeaz:
You can flash the above 18-4 firmware directly. Moto apps, modem and BT are included. Hoping [MENTION=4267845]gokart2[/MENTION] will add the mirror to the the OP. The Mega.nz link is very slow most of the time.
[X Style (Pure) Android Development] gokart2:
Thanks! Will add it. Sorry, been busy for awhile. Mega suck IMO, but I ran out of google drive space. I now have androidfilehost account, just need the time and connection to transfer stuff.
[X Style (Pure) Android Development] quakeaz:
I may add it to AFH also, just no time either! But GDrive is so much better than Mega lol.
[X Style (Pure) Android Development] Rexcrispy:
I restored from the 18-3 TWRP backup and flashed the stock recovery. Worked great.

When I tried to install the May security update OTA it failed? Any help on what I missed and why this is failing during install?
[X Style (Pure) Android Development] invisiblek:
[MENTION=4267845]gokart2[/MENTION] fwiw you may want to mention, at least on the MPH24.49-18-4 firmware, that you need to fastboot each sparsechunk separately

fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
...
fastboot flash system system.img_sparsechunk.8
[X Style (Pure) Android Development] mkglitzman:
OP you are a livesaver! Thanks so much for posting these!
[X Style (Pure) Android Development] Sporttster:
I'm on your 6.0 from 5.1.1 and am having radio issues where it will drop signal occasionally or drop down to 3g. Should I change radios back to 5.1.1 to see if it improves?? I wasn't having this issue prior to installing 6.0.
[X Style (Pure) Android Development] gotsflat4love:
So I have gone through all the steps. I downloaded the correct zip XT1575_CLARK_RETUS_6.0_MPH24.19-18 zip. I followed the adb instructions, but every time it boots, I don't have wifi. Any help would be greatly appreciated.
[X Style (Pure) Android Development] jason2678:
Sounds like you might have a kernel/modem mismatch. Pay attention to the terminal output particularly around the modem flashing. I don't know why, but quite often the modem fails to flash on this phone. Repeating the command a second time has been enough for me to get it to go.
[X Style (Pure) Android Development] gotsflat4love:
I remember the first time it failed, but I did it again and it took. Can I just go to adb and flash the modem again, or do I have to go through all the steps?

***Edit. My phone is unlocked. And I cannot get gpt.bin to flash. Could this be an issue?
[X Style (Pure) Android Development] jason2678:
gpt.bin is the partition table. I've heard of it not flashing if you are trying to downgrade, but I doubt that is what is causing your problem.

If you got the modem to flash correctly I'm less confident that is your problem, but it can't hurt to try again. It it was me I'd try this (assuming you've already been through the full restore with all the sparsechunks successfully once):

fastboot flash boot boot.img
fastboot erase modemst1
fastboot erase modemst2
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn

And again, make sure the modem stuff returns success. If not, try that line again. This makes sure your boot image matches up with your modem.
[X Style (Pure) Android Development] gotsflat4love:
Thanks for the advice. Followed it and modem didn't fail rest of the steps worked. Still no wifi. Do I dare go back to 5.1.1. I just got this phone yesterday and borked it already. Not very happy with myself.

**Edit Are there 8 sparcechunks or 9? Could that be an issue?
[X Style (Pure) Android Development] jason2678:
I'm pretty sure the MPH24.49-18-4 firmware only had 8 sparsechunks. Some of the earlier ones did have 9.

Sorry, I'm not sure quite what your problem is. Just for a little extra confirmation of what is currently on your phone try entering these in an adb shell:

getprop ro.bootloader
getprop gsm.version.baseband
getprop ro.build.version.release
getprop ro.product.model
[X Style (Pure) Android Development] gotsflat4love:
Jason, thanks for sticking with me. Sorry I don't know how to get adb shell command. I am assuming you just mean adb. I tried putting getprop (command), but obviously I am doing something wrong.

I just went to about phone to give this info. I know it doesn't have the bootlader info.

Baseband: M8992_1255331.29.01.88.02R SUPER_NA

Build: MPHS24.49-18-3

Model: Moto X Pure Edition

Kernel: 3. 10.84-perf-gez7138

hudsoncm@ilclbld99 #1

Tue Nov 3 10:06:25 CST 2015

**Edit. No that I am in a hurry or even want to know, but would rooting it take care of this or is this a necessary system modem.
[X Style (Pure) Android Development] yangqdr:
After a few hour of testing.

If you don't have wifi and cellular connection. This is what happened and what I did.

- Downloaded MPH24.49-18_18 from Motorola tried to restore to stock, had error at "fastboot flash partition gpt.bin". Gave error: (bootloader) Preflash validation failed

- Downloaded MPH24.49-18-4 and and flash as directed. No errors, everything went through. I came from Rooted with custom ROM.

- Phone booted up, motorola screen for +5 mins. At setup, no Wifi or cell signal, stuck can't continue on.

- Took NON-HLOS.bin and fsg.mbn from MPH24.49-18_18, and performed following

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot reboot

- Phone booted up, motorola screen for short time, then into setup screen, I have wifi and cell signal. Setup continued and everything worked. Phone up and running and BT working as well.

- I wanted a Rooted phone, so I can restore some of my apps and goodies. Installed TWRP, backed up phone and booted phone up to make sure everything was still working. Everything is working fine.

- Continued to root my phone. After phone booted up and running. No WIFI, but had BT and cell sig. Restored a few times and tried different options of rooting and flash different modems. Still No WIFI.

- Restored to Pre-rooted state. Everything up and running with wifi, BT and cell signal.

- If you stay away from Rooting, you should be fine. Rooting disables my wifi.
[X Style (Pure) Android Development] jason2678:
Don't worry about root. It is not tough for this phone, but there is a little trick to it. Root isn't going to fix your issue.

I think you've got things mismatched, like I guessed earlier. You've got yourself a frankenphone.

Your baseband matches mine, and I was on the May security update. However, I'm not sure if the modem actually changed across the three Moto 6.0 releases for XT1575. Maybe someone who paid more attention can chime in.

Your system, MPHS24.49-18-3, is from the February OTA. However, your kernel build date suggests your boot image is from the initial 6.0 release from November of last year.

Here's what I'd do if I was in your shoes. Download the full May firmware package. This is the May firmware linked to the OP. Make sure to save it and extract it somewhere different from what you've already got so you don't get it jumbled up. Fastboot flash everything in there, and that will get you all working and up to date on the latest release from Lenovorola.
[X Style (Pure) Android Development] gotsflat4love:
Ok, I did everything as instructed. Everything went through. I rebooted and has been stuck on the WARNING: BOOTLOADER UNLOCKED screen for about 5 min. Is this normal?

***EDIT I forgot to flash bootloader :(
[X Style (Pure) Android Development] jason2678:
Getting back to the bootloader screen in that condition is a bit tricky, but possible. It is not a brick.

Hold the power button until the screen goes dark, about 8 seconds, then immediately hold volume down and keep holding power. You should boot straight into the bootloader, so you can fastboot flash your way out of trouble. If you miss the timing and you end up on the logo screen then just try again. You'll get it.
[X Style (Pure) Android Development] gotsflat4love:
Jason, you saved my butt. Well at least pointed me to what EXACTLY I needed to do.
[X Style (Pure) Android Development] s27moto:
any news for 7.0
[X Style (Pure) Android Development] MrRedPants:
I've been going through your back and forth about this issue and want to make sure I understand. I am currently on TruePureXMM 2.9 and want to go back to stock (http://xdaforums.com/showpost.php?p=69728029&postcount=7203) - I took 18_18 from moto's website and got the parse error with gpt.bin.

Looking at about phone, I have this:

Baseband M8992_1233441.29.01.88.02R SUPER_NA

Kernel is frankenclark 3.10.101

system is 24.11.18.clark_retus.retus.en.US

So, I just want to go back to stock and be on the latest, greatest release :)

Thank you!
[X Style (Pure) Android Development] jason2678:
The firmware package linked to the post you quoted will get you running the May security update.

I've seen a little chatter about moto pushing a September update, but it was just a patched M, not N so nobody got too excited. I'm not even sure if it was for the XT1572 or XT1575. Don't modify your phone after flashing back to stock and you should be able to take an OTA if one is available.
[X Style (Pure) Android Development] MrRedPants:
Thanks Jason

There's definitely a September release for the XT1575

https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images#

(see attached)
[X Style (Pure) Android Development] jason2678:
That moto package should get you on the latest and greatest. Just don't skip boot, and make sure the non-hlos.bin reports success and you should be fine. People run into problems, usually WiFi, when they get boot and modem mismatched.
[X Style (Pure) Android Development] MrRedPants:
I would like to get that latest and greatest but I'm getting that fail with gpt.bin.

I can flash the May release first and either take the OTA or try to flash the September release
[X Style (Pure) Android Development] jason2678:
Gpt.bin is the partition table. I bet moto didn't change it across their M updates. The restore will probably work even if that fails since you're coming from M. Not a problem like if modem or system fails. I'd just proceed and see what happens.
[X Style (Pure) Android Development] SteveHebe:
Jason, I have been following your posts and I have successfully recovered my "frankenphone" because of it. I can't thank you enough!!

Can you please share your suggestion for the best way to root it now?
[X Style (Pure) Android Development] jason2678:
Flash TWRP, make a backup, and flash supersu systemless. There's a little trick to making it flash systemless.

This thread had all the details. Follow it and you'll be OK.
[X Style (Pure) Android Development] Moto X Brick:
Can you make a TWRP backup for the Asia Dual Sim version too?
[X Style (Pure) Android Development] pizza_pablo:
I DLed and fastboot flashed this from Moto site, 01-SEP-16 MPH24.49-18_18, but the security patch date is November 1, 2015

Why is that?

I'm interested in getting out this stock - Systemless rooted version, but will read more, before attempting.

Going back to stock, from TRUPUREXMM, has been nice. It's responsive and running great, but all the white backgrounds, notifications and status bar icons are terribly YUCK. I am missing layers and gravity box.
[X Style (Pure) Android Development] VyZard:
edit: problem solved, the firmware I used was older than the one installer, though I was sure it was newer.

Hey guys,

I am in need of your help, in order to repair my phone that wouldn't get past the boot screen, I tried to flash the 6.0 MPH24.49-18-3 FIRMWARE via fastboot, following every instructions (all drivers functionning), but now it is stuck in a Unlocked Bootloader Warning-erasing loop. I can still access bootloader screen so I powered off...

The only thing was at the first step "fastboot partition gpt gpt.bin", I had a message saying "prevalidation flash failed", but the following steps went just fine.

My original problem was after I flashed SuperSu via Windroid, I wiped cache/dalvik and it wouldn't get past the boot screen.

I tried to flash a Custom Rom but couldn't and there is nothing I could flash in TWRP, I tried to push a Nandroid backup but it wouldn't see it (I tried pushing the whole directory, and the zip file but nothing was seen). That's when I tried to flash the firmware via fastboot and here I am !

Please, help :)
[X Style (Pure) Android Development] deejayburnout:
Just to say that i used your autoflash file and it worked a treat. Brilliant thanks
[X Style (Pure) Android Development] NUMB401:
I downloaded the same file and had the same results with my phone. It seems to be an error on motorola's website. The version on there is actually Nov-1-15.
[X Style (Pure) Android Development] pizza_pablo:
I think it's more neglect than error.
[X Style (Pure) Android Development] Hitti2:
Is this the latest release of MM? MPH24.49-18-4

Also to root it traditionally, do I need to use any SuperSU? Been a while.

I'm having problems with the ROM I have installed now about volte.
[X Style (Pure) Android Development] TheYoz:
Same here... I'm going to contact moto
[X Style (Pure) Android Development] TheYoz:
Fellas... The 18_18 is older. The dates are correct. Especially looking at the date on the kernel, 18-4 is the latest I guess.
[X Style (Pure) Android Development] StankFiss:
After flashing 18.3 . I'm stuck bootloop. Keeps showing erasing. What to do?
[X Style (Pure) Android Development] TheYoz:
Fastboot flash 18-4 manually then take the new 18-8 OTA.
[X Style (Pure) Android Development] StankFiss:
Getting error with clean install.
[X Style (Pure) Android Development] TheYoz:
I don't understand what you mean by clean install. It's not something you flash with TWRP.
[X Style (Pure) Android Development] StankFiss:
I flash through adb. The 18.4 image. From there I cannot receive update. Software is modified. Need to get software status : Normal
[X Style (Pure) Android Development] TheYoz:
Reboot the phone to the bootloader and start a fastboot session and execute these commands verbatim... one after the other. Make sure after every flash it states SUCCESS. It may fail on the partition but if so, you can continue on. I noticed that it would fail flashing the modem, but I would execute the command again and it would work fine. I also modified the AutoFlash script from the OP to remove the 9th sparsechunk since the 18-4 update has only 8 but like I said... I noticed it would fail on the modem so I'd stick to manual flashing. I did this and immediately got the 18-8 update with 9/1 sec update.

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash system system.img_sparsechunk.8

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot flash bluetooth BTFM.bin

fastboot erase cache

fastboot erase userdata

fastboot reboot

Keep it mind... this will bring you back to stock everything... including recovery. The only thing modified is the unlocked bootloader which is totally fine when it comes to OTA's
[X Style (Pure) Android Development] StankFiss:
Did these steps like 4 times. I get no errors after install of 18.4. Then I try to except the Sept patch then it installs then boot to error. Update unsuccessful.
[X Style (Pure) Android Development] ffejy462:
Erase userdata will wipe internal storage (including pictures, music, backups, etc).
[X Style (Pure) Android Development] StankFiss:
I need steps to get Software status : Normal. I'm practically pulling my hair out I'm so frustrated.
[X Style (Pure) Android Development] TheYoz:
I'm assuming based on his posts he looking to get his phone out of bootloop. IMO, if someone is even reading XDA or attempting to flash, they better already know they need to back up their personal data.

---------- Post added at 02:43 AM ---------- Previous post was at 02:41 AM ----------

Dude... Follow what I posted and you will have your phone back to stock with May sec update. Where are you getting stuck?

---------- Post added at 02:47 AM ---------- Previous post was at 02:43 AM ----------

Are you positive the bootloader flash was successful?
[X Style (Pure) Android Development] StankFiss:
Ok to make sure I'm getting the right help. I have installed 18.4 with no issues. I'm able to go through steps like its a new phone. Putting in info and such. Then it ask if I want to update to 18.8 sept update. It will update then final screen green droid with error at bottom. then reboots then message Update unsuccessful then asks if I want to install update again and again. I'm not 100% sure but when in bootloader I see at bottom Software status : modified.
[X Style (Pure) Android Development] TheYoz:
I'm pretty sure I've read that if there is a mismatch with modem and bootloader you will get the update error... make sure that then you flash the modem it doesn't fail. I'm gonna guess your modem is causing you the grief.

On 18-3 i had a similar issue trying to get to 18-4 because something in fastboot was failing in the OP's auto script. For me it was the modem and I had to fastboot the modem twice to successfully get it updated.
[X Style (Pure) Android Development] StankFiss:
Have no errors in the flash of 18.4. Nothing showed fail.
[X Style (Pure) Android Development] TheYoz:
I'm not sure then... maybe someone with more knowledge this can help out... but this is a useful command to verify if everything is from the 18-4 build...

fastboot getvar all
[X Style (Pure) Android Development] OldBaldy:
Had the same problem. Nothing failed web I flashed 18.4, but the error when installing the update indicated the modem had unexpected contents. Flashed NON-HLOS.bin and the update took. Try it, can't hurt.
[X Style (Pure) Android Development] whotaketh:
Flashing issue

I had a similar issue to the other guy, so I followed these directions to try to isolate what was going wrong. I've used both 18 and 18.4, but I keep getting stuck on sparsechunk.2, meaning the terminal window just hangs and only stops when I unplug the phone. Any ideas?
[X Style (Pure) Android Development] TheYoz:
How long ago did you download the Android SDK? Try using the fastboot files from the autoscript from OP
[X Style (Pure) Android Development] whotaketh:
This morning.

I already tried using the autoscript. Yielded the same thing, except when I unplug it, the script says it's waiting for reconnection, and when I do, I don't think it picks up where it left off, but rather skips to the next sparsechunk file (the progress shows different file sizes). I'm thinking this is what's causing my bootloop that shows the little android "erasing", but never finishing.
[X Style (Pure) Android Development] TheYoz:
Moto drivers too? Install the drivers and use another USB port.
[X Style (Pure) Android Development] whotaketh:
It shouldn't be any of those since the previous commands work fine. But just to check, I did it anyway.
[X Style (Pure) Android Development] StankFiss:
With some help from acejavelin I got it to work. It was residual from DU rom. He gave me some steps to remove residuals to give me Software Status : Official.
[X Style (Pure) Android Development] Sipofwater:
Can downgrading from 6.0.0's September update to 6.0.0's May update cause a bootloop?
[X Style (Pure) Android Development] ffejy462:
Typically you can't go backwards. At least if you manually install via fastboot. It'll error on flashing partitions (correct me if I'm wrong somebody).
[X Style (Pure) Android Development] whotaketh:
Solved my issue. In the interest of posterity, here's what I did: I flashed one of the updates here (the stock Feb update in my case) to avoid the errors I was getting with the sparsechunk files. The single system.img flash worked much better. If anyone can tell me why, I'd like to know.

From there, it was "simply" a matter of updating through to the September update. By "simply" I really mean a PITA, but I know not to mess with anything in the future. Thanks to TheYoz for their help.
[X Style (Pure) Android Development] chris23445:
I keep getting an Error 404 when trying to download MPH24.49-18-3. Does anyone have a mirror to this firmware version? Trying to relock and return my phone to stock so I can sell it.

EDIT: Nevermind, for some reason my Chrome wouldn't work with the link. Tried it in Firefox and it is downloading. Very strange.
[X Style (Pure) Android Development] ParkyTech:
Hi guys, I'm running into a problem with my moto x pure. From my knowledge the latest security patch was released as of January 2017. I used the May firmware and I got an update, upgrading me to the September Update. I cannot get any further with updates. It says I am 100% up to date, however I am not sure if this is correct...Isn't there a december update that should be installed? I've looked all over the motorola global portal customer help and found a release note page for a "December 1, 2016" Security Update.

Is there any reason I wouldn't be getting this update? Or any update passed The September Update?
[X Style (Pure) Android Development] quakeaz:
September is the last one that they have rolled out. You are up to date.