yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] yung40oz84:
Oh just extract them and flash only those two and I can get OTA, but also if I to whole steps I can too? What commands flash them two in ADB? Thanks in advance.
[X Style (Pure) Android Development] PiousInquisitor:
Extract everything from the zip and edit the flash-all.bat file. You could just remove the delete user data line, but I'd remove everything but recovery and the system image parts.
[X Style (Pure) Android Development] nitros12:
Hey op, I tested a restore image that works on the XT1572 STYLE, and it works as a restore image, pm me and i can send the link/ upload to my gdrive, as the download link was off a french forum, witha 60kbps limit.
[X Style (Pure) Android Development] daniel.1983:
Thanks for this information! I'll receive my XT1572 next week and wanted to be sure, that I'll be able to return to stock in case of an error.

What's the reason for the different images? You described a WiFi connect error in an other thread. I thought, only the modem file would be different, not the kernel (WiFi driver?). As a conclusion: Do the style users have to install different roms, if there will be some custom roms in the near future?
[X Style (Pure) Android Development] nitros12:
Honestley, I have no idea why the wifi drivers are different on the style, but it possibly means that there will have to be some workarounds/ different versions of the rom.
[X Style (Pure) Android Development] daniel.1983:
Sounds bad a bit...we'll see when development/modding will start (one day). Maybe someone is able to look at this by investigate the system in detail. I think there will be many users of the style, due to the price of the Nexus in Europe and the lack of alternatives.
[X Style (Pure) Android Development] nitros12:
ok, i've not had a reply from OP, so ill post the non modified zip here, hosted on my google drive, tell me if it goes down. here This is for the XT1572 Moto X Style, retail, eu, it does not have a flash all batch script in, but the one from the XT1575 download will work.
[X Style (Pure) Android Development] daniel.1983:
Thank you! The download works.

Gesendet von meinem XT1572 mit Tapatalk
[X Style (Pure) Android Development] met152:
Worked flawlessly! Thanks OP.
[X Style (Pure) Android Development] gokart2:
Holy mirrors! I can only imagine what your bedroom looks like! Lol:laugh::good:
[X Style (Pure) Android Development] patt2k:
When your upload is higher then your download these things just take few minutes if the server allows for it :D
[X Style (Pure) Android Development] yung40oz84:
So if I remove all these lines:

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

and keep these lines only:

adb reboot bootloader

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 system system.img_sparsechunk.9

fastboot reboot

That will allow me to get the OTA? IO just want to make sure I keep the right lines and do not mess anything up, I got the soak test coming and want to get the OTA. So the lines above is all I need? and run the flash all.bat file?
[X Style (Pure) Android Development] PiousInquisitor:
That would do it.
[X Style (Pure) Android Development] whymista:
For some reason when I used this it now wont let me use nandroid backups or anything

---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------

How can I force factory reset via adb thats all I can use twrp cant moutn anything for some reason

---------- Post added at 03:52 PM ---------- Previous post was at 03:51 PM ----------

I get errors for all the sparse files
[X Style (Pure) Android Development] whymista:
I continue to get this when I try to flash the stock images

So I have the boot img and the firmware which do I have to flash and which order. It seems that something is missing from android when I try to wipe.

I tried to flash both and got this unknown partition

error cannot determine image filename
[X Style (Pure) Android Development] stu5797:
Cant I just flash he Flash all bat in the op and I am stock , locked bootlader and unrooted?
[X Style (Pure) Android Development] kdb9904:
This tool was a lifesaver! Worked like a charm!!
[X Style (Pure) Android Development] BladeRunner:
the Flash all bast in the OP does not relock the bootloader, it will, however return you to a stock, unrooted state with an unlocked bootloader. To relock the bootloader you would need to follow the steps a couple of posts up. I suppose one could also modify the XML file(s) in the tool by adding the<fastboot oem lock begin> and <fastboot oem lock> commands in the appropriate location.
[X Style (Pure) Android Development] gadget069:
The tool worked perfectly!!!!! Thanks!
[X Style (Pure) Android Development] HikingMoose:
Anyone else interested in a 100% pure stock flashable zip? I would love to have one. I tried one someone else made, but it caused google errors and I could use email or hangouts and stuff.
[X Style (Pure) Android Development] CZ Eddie:
I used this tool while booted in the AICP OS.

Got a bunch of write failures and after it was completed, it just rebooted to the "Device is Unlocked" screen and hung there.

Couldn't do anything other than reboot to bootloader from stock recovery.

But while in the bootloader, I used the tool again and this time it worked like a charm. Many thanks for the tool and useful thread. :good:
[X Style (Pure) Android Development] MarkGiardini:
Any Aussies in here? I stupidly flashed this and lost my Vodafone network!
[X Style (Pure) Android Development] Stryder5:
Thanks, this helped. Which logo.bin do you have included? It seems to be the one that includes a warning message about having bootloader unlocked. Is that correct?

Also, how about including a .bat file for locking the bootloader? Basically needs 2 extra lines.
[X Style (Pure) Android Development] bbb77:
I downloaded the XT1572 nitros12's version for my eu Moto X Style, so I'd like someone can share with me the "FLASH-ALL.bat" from XT1575 zip, without I must extract it from another 1.3GB download. Please.... And tell me where put it in the extracted folder.
[X Style (Pure) Android Development] fdc77:
here for you...

P:S

check that there are no errors at the end of the flash especially regarding the NON-HLOS.bin , If you have errors, enter the command manually.
[X Style (Pure) Android Development] marcviado:
Will this relock the bootloader and get rid of the warning bootloader unlock screen?
[X Style (Pure) Android Development] amit.lohar:
DELETED.
[X Style (Pure) Android Development] Stryder5:
No, and no.

Look for the thread that has instructions on how to revert to the stock greeting message by flashing logo.bin.

Then edit the flash-all .bat file and remove the line that flashes logo.bin from the restore tool.

To lock bootloader, do the following:

1. From a command prompt window, run "fastboot oem lock begin"

2. From the same command prompt window, run the restore tool by typing in its name from the directory it's located in.

3. Then "fastboot flash logo /path/to/logo.bin" from the thread on how to get rid of the warning bootloader.

4. Finally, "fastboot oem lock" to complete the process.
[X Style (Pure) Android Development] marcviado:
im trying to flash the logo.bin but its not working.i do have adb set up. it keeps giving me an error.i downloaded the file,unzipped it,i put the file in my local disc C. where my adb/fastboot is set up and its not working
[X Style (Pure) Android Development] Stryder5:
You should refer to the respective thread that you got the logo.bin from. I don't want to hijack OP's thread.
[X Style (Pure) Android Development] marcviado:
ive already have and posted there as well..just waiting on a reply
[X Style (Pure) Android Development] GabryBSK:
Hello, tell me if i got it right. I have the XT1572 version, to succesfully restore to stock i have to use nitros' zip file (here's the post, http://xdaforums.com/showpost.php?p=63266725&postcount=78), and then what?

Do i have to follow the first three steps of the #1 post and then extract the FlashAll.zip (here's the post, http://xdaforums.com/showpost.php?p=63740488&postcount=97) in the extracted folder from nitros12 XT1572 version?

Sorry for my misunderstanding and for my english :p
[X Style (Pure) Android Development] Stryder5:
Extract everything to one directory. Then run the flashall.bat file. Make sure no errors popup. Read the flashall.bat file with a note editor before you start. All the file names in the flashall.bat should match up to all the files in the directory you extracted to. If something doesn't match up, you should probably check in because something might not be right for you.
[X Style (Pure) Android Development] ericerk:
Is this a full SBF restore?

Also will I be able to get OTA's?
[X Style (Pure) Android Development] Sakete:
Will using this tool also re-lock the bootloader? That wasn't clear to me in the OP. Thanks!
[X Style (Pure) Android Development] Stryder5:
No, it won't lock the bootloader. You'll have to do it yourself. Read a few posts back. I posted some guidance on it.
[X Style (Pure) Android Development] fdc77:
anyone know if RSDlite 6.2.4 can be used to restore stock firmware on MXS
[X Style (Pure) Android Development] Tcix:
[MENTION=5323673]Shawn5162[/MENTION] I liked your idea, so I made a FLASH ALL file to the XT1572 dual sim variants (Indian and Brazilian models). Could you add it to your post?

In this thread there are the also the stock firmwares and patches for the Indian and Brazilian models: http://xdaforums.com/moto-x-style/general/how-to-flash-marshmallow-european-moto-t3253343
[X Style (Pure) Android Development] Shawn5162:
Sure...l'll do that tonight
[X Style (Pure) Android Development] UniX1rm:
Quick question. Does this allow to take OTA from motorola? or this is stock? much appreciated.
[X Style (Pure) Android Development] Jay794:
Is there a version for the XT1572 yet?
[X Style (Pure) Android Development] GabryBSK:
See post #104 and #105. Here's your answer ;)
[X Style (Pure) Android Development] diegol2k:
after flash all.bat everything wokrs great, but a notice when the phone is plug to the pc or the wall wont turn off and always get into bootloader mode.

someone notice this?

regards
[X Style (Pure) Android Development] IAreKyleW00t:
Yes, you should get all OTA's assuming you don't modify /system after restoring. :)

Also, thank OP for this. Definitely saving this for a "just-in-case" scenario.
[X Style (Pure) Android Development] Mareyelow:
So my WiFi seems to be disabled after doing this. Before I did this, I followed this tutorial to get MM, so I was on MM with different radios. I used this tool, everything seemed to go fine, except in the welcome screen to setting up the phone, wifi networks aren't showing up. I just flashed a new radio from that thread, but that didn't help. Any tips how to fix it?
[X Style (Pure) Android Development] smohanv:
Thanks for this post. It helps with XT1572.

http://xdaforums.com/showpost.php?p=63791316&postcount=105
[X Style (Pure) Android Development] Shishir Singhal:
can i use this on marshmallow please help
[X Style (Pure) Android Development] jscat1:
You need to flash the NON-HLOS.bin again.

Boot into the bootloader

From the location that you downloaded the restore to stock tool run "fastboot flash modem NON-HLOS.bin"

I had the same issue even after running the restore and had to do the modem part again.
[X Style (Pure) Android Development] JMB2772:
I seem to be having a small issue that I can't quite figure out the cause of. After using this tool (I went from stock, rooted phone with TWRP), the first 1/3 of my brightness slider in Android does nothing. It doesn't adjust the brightness at all. Then, once I hit 1/3, the rest of the way it will function correctly and adjust the brightness up. I've flashed a new ROM as well, and it didn't fix anything. I've factory reset in TWRP as well, with no luck.
[X Style (Pure) Android Development] shoman94:
That's normal because it depends how bright it is in the room. It's always done that.
[X Style (Pure) Android Development] JMB2772:
Oh man, imagine how stupid I feel now lol. I've just always had adaptive brightness off, it didn't even cross my mind to check if it was on. Thanks for sparing me more confusion!
[X Style (Pure) Android Development] messiahfreedom:
Does this tool wipe the internal sd?
[X Style (Pure) Android Development] jim380:
yes. it does. It wipes all your data.
[X Style (Pure) Android Development] brusslesprouts:
does this work going back to lollipop from MM?

Yes it does.
[X Style (Pure) Android Development] shoman94:
I used it going from the IndianMM to stock so I could flash the OTA. I have not tried it from the US release of MM.
[X Style (Pure) Android Development] MrTriTanium:
Did not work for me. XT1575

Went from stock 5.1.1 and sideloaded the US 6.0 soak test from its respective thread. I saw a link in the 6.0 soak test thread to a Moto forum that said Moto can tell whether or not the software was sideloaded or OTA'd., and there was no clue whether or not the final build would be pushed to my phone upon release. Figured I should play it safe and go back to stock and wait for the Official OTA like I should.

I downloaded the .zip in OP shortly after this thread was created. I extracted the .zip and ran the .bat while in Fastboot. All flashed "OKAY" up until the 'boot' file. Some successfully flashed after 'boot'. After, all of the 'system' flashes failed.

Phone rebooted. Would continuously stay on the new 6.0 boot animation. Ran the .bat again and got the same results. Tried sideloading the US 6.0 soak test again and AICP, but both failed on validation tests. Re-downloaded OP's .zip and extracted it in another folder and ran the .bat in the new folder. No success. In the process I lost Recovery and got it back somehow.

Now, the 'partition' and 'system' write fails. Phone will boot with the 5.1.1 boot image for a few seconds, vibrate, restart, and will loop. Can still get into Fastboot and Recovery. Attached is a screenshot of the command prompt the last time I tried the .bat. Currently hangs on flashing 'system'.

If Motorola simply provided the factory image I bet this entire process would be a WHOLE lot simpler...

Edit: would probably help to know that I started off with the bootloader locked, un-rooted, and stock recovery.

Edit2: My problems are the same as [MENTION=7117049]Ice1317[/MENTION]'s in the "Android 6.0 Update rolling out! Pure Edition" thread. Almost exactly. Didn't think about looking there. Will probably have to call Moto tonight and see what they can do.

Edit3: Called Motorola and they offered to exchange phones. [MENTION=5323673]Shawn5162[/MENTION] can you please add (in big words) in OP that an unlocked bootloader is required for the RTS tool to work, otherwise you end up with a paperweight and at the mercy of Motorola?
[X Style (Pure) Android Development] playenball:
My guess would be to the people having issues using the tool to go back to the 5.1.1 firmware and it failing would be that you must have an unlocked bootloader for it to work because it's not an official firmware package from Motorola.
[X Style (Pure) Android Development] fakitol:
Tried to revert back my X Style to pure stock, but bootloader still says: system modified. I flashed stock images (http://xdaforums.com/showpost.php?p=63266725&postcount=78) and relocked bootloader.
[X Style (Pure) Android Development] Stryder5:
Same problem with me for the pure.
[X Style (Pure) Android Development] ximfinity:
Shawn5162, You might want to add a bold note to not flash this after flashing the 6.0 MM update zip
[X Style (Pure) Android Development] playenball:
I think what needs clarified is that you can't flash this on a locked bootloader because it's not an official signed image from Motorola. I have used it to flash back to stock on my device with an UNLOCKED bootloader and then went back to CM 12.1 just fine after flashing to stock to check out the 6.0 MM Ota.
[X Style (Pure) Android Development] fix-this!:
I may be wrong but maybe the op isnt updating this thread anymore. Seems he may have another device.
[X Style (Pure) Android Development] JamFan05:
So I just want to clarify, I can use this tool if I'm on the MM ota with an unlocked bootloader. I also want to return to CM 12.1.

Edit: Yes this does work on the MM ota. You do have to flash the NON-HLOS.bin to get wi-fi working again.
[X Style (Pure) Android Development] eric082684:
Nice work, worked like a charm.
[X Style (Pure) Android Development] DJTeeJay:
I have the same problem with WiFi not working after using this tool after flashing MM.

Can anyone make a TWRP flashable fix of the .bin file? (Laptop was stolen)
[X Style (Pure) Android Development] saidmsb:
Is there any difference between these?

---------- Post added at 01:30 PM ---------- Previous post was at 01:30 PM ----------

How to know my cid?
[X Style (Pure) Android Development] lohanbarth:
Hello,

it all depends on what country you are.

EN = europe

ASIA = Asia

etc ....

Go build number to know yours.

Edit: DS = DUAL SIM
[X Style (Pure) Android Development] brusslesprouts:
never mind got it:)
[X Style (Pure) Android Development] guraki:
I made the restore succesfully...With unlocked bootloader shall i recieve the OTA MM????
[X Style (Pure) Android Development] eyecon82:
didnt work for me at all
[X Style (Pure) Android Development] guraki:
I folloed the procedure but my bootloader is still unlocked
[X Style (Pure) Android Development] vnphantom:
The bootloader has 3 states: locked, unlocked, and relocked.

Locked means you've never unlocked the bootloader. This is the ONLY state that you won't see the warning screen.

Unlocked means what it means.

Relocked is when you unlocked it, then relocked by flashing the stock image. However, you will still see the warning screen when you boot up.

Only way to get rid of it is by flashing hashbang's modified logo.bin in his other thread. That will get rid of the warning screen.
[X Style (Pure) Android Development] guraki:
Shall i be able to recieve OTA MM????

---------- Post added at 09:14 AM ---------- Previous post was at 09:08 AM ----------

How to relock the bootloader flashing the stock image???The method described in this thread didnt help/.....
[X Style (Pure) Android Development] SystemErrorOne:
For those of you having wifi problems do this

download radio (modem) here

Do not use flashify to create a zip you MUST flash within adb. In my case I downloaded minimal adb here

place the modem non-hlos.bin in C:\Program Files (x86)\Minimal ADB and Fastboot (or wherever you installed minimal adb at) then hold down shift right click and open command here

Make sure you have adb drivers installed here

The command you need is fastboot flash modem non-hlos.bin

Make sure you

rename the hlos.bin file lowercase

because when you download it from the link above its all capital.

should be something like this..

That should be it, remember you must be in bootloader mode "fastboot mode" for this too work.

Thanks to [MENTION=617884]Koush[/MENTION] for the drivers, [MENTION=4228831]newHere:)[/MENTION] and a few other guys I forgot to mention.
[X Style (Pure) Android Development] saidmsb:
I downloaded restore zip for style xt1572 European version and i need to flash modem file only but don't know which one is that[emoji1]

Can anyone help please

Check the attached Screenshot
[X Style (Pure) Android Development] brusslesprouts:
can we make a flash back to stock tool for mm?
[X Style (Pure) Android Development] HikingMoose:
You don't need to rename the modem. It flashes just fine in caps (if you type it in caps). I have flashed it 8-10 times in caps.

---------- Post added at 09:05 PM ---------- Previous post was at 09:03 PM ----------

As a side note, after you flash the modem, it may help to also flash the bootloader separately. The restore tool always fails to flash it for me.
[X Style (Pure) Android Development] JEZ69:
couldn t downgrade to update mm euro

hello i have a xt 1572 europeen one with locked bootloader

i follow this tread 2 weeks ago i m now on 6.0 asian one

but i want to downgrade to euro 5.1.1 to update with 6.0 euro ota

it is possible ?

do i need to unlock my bootloader?

i tried in fastboot flash 5.1.1 euro but somes errors and faileds!!!!!

Can someone can help me?
[X Style (Pure) Android Development] BrianDigital:
I can not get the download for the modem, get a 403 saying I need to sign in
[X Style (Pure) Android Development] NewZJ:
Here's another mirror.

https://drive.google.com/file/d/0B6AszckkaaBfNHVjNVRTT0VXb00/view?usp=docslist_api
[X Style (Pure) Android Development] JEZ69:
Brick after dowgrade help please

hello i have same problem like first post

i was on xt 1572eu 5.1.1 with locked bootloader

i flash the mm update like here

http://xdaforums.com/moto...-moto-t3253343

and everything was ok today i try to downgrade to 5..1.1 eu to update the stock mm ota euro and i brick the phone

i tried everything you tell in the tread nothing i just enter in bootloader and recovery i try factory reset and now bootloop

i tried falsh in fastboot asia 5.1.1 but nothing

i m still in locked boootloader

Please help me i have no phone
[X Style (Pure) Android Development] lafester:
You should not be flashing anything with a locked bootloader.
[X Style (Pure) Android Development] Oaklands:
I have a 1575 and used the TWRP method to upgrade. I show NO wifi connections when booting into MM. Will these modem drivers work for me or are they only for the 1572?

Thanks..
[X Style (Pure) Android Development] Oaklands:
This is my 2nd attempt to upgrade to MM. First I used the TWRP method and it failed. This time I tried this utility to go back to stock. I am back to stock but the upgrade fails when installing. All it says is error ( with Andy on his back) and nothing else. Any ideas on what I might need to do. I appreciate any input as I need to get my phone back up and running. Just to let you know I am full stock, unrooted but boot loader is unlocked.
[X Style (Pure) Android Development] Jay794:
Hopefully someone can assist me with this, I have the stock rom XT1572 European Rom and the Flash All Batch file, but when I click on flash all, the windows opens for a second, then closes again
[X Style (Pure) Android Development] OldBaldy:
Run it on a command window opened in the same directory as the bat file. That way you can see the error that's causing it to close.
[X Style (Pure) Android Development] Jay794:
Thanks that fixed it
[X Style (Pure) Android Development] borda01:
Please add ink to XT1572 in first post.
[X Style (Pure) Android Development] saidmsb:
I downloaded the first zip and added the fastboot files from the OP zip and it flashed ok but wifi not working so i think it's a modem thing..The zip should has the correct modem file right?

I need to revert back to stock (style 1572)

Any ideas pls?
[X Style (Pure) Android Development] zeidof:
I have many issues with MM modem, is it possible to flash this modem on Android 6 MXP?
[X Style (Pure) Android Development] jscat1:
I don't know for sure. I think it's only for lollipop.
[X Style (Pure) Android Development] lAndroXl:
Is there any user hwo can provide a full TWRP backup of the 5.1.1 or even 6.0 stock software from Germany/Austria XT1572 version?

Would highly recommand that. Please help me :)