yashsingh1/xdaforums huggingface dataset:
[Moto G Q&A, Help & Troubleshooting] randras83:
Here is my fastboot prompt:

d:\MotoG\442>fastboot.exe flash motoboot motoboot.img

target reported max download size of 536870912 bytes

sending 'motoboot' (1940 KB)...

OKAY [ 0.147s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) flashing sdi ...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

OKAY [ 1.565s]

finished. total time: 1.714s

d:\MotoG\442>fastboot.exe flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (619 KB)...

OKAY [ 0.125s]

writing 'logo'...

OKAY [ 0.125s]

finished. total time: 0.252s

d:\MotoG\442>fastboot.exe flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (10240 KB)...

OKAY [ 0.429s]

writing 'boot'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.485s

d:\MotoG\442>fastboot.exe flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (10240 KB)...

OKAY [ 0.395s]

writing 'recovery'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.426s

d:\MotoG\442>fastboot.exe flash system system.img_sparsechunk.0

target reported max download size of 536870912 bytes

sending 'system' (255768 KB)...

OKAY [ 8.714s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.851s

d:\MotoG\442>fastboot.exe flash system system.img_sparsechunk.1

target reported max download size of 536870912 bytes

sending 'system' (244360 KB)...

OKAY [ 8.304s]

writing 'system'...

OKAY [ 10.235s]

finished. total time: 18.541s

d:\MotoG\442>fastboot.exe flash system system.img_sparsechunk.2

target reported max download size of 536870912 bytes

sending 'system' (220989 KB)...

OKAY [ 7.533s]

writing 'system'...

(bootloader) Failed to validate sparse image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 19.965s

d:\MotoG\442>

d:\MotoG\442>fastboot.exe flash modem NON-HLOS.bin

target reported max download size of 536870912 bytes

sending 'modem' (47476 KB)...

OKAY [ 1.648s]

writing 'modem'...

OKAY [ 1.479s]

finished. total time: 3.128s

d:\MotoG\442>fastboot.exe erase modemst1

erasing 'modemst1'...

OKAY [ 0.066s]

finished. total time: 0.067s

d:\MotoG\442>fastboot.exe erase modemst2

erasing 'modemst2'...

OKAY [ 0.067s]

finished. total time: 0.067s

d:\MotoG\442>fastboot.exe flash fsg fsg.mbn

target reported max download size of 536870912 bytes

sending 'fsg' (102 KB)...

OKAY [ 0.104s]

writing 'fsg'...

OKAY [ 0.076s]

finished. total time: 0.181s

d:\MotoG\442>fastboot.exe reboot

rebooting...

finished. total time: 0.001s
[Moto G Q&A, Help & Troubleshooting] Destr0y3r:
Try using "mfastboot" it could maybe work... Just a thought.
[Moto G Q&A, Help & Troubleshooting] randras83:
I already tried it with no luck...if you look at getvar data you will see cid is 0xDEAD thats why i am worried.
[Moto G Q&A, Help & Troubleshooting] pfufle:
Try to use another firmware using mfastboot manually and relock your boot loader
[Moto G Q&A, Help & Troubleshooting] randras83:
I tried many firmware without luck, the problem is in the BL i see devices locked status 0, but the unlock command doesn't work.
[Moto G Q&A, Help & Troubleshooting] pfufle:
You must be making a mistake...request for the unlock code again
[Moto G Q&A, Help & Troubleshooting] randras83:
This is the message i've got after fastboot oem unlock "unlockcode"

(bootloader) fastboot oem unlock disabled!

FAILED (remote failure)

finished. total time: 0.025s

This is the story: the former owner tried to root the phone, as he said he unlocked the bootloader, then something went wrong. He tried to install CM, and he softbricked the phone. It has the IMEI but there is some problem with CID and UID as a look at the prompt from fastboot getvar all. Somehow the unlock commands doesnt work, and i ve got preflash vaildation faild errors, when i try to flash boot or recovery or system img. The phone wont boot if i turn it on it goes to bootloader.
[Moto G Q&A, Help & Troubleshooting] pfufle:
Ask for the unlock code again
[Moto G Q&A, Help & Troubleshooting] randras83:
I tried it last week, but if i enter the command fastboot oem get_unlock_data it won't post the unlock token.
[Moto G Q&A, Help & Troubleshooting] pfufle:
Well I think you are the first person who has faced this problem...I think there is something wrong with the commands you are typing....
[Moto G Q&A, Help & Troubleshooting] Awesomeslayerg:
my theory

I think your gonna need to wipe the device filly like its partions and such. ThTs all I can think off

Found this http://blog.azimuthsecurity.com/2013/04/unlocking-motorola-bootloader.html?m=1
[Moto G Q&A, Help & Troubleshooting] randras83:
I was wondering if the former owner unlocked the bl than flashed a stock image with a bl which doesn't support unlock and that why I am getting 0xdead Cid and can't reopen bl...
[Moto G Q&A, Help & Troubleshooting] pfufle:
Wipe simply everything from your phone and then restore the stock firmware
[Moto G Q&A, Help & Troubleshooting] Awesomeslayerg:
http://xdaforums.com/showthread.php?t=2623587

Found this you could try this.
[Moto G Q&A, Help & Troubleshooting] tal.aloni:
I came across a similar situation after writing an emmc image taken from one XT1032 to a second XT1032.

After rebooting, the second XT1032 (which was already unlocked) behaved just like your device (reported as LOCKED, and when trying to unlock, gave the 'fastboot oem unlock disabled!' error message).

Eventually, and with some trickery, I was able to resolve the issue by restoring the 'cid' and 'sp' partitions to their original state.
[Moto G Q&A, Help & Troubleshooting] T4t4nk4881988:
check device manager on windows and see if you have unknow devices on your phone and change adb from there
[Moto G Q&A, Help & Troubleshooting] NathanJ988:
It has been quite a while since you posted this, but I have the same problem where I overwrote the cid partition and I am unsure how to get it back. Any chance you remember this trickery?

Thanks,

Nathan
[Moto G Q&A, Help & Troubleshooting] ArjunSindhya:
I have the same problem. Any fix? :(
[Moto G Q&A, Help & Troubleshooting] Nagoor691:
ISSue XT0133

same issue, i'm also facing bro any solutions?
[Moto G Q&A, Help & Troubleshooting] Felps2001:
Moto G LTE XT1040 Could not get unlock data!!

Hi!

First, sorry for my bad english, I am brazilian.

[IMG="failed to initialize partition table"]https://scontent.fldb2-2.fna.fbcdn.net/v/t31.0-0/p480x480/17833969_1356423631117038_8618946112286723563_o.jpg?oh=297078af89c64dfb5d7043e5f132f637&oe=595BAC40[/IMG]

My Moto G blocked the bootloader without my permission. And he does not give me the code. This is what appears at the Windows command prompt:

C:\Users\Felipe\Desktop\Minimal ADB and Fastboot>fastboot oem get_unlock_data

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

...

(bootloader) Could not get unlock data!

OKAY [ 0.047s]

finished. total time: 0.047s

Using the fastboot getvar all command it shows the following information:

C:\Users\Felipe\Desktop\Minimal ADB and Fastboot>fastboot getvar all

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) version: 0.5

(bootloader) version-bootloader: 411A(*)

(bootloader) product: peregrine

(bootloader) secure: yes

(bootloader) hwrev: 0x82D0

(bootloader) radio: 0x7

(bootloader) emmc: 8GB Samsung REV=06 PRV=02 TYPE=17

(bootloader) ram: 1024MB Samsung S4 SDRAM DIE=4Gb

(bootloader) cpu: MSM8926

(bootloader) serialno: c9b0c080

(bootloader) cid: 0xFFFF

(bootloader) channelid: 0xDEAD

(bootloader) uid: 526A0C0715000000000000000000

(bootloader) unlocked: Not supported

(bootloader) iswarrantyvoid: Not supported

(bootloader) mot_sst: 8

(bootloader) max-download-size: 536870912

(bootloader) reason: Failed to initialize partition table

(bootloader) imei:

(bootloader) meid:

(bootloader) date:

(bootloader) sku:

(bootloader) iccid:

(bootloader) cust_md5:

(bootloader) max-sparse-size: 268435456

(bootloader) current-time:

(bootloader) ro.build.fingerprint:

(bootloader) ro.build.version.full:

(bootloader) ro.build.version.qcom:

(bootloader) version-baseband:

(bootloader) kernel.version:

(bootloader) sdi.git:

(bootloader) sbl1.git:

(bootloader) rpm.git:

(bootloader) tz.git:

(bootloader) aboot.git: git=MBM-NG-V41.1A-0-g80481ae

(bootloader) qe:

(bootloader) ro.carrier:

all: listed above

I noticed that this information is strange:

(Bootloader) serialno: c9b0c080

(Bootloader) cid: 0xFFFF

(Bootloader) channelid: 0xDEAD

(Bootloader) unlocked: Not supported

(Bootloader) iswarrantyvoid: Not supported

I tried brick purpose, but it did not flash anything, always the error "preflash verification failed", "remote failure", and "permission denied"

I tried to flash several gpt.bin files, motoboot.img, but to no avail. Multiple versions of stock roms, and unsuccessful

I can not lose this device, it's the only one I have, and it's not always that I have access to a computer (family problems)

PLEASE HELP ME, THIS IS MY ONLY CELL PHONE :crying: :crying: :crying:
[Moto G Q&A, Help & Troubleshooting] pramath:
https://motoghub.blogspot.in/2017/04/how-to-recover-from-bootloop.html

This will help you!
[Galaxy Tab 3 Q&A, Help & Troubleshooting] la_inguanita:
Hello!

I have a problem with a Samsung Galaxy Tab 3 10.1 (P5210). The wifi won't turn on. I have made reset in the S.O. and reset in the recovery. The hardware its OK. I flashed 2 STOCK ROMS but the problem continues. Also i made root access and delete the archive of configuration of wifi.

Has anyone had this problem?

Greetings and thanks!!

PD: Sorry for the english. Im spanish.
[Galaxy Tab 3 Q&A, Help & Troubleshooting] Lakland:
Did you upgrade from a previous version of android to kk4.4.2? And this start to happen?
[Galaxy Tab 3 Q&A, Help & Troubleshooting] la_inguanita:
sharply dsctai

I dont know the tab not is mine. In this case there any solution?

Thanks!
[Galaxy Tab 3 Q&A, Help & Troubleshooting] Lakland:
I am having random issue with wifi after upgrade to kk4.4.2. Wifi icon is not tnere but I can browse. But chormecast application don't work, because is trying to see the wifi on. So the answer is not solution for me yet
[8525, TyTN, MDA Vario II, JasJam General] quinxy:
I can't seem to figure out how people restore their apps, data, ActiveSync, etc. after updating their ROMs. It seems like people on this site replace their ROMs a few times a year at least, and with all the cleverness required to follow all the ROM issues, surely you can't all be manually re-installing every single app every time, etc. Are there some tools I don't know about that are useful for backing up/restoring files before/after ROM burn? Every backup program I see says you must not use it to restore after ROM update (which I understand, since you don't want to restore old versions of many key files). But surely someone could create a backup/restore app which knows which things should NOT be restored.

Thanks!
[8525, TyTN, MDA Vario II, JasJam General] pof:
I do rom upgrades quite frequently, now I can have my device back with my settings and programs installed in around 10 minutes, here's what I did:

1)Install registry workshop on your desktop computer, this program allows you to remotely browse / export the registry on the PocketPC and compare current regitry settings on PocketPC with a previously dumped registry file.

2) Install RegDiff on your desktop computer, it allows you to generate .reg files out of two exported registry dumps done by registry workshop.

3) Spend a few hours going setting-by-setting and exporting the registry after changing each setting, compare and generate .reg file for that. Keep in mind that sometimes you need to power off the device for a while or soft reset for the registry setting to be permanently stored.

4) Once you have all the .reg files for your settings combine them in a single .reg file

5) Use WinCE Cab Manager to combine the cabs of all the programs you install, set the registry settings, and put shorcuts to all applications into the right places. This is the most "time consuming" part of the process.

Finally I end up with 2 big cab files:

- First one is around 9Mb which I install on pocketpc memory, this includes all today screen plugins, plus Net CF 2.1 and some registry settings (mostly WM5 settings and preferences from the today plugins)

- Second one is around 25Mb which i install on storage card, this includes all the other 3rd party apps I like and registry settings for those apps.

What I do after hard reset or rom upgrade: Install the two cab files, setup mail accounts and mms manually and use directpush to sync all my contacts and calendar items again.

The process of exporting all the registry settings is a PITA, but it is worth spending the time if you're going to switch roms frequently.
[8525, TyTN, MDA Vario II, JasJam General] pkx:
Look for an app called Sprite Backup.
[8525, TyTN, MDA Vario II, JasJam General] Menneisyys:
Yup, Sprite is the easiest. Be warned, however, that it isn't able to restore PIM databases over the AKU3 upgrade. See my Backup Bible, where I;ve explained this all.
[8525, TyTN, MDA Vario II, JasJam General] quinxy:
Wow, thanks. That's a lot of work to get things set up! Clearly worth it if you can re-install everything in 10 minutes, though.

I started to investigate your recommendations, installed Cab Manager, and see how you use that.

How do you get the cabs if the install isn't directly via cab? In other words, if the install is initiated via ActiveSync, then are the necessary cabs always found under the Program Files\ActiveSync directory?

As for Sprite Backup, it looks great, and maybe that would be enough for me for now. I wasn't clear (I did search through and skim the Backup Bible and the WM5 backup software comparisons but couldn't find exactly where it talked about the issue regarding AKU3) is the PIM issue a known bug? Or some limitation/problem related to new security or something?

Quincy
[8525, TyTN, MDA Vario II, JasJam General] pof:
If it's installed via activesync you can find them there, but generally what I do is extract the cab files from the exe using orange in Linux, don't know if there's a windows equivalent.
[8525, TyTN, MDA Vario II, JasJam General] quinxy:
pof,

Don't know if you ever ActiveSync since you use Linux, but is there a way to NOT break your ActiveSync by upgrading your ROM? I thought I tried once, years ago, to set the device name back to the original name and ActiveSync still didn't recognize it as the old partnership.

quincy
[8525, TyTN, MDA Vario II, JasJam General] Menneisyys:
If it doesn't recognize it, just delete the old partnership and recreate / reconfigure it . It's just some seconds.
[ONE Q&A, Help & Troubleshooting] elrey311:
Does the Mahdi Rom work with Franco Kernel R4? I have this kernel on my stock 1+1 64gb international version. Reading on the developer forums some say yes and some say no that it causes reboot issues. I am just trying to get some clarification on this issue. Thanks
[ONE Q&A, Help & Troubleshooting] bud77:
Yes it works with it, but only the version posted in the mahdi rom thread

Few users have reboots, many don't
[ONE Q&A, Help & Troubleshooting] elrey311:
Mahdi Rom

Do I need to add the kernel off the op page or just use the one I already have in twrp, it is the Franco kernel r4. It is the same one that is on op page I think. I see some people talking about dr87 twrp. I just have the stock 2.7.1.0 twrp installed. Do I need the dr87 twrp? Sorry for the noob questions just trying to it get right. Thanks
[ONE Q&A, Help & Troubleshooting] zephiK:
Use dr87 twrp and dr87 franco kernel r4.

I'm using both on MAHDI and it works perfectly.
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

Just one more question. Do you flash the dr87 twrp right over the stock twrp or do you have to remove the stock twrp? Thanks for the quick reply and all the help.
[ONE Q&A, Help & Troubleshooting] zephiK:
It doesn't matter what recovery you have prior to flashing, flashing dr87 twrp will override whatever recovery you were using before. Fastboot flash it or use the flashable zip to flash it. Up to you.
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

Perfect! Thanks for all the help.
[ONE Q&A, Help & Troubleshooting] zephiK:
Anytime :) help is always just around the corner. Enjoy MAHDI, I certainly do :)
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

I flashed the dr87 Franco kernel today and never got past the one+ screen on boot up. I was just wondering if I needed to flash Mahdi rom first and then flash the dr87 Franco kernel? I did get the dr87 twrp installed and all is well with that. I re- flashed the Franco kernel r4 and I'm still on the stock cm rom and everything is good. After reading the MAHDI ROM forum it seems they are having problems with this.
[ONE Q&A, Help & Troubleshooting] zephiK:
Simply follow the steps in the MAHDI OP post.

Its pretty much.

1. Factory Wipe

2. Flash MAHDI then gapps or kernel (doesnt matter if u flash gapps or kernel first).
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

Sounds good my friend. Thanks for the help.
[ONE Q&A, Help & Troubleshooting] zephiK:
Let me know how it goes :)

edit: seems like the new version of mahdi just released doesnt work with the franco r4 that was posted in op post. works with the version prior to that though.
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

Are they getting all the bugs worked out of this and is it ready to roll? I kinda have been waiting a little while to see how everything is going to play out. It seems like it is getting better and better. Let me know how you feel about it. Thanks
[ONE Q&A, Help & Troubleshooting] zephiK:
What do you mean by bugs? Check the third post in Mahdi, theres a working bootable Franco kernel again
[ONE Q&A, Help & Troubleshooting] elrey311:
MAHDI ROM

I saw that. It seems like it is working pretty smooth and everybody is is happy with the performance.
[ONE Q&A, Help & Troubleshooting] zephiK:
Yeah its good.
[ONE Q&A, Help & Troubleshooting] benzso63:
So does it mean if I have this phone, I can put "[ROM] [4.4.4] [HAMMERHEAD] Mahdi-Rom 2.7 [07/19]" on it ?
[ONE Q&A, Help & Troubleshooting] drakester09:
That's for Nexus 5, go to One Android development and get it from there.
[Moto G 4G Android Development] shabbypenguin:
Shabbypenguin and the OUDHS

presents to you

ClockWorkMod Recovery 6.0.5.0

for your Moto G LTE ​

You need to be unlocked to use this i suggest following this guide :)

CWM-6.0.5.0 https://mega.co.nz/#!sdRBTKQZ!Km20ItpCMi34ph6X6yS98_JOtMTANNinAC_dihtyoSY

CWM-Touch-6.0.5.0 https://mega.co.nz/#!ZNxiFBjL!0w7JdyO4dT1b5QhU34NrZuSx-Cw8g_IA5KAngpst130

fastboot flash recovery CWM-6.0.5.0-peregrine.img

-----------------------------------------------------------------------------------------------------------------

Congrats you now have CWM now if you wish to root youll need to follow these instructions :)

-----------------------------------------------------------------------------------------------------------------

SuperSU

Directions

:

1) Download the above file

2) Connect your phone and copy them to your phone or your sdcard

3) Once they are copied power down your device

4) Hold volume up, down and power to enter bootloader mode

5) using volume down scroll to recovery and then use volume up to select

6) Navigate recovery by using the volume keys and power to select

7) Choose install zip from sdcard, then pick internal or external (where you copied it to)

8) Scroll down to the SuperSU.zip and select it to install

-----------------------------------------------------------------------------------------------------------------

Congrats you are rooted! this procedure will work on any firmware update you guys get :)

-----------------------------------------------------------------------------------------------------------------

Bugs:

Certain SDcards dont appear to work in recovery even though they work when booted, may be a brand or speed thing not sure :/.

Credits:

eteles - testing

suhridkhan - testing

dhacker - for all the heavy lifting on previous moto devices.

Source​
[Moto G 4G Android Development] djcody:
Thanks for your hard work :)
[Moto G 4G Android Development] MikeNaples:
Is there a Moto X dt version?
[Moto G 4G Android Development] stephtban:
Hello [MENTION=2614663]shabbypenguin[/MENTION] !

Thanks for porting CWM to our awesome Moto G 4G!

Is this fully functional? Does sdcard works?

Thx
[Moto G 4G Android Development] shabbypenguin:
yes :) spent several hours last night trying to work on the dts files and seif i could figure it out and had a test build this morning only to find out that moto pushed new source that fixed it :P
[Moto G 4G Android Development] stephtban:
Awesome!

A new world is there!!

Thanks a lot!

...and sorry for your wasted time ^^
[Moto G 4G Android Development] vpnair:
Running Motorola XT1039 - Peregrine

Have already rooted via SuperSU flash from fastboot boot. First time flashing custom recovery on this phone.

Cant access or mount external SD. Also, I cannot boot into recovery from bootloader.

I:Checking for extendedcommand...

I:Skipping execution of extendedcommand, file not found...

I: Cannot load volume /misc

mount: mounting /dev/block/mmcblk1p1 on /external_sd failed: No such file or directoy

E: Can't mount /external_sd

mount: mounting /dev/block/mmcblk1p1 on /external_sd failed: No such file or directoy

E: Can't mount /external_sd

I: Cannot load volume /misc

I: using /data/media/0/ for /sdcard

mount: mounting /dev/block/mmcblk1p1 on /external_sd failed: No such file or directoy

E: Can't mount /external_sd

I: Cannot load volume /misc

I: Cannot load volume /misc

I have no issues with accessing SD card once Android boots up. I have tried, reflashing recovery and erasing cache via fastboot. Anything I should try?

EDIT: Fixed by swapping out my Samsung 32gb UHS-1 MicroSD (that was working fine when I booted android) with an 8gb Class 4 Kingston! No UHS-1 in recovery?
[Moto G 4G Android Development] shabbypenguin:
interesting, [MENTION=4804571]eteles[/MENTION] has a xt1040 i believe and he reported that it was working with the new dtb files.
[Moto G 4G Android Development] eteles:
It works flawlessly on XT1040... Using 32GB sandisk class 10 sdcard...
[Moto G 4G Android Development] stephtban:
Flashed it via the app rashr on my XT1039

I can access my sdcard files and backup to it (that's all i tested so far)
[MENTION=2649977]vpnair[/MENTION] : maybe you can try to download it again
[Moto G 4G Android Development] Narkoa:
Congrats and thank you a lot !

You guys are amazing. Seriously ^^
[Moto G 4G Android Development] vpnair:
The interesting thing is, I believe i did access the external SD initially (via Install Zip option), but when I went to the option of Mounts and Storage and attempted to mount external sd (to access on PC). It came with mounting error. Since then, no matter what I do, I cannot access SD card from recovery.

Recent attempts at flashing

1. Tried redownloading and flashing with both fastboot and mfastboot. Noticed that bootloader said 'Mismatched partition size (Recovery)' in red. Didn't notice the first time i flashed (maybe it was there.. I dont know).

(EDIT: Fixed by swapping out my Samsung 32gb UHS-1 MicroSD (that was working fine when I booted android) with an 8gb Class 4 Kingston! No UHS-1 in recovery?)

2. Can't boot from bootloader to recovery (first time it just went to normal bootup, now it just turns off the phone) (EDIT: Solved! - Have to select Recovery via Volume Up key - Thanks [MENTION=4804571]eteles[/MENTION])

3. Volume UP + DOWN + Power button goes to bootloader too not recovery.

4. Can only get into recovery by 'Reboot --> Recovery' (advanced reboot menu with gravitybox) EDIT: See 2.