yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] Faruko:
Does using the 6.0 stock TWRP zip really works for the OTA after flashing recovery ? I want to root and install a few roms but i really dont want to mess untill theres a full firmware to flaah through fastboot
[X Style (Pure) Android Development] painnpleasure:
confirmed flash,seems working. having a thick skull made me flip a coin and just flash the darn thing. no probs so far,will post any issues when i find em :good:
[X Style (Pure) Android Development] gokart2:
Updated OP. Removed XT1572 firmware/links do to other member taking care of "Style" firmwares
[X Style (Pure) Android Development] gokart2:
There wasn't an OTA for that, that was what shipped with the devices
[X Style (Pure) Android Development] painnpleasure:
Update: been running smoothly on mm for 20 hours. Only bug I could find till now is moto screen always reacts on movement, even when turned off.

Call,SMS,WhatsApp, WiFi, internet working thus far. Didn't test Bluetooth jet.
[X Style (Pure) Android Development] gokart2:
I used my bluetooth headphones all day yesterday without an issue.

I will be trying to get a Marshmallow firmware package going, but I need someone to get me the stock recovery. I have no way to get it currently. Although, I think the recovery is the same as LP.
[X Style (Pure) Android Development] Edu616:
How or where can I get the stock recovery?
[X Style (Pure) Android Development] gokart2:
You would have to use terminal emulator to pull and save it after taking the OTA.

1. download a terminal emulator app

2. open it and type

su

then hit enter

3. grant it superuser access

4. then type

dd if=/dev/block/platform/f9824900.sdhci/by-name/recovery of=/sdcard/recovery.img

and hit enter

If done properly, it will save the recovery.img on the root of your system storage. Then somehow upload it so I can check if it is the same.

I might be able to get it, I forgot about "recovery-from-boot.bak"............
[X Style (Pure) Android Development] gokart2:
To anyone out there.....i need the stock 6.0 marshmallow recovery
[X Style (Pure) Android Development] MrMeeseeks:
https://drive.google.com/file/d/0B7ypItzgcM0ndXQ5UXNMbXNiTm8/view?pref=2&pli=1
[X Style (Pure) Android Development] gokart2:
Thank you! The 5.1.1 and 6.0 recoveries md5 checksums don't match. Flashed it, and it says Android 6.0......I appreciate the help!:good:
[X Style (Pure) Android Development] YankInDaSouth:
I tried both ways to restore and update to 6.0 with no luck. OTA keeps failing ... so I tried to sideload the OTA file and I get this error when it tries to verify current system:

"/modem/image/Data.msc" has unexpected
ontents.
E: Error in /sideload/package.zip
(Status 7)

Any ideas on what I can do in order to get the OTA to work?

Disregard ... I went another route and just flashed a TWRP backup of 6.0 ....
[X Style (Pure) Android Development] ChadMan097:
Just wondering: Is there anyway I can use this to revert to 5.1.1 from 6.0? use 5.1.1 backup then push the recovery and boot images?
[X Style (Pure) Android Development] gokart2:
I do not know. I'd assume it would be ok. If you try it, please report back.
[X Style (Pure) Android Development] gokart2:
FYI

I updated the OP with a new Stock 6.0 TWRP backup link. I recommend flashing the new one if you are having any data issues. The last one had a few things that may cause an issue. Basically forgot to clear

all

the data. The new file will take longer to boot, since it's updating the cache and creating the data files properly. It's also a tad smaller of a file. Sorry. Also slowly creating Androidfilehost mirrors.....
[X Style (Pure) Android Development] ChadMan097:
Status Update: So far its been a no-go. I have restored from the 5.1.1 TWRP recovery file. Then, I booted to the boot loader and flashed the 5.1.1 boot image and recovery. That caused a boot loop, so I am going to look into it more. I'm going to try to flash the firmware as well (which I'm not sure how or what it'd would change, but I'll figure something out.) Worst case I can get it back to 6.0.

UPDATE: I got it to work. Skip the entire TWRP stage, you just need the firmware. It's a little different, but very easy. (I skipped it originally cause I thought it was too easy!) All you have to do is download and extract the file to a blank folder. (or on my case my desktop where there aren't any files present) Then, press Shift and right click at the same time to open a command window "here". Then, you just have to type flash-all.bat and press enter. It should take less than 5 minutes to complete and it'll reboot afterwards.

Update 2.0: WiFi seems to be broken. I will look for a fix tomorrow.
[X Style (Pure) Android Development] brholt6:
You'll probably have to fastboot flash the non-hlos.bin file manually by itself to get WiFi working again.
[X Style (Pure) Android Development] ChadMan097:
Thanks man! Yeah, that was all it needed. Everything seems to be running ok. Haven't ran into any issues thus far.

So, for anyone trying to repeat what I just did, after you do the flash-all.bat file and your phone reboots, you'll need to go back to fastboot. Once in fastboot, all you have to do is fastboot flash modem NON-HLOS.bin and then reboot. You should have Wi-Fi then!

(Thanks brholt for figuring that out.)
[X Style (Pure) Android Development] brholt6:
Glad you got it worked out!
[X Style (Pure) Android Development] gokart2:
I forgot that flash-all.bat file was in there. That's Shawn5162's return to stock tool, basically. Really all you need to do is boot into fastboot, make sure the device is connected/seen by fastboot, then just double click the flash-all.bat file. Glad it worked out, although I wish you could have extracted that software that shipped with your phone.
[X Style (Pure) Android Development] erikiksaz:
Thanks for the files!
[X Style (Pure) Android Development] gokart2:
Update..... I have tried everything to put a firmware file together. Everything is ready but the system files. I cannot figure out how to configure the system.img into sparsechunk files. Have looked everywhere, and tried a bunch of different stuff without any luck. So unless someone knows the sparsechunk magic, we have to wait until the firmware magically appears like normal.
[X Style (Pure) Android Development] MrMeeseeks:
This might help. http://xdaforums.com/showthread.php?t=2749797
[X Style (Pure) Android Development] gokart2:
Lol. I initially read this too fast thinking it was another sparse to img converter... I will give this a try. Thank you!
[X Style (Pure) Android Development] gokart2:
I can't get that executable to work. It pops up for a half second, then its gone. I updated the Microsoft .net framework, but still no go. I can't get it to work via Ubuntu either.....?
[X Style (Pure) Android Development] MrMeeseeks:
I'm not sure. I haven't tried to use it but I might look into it when I get a chance.
[X Style (Pure) Android Development] gokart2:
Finally got it!!!! But it may be a little bit. Need to test it out. Only thing is I don't have the bootloader, but it won't matter cause you need to be booted into bootloader for any of this to work.
[X Style (Pure) Android Development] gokart2:
Update: I got the system.img's to convert to sparsechunks after 2 weeks of trying. But I'm confused cause every system.img (my own system dump, other devs stock rom system.img, etc....all are the same file size and md5) I try is over 4gb, and it converts into 13 sparsechunks. All other 6.0 firmwares have ~9 sparsechunk files, which leads me to believe something is wrong. I made the sparsechunk file size roughly the same size as the other firmwares...... I need a break for a bit, so I'll be out to lunch for a min.
[X Style (Pure) Android Development] gokart2:
OK. The firmware seems good to go. Have tested it for a few hours, all seems well. I need another tester to verify though, someone with some time under their belt so I don't have to walk them through everything. Couple things, there's no bootloader since I don't know exactly how to pull it. And as stated before, there are 14 sparsechunk system.img files instead of the usual 9. I don't know why. But everything is working good for me....
[X Style (Pure) Android Development] Donkan694:
I am in a bootloop send me the ROM... Maybe i can test it...

Enviado desde mi XT1021 mediante Tapatalk
[X Style (Pure) Android Development] gokart2:
It's almost done uploading. I'll pm u the link when its done. Should be pretty quick now. And and fastboot are in the file.
[X Style (Pure) Android Development] gokart2:
Link sent
[X Style (Pure) Android Development] gokart2:
OP updated with XT1575 Android 6.0 HoMEbREW FiRMWARE. I tested this and found no issues. Only other tester was in a bootloop with a locked bootloader and couldn't get it to work.
[X Style (Pure) Android Development] evandena:
Your nandroid backup saved my ass, thanks!

In one swoop I accidentally flashed 5.1.1 boot and erased system. I was in a pinch!
[X Style (Pure) Android Development] gokart2:
No problem, glad i could help! Thanks for the feedback!
[X Style (Pure) Android Development] gokart2:
Need some feedback on the 6.0 HoMEbREW firmware, anyone use it yet? It worked fine for me, but any input is appreciated
[X Style (Pure) Android Development] YankInDaSouth:
I flashed it this morning and all is well ...
[X Style (Pure) Android Development] gokart2:
Thanks. Took me what seemed like forever to figure out the sparsechunk conversion and I've been waiting for some/any feedback on it.
[X Style (Pure) Android Development] YankInDaSouth:
No, thank YOU! The firmware is very handy to have!
[X Style (Pure) Android Development] AnimusVoxx:
does the ota contain an updated modem? and if so how do i flash it?
[X Style (Pure) Android Development] gokart2:
Yes the modem is in there, I believe all you need to do is:

fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2

But I'm not 100% sure, haven't needed to do this. Good luck.:good:
[X Style (Pure) Android Development] SR3TLAW:
Working on a VoLTE issue on a debloated deodexed ROM. Which flashable ZIP would I download to get me as close as stock 6.0 MM as possible. I do have an unlocked bootloader and I realize that can't really be undone.
[X Style (Pure) Android Development] gokart2:
As close to stock as possible would be the "6.0 HoMEbREW FiRMWARE", then use the "Useful Commands" to reflash everything via fastboot. What exactly are you trying to do?
[X Style (Pure) Android Development] Donkan694:
gokart2 i found this http://www.filefactory.com/file/3m3..._MPH24.49-18_cid9_subsidy-DEFAULT_CFC.xml.zip

regards
[X Style (Pure) Android Development] gokart2:
Nice find! But......I'm not spending two days downloading from filefactory. If you or anyone has or wants to, then give me a link that doesn't take a million hours to download....I'd happily post faster mirrors.:good:
[X Style (Pure) Android Development] Donkan694:
I already download it... Any place where i can upload it?... You help me a lot in the past... So please let me lend you a hand ;)

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Android Development] gokart2:
Best and easiest in my opinion is Google Drive. After it uploads, send me a link and I'll use that as the main link....then mirror them with my usual ones. And I appreciate your help. It's impossible to do a lot of this alone, but when we all work together we ALL profit.
[X Style (Pure) Android Development] Donkan694:
i already upload it and send it to you
[X Style (Pure) Android Development] gokart2:
Post the link here so you can get some thanks!:highfive:
[X Style (Pure) Android Development] gokart2:
Downloading now. Will start the uploads shortly after I get it downloaded.
[X Style (Pure) Android Development] Donkan694:
Nice to hear it... by the way i solve my problem, its confirmed that this work

Enviado desde mi SM-T320 mediante Tapatalk
[X Style (Pure) Android Development] gokart2:
Glad you got it figured out! It stinks having a phone that's not usable, especially if you rely on it heavily like I do. Seems like a lot of people are having issues lately.
[X Style (Pure) Android Development] Donkan694:
Yeah... And it was a big issue form me because i live in Chile... And RMA is not an option.

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Android Development] gokart2:
FYI.......OP update with official 6.0 firmware thanks to ^^^^Donkan694^^^^. Removed HoMEbREW firmware links.
[X Style (Pure) Android Development] Donkan694:
Nice, thanks... i hope it will be usefull for someone... :D
[X Style (Pure) Android Development] Ghost9867:
Hey guys i'm serching the stock android 6.0 (i'm on the truepurex now but i want to go back to stock )

There is any stock rom on android 6.0 that i can flash with twrp ?
[X Style (Pure) Android Development] Donkan694:
There is a versión for twrp in the first page

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Android Development] jdk2:
http://xdaforums.com/moto-x-style/development/rom-stock-rooted-debloated-x1575-6-0-t3262242
[X Style (Pure) Android Development] CZ Eddie:
So I downloaded the 6.0 firmware from OP and extracted it to my fastboot folder on my C:/ drive.

pic upload

Then I ran all these commands below. Except I had to add a "." to the sparsechunk filenames, and there were only nine sparsechunks instead of 15.

Then I rebooted.

But I'm just getting a bootloop and it keeps saying "erasing", then reboots to logo, then goes to erasing, then reboots to logo, over and over. Did I do something wrong?
[X Style (Pure) Android Development] gokart2:
I forgot to update the fastboot commands, what you were referencing was for a firmware I made up myself. But regardless, what you did should have worked. You could try these commands listed below from HERE....but possibly without the 'oem lock" stuff. Only difference is the bootloader. Were you on MM or LP firmware before this?

fastboot oem lock begin
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 system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem lock
fastboot reboot
[X Style (Pure) Android Development] CZ Eddie:
I was on a CM based MM ROM.

Just went ahead and installed TWRP and flashed another ROM.

I'll give your recovery another shot next time. Thanks for responding. :)
[X Style (Pure) Android Development] HikingMoose:
It may be in the thread somewhere, but are there any mirrors for the 6.0 recovery version? I can't download it from google drive.

Never mind, I think I'll just restore my own. Save time (I just tend to have bass luck with restores, they usually have bugs).
[X Style (Pure) Android Development] pseudopsyche:
I downloaded all of the 6.0 firmware files from the OP, and ran these commands. Everything is stock, bootloader is relocked, and software shows as Official. However, if I try to access recovery, I just get the "No Command" screen. I tried reflashing the recovery.img from the OP, but still get the same if I try to access recovery. Is this normal for stock recovery? I just want to return to stock and ensure that I'll be able take OTA updates in the future. Should I just not worry about this?
[X Style (Pure) Android Development] gokart2:
Recovery Mode Motorola Moto X Pure Edition

Turn off the device

Press and hold Volume Down key

While holding this key press Power Key and release all keys ( Boot Loader Mode )

In the Boot Loader Mode, Select Recovery using Volume Down key and Press Volume up key to confirm

Press and hold Power key when Android logo appears

Then Press Volume Up key and release to enter Recovery Mode

Use Volume keys to select Menu

Use Power key to Confirm
[X Style (Pure) Android Development] pseudopsyche:
Ignore me. I'm dumb. Sorry :P
[X Style (Pure) Android Development] mademan420:
Im still getting the UNLOCKED BOOTLOADER message even after running all the commands successfully. Any ideas? TIA!
[X Style (Pure) Android Development] pseudopsyche:
I'm assuming you just mean the message on boot, and not in the boot loader menu. If everything worked and the bootloader menu shows you're locked, you're good. Just need to flash the logo image provided here: http://xdaforums.com/moto-x-style/development/logo-remove-unlocked-bootloader-warning-t3201141

There are two different ones, Lollipop and Marshmallow, so be sure to use the correct one.

After that you should be good to go!
[X Style (Pure) Android Development] mademan420:
That seems to have got it:good: Thanks!!!
[X Style (Pure) Android Development] Degod:
I use this firmware to flash stock ROM on my XT1575 but it seems I can't root it. Everytime I root, my XT1575 stuck at bootloop. Does anyone how to fix this?

I use SuperSU 2.66
[X Style (Pure) Android Development] MrMeeseeks:
I'm pretty sure that version doesn't work on our device. I use version 2.60 and others use 2.62. Either should work.
[X Style (Pure) Android Development] techware7:
0 issues with .67 or 66 or 65...
[X Style (Pure) Android Development] nickanh75:
Flash supersu 2.62, everthing worked for me but no icon on home screen. Does anyone how to fix this?

Thanks.
[X Style (Pure) Android Development] ferrarista10:
Stock european version

Can you post stock firmware 6.0 for european version (X style) please? thanks

edit: found
[X Style (Pure) Android Development] fVckingmania.hell:
Ok, I flash this firmware (marshmallow) manually and all went great, but I did an old root and went out of wifi, after a quick search I flash another boot.img and all went well except I couldn't use SuperSU. In order to use supersu I had to reflash the old boot.img (the one with out wifi), use it and then reflash the new boot.img. Well, I got tired of that and decide to reflash the stock firmware but now I'm lock in the Initial Settings, specifically wifi connection I can't hit the Skip button, and my real problem is that even if I connect to a wifi it tells that there is no internet connection. I already try to reflash it again, do a full factory reset and nothing seams to work. Please help me I'm currently without cell and ideas.

Hope you answer quick
[X Style (Pure) Android Development] nichiyoubi:
Is it possible to flash the stock firmware with a locked bootloader? I'm on XT1575
[X Style (Pure) Android Development] lucianogm:
Dude, I flashed your firmware but after ALL commands, it got stuck on the boot screen. By the way, the bootloader didn't lock.

EDIT: forgot the ''boot.img'' command. silly me, i'll do it again.

edit2: great, it worked; thanks!
[X Style (Pure) Android Development] alershka:
I'm in a bit of a bad place right now and would appreciate some assistance. I was mostly stock (TWRP 3.0, Adaware and non-ascending ring patch) with 2.67 systemless root. Yesterday, with the new security patch, I unrooted, flashed a clean TWRP 6.0 system zip in TWRP, fastboot flashed the stock recovery and took the OTA. I flashed TWRP and 2.67 systemless and found that my phone would reboot every few minutes. I used my nandroid and went back to my pre-update file and it still reboots. I've done a factory reset and unrooted and I'm still in this reboot cycle.

I tried to get back to "stock" using the 6.0_MPH24.49 file here but the very first step, fastboot flash partition gpt.bin, failes due to Preflash validation. Am I out of luck until a new firmware image is released?

My phone is unusable. Last night, I left it on the charger and woke up to a completely dead phone. My charger was not charging anymore (I think it overheated) due to my phone constantly rebooting. I unplugged the charger for a few minutes then plugged it back in now my phone is charging again.

Any assistance would be greatly appreciated. I'm tempted to try to install a rom instead of stock but I'm not sure that would get me out of this.

Thanks.
[X Style (Pure) Android Development] OldBaldy:
I would try a factory data reset in TWRP first. If that fails then try one of the 6.0 roms. I've never used one so have no preference for you.
[X Style (Pure) Android Development] alershka:
Factory reset didn't change anything. I just flashed an AICP nightly and so far so good, no reboots.

Thanks!
[X Style (Pure) Android Development] gokart2:
UPDATED THE OP WITH A FIRMWARE FLASH TOOL (script)

This is a Windows .bat script to automagically flash a firmware file:

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

-Make sure Motorola drivers are installed

-Extract the Motorola Firmware you want to flash

-Extract the contents of the AutoFlashFirmwareScript folder inside the folder of the firmware previously extracted (Motorola Firmware and AutoFlashFirmwareScript files must be in the same folder)

-Start the device in fastboot

-Connect to usb

-Run (double click) AutoFlashFirmware.bat

AutoFlashFirmware.zip
[X Style (Pure) Android Development] majinvegeta3886:
I had the same problem. What I did was download the TWRP backup, recovery, 6.0 firmware, and the ota from this post. First I restored the nandroid backup from twrp. Then I put the stock recovery back on. GPT will not flash and I get the same error as you did and I noticed that NON-HLOS.bin would not flash either same error as gpt. I extracted the the NON-HLOS.bin, modemst1 and modemst2 from the ota in this post copied them over the the folder I had with all the files from the 6.0 firmware replacing their counterparts. The script wasn't working right for me so I flashed everything one by one with NON-HLOS.bin, modemst1, and modemst2 from the OTA download. I rebooted and bam no more reboots. I skipped all of the google account stuff and when everything loaded up then I updated to the ota from the phone. After the phone updated succesfully from the ota. I did a factory reset from the phone and put in all of my google account info to make sure it would still not reboot then once I was satisfied that everything was fixed I put TWRP back on then re-rooted. You may not need to do everything I did maybe just flash the 6.0 firmware with the NON-HLOS.bin from the OTA. Good luck hope this helps. :fingers-crossed:
[X Style (Pure) Android Development] chris23445:
Can I ask a quick noobish question? I'm running stock 6.0 on the Moto X Pure Edition. I installed the Frankenclark custom kernel, and if I want to switch back to the stock kernel, do I just flash the boot.img? I've been googling it and people say that is where the kernel resides. Will it affect my root or anything if I flash that? If it will mess anything up, does anyone happen to have or know how to make the stock kernel into a TWRP flashable zip?
[X Style (Pure) Android Development] gokart2:
You can get back to the stock kernel/boot.img a few ways. Fastboot:

fastboot flash boot boot.img

Or, if you created a backup in TWRP when you had the stock boot.img, you can restore just the boot from that backup.

Or, you can flash the boot.img via twrp, you just have to pick images. LINK