How to Unroot the Motorola Moto X Play

Perhaps you’re done playing with root and custom ROMs on your Motorola Moto X Play or perhaps you need to sell the device and get it back to stock? Regardless of the reason, it’s pretty easy to unroot your device and usually involves just flashing the stock firmware from the manufacturer onto the phone to get it back to an out-of-box state.

Some of the reasons for unrooting your Motorola Moto X Play are:

Sending in the device for warranty (most, but not all unrooting procedures reinstate the manufacturer warranty if you had one before rooting).

Starting over (simply undoing everything you did while rooted so you can have a clean slate to start over).

Fix any issues (Maybe rooting messed something up? No problem, unrooting will take care of it for you).

Ready to get started? Here’s how to unroot the Motorola Moto X Play:

I. Before You Begin

1. You should have rooted your device using our how to root the Motorola Moto X Play procedure.

2. This procedure should only work on Windows based PCs.

3. Ensure that Motorola USB drivers are installed on your PC. If they aren’t, install them first.

4. This should erase the data stored on your device. So backup anything that’s important for you.

5. This should only work for the XT1562 and XT1563 variants of the device.

How to Unroot the Motorola Moto X Play

Unroot Motorola Moto X Play

You’re going to flash a stock ROM using Fastboot on your device so that your device is unrooted and back to the stock.

II. Downloading Required Files

1. Download Fastboot and save it to your desktop.

Fastboot

2. Download Stock ROM and save it to your desktop.

Stock ROM for XT1562

Stock ROM for XT1563

III. Unrooting the Motorola Moto X Play

1. Extract files from both Fastboot and Stock ROM over to your desktop by right-clicking on each of them and selecting Extract here.

2. Turn off your device.

3. Turn your device back on in bootloader mode. To do that, hold down Volume DOWN and Power buttons together for a few seconds.

4. Your device should now be in bootloader mode.

5. Plug in your device to your PC using a USB cable.

6. Launch a Command Prompt Window on your desktop by holding down Shift on your keyboard and right-clicking anywhere on the screen and selecting Open command window here.

7. Type in the following commands one by one into the Command Prompt Window and hit Enter. Make sure the file names match the files available on your desktop.

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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem lock

8. When all of these commands are executed, run the following command to reboot your device:

fastboot reboot

9. Your device should reboot.

All set! You are now running stock firmware on your Motorola Moto X Play and have unrooted it.

Let me know if this worked for you in the comments below!

Related Items: , ,

Join 90k others & subscribe to my weekly, not annoying newsletter for more tech!

* indicates required
  • Deepak Garg

    Hey Bro,
    No, This hasn’t worked for me…. I followed all the steps one by one.. But still by Moto X Play XT1562 Dual Sim keeps on rebooting & shows Boatloader Unlocked Warning Message. Please help me out as my Phone is not starting. I have tried to flash both stock rom the one which is above & also the unofficial cm 12.1 version is working for me. By the way I reside in India & mine is 32 gb variant. Please reply as early as possible. Please provide me the stock files or any link to download the same for my Moto X Play.

    • Hi Deepak,

      We just added the commands for relocking the bootloader on the device. Please follow the procedure again and you should be unrooted and back to the stock.

      Also, make sure that you get an OKAY message after entering each command in step-7.

      Thanks!

      • Kolby Angiolella

        Hey each time i try and load another image i get something like “failed (remote failure)” or INFOPreflash validation failed (remote failure) How do i fix this??

        • That remove failure probably means your device isn’t properly attached to your PC. Have you installed required drivers on your PC before doing the procedure?

          • Kolby Angiolella

            Yes i installed the drivers. I did not move the phone through the whole process. for the first few commands it worked fine and than i started to get the error

          • Hi Kolby,

            As you say the first few commands worked just fine, then I don’t see any issues with the attachment of your device to your PC. I think there must be an issue with your PC. Could you please turn off any anti-virus program on your PC and then do the procedure? That might be causing the issue.

            Let us know how it goes for you. Thanks!

          • Kolby Angiolella

            Hey so i tried using a different computer, made sure it phone was in transfer mode, tried turning off my anit virus and it still does not work. it says the same thing. Also when im trying to load spase chunk it says invalid signed image. Help!

          • Kolby Angiolella

            Hey, i got back onto this after a month. used a different computer and downloaded a separate package. It works! got everything restoring now. So far so good. Thanks for the great support!

          • We’re glad it finally worked for you, Kolby!

  • Rahul Prakash

    I think you forgot to call

    fastboot flash system system.img_sparsechunk.6
    fastboot flash system system.img_sparsechunk.7

    Because of this there is boot loop and stock firmwire flash didnot complete

  • Ravi Chauhan

    hi mahesh

    i just run all command properly and i got OKAY after each command still i am getting the YOUR BOOTLOADER IS UNLOCKED..please help me regarding this…

    Regards,
    Ravindra

  • Ryan McCarville

    Thanks for the great tutorial. Your rooting one was spot on, I am enjoying CM12 at present. That being said I think in the end, I would be happy with a rooted Stock rom over a complete overhaul. I am currently on step 7 and attempting to flash gpt.bin. “error: cannot load ‘gpt.bin’ ” is present, and I have run cmd elevated and regularly. I’m also in the Desktop directory when running these commands. I should note, I assumed to use the LUX_RETCA_5.1.1 version for my phone rom as I am in Canada and figured the RETLA was for Latin America. If anyone has tips, please feel free to post. Thanks again!

    • Hi Ryan,

      We’re glad you liked our tutorial!

      We usually use pure unrooted stock ROMs for the unrooting procedures as you can always re-root your device using our root procedures.

      As for the issue that you’re facing with the command, can you please see if the file that you’re entering the name for in the command prompt window is present on your desktop (Does “gpt.bin” file exist on your desktop?)?

      Let us know so we can further assist you.

      Thanks Ryan for visiting us!

  • nick oribio

    your stock rom links are broken )):

  • Jason Dean Goldsmith

    My firmware does not have a system.img_sparsechunk.7 is that a problem?

    • Hi Jason,

      If it doesn’t have that file in it, you don’t need to flash it and you don’t need to run the command for the same.

      Hope that helps!

  • Jason Dean Goldsmith

    Also when doing the very first step “fastboot oem flash begin” I get the message Please fully flash the signed build before locking phone! OKAY [ 0.026s] Finished. Total time: 0.026s I just want my phone back to normal, should have never started the rooting BS!!!

    • Hi Jason,

      Please note that the first command is “fastboot oem lock begin” and NOT “fastboot oem flash begin”.

      Thanks!

  • Ixa Rodriguez

    Hi! David Cogen and Mahesh Makvana, I am from México and I liked your tuturial, but I have a query, as I said I am from México so… Which Stock ROM for the XT1563 should I use?

  • Ixa Rodriguez

    Hi! David Cogen and Mahesh Makvana, I am from México and I liked your tuturial, but I have a query, as I said I am from México so… Which Stock ROM for the XT1563 device should I use?

    • Hi Ixa,

      Thanks for posting the question!

      As for choosing a stock ROM that works in Mexico, what you can do is go to the stock ROM link and pick the one that describes your region/carrier. All of the ROMs listed on that link has all their detains in their names, so it’s easy for you to find a ROM for your particular region.

      Let us know how that works for you!

  • Kay

    Hi Mahesh,

    When I try to flash boot.img I get an error that says Preflash Validation Failed, do I have the wrong files? Recovery flashed OKAY, but the system.img files give the same error.
    My phone reboots after about 1 minute 🙁

    • Hi Kay,

      The error message that you mention is usually generated by the system when you try to downgrade your device.

      Please check the current software version of your device and then check the version of the software that you’re trying to flash on it and make sure you are not downgrading the device.

      Hope that helps!

      • Kay

        Hi Mahesh,
        Thanks for your reply. I indeed tried to downgrade. For now my phone functions normal with CM12 installed. I’ll try to find a newer stock ROM.

  • sadman sakib

    can i flash the recovery from twrp ?

    • sadman sakib

      i am running cm 13 with android m……nd now i want to go back to stock rom.. if i go back in lolipop, will i able update it in androi m ?

  • Allen S. Bastian

    still getting the bootloader unlocked message….what should i do..??

    • Hi Allen,

      Didn’t the command “fastboot oem lock” lock the bootloader for you? What did you get after executing that command?

      Let us know. Thanks!

      • Allen S. Bastian

        on the command prompt it says bootloader locked but still on my phone it shows the unlock message

        • Can you run the following command and let us know what it gets you?

          fastboot oem device-info

          • Frankie Bellucci

            Hello I too continue to have a locked bootloader.

            G:PHONEMOTO XMfastbootMfastboot>fastboot oem lock
            (bootloader) Phone is locked successfully!
            OKAY [ 1.947s]
            finished. total time: 1.950s

            Bootloader shows:
            Device is LOCKED Status Code: 2
            Software Status: Modified

            Its now rebooted and to re-run any commands I’ll have to set the phone up again for usb debugs and bootloader stuffs. 🙂

          • Hi Frankie,

            We’re going to publish a post about how you can remove that bootloader unlocked message on your device very soon.

            Stay tuned!

          • Frankie Bellucci

            Thank you. Could you define soon please. Also, will I be notified somehow? 🙂

            This site is great and I appreciate the work you’re doing here and you attention to the detail AND, timely responses. Gooooooood business.

          • Hi Frankie,

            Thank you for your kind words, it really encourages us!

            Once the procedure’s done, I’ll post the link here for you.

            Thanks!

          • Frankie Bellucci

            Mahesh. I’ve made some sort of mistake. I now have, what seems to be a bricked phone. I can boot to bootloader but all commands fail. If I perform fastboot devices, I get – ZY2235NZNF.
            Beyond that, I get failures. first command – “fastboot oem lock begin”
            (bootloader) Not supported command in current status!
            FAILED (remote failure)

            I was indeed able to boot to the phone and was only having the issue of the unlocked message. Now… ~shame~ I do hope you have a solution.

          • Frankie Bellucci

            tried RSD lite. No go. hab image problem.

          • Allen S. Bastian

            Can you please tell how to root Moto X Play Marshmallow 6.0.1..??

  • James

    Hi, when i try to follow the commands above on the first command ‘Fastboot OEM lock begin’ i get a response saying ‘ Please flash valid signed images just after lock begin command! ‘. I can then flash all the commands properly but at the end it says something like failed to validate system image or something on the bootloader logs. I try to reboot and now seems that it goes from bootloader unlocked screen to erasing, and then just bootloops. What should i do? All the commands get a OKAY next to it. PLEASE HELP ASAP!!!

    • Hi James,

      It seems the first command went well for you and as for the subsequent commands, make sure you’re flashing all of the sparsechunk files on the device. The commands given in the above procedure are indicative and they vary with the different variants of the device.

      Open the folder containing the stock ROM and make sure that all of the files in there have been flashed on your device using the command prompt window.

      Let us know when you’ve done that. Thanks!

      • James

        Thanks Mahesh for that speedy response! Yes, ive now successfully flashed it. Its because I was missing the sparsechunk.8 file, and managed to do this time. BUT I still have same issue as some other people, it says bootloader unlocked when I boot up the phone, even though it said OEM lock thing was OK when flashing at end of CMD script. What should i do, as if i need to send this in Motorola will know ive unlocked device, please help asap 🙂

  • s.peru

    hi this is peru. . I have XT1562 dual sim 16gb internal memory. . kindly suggest which file I need to download from Filefactory and install..

    • Hi Peru,

      You need to download the file that has your device’s model number in its name. You also need to make sure the file name has your region name (Europe or Asia or whatever it is).

      Hope it helps!

  • Dukkie E

    i followed all commands and everthing done.. I try to reboot and now seems that it goes from bootloader unlocked screen to erasing, and then just bootloops… iam not able to turn off my device to goto bootloader.. what should i do.. ? thanks.

    • Hi Dukkie,

      Make sure you’ve flashed all of the files that are available in the stock ROM folder on your computer. The commands given above are indicative and they vary with the firmwares (especially the sparechunk command).

      Read the James’s comment below as he got this to work successfully.

      Thanks!

  • tristi

    omg i just saw that i forgot to flash fsg, my phone is working fine , but the unlocked bootloader warning is still showing

  • Anuj Sharma

    Hi Mahesh ,
    I’m having one extra file of sparsechunk with name sparsechunk8 what should i do?

  • James

    I was just gonna say! After completely remvoing root it still says system modiifed and staues code 3 on the fastboot screen. How do I remove that, so its back in warranty.

  • Adhvaith

    HI
    Im using a moto x play xt1562 I wanted to unroot it. I have followed all the steps and now it keeps saying warning bootloader unlocked with an androind saying erasing.its a loop and keeps going.Should i be worried

  • Aarsh joshi

    yes it didn’t work out for me as well.
    I did the procedure carefully but after that the warning comes and an erasing android sign that’s it.
    I flashed a custom recovery and cm13 on it and boom my simcrds are not detecting.
    please do something about it ASAP

    • Hi Aarsh,

      Make sure you’ve chosen the correct firmware for your device. Also, ensure that all of the files you extract from the firmware archive get flashed on your device. If you miss out even on a single file, the procedure will fail.

      Hope that helps!

      • Aarsh joshi

        there are only 2 firmware for xt1562 v6.0 and v6.0.1
        I tried flashing both of them.
        but no use.
        i’m using xt1562 India model dual sim 32gb version.
        I followed the commands given above carefully.
        is there anything am I missing?

        • Hi Aarsh,

          I think you didn’t get what I said.

          You need to ensure that ALL OF THE FILES you extract from the firmware archive get flashed on your device. The commands given in the procedure do not necessarily flash all the files (there’ll be some additional sparsechunk files in your firmware’s folder that you need to flash).

          Please do that and let us know if it works for you.

          • Aarsh joshi

            thank you 🙂
            it is working fine now
            there were 9 sparsechunks but I was flashing only 7.

          • You’re welcome, Aarsh!

            Yes, you must flash all of the files or it won’t work for you.

            Thanks!

  • rahul

    Hi Sir
    I’m himanshu from India
    I rooted my moto x play(dual sim) few months back… I’m try to unroot my phone.. I successfully unrooted my phone after unroot I check my phone and he runs only one sim but my phone version is dual sim
    This is the file I used to unroot my mobile……. XT1562_LUX_RETEU_6.0.1_MPD24.107-52_cid7_subsidy-DEFAULT_CFC.xml.zip……so plzz tell me the solution how can I run both sim….
    Thanks

  • rahul sharma

    hi i am rahul
    i am using india version moto x play 16gb duel sim
    i unroot my moto x play after unroot my moto x play only run one sim slot and second slot is not working… i tried my best but not change only run one sim
    now can you help me… what is the problem how can i solve it… thanks

    • Hi Rahul,

      Can you go into Menu > Settings > About phone on your device and let us know the model number of the device?

      Is it XT1562 or XT1563?

      Let us know. Thanks!

      • rahul sharma

        Its showing XT1562
        And this is the file I use for unroot—-
        XT1562_LUX_RETEU_6.0.1_MPD24.107-52_cid7_subsidy-DEFAULT_CFC.xml.zip

      • rahul sharma

        It’s showing XT1562
        And this is the file I used for unroot—- XT1562_LUX_RETEU_6.0.1_MPD24.107-52_cid7_subsidy-DEFAULT_CFC.xml.zip

      • rahul sharma

        It’s showing XT 1562

        • Hi Rahul,

          Did you flash all of the files that you extracted from the ROM archive? The commands above are indicative and there may be more or less files in the stock ROM archive that should be flashed on your device.

          Ensure everything that you extract from the ROM archive gets flashed on your device. You should see your second SIM slot working then.

          Thanks!

          • rahul sharma

            Yes I flash every file…I tried 4 time but not change
            But can you tell me the main file for duel sim working…. I will try main file flash again…

  • Akshay Shitole

    hiiii ive screwd up my moto x play
    i wanted to root it but by mistake i flashed the wrong supersu instead of the one meant for marshmallow version so i was stuck on the unlocked bootloader screen the recovery mode was working fine so i wiped everything clean now my problem is my phn is not rooted and i need to flash stock android on it so should i follow the steps given in above or i dont know what to do pls help thanks in advance

    • Hi Akshay,

      Yes, the guide above should help you flash back the stock ROM on your Motorola Moto X Play. Make sure to get all the files flashed you find in the stock ROM folder to your device and you should be good to go.

      Thanks!

      • Akshay Shitole

        yeah i tried flashing the stock but i am getting invalid signed image preflash validation failed error and i have downloaded 3 stock roms and getting the error for all three

      • Akshay Shitole

        the link for the site for stock rom is a blocked url for me so downloading the stocks from https://github.com/motoxplay/stock
        ive downloaded the Indian version and the UK version
        BUILD NUMBER LPD23.118-10 -INDIAN version
        BUILD DNUMER LPD23.118-10-UK version
        when i was trying to flash both of the stocks i got the error invalid sighned image preflash validation failed
        now downloading Stock BUILD NUMBER LPD23.118-12 nd will try flashing it

      • Akshay Shitole

        C:Android>fastboot flash partition gpt.bin
        target reported max download size of 268435456 bytes
        sending ‘partition’ (32 KB)…
        OKAY [ 0.000s]
        writing ‘partition’…
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 0.484s

        C:Android>fastboot flash logo logo.bin
        target reported max download size of 268435456 bytes
        sending ‘logo’ (2833 KB)…
        OKAY [ 0.094s]
        writing ‘logo’…
        OKAY [ 0.125s]
        finished. total time: 0.219s
        C:Android>fastboot flash boot boot.img
        target reported max download size of 268435456 bytes
        sending ‘boot’ (32768 KB)…
        OKAY [ 1.094s]
        writing ‘boot’…
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 1.844s

        C:Android>fastboot flash recovery recovery.img
        target reported max download size of 268435456 bytes
        sending ‘recovery’ (32752 KB)…
        OKAY [ 1.094s]
        writing ‘recovery’…
        OKAY [ 1.473s]
        finished. total time: 2.567s

        C:Android>fastboot flash system system.img_sparsechunk.0
        target reported max download size of 268435456 bytes
        sending ‘system’ (239132 KB)…
        OKAY [ 7.648s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.210s

        C:Android>fastboot flash system system.img_sparsechunk.1
        target reported max download size of 268435456 bytes
        sending ‘system’ (231571 KB)…
        OKAY [ 7.422s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 7.469s

        C:Android>fastboot flash system system.img_sparsechunk.2
        target reported max download size of 268435456 bytes
        sending ‘system’ (256674 KB)…
        OKAY [ 8.234s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.266s

        C:Android>fastboot flash system system.img_sparsechunk.3
        target reported max download size of 268435456 bytes
        sending ‘system’ (256774 KB)…
        OKAY [ 8.245s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.276s

        C:Android>fastboot flash system system.img_sparsechunk.4
        target reported max download size of 268435456 bytes
        sending ‘system’ (256496 KB)…
        OKAY [ 8.217s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.248s

        C:Android>fastboot flash system system.img_sparsechunk.5
        target reported max download size of 268435456 bytes
        sending ‘system’ (256643 KB)…
        OKAY [ 8.232s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.310s

        C:Android>fastboot flash system system.img_sparsechunk.6
        target reported max download size of 268435456 bytes
        sending ‘system’ (257850 KB)…
        OKAY [ 8.262s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 8.293s

        C:Android>fastboot flash system system.img_sparsechunk.7
        target reported max download size of 268435456 bytes
        sending ‘system’ (183784 KB)…
        OKAY [ 5.914s]
        writing ‘system’…
        (bootloader) Invalid signed image
        (bootloader) Preflash validation failed
        FAILED (remote failure)
        finished. total time: 5.930s

        C:Android>fastboot flash modem NON-HLOS.bin
        target reported max download size of 268435456 bytes
        sending ‘modem’ (37100 KB)…
        OKAY [ 1.186s]
        writing ‘modem’…
        OKAY [ 1.114s]
        finished. total time: 2.300s

        C:Android>fastboot erase modemst1
        erasing ‘modemst1’…
        OKAY [ 0.016s]
        finished. total time: 0.016s

        C:Android>fastboot erase modemst2
        erasing ‘modemst2’…
        OKAY [ 0.016s]
        finished. total time: 0.016s

        C:Android>fastboot flash fsg fsg.mbn
        target reported max download size of 268435456 bytes
        sending ‘fsg’ (1206 KB)…
        OKAY [ 0.047s]
        writing ‘fsg’…
        OKAY [ 0.078s]
        finished. total time: 0.125s

        C:Android>fastboot erase cache
        erasing ‘cache’…
        OKAY [ 0.016s]
        finished. total time: 0.016s

        C:Android>fastboot erase userdata
        erasing ‘userdata’…
        OKAY [ 0.219s]
        finished. total time: 0.234s

        m getting this.

  • jared

    hello I attempted to root my marshmallow moto x play XT1563 using the specified superSU for marshmallow and i ran into the endless loop of the warning bootloader unclocked screen, then i attempted to unroot by following these directions using a xt1563 stock rom , it did not work and i do not know how i can tell which xt1563 rom i should download.
    thank you

  • Colin Tudor

    I have done thing and everything went to plan eventually, however I do still have the bootloader has been unlocked screen. How do i get rid?

  • Shubham Gujar

    hello mahesh,
    i m using moto x play xt1562 16gb, i have unlocked the bootloader…. also flashed TWRP 3.0.2r2 and updated super su v2.46
    but my phone is stucked at the “WARNING BOOTLOADER UNLOCKED” and is not booting anymore
    further i have been through the recovery mode where i selected reboot option
    it said : no os detected still want to reboot?
    further i have flashed the stock rom on my phone using cmd

    file name : XT1562_LUX_RETASIA_DS_6.0.1_MPD24.107-52_cid7_subsidy-DEFAULT_CFC.xml
    commands :
    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 modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot reboot

    still it is stucked on warning icon
    what should i do? have i bricked my phone? i want it in the 1 condition

    fastboot mode status;
    Baseband not available
    product/variant LUX XT1562 16GB P2C
    Console null NULL
    Device is unlocked status code 3
    software ststus official

    • It seems you’ve missed the first command that says to lock the bootloader. Do that and see if it works and let us know. Thanks!

    • vivek

      there 2 more system chunks in the os zip…..flash them too….
      “fastboot flash system system.img_sparsechunk.8
      fastboot flash system system.img_sparsechunk.9”
      use these two codes after flashing chunk 7

  • Rafael Gidra

    acrescentei as linhas do img_sparsechunk.8 e img_sparsechunk.9 e segui até o fim.
    perfeito!

  • Achint Mehta

    hello from the first command itself i am getting preflash validation failed. whats the solution to this problem??

    • Hi Achint,

      It seems your bootloader is already locked and requires no re-locking. Could you please confirm whether your bootloader is locked or not?

      • Achint Mehta

        Hello,

        My bootloader was unlocked and while going with this method the first command was executed but on second command it showed the preflash validation failed so after that when I started again the process the first command itself failed hence no further progress.

        • Hi Achint,

          It seems the bootloader re-locking process began but it never finished. So, what you can do is try unlocking the bootloader and then use this procedure to re-lock the bootloader. Also, you’re supposed to flash off all the files in the firmware folder on your device. The commands given in this guide are just indicative.

          Thanks!

          • Achint Mehta
          • Anirudh

            Hey… did you find a solution yet? I am facing the exact same issue.

          • Achint Mehta

            leave this step of unlocking. No need to do it as it is already been unlocked.

          • Achint Mehta

            No need to do it as it has already been unlocked.

          • Hi Anirudh,

            From what I can understand, you’re actually trying to downgrade your software which I think is not possible. What version of software were you running before and what version of software you’re trying to flash on your device? Make sure you aren’t downgrading or you’ll see the above errors.

            Thanks!

          • Anirudh

            Oh. Why is downgrading not possible? What’s the point of rooting then?

          • Hi Anirudh,

            Well, it’s not possible at the moment. What you can do though is download the latest version of the stock firmware for your device and get it flashed. That should help you unroot the phone without any issues.

            Thanks!

  • @maheshhari:disqus I Am Getting preflash validation failed While Flashing Gpt.bin recently i downgraded to lolipop But That time Also i was receving this error but now Whenever i try to update to marshmallow i am receving this error and if i try to update to marshmallow from settings update section My Device Restart Then Stuck On recovery mode Please Help

    • You need to search for another ROM that you can flash on your device. I think the issue is related to the ROM and its files.

      Please do that and you should be good to go.

  • vaibhav raj

    this meathod formatted my phone but bootloader is still locked
    and while using this command ith showed failed
    and all flash system command also failed
    plzz..help……..plzzz…….

    • Hi Vaibhav,

      Did all of the commands get executed successfully? Were you able to flash the partition gpt.bin file?

      • vaibhav raj

        no gpt.bin was not able to flashed

        • Does the command “fastboot devices” show your device in the list?

  • naren sridhar

    I have tried the above method and have failed at flashing partition gpt.bin. the phone is connected because fast boot devices shows my phone. Also I have uninstalled the antivirus and the files are in the same place as the command prompt. Please help.

    • Hi Naren,

      What does the command prompt window show when you flash that file?

      • naren sridhar

        Hi Rajesh, it says partition failed and , then remote failure.

      • naren sridhar

        Also I have downloaded the correct file xt1562 which is also pertaining to Asia.

  • naren sridhar

    @mahesh makvana please help!

  • Hi Mahesh, I’m trying to install a stock rom on the Moto X Play XT1563, and it keeps showing “INFOPreflash validation failed FAILED (remote failure)” Do you have any ideas? Thanks.

    Downloaded a few from here: github dot com/motoxplay/stock

    flash partition gpt.bin
    sending ‘partition’ (32 KB)… OKAY [ 0.007s]
    writing ‘partition’… INFOPreflash validation failed
    FAILED (remote failure)
    finished. total time: 0.465s

    Thanks.

    • chinta chandan

      i had the same issue and after some trying further my phone is hard bricked. Some one help me please. TWRP is also not opening. Please tell me a way to wipe all the data using commands on CMD. Please help me.