yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] aditya1987:
Same issue here. Phone is unusable. Please help

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

I was facing the same issue.

Tried something and it worked so thought to let you know.

In the condition you mentioned.

Connected the phone on fastboot mode

Then entered following commands in the mentioned order

fastboot erase modemst1

fastboot erase modemst2

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot flash modem NON-HLOS.bin

fastboot reboot

and the problem got resolved as the phone is able to switch on the Wi-Fi and everything back to normal.

Needless to mention, all the files that are being used in the commands should be available at the command prompt location
[X Style (Pure) Android Development] Geckodudes:
Later I found the same solution. Just need to reflash modem. Not sure why that's no the last thing to be flashed in the batch.
[X Style (Pure) Android Development] donebrasko:
how do you enter it manually?
[X Style (Pure) Android Development] fdc77:
open a command prompt in the folder where you put all the necessary file (rom file, fastboot.exe,..) and type the command that you need.

if you open "flash-all.bat" with a txt editor, inside there are all the command necessary to flash stock rom, you can execute a command at time if you need.

for exemple

fastboot flash modem NON-HLOS.bin
[X Style (Pure) Android Development] jke000:
edit: even more basic question, can I flash w/o access to turning on USB debugging?

Will you guys/gals humor me with some noob questions. I bought a used Moto X Pure from Amazon that I'm trying to install 5.1.1 on. I downloaded this software and run the FLASH-ALL.bat script. So the first simple question. The script waits for a device and nothing happens until I boot the phone holding the power + volume down button to get to recovery. At that point, the script starts running. Does this seem correct so far? Since the script starts running, does that imply I have the phone at the right state and the Moto adb drivers correct?

My issue is that I see a bunch of "FAILED" messages when its running, trying to install the various system files. At the end of the process, I end up with a phone where I can't choose any wifi network after selecting the language even if I reflash the modem at the end. I'm not sure what to do about the failed flash of the system files unless someone can point me to things I might be doing wrong with the setup. Thanks for any advice you might have!
[X Style (Pure) Android Development] davidkoby:
I notice this is for android 5.1.1. How about the moto that is now on 6.0? Anything to restore that?
[X Style (Pure) Android Development] MrTriTanium:
Motorola has posted an official stock image for 6.0 in their Development section.
[X Style (Pure) Android Development] h@ns1976:
Do you have a link for this? Thnx
[X Style (Pure) Android Development] BrianDigital:
hey do you have a link, I can not seem to find it for the pure 2015, i see one for maybe the first moto x

edit, moto forum users said there isnt one
[X Style (Pure) Android Development] djshnizle:
Shawn I am having trouble with my WiFi not working after using this tool
[X Style (Pure) Android Development] BrianDigital:
go back flash the NON-HLOS.bin worked for me, cant relock the bootloader though
[X Style (Pure) Android Development] lafester:
Check the firmware thread
[X Style (Pure) Android Development] bendrum30:
Are you on 6.0 or 5.1.1? I flashed NON-HLOS.bin twice and didn't work. I'm TWRP/rooted on 6.0 and hoping to get WI-Fi working.

I did the following twice, but still no luck:

adb reboot bootloader

fastboot erase modemst1

fastboot erase modemst2

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot flash modem NON-HLOS.bin

fastboot reboot

Any help would be greatly appreciated. I'm running the commands directly from the folder holding NON-HLOS.bin.
[X Style (Pure) Android Development] Caddys:
I used this rom to return to stock and it seems ok.Maybe will help until moto will release Android 6 image.
[X Style (Pure) Android Development] lafester:
Check the firmware thread.

-edit- checked your link and that is the firmware thread. the full firmware (at least for 6.0) is official.
[X Style (Pure) Android Development] bendrum30:
Did you re-root after returning to stock? Do you have WI-Fi working on that?
[X Style (Pure) Android Development] Caddys:
No. I didn't reroot. I just returned to stock and lock bootloader. Wifi working after that. Everithing working great.

Trimis de pe al meu XT1575 folosind Tapatalk
[X Style (Pure) Android Development] StreetkillnHD:
This removes root and unoocked boot?
[X Style (Pure) Android Development] Caddys:
Yes

But for relock you should start with fastboot oem lock begin and end the process with oem lock. After that you have to replace boot image because the warning remains.

Trimis de pe al meu XT1575 folosind Tapatalk
[X Style (Pure) Android Development] StreetkillnHD:
So i would need to reunlock my boot loader even tho message will be there?

Or is it still unlock
[X Style (Pure) Android Development] misfit0313:
After flashing this file, the bootloader remains unlocked. You need to run additional fastboot commands to lock the bootloader. You do not need to relock your bootloader to flash the restore tool.
[X Style (Pure) Android Development] coop_58:
Replaced logo.bin to remove unlocked bootloader message

Hi Shawn5162,

FYI

I replaced your logo.bin file with the file from Hashbang173 and the unlocked bootloader message disappeared.

Thanks for your hard work!!
[X Style (Pure) Android Development] jdog94:
my wifi wont work after using this .....any ideas.......search doesnt seem to work
[X Style (Pure) Android Development] constomy:
So I returned to stock via this tool. However, I'm trying to receive the 6.0 OTA. But it keeps saying "Failed". Any Ideas?
[X Style (Pure) Android Development] MHB1638:
Because the bootloader is still locked.

Everyone else for the wifi issue, need to download the file and make it lowercase. then fastboot it. There is a post inthis thread further back
[X Style (Pure) Android Development] kipperbusby:
my wifi does not work when i use this tool. any fixes?
[X Style (Pure) Android Development] jimlightner:
i used this tool it worked great.when i boot into factory recovery it says no command with the droid on his back and an orange triangle..any help would be great
[X Style (Pure) Android Development] motouser32:
Boot Loop Brick

Hi,

I'm having a huge problem with my Moto X Pure Edition. After I tried to push the SuperSU.zip and went to reboot, my phone went to reboot but stayed on the logo screen. I'm still able to shut it off, and go to into fastboot and bootloader, so will this work for my phone that is running MM Android 6.0? If not, what else can I do, I'm definitely struggling for help!
[X Style (Pure) Android Development] jdgesmlls:
Try flashing SuperSU 2.62-3...

https://download.chainfire.eu/751/SuperSU/

If you can boot, then you can update to the latest via the Play Store.
[X Style (Pure) Android Development] motouser32:
Thank you so much for responding! How am I expected to flash 2.62-3, though the twrp program on my computer? I'm using the WinDroid Toolkit, so I'm assuming I should go to 'install app' under the 'other' section, or would I click 'push file' under the 'other' section? If I'm not supposed to flash using my computer, then how would I get the SuperSU 2.62-3 from my computer to my phone? I'm a little bit lost because my phone is stuck on the boot logo screen, and therefore won't connect to my computer to transfer files through usb if I wanted to use the program because the program requires android to be activated. So is there a way to transfer the SUPERSU.zip you showed to my phone through fastboot?

UPDATE: So there is a little bit of progress. Instead of rebooting and freezing at the initial logo, the logo is now stuck in that buffering like Motorola logo (with the hand stiched by message at the bottom). I've noticed also that when I try flashing anything, it says that there is no MD5 file found and so it skips that check. I feel like this is important?
[X Style (Pure) Android Development] jdgesmlls:
OK, do you have your bootloader unlocked and TWRP installed? I didn't use the WinDroid method to do this, I followed this thread: http://xdaforums.com/moto-x-style/general/guides-how-to-guides-beginners-t3200808

You should be able to get into TWRP regardless of which ROM and state you are in... If you are trying to root on stock, you should be able to flash SuperSU 2.62-3 in TWRP. I am not sure how to do this via adb/fastboot but if I was in your predicament, I would get TWRP up and running and go from there... You can always flash the De/Odexed rooted stock ROM images that are posted on the Moto X Pure forums. I also ran into what I believe is the same issue as you. I unlocked my bootloader, installed TWRP via fastboot and was able to boot into recovery. I flashed SuperSU 2.68 and my phone was stuck at the Motorola boot animation. I gave up on rooting stock after that and flashed TruPureXMM and Pure Nexus.
[X Style (Pure) Android Development] motouser32:
After countless hours of research on forums and threads, mostly on xdadevelopers, I figured out a fix. Simply wiped my cache/ other temp files and flashed the original supersu.zip and it loaded up. Ran rootchecker app and it seems to be running perfect. Hopefully there are no more problems, but thank you for your help nonetheless!
[X Style (Pure) Android Development] neoriix:
Thanks, I restored succesfully mi Moto from 6.0 OTA to 5.1.1 due the lack of easy way to root and because had some problems with the phone app (wont let me answer calls) thano you again ?
[X Style (Pure) Android Development] aer0zer0:
So i am thinking of purchasing this phone, and dropping my HTC one M9, Does this file act as an RUU, like a full wipe, all stock firmwares, bootloader, and stock rom?
[X Style (Pure) Android Development] gokart2:
Yes, but without the UI. It's basically a windows script to automate fastboot commands. It basically does the same thing as an RUU, except IIRC the bootloader gets relocked with an RUU, where this the bootloader stays unlocked. I made one HERE as well. The one here is only for Android 5.1.1 where mine works with the 6.0.0 as well.
[X Style (Pure) Android Development] Ghost9867:
Hey but if i restore my moto x style with this tool i will have the OTA back again right ? With the stock recovery and everything ? Like when it come out of the fabric ?
[X Style (Pure) Android Development] Jlew7715:
I'm wondering the same thing if I restore using this tool will I get OTA, and be completely stock as if right out of the box?
[X Style (Pure) Android Development] Jlew7715:
Just curious about my last question I really just am curious if OTA works after using this?
[X Style (Pure) Android Development] amirrauf:
Thanks for the tip! My wifi was not working after I restored my phone using this tool. Now, it is working.:good:
[X Style (Pure) Android Development] NexusS4gFreak:
Will this reflash it stck recovery? Also reloxk bootloader?
[X Style (Pure) Android Development] Sirkah:
Dangers of allowing wifi update of 6.0?

I am new Android and XDA. Following a how-to guide on rooting from XDA on my XT1575 I ended up soft bricking my device. I was running Marshmallow 6.0. Later found that I should not have attempted a system root with SuperSu and should have attempted the systemless root. After many attempts to manually flash to 6.0 I had no luck. I still sat at the logo screen with the phone rapidly heating up.

I found this port and decided 'why not?' The flashall ran and I had a brand new 5.1.1 phone. I also had the wifi error and was later able to correct it by flashing the NON-HLOS.bin as mentioned by other posters in this thread. :highfive:

What I did notice during the flash process was that during the flash of the gpt.bin it received the following error:

target reported max download size of 536870912 bytes

sending 'partition' (32 KB). . .

OKAY [ -0.000s]

writing 'partition' . . .

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.359s

I had received the same error attempting to use RSDlite with the 6.0 image and the process would just stop. Same with the manual process. Both of these ended in a repeat of either the animation of the moto droid erasing and rebooting for hours or the standard moto logo with nothing happening. So far this flashall tool had been the only saving grace to having a working phone.

I was wondering if anyone else has run into this issue, may have pointers on how to resolve it, if allowing a wifi update to 6.0 may brick it, or if perhaps there was a 6.0 flashall that may work as magically as this one.

Thank you for your time and any assistance.
[X Style (Pure) Android Development] note3userr:
Foes this remove twrp and root
[X Style (Pure) Android Development] iamrobk:
So I think I'm in a similar situation, except I'm now trying to do the wifi/OTA update back to 6.0 and it keeps failing. No idea why. Anyone have any advice?
[X Style (Pure) Android Development] lafester:
Flash 6.0 directly.
[X Style (Pure) Android Development] Jazmaan:
As a relatively clueless noob, I'm hoping someone here can advise me. :) I am currently running AICP Marshmallow nightly 4/29 on my Moto X Pure (Verizon). I have no significant problems with it. But I want Android Pay, and I want "Always listening even when the screen is off OK Google". And I also want Marshmallow. Is the only way for me to get those things to revert to Lollipop stock and lose root and then take the OTA update to Marshmallow? If so, is this "Restore-to-Stock-Tool" the best way to do that? I'm reading in this thread about people losing wi-fi after using this tool. Does that happen to everyone?

Finally if I do all these things can/should I do the "systemless Root" and "systemless Xposed"? Would that leave me with a rooted Marshmallow phone that has "Always Listening Ok Google", "Android Pay" and (the main reason I want root) free tethering?

Thanks for your advice. If there's a wrong way to do something I'll usually find it first, so I appreciate your advice before I embark on this.
[X Style (Pure) Android Development] kagarii:
Will this work on android 6.0?

Im on marshamllow, will this work on 6.0? And if im in boot loop that cant access recovery mode, do i enter bootloader? or charging?:) please help thank you
[X Style (Pure) Android Development] lafester:
What did you do to cause the boot loop?
[X Style (Pure) Android Development] Spike96:
[deleted]
[X Style (Pure) Android Development] cgrwar93:
who can help me with my problem https://www.youtube.com/watch?v=NjTRT6cIj9k
[X Style (Pure) Android Development] FoneWatcher:
I've searched a lot and could not find a succinct answer to this circumstance, so please forgive or direct me to answer if I missed it or used wrong search terms:

If I have a TWRP recovery, rooted, stock ROM 6.0 Pure, May security update, will this tool work on my device as described and return my device back to unrooted, stock 5.1.1 that would then be able to take OTAs again (assuming I relock bootloader before taking OTAs)?

TIA for help or ideas
[X Style (Pure) Android Development] alershka:
I used it to return to stock on the February Security update release so l would think you would be fine. I rolled back to 5.1.1 then manually took the OTAs to get back to the February Security update release.
[X Style (Pure) Android Development] aer0zer0:
Im coming from an HTC 10, where we had RUU's that did a similar thing, it flashed all of the firmware and system images, and put us back on a version that could take the OTA without failing. I just bought the phone today and have already got my nand, and systemless root 2.76 going.

I have the same question as you, does this act as way to fully restore to pure stock (minus bootloader unlock) so we can take an OTA when new ones come out
[X Style (Pure) Android Development] Nooblit:
I get the feeling there's a missing step here. I'm on the latest 6.0.1 and want to get back to 5.1.1. I followed these steps to the letter, but the command prompt just hangs on "device not found, waiting for device"

So what am i missing here? I get the feeling i'm supposed to put this in fastboot mode or something but there are no instructions to do so. Can someone clarify?
[X Style (Pure) Android Development] dapimpinj:
Make sure you enable MTP just in case and turn on USB developer option. The phone should prompt if you trust the source and hit yes. The first time i got the prompt i hit the always trust box and hit ok. Then i closed out of command prompt and started it again and it worked immediately. I was on 6.0.
[X Style (Pure) Android Development] tony1208:
Can't I just do a factory reset to return to stock from my rooted unlocked X? Instead of using this tool?
[X Style (Pure) Android Development] kennonk:
works kinda

In Windows 10 I couldn't get the batch file to get past 'waiting for devices' like a few others on this thread. Fortunately I have a Linux partition and just copy and pasted the commands there are things worked fine. The only issue I had was for some reason the first time I flashed the modem file I got:

(bootloader) Preflash validation failed

FAILED (remote failure)

Not sure why. I rebooted the bootloader and it let me flash the modem just fine the 2nd try.

Prepping the device for my brother-in-law this package made it easy peasy thank you!
[X Style (Pure) Android Development] amaury48:
I have attempted 2x to run this and both times after boot up I have no cell service or Wifi...... XT1575 came from stock, rooted, unlocked bootloader... can someone help me with this....

Update: fastboot re-flashed HLOS and BT files. Apparently they did not flash with this tool....

All is well now....
[X Style (Pure) Android Development] justmoto92:
Restore from Android 6.0?

Hi, my XT1575 is bootloader unlocked, upgraded to stock Android 6.0 Marshmallow ROM then rooted, running TWRP 3.0, then flashed custom ROM.

How can I restore back to Stock Android 6.0 Marshmallow ROM and recovery? All I want is just ROOT access on Moto Stock ROM.:confused:
[X Style (Pure) Android Development] RyanTX:
Any tips to get this to work on Windows 10? It just sits at 'waiting for device' after asking if USB debugging is ok.
[X Style (Pure) Android Development] dmb219:
That happened to me and I needed to confirm the connection on the phone even after allowing it in settings. Not sure if that's what's up with your phone. I'm also using Windows 10. That was with adb, not this specific tool.
[X Style (Pure) Android Development] zobi123:
Is there anything like this for the Moto X Play?
[X Style (Pure) Android Development] lottanookie:
I ran this and it worked but then I had no wifi. Searching I found the following page where if you

scroll down to the comments you will find the file to load to enable WIFI

:

http://www.andromods.com/unroot-locking/moto-x-pure-edition-2015-unroot-back-to-stock.html

Complete with directions on how to load this file.

It worked!
[X Style (Pure) Android Development] Scathach:
will using this remove xposed and root?
[X Style (Pure) Android Development] scabbie1980:
I used this window tool but I just couldn't get my boatloader locked to take the OTA. Any idea on what I'm doing wrong?
[X Style (Pure) Android Development] K4J98:
Fantastic. Simple. Effective. Thank you!
[X Style (Pure) Android Development] Taco3nsalada:
fastboot flash logo logo.bin

Hello

I see fastboot flash logo logo.bin in the batch file and I was wondering if this will remove the custom logo on the startup that I made with the moto maker. Is there anyway of saving that? I think if I just remove this command I should be fine?
[X Style (Pure) Android Development] Graphicnature:
Just bought a MXP this morning. Running Orion 6.0.1... Not sure how to get it back to stock. Will this work for me?

Thanks.
[X Style (Pure) Android Development] shadabmustafa:
My MXP was on 6.0 upgrade, and stuck in boot loop. Tried this but didn't work. fastboot flash boot boot.img resulted in --> (bootloader) Preflash validation failed with "version downgrade for boot" in bootloader log. recovery.img got flashed successfully, but flashing system sparse files failed with (bootloader) Invalid signed image & (bootloader) Preflash validation failed with "Invalid PIV signed system image" message in bootloader log.

Then I tried to restore it to the stock using official recovery image provided on motorola site (motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images) and that didn't work either. This failed while flashing the boot.img with error Preflash validation failed and "Failed to verify hab image boot" in bootloader log.

Any help in this??
[X Style (Pure) Android Development] Rexcrispy:
I used this method to return to stock 5.1.1. Worked great.

When i downloaded the next OTA from Motorola it failed during install; any suggestions?
[X Style (Pure) Android Development] MXPJamee:
Currently running TWRP recover, and AICP 12. Just plug in the phone with USB Debugging enabled and run batch file? This will return me to 5.1.1, but will I be able to lock the bootloader and take OTA updates?
[X Style (Pure) Android Development] Digital DJ:
I'm trying to run this now but I'm seeing error: device '(null)' not found

<waiting for device>

It's been this way for a few minutes so I'll give it more time. My MXPE is stuck in bootloop. The boot loader is unlocked, twrp installed and I flashed SuperSU. That's when all hell broke loose

Edit: it worked, but I'm trying to figure out the WiFi thing...

---------- Post added at 07:52 AM ---------- Previous post was at 07:22 AM ----------

Yes it does, I just used it on mine, but you have to go download the wifi enabler after you run this. Plus I found that I have to be in fastboot mode to run this with 6.0+
[X Style (Pure) Android Development] CZ Eddie:
WiFi fix from that linked thread:
[X Style (Pure) Android Development] CZ Eddie:
Thank you.

I restored to stock using the OP.

Then flashed the WiFi fix.

Then found I couldn't get OTA updates, they kept failing on install.

I Googled around for some sort of fix and found this post just by chance.

So I ran the commands quoted above and this resolved the issue.

Phone installed the OTA just fine afterwards.

It actually had like three or four OTA's that needed to be installed one after the other.

I then installed the logo fix from Hashbang and all is looking great. :good:

The guy buying my phone seems to want to root & ROM so I probably went through all these steps for nothing. lol

But it's good to know he gets a fresh start and everything works great. :good:
[X Style (Pure) Android Development] zswielder:
never mind. I found the answer.
[X Style (Pure) Android Development] CZ Eddie:
heheh I hope so :p
[X Style (Pure) Android Development] zswielder:
I followed your steps exactly the same way, but my phone is failing system update :(

Can someone help? I was on stock rooted 6.0.1. I used this tool to go back to root. Then, wifi was broke, so I followed the instruction to get it back. It wasn't taking system update, so I followed the post above to run all those commands. But, still not working :(
[X Style (Pure) Android Development] CZ Eddie:
Did you get any errors on any of the fastboot commands? Look over the output to make sure nothing failed. If all good, then I'd reboot a couple times, verify WiFi is connected and then try again.

You might also try disabling automatic time and set the time on your phone to a future date, like a week from now. That helps sometimes.

You can also try doing the update from Motorola Device Manager.

Good luck.