yashsingh1/xdaforums huggingface dataset:
[G 2014 Android Development] gullu13:
Can you PLEASE PLEASE PLEASE provide this tool for xt1068 too? I'm in terrible need of it. THANKS in advance :)
[G 2014 Android Development] Shawn5162:
Sure...just give me a day or 2....also do u have a specific forward version u want...or u just want the latest one
[G 2014 Android Development] Rahul10:
Yes bro... I downloaded frm d link given in op... For 5.0.2 and it gave me system ui fc n system crash at d setup... Can't even complete d setup..
[G 2014 Android Development] MortaLPortaL:
tried this and it works, but the camera does not flip to the rear, and some apps do not work(ie; tesla led)
[G 2014 Android Development] CPMAGMPC:
HELP - device bricked

please i cant restore my device, i was using quantum rom all was ok, i let my device run out of battery, when i put it to charge i was stuck in a bootloop. i go to twrp to restore my nandroid backups, i always get error "failed" on restoring data... these backups always worked fine!! then i wipe all the usual things, try to flash any rom and give me error:

***formatting system***

assert failed: format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system")

E:Error executing updater binary in zip ' /sdcard1/ROM NAME.zip

already tried this tool, always get DEVICE NOT FOUND, after that i see comands executed in device boòtlader, get okay message in all comands and nothing changed!! i still get bootloop and same errors in twrp... i really need to resolve this, its my work and personal phone. i have external sd card with roms and backups and access to twrp only. with adb on windows always get empty result with adb devices...
[G 2014 Android Development] Harsh.gundecha:
how??

[MENTION=5323673]Shawn5162[/MENTION]

hi buddy

am curious to know how can i restore to stock 4.4 once i upgraded to stock LP and updated bootloader too , as now when i tried to restore to stock it stuck at flashing system or bootloader for 4-5 minutes than it displayed failed message.

any help would be great.

PS- I also tried it by removing that msfastboot line of bootloader in auto restore script but still there was same problem

tyhank you :)
[G 2014 Android Development] coolmanaram:
Hello sir,

My phone is Moto G 2nd Gen XT1064 Runing Lollipop 5.0.2 single sim.

I can't connect with 3g but can connect from edge. but in the settings, there is option which we can switch 2g to 3g.but even though i select 3G,still i get connected with the E(edge) where we are in a 3G location.

However I try to unlock bootloader and root as your thread here. http://xdaforums.com/moto...lipop-t2951554

After that 3G problem same as before and get new bug. It's wifi is disable.

So I downgrade to Kitkat.

Now I can't get Lollipop to my device sir.

Can you please tell me how to Restore to to Stock Android 5.0.2.

Thank you!
[G 2014 Android Development] metalrules321:
download the firmware for your x64 from

http://motofirmware.center/files/category/35-moto-g-2nd-generation/

And then flash via fastboot following this guide

http://xdaforums.com/moto-g-2014/general/index-guide-update-to-lollipop-android-t2941340
[G 2014 Android Development] bender5001:
Not just you having this issue. Everything else works perfectly EXCEPT the rear camera and updating to Lollipop fixes it. Anyone come up with a solution?
[G 2014 Android Development] Niket03:
This Steps also used

This all Step also used for 5.0.2 Android L 22.99.16 ??????????
[G 2014 Android Development] fattest:
I softbricked an XT1064 which I bought for mother's day about 5 mins after opening it :eek: (unlocked bootloader successfully but accidentally flashed custom recovery over boot partition), tried several stock images but kept getting different failures when installing via fastboot/mfastboot. I don't know if it was by using this tool, or by finding the right image, but I ran the auto restore script using RETCA_XT1064_4.4.4_KXB21.85-24_cid14_CFC.xml.zip and I was able to revive my device. Thanks!

PS for Canadian users who bought the unlocked XT1064 from Staples, the image I mentioned above works with this model.
[G 2014 Android Development] :
I did this and still have no signal. Could anyone help out? The phone may be as well as bricked. It is an XT1064 from Wind Mobile here in Canada, does anyone have an image for it or know how to help out?
[G 2014 Android Development] fattest:
Which firmware did you install? Check the ones listed here:

http://xdaforums.com/moto-g-2014/general/xt1064-canadian-stock-firmware-t3048167
[G 2014 Android Development] dejavu619:
Hey guys. I used this method and the ROM is working fine. But when I check for system updates, it says that the device is up to date? Shouldn't it be telling me that Lollipop is available?
[G 2014 Android Development] itssandeep:
system cant be boot error after flashing stockrom 5.0.2 on xt1068

Pls help me bro to solve this problem when i flash stock rom i lock the bootloader and when i try to rebot it show system can't be booted pls help me:good::crying::cyclops:
[G 2014 Android Development] itssandeep:
Failed to validate system image error

I done all things to restore moto g2nd to stock5.0.2 but when i try to boot it says system image can't be validate help me bos:crying:
[G 2014 Android Development] Rajat22:
unlocked bootloader ??? or locked bootloader ???
[G 2014 Android Development] Tel864:
That depends on if your carrier has pushed it out yet. Make sure you aren't still rooted also. It may take a few days anyway for the update also.
[G 2014 Android Development] cyberdelio:
Question

So, i installed a Prime Titan Rom in my xt1063.

Can use this method to restore my motog to Kitkat 4.4.4??

Android Version: 5.0.2

Baseband Version: MSM8626BP_1032.394.88.00R RETUSA_GLB_CUST

Core Version: 3.4.42-g48d3b85 hudsoncm@ilclbld34#1

System Version: Titan Prime ROM v1.2 RC for XT1063/64 retus

Compilation Number: LXB22G.2015-03-3
[G 2014 Android Development] sharp2G:
No link for the Step 1?
[G 2014 Android Development] ARJUNROKS2801:
I LOVE U

My moto g2 was bricked and this helped me to restore it. My internet is quite poor so it took just a bit over 3 hours but it was worth the wait. How much will i thank u bro. Omg i am so happy.
[G 2014 Android Development] iamcray:
This worked perfectly. Just what I needed. I was able to update to lollipop using this too. XT1064 user here.
[G 2014 Android Development] Chancholitro:
I know it has been said a lot in this thread but THANKS!

You saved my device from a really crazy soft brick that didn't even let me enter recovery
[G 2014 Android Development] akuma333:
My phone doesn't recognize my SIM after use this tool, what may i do?
[G 2014 Android Development] jwierman:
auto update

I have the xt1063 and when i first started it out of the box it auto updated to 5.0.2 so i tried to do this to get back to kitkat

it seemed to have worked but when i started it after i ran the script, it auto updated back to 5.0.2

does anyone have any ideas or suggestions on how to make it say at kitkat?
[G 2014 Android Development] iamcray:
Maybe ignore the update alert. Worked for me and Motorola aren't like others that download and force the update on you without any consent from you.
[G 2014 Android Development] AmolAmrit:
I want to revert back to Kit Kat from 5.0.2 + Unlocked bootloader thing . Can You help me? Do I've chances to hard brick my phone and All?
[G 2014 Android Development] dejavu619:
No, you wont brick your phone just backup your current ROM and follow the instructions given on the first post. Ask if you have any doubts or difficulties
[G 2014 Android Development] AmolAmrit:
[MENTION=5152445]dakshay95[/MENTION] Which firmware version should I download ? Of 4.4.4 ? Which variant
[G 2014 Android Development] srinuchry:
If you are indian,choose one in first three zip files
[G 2014 Android Development] alza79:
used your files to restore my XT1068 to 4.4.4 but how do i now update OTA as my phone says no update available. So is there any steps next to allow updates OTA

btw thanks for the hard work
[G 2014 Android Development] dejavu619:
If you want to downgrade to KitKat, but don't want any OTA updates, get this one: https://mega.co.nz/#!kxpnEBIZ!NWF7n_-90o_oQQt8lZ9EsWAkN8QL2ITltn4QDD4FsBs

If you want to downgrade to KitKat but want OTA updates, get this one: https://mega.co.nz/#!Kkc31L4A!JLtksSioP_xnOZ6m3CR570o9Dxm7LbPgEF2gnkDF_TI

If you want to downgrade to KitKat but want OTA updates, get this one: https://mega.co.nz/#!Kkc31L4A!JLtksSioP_xnOZ6m3CR570o9Dxm7LbPgEF2gnkDF_TI
[G 2014 Android Development] AmolAmrit:
[MENTION=225651]op[/MENTION] and [MENTION=6176394] [MENTION=5152445]dakshay95[/MENTION] Bro I got this Error while Flashing Kit Kat Firmware

C:\mfastboot-v2>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.075s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.399s

C:\mfastboot-v2>^A

---------- Post added at 02:19 AM ---------- Previous post was at 01:50 AM ----------

@op and [MENTION=5152445]dakshay95[/MENTION] Bro I got this Error while Flashing Kit Kat Firmware

C:\mfastboot-v2>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.075s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.399s

C:\mfastboot-v2>^A
[G 2014 Android Development] adversario71:
HI..first at all thnak you so much 4 your work!!! but i have a doubt..well see if i understad how works this tool...

revert back to stock plus relock the bootloader...that means your cell its 100% stock like u did nothing with rooting process..and you"ll get OTAS...am i right?

thnx in advance
[G 2014 Android Development] HitNrun_:
If i am gonna use this on a moto g 2014 lollipop 5.0.2 will it work?
[G 2014 Android Development] dejavu619:
Tell me the steps you followed

---------- Post added at 05:44 PM ---------- Previous post was at 05:25 PM ----------

Yes, just follow the instructions carefully and ensure that they're meant only for your device
[G 2014 Android Development] AmolAmrit:
as mentioned in the op
[G 2014 Android Development] dejavu619:
In that case, are you sure that your bootloader is unlocked?
[G 2014 Android Development] wifestealer:
I'm sorry for noob question, but can i flash simple in twrp?
[G 2014 Android Development] Tel864:
Yes but be aware that you will be on stock recovery after you flash.
[G 2014 Android Development] wifestealer:
tried but didn't work.
[G 2014 Android Development] jinetesombra:
Hello, i restored my moto g to 4.4 but y when i try to update to 5.1.1 y have a boot loop. , i do root, flash recovery and them when i flash any rom 5.1.1 i obtain a boot loop .. i must install 5.0.2 first ?
[G 2014 Android Development] Tel864:
What rom are you trying to flash. You are probably going to have to flash a stock based 5.0x rom before going to 5.1 based.
[G 2014 Android Development] jinetesombra:
thanks I do that , after update 4.4 to 5.0.2 and next install carbon lp 5.1.1 with aroma gapps ants everythin works fine now thanks
[G 2014 Android Development] SANTHOSH SK:
Moto g2 xt 1068

Hi do u have files for moto g2 xt 1068, Stock kikat version. i'm using in india i donno abt the version, my phone has lolipop outof the box
[G 2014 Android Development] spsenthilkumar85:
Moto G2 Downgrade to kitkat

Hi,

I am using Moto G2 XT1068 and upgraded to Android 5.0.2, now i am planning to downgrade to Kitkat version.

I tried the above steps which you have suggested, but i am unable to downgrade to Kitkat.

Obtained the following error.

Restore to Stock Android 5.0.2 for Motorola Moto G 2014 (XT1068)

< waiting for device >

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.026s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.315s

target max-sparse-size: 256MB

sending 'motoboot' (2184 KB)...

OKAY [ 0.098s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.361s

target max-sparse-size: 256MB

sending 'logo' (295 KB)...

OKAY [ 0.046s]

writing 'logo'...

OKAY [ 0.100s]

finished. total time: 0.151s

target max-sparse-size: 256MB

sending 'boot' (10200 KB)...

OKAY [ 0.363s]

writing 'boot'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.810s

target max-sparse-size: 256MB

sending 'recovery' (10280 KB)...

OKAY [ 0.378s]

writing 'recovery'...

OKAY [ 0.679s]

finished. total time: 1.059s

target max-sparse-size: 256MB

sending 'system' (258135 KB)...

OKAY [ 8.131s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.566s

target max-sparse-size: 256MB

sending 'system' (262117 KB)...

OKAY [ 8.277s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.345s

target max-sparse-size: 256MB

sending 'system' (253188 KB)...

OKAY [ 7.990s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.071s

target max-sparse-size: 256MB

sending 'system' (77980 KB)...

OKAY [ 2.502s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 2.565s

target max-sparse-size: 256MB

sending 'modem' (49252 KB)...

OKAY [ 1.599s]

writing 'modem'...

OKAY [ 1.104s]

finished. total time: 2.709s

erasing 'modemst1'...

OKAY [ 0.025s]

finished. total time: 0.027s

erasing 'modemst2'...

OKAY [ 0.024s]

finished. total time: 0.027s

target max-sparse-size: 256MB

sending 'fsg' (651 KB)...

OKAY [ 0.075s]

writing 'fsg'...

OKAY [ 0.104s]

finished. total time: 0.185s

erasing 'cache'...

OKAY [ 0.136s]

finished. total time: 0.138s

erasing 'userdata'...

OKAY [ 1.417s]

finished. total time: 1.420s

rebooting...

finished. total time: 0.004s

Press any key to exitΓÇª
[G 2014 Android Development] xXfreshXx:
Is there a counter for Moto G that counts the flashes? Or is stock like Factory new?
[G 2014 Android Development] Ariznottle:
What can I do to make it relock my bootloader?

How can I relock my bootloader? When I type "mfastboot oem lock" it gives me an error

(bootloader) FAIL: Please run fastboot oem lock begin first!

(bootloader) sst lock failure!

Thanks in advance!
[G 2014 Android Development] Tel864:
You can't relock the bootloader.
[G 2014 Android Development] Ariznottle:
What do you mean by that?
[G 2014 Android Development] larswaechter:
Even if you lock the bootloader, motorola knows that it was unlocked. Ir's not a Nexus device.
[G 2014 Android Development] HulianMango:
Hello! This tool has almost helped me.

I have an XT1064 and I was on Lollipop. I unlocked the bootloader and lost network signal. This tool brought me back to kitkat, but I still am without network signal and the system update says that I am on the latest software.

Any help on how I can get back to Lollipop and recover the network signal?

Thanks
[G 2014 Android Development] cartemere:
Hello,

I have a 2014 Dual SIM MotoG.

Working very fine on Kitkat, but unfortunately I updated to Lolipop... and now everything is crappy (slow, redraw everywhere, Googleplay draining the battery even after a full wype, etc.)

Current version is (5.0.1) :

22.21.28.titan_retaildsds.retaildsdsall.en.03 reteu

I wan't to flash Kitkat back... followed your tuto, but it doesn't work because of incompatible signed firmware.

D:\Android\MotoG_Kitkat\MotoG_XT1068_ROM_Kitkat_2>"Auto Restore Script.bat"
Restore to Stock Android 5.0.2 for Motorola Moto G 2014 (XT1068)
adb server is out of date. killing...
* daemon started successfully *
error: device not found
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.031s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.331s
target max-sparse-size: 256MB
sending 'motoboot' (2184 KB)...
OKAY [ 0.116s]
writing 'motoboot'...
(bootloader) Motoboot: Preflash validation for tz
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.386s
target max-sparse-size: 256MB
sending 'logo' (295 KB)...
OKAY [ 0.070s]
writing 'logo'...
OKAY [ 0.082s]
finished. total time: 0.157s
target max-sparse-size: 256MB
sending 'boot' (10200 KB)...
OKAY [ 0.406s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.864s
target max-sparse-size: 256MB
sending 'recovery' (10280 KB)...
OKAY [ 0.415s]
writing 'recovery'...
OKAY [ 0.822s]
finished. total time: 1.242s
target max-sparse-size: 256MB
sending 'system' (258135 KB)...
OKAY [ 8.477s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.896s
target max-sparse-size: 256MB
sending 'system' (262117 KB)...
OKAY [ 8.593s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.658s
target max-sparse-size: 256MB
sending 'system' (253188 KB)...
OKAY [ 8.311s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.387s
target max-sparse-size: 256MB
sending 'system' (77980 KB)...
OKAY [ 2.599s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 2.659s
target max-sparse-size: 256MB
sending 'modem' (49252 KB)...
OKAY [ 1.672s]
writing 'modem'...
OKAY [ 1.744s]
finished. total time: 3.421s
erasing 'modemst1'...
OKAY [ 0.026s]
finished. total time: 0.029s
erasing 'modemst2'...
OKAY [ 0.070s]
finished. total time: 0.072s
target max-sparse-size: 256MB
sending 'fsg' (651 KB)...
OKAY [ 0.118s]
writing 'fsg'...
OKAY [ 0.093s]
finished. total time: 0.215s
erasing 'cache'...
OKAY [ 0.134s]
finished. total time: 0.136s
erasing 'userdata'...
OKAY [ 0.608s]
finished. total time: 0.610s
rebooting...

finished. total time: 0.002s
Press any key to exitÔÇª

Is my version supported by these update scripts ?
[G 2014 Android Development] Quentin638:
How do I get to update back to 5.0.1 its been a day and the update hasn't popped up nor there isn't a stock recovery I have to flash one and when I do There isn't a apply update from SD card therefor I can't necessarly update from the update zip
[G 2014 Android Development] skoopster:
want to downgrade to kk

I have XT1064

Baseband MSM8626BP_1032.394.88.00R NIIBC4MX_CUST

System version 22.21.28.titan_retuaws.retuaws.en.US.niimx

Build number LXB22.46-28

i think unlocked bootloader (i have supersu running)

im running on 5.0.2 and phone lags a lot, how can i downgrade to kk 4.4.4 (need this because sygic doesnt seem to work on custom roms). i would really apreciate any help
[G 2014 Android Development] somnath390:
does this lock the bootloader?
[G 2014 Android Development] Hpsgill:
I am running 5.0.2 stock

System version- 22.21.28

Can i flash new updated stock version (22.99.16)??
[G 2014 Android Development] wifestealer:
Why bother? Root it, unlock bootloader and enjoy custom roms xD
[G 2014 Android Development] Hpsgill:
Yeah sure...but right now i just want to know which stock rom to flash in case of any brick while rooting and flashing roms..?

Can i flash new updated stock after using custom rom..or have to flash the one that m using now??

21.21.28?? Or 22.99.16 ??
[G 2014 Android Development] godly967:
THANK YOU

thank you so much for this, i had my phone in a bootloop trying to flash supersu to my xt1064 and this got it back working! by the way, can anyone tell me exactly how to flash supersu on (now) kitkat for the xt1064 so i dont have to do that again?
[G 2014 Android Development] ggunzio:
Just use the stable supersu zip file from chainfire thread, and flash it in twrp
[G 2014 Android Development] godly967:
would you mind linking me to the thread please so i know i've got the right one?
[G 2014 Android Development] Nahuwii:
Yes you can flash newer version if there is one available for xt1068, actually any version works just fine

Edit: http://xdaforums.com/moto-g-2014/development/original-motorola-firmware-collection-t3153533 This thread has firmwares for other models than just the EU

---------- Post added at 09:29 AM ---------- Previous post was at 09:25 AM ----------

http://xdaforums.com/showthread.php?t=1538053 this is the thread for stable SuperSU
[G 2014 Android Development] zedaale:
Shawn says that it restore to 4.4 but I can restore Xt1068 to 5.02, right? There is this Version of Firmware in the op.

Enviado do meu XT1063 através de Tapatalk
[G 2014 Android Development] Nahuwii:
Yes you can restore to 5.0.2 too
[G 2014 Android Development] Ariznottle:
XT1063

Is it bad if I got "preflash validation failed" when using this tool on the XT1063? The phone seems to be working just fine but why did I get that message?
[G 2014 Android Development] Tel864:
You did download the correct file didn't you?
[G 2014 Android Development] Ariznottle:
Yes, I did. I actually used this tool on my phone without getting that error message before. I am only now getting that error message. Is it because I downgraded from 5.0.2 OTA?
[G 2014 Android Development] zedaale:
This worked like a charm. Just one question, though.

After running the bat file, how do I lock the bootloader? And if I relock the bootloader, will the unlocked boot loader warning screen disapear?

Thanks.
[G 2014 Android Development] Tel864:
You can't lock the bootloader. You can hide the warning so it won't show on boot. There's a thread around here someplace on doing that. I'll have to search a bit to find it though.

Here is the thread on the warning.

http://xdaforums.com/showpost.php?p=55417347&postcount=2
[G 2014 Android Development] SonOfAbaddon:
Hi there!

I have exactly the same Problems with the XT1068.

Initially I wanted to fix the "com.google.process.gapps has stopped working" loop after login

0) Unlocked boot loader, status 3

a) Flashed with mfastboot, everything went fine, no errors

b) erased all cashe and user cache

c) rebooting in 9/10 cases ends in black screen (display still active) after the Moto animation

d)sometimes it boots but still has my daughter's profile, even the passcode is set. after entering ist still shows com.google.process.gapps has stopped, over and over, with different apps in the mix. cannot even access settings.

e)I tried to flash TWRP, entereing recovery from fastboot still starts the stock recovery. VOL+ & Power reboots reboots, no menu showing.

f)tried locking te boot loader. fastboot oem lock goes OK, boot loader ist still in status 3.

edit:

g) even when I try to hide the unlocked boot loader with "fastboot flash logo logo.bin (original Moto logo) there are no visible changes? Is the flash ROM on the fritz?

I cannot find a solution, it looks like the phone is not getting the flash into the chip. Is a malfunktioning Hardware possible? With the unlocked loader there is no chance returning it.

Thx for replies in advance.

Cheers!
[G 2014 Android Development] devang98:
Is there any tool for Linux to restore the phone back to stock
[G 2014 Android Development] FoneWatcher:
I'm also consistently getting the "Preflash validation failed" error and have tried bypassing these first two steps. Everything seems to get written in fastboot, but after it's done, the phone can't ever get past boot animation, then it hangs on black screen.

I've tried the steps manually, used the tool in this thread and always the same. I have a XT1064, checked the md5 hash on the downloaded files.

I've searched these fora using "preflash validation failed" and read quite a few threads and posts but haven't seen any successful resolution except one that seemed to resolve by using a different kernel.

I don't know the history of the phone, but have a hunch that it was updated to Lollipop and this might be causing the problems of trying to downgrade.

Any ideas/suggestions much appreciated.

TIA
[G 2014 Android Development] bialabs:
-deleted-