[Q] [NEED HELP] How to restore stock ROM to Moto G (Please read desc) - Moto G Q&A, Help & Troubleshooting

Hi,
I have messed around with my rooted Moto G and edited build.props. I turned on my phone and a message came up saying "error system.ui has stopped"' this message kept repeating every time I pressed OK.
After failing to fix it, I went onto my recovery and wiped the storage, cache and dalvik. Obviously now when I turn on the phone it just stays on the boot image and nothing happens.I put the phone into fast boot by holding power and vol down, then tried to flash 4.4.2 Stock ROM to my phone but all CMD says is "waiting for device". I'm not sure what to do from here.
Can anyone help me at all? I've already posted before but no one seems to help me.
If you need any screenshots etc I will add them
Thanks,
Matt

@barky02
what are you using to try and install your stock rom? are you just in command prompt terminal or using a program?
anyway,,, your phone needs to be in fastboot mode to be able to run adb commands

hhp_211 said:
@barky02
what are you using to try and install your stock rom? are you just in command prompt terminal or using a program?
anyway,,, your phone needs to be in fastboot mode to be able to run adb commands
Click to expand...
Click to collapse
@hhp_211
@Martin3lli
I'm using CMD, and I was following this guide: http://forum.xda-developers.com/showthread.php?t=2542219
I am unsure how to put my phone into fastboot mode, can you show me how? I put the phone into fast boot by holding power and vol down, and thats how I tried to flash the ROM. all command prompt was saying was <waiting for device>
Thanks,
Matt

barky02 said:
I'm using CMD, and I was following this guide: http://forum.xda-developers.com/showthread.php?t=2542219
@hhp_211
I am unsure how to put my phone into fastboot mode, can you show me how?
Thanks,
Matt
Click to expand...
Click to collapse
When your phone is off, push volume down and power button simultaneously for a few seconds, then it should start fastboot. Plug in your USB cable and proceed with other steps as guide says.

Martin3lli said:
When your phone is off, push volume down and power button simultaneously for a few seconds, then it should start fastboot. Plug in your USB cable and proceed with other steps as guide says.
Click to expand...
Click to collapse
@Martin3lli
Sorry I misunderstood, I did put my phone into fastboot but it still didn't work, I updated my previous reply with the details

try this
I don't know if this will work, this is my threat. Hope it helps
http://forum.xda-developers.com/moto...t1032-t2814093

Saphire007 said:
I don't know if this will work, this is my threat. Hope it helps
http://forum.xda-developers.com/moto...t1032-t2814093
Click to expand...
Click to collapse
Thank youu :3
404 error? is it the right link?

I assume you are trying to run "flashall.bat"?
in the command prompt try this
adb kill-server
then type
adb start-server
then try running the commands...
I believe you are a full xt1028 Verizon phone?
I know what I do for 4.4.2 is using the file
CFC-fastboot_falcon_verizon_user_4.4.2_KXB20.9-1.10-1.20_22_release-keys.xml.zip
un-zip [extract] that file,,,
then make sure you copy and paste from the "/windows" folder in the zip
fastboot.exe
AdbWinApi.dll
cAdbWinUsbApi.dll
into the main folder [where your .bat file is]
with phone connected to pc...
then open it up and double click on the .bat file
CFC-fastboot_falcon_verizon_user_4.4.2_KXB20.9-1.10-1.20_22_release-keys.bat
and it will do all the necessary work
.

hhp_211 said:
I assume you are trying to run "flashall.bat"?
in the command prompt try this
adb kill-server
then type
adb start-server
then try running the commands...
I believe you are a full xt1028 Verizon phone?
I know what I do for 4.4.2 is using the file
CFC-fastboot_falcon_verizon_user_4.4.2_KXB20.9-1.10-1.20_22_release-keys.xml.zip
un-zip [extract] that file,,,
then make sure you copy and paste from the "/windows" folder in the zip
fastboot.exe
AdbWinApi.dll
cAdbWinUsbApi.dll
into the main folder [where your .bat file is]
with phone connected to pc...
then open it up and double click on the .bat file
CFC-fastboot_falcon_verizon_user_4.4.2_KXB20.9-1.10-1.20_22_release-keys.bat
and it will do all the necessary work
.
Click to expand...
Click to collapse
I have an english phone, none of the things you have said were in the tutorial, and the xml I am using doesn't come with any of those, only mfastboot.exe
I don't think my PC is recognising my Moto G properly. On the fastboot screen it says USB connected, but in my devices my phone is called "Fastboot Falcon S"

barky02 said:
I have an english phone, none of the things you have said were in the tutorial, and the xml I am using doesn't come with any of those, only mfastboot.exe
I don't think my PC is recognising my Moto G properly. On the fastboot screen it says USB connected, but in my devices my phone is called "Fastboot Falcon S"
Click to expand...
Click to collapse
Yes you have a Verizon Moto G Right [XT1028]? not a converted Boost Mobile [XT1031]?
what is the name of the zip file you have?

hhp_211 said:
Yes you have a Verizon Moto G Right [XT1028]? not a converted Boost Mobile [XT1031]?
what is the name of the zip file you have?
Click to expand...
Click to collapse
I have a T-Mobile Moto G XT1032
The Zip file name is: EE-GB-SL_FALCON_KLB20.9-1.10-1.24-1.1_cid7_CFC_1FF.xml

barky02 said:
I have a T-Mobile Moto G XT1032
The Zip file name is: EE-GB-SL_FALCON_KLB20.9-1.10-1.24-1.1_cid7_CFC_1FF.xml
Click to expand...
Click to collapse
Ahhh... I keep forgetting there are so freakin may versions...
can you show a screenshot of what files you have in there
also did you try the
in the command prompt try this
adb kill-server
then type
adb start-server
this will restart the adb session

Here is a another thread to restore stock
http://forum.xda-developers.com/showthread.php?t=2794271
Sent from my Moto G using XDA Free mobile app

hhp_211 said:
Ahhh... I keep forgetting there are so freakin may versions...
can you show a screenshot of what files you have in there
also did you try the
in the command prompt try this
adb kill-server
then type
adb start-server
this will restart the adb session
Click to expand...
Click to collapse
These are the files in the xml folder - mflashboot was the thing I added
Im not too brainy with cmd, at what time do I put adb kill-server in?

sorry
barky02 said:
Thank youu :3
404 error? is it the right link?
Click to expand...
Click to collapse
Sorry bro, my bad xs hope this works.
http://forum.xda-developers.com/moto-g/help/fix-bricked-xt1032-t2814093

barky02 said:
These are the files in the xml folder - mflashboot was the thing I added
Im not too brainy with cmd, at what time do I put adb kill-server in?
Click to expand...
Click to collapse
thanks
after reading some more up on mfastboot I don't believe you have to use the adb commands...
you should be able to use this file mfastboot.bat.txt as long as you have the mfastboot.exe on your pc
download it and move it into your "EE-GB-SL_FALCON_KLB20.9-1.10-1.24-1.1_cid7_CFC_1FF.xml" folder
then rename it to just mfastboot.bat
and doubleclick that
and follow along
don't worry if you see errors on your device screen, it's normal
this is the contents and the correct flashing order of the bat file
and are for that xml.zip that you have
edit:: edited to remove file and update below code to hopefully work
Code:
SET mfastboot=mfastboot.exe
%mfastboot% flash aboot emmc_appsboot.mbn
%mfastboot% flash partition gpt.bin
%mfastboot% flash motoboot motoboot.img
%mfastboot% flash logo logo.bin
%mfastboot% flash boot boot.img
%mfastboot% flash recovery recovery.img
%mfastboot% flash system system.img_sparsechunk.0
%mfastboot% flash system system.img_sparsechunk.1
%mfastboot% flash system system.img_sparsechunk.2
%mfastboot% flash modem NON-HLOS.bin
%mfastboot% erase modemst1
%mfastboot% erase modemst2
%mfastboot% flash fsg fsg.mbn
%mfastboot% erase cache
%mfastboot% erase userdata

hhp_211 said:
thanks
after reading some more up on mfastboot I don't believe you have to use the adb commands...
you should be able to use this file mfastboot.bat.txt as long as you have the mfastboot.exe on your pc
download it and move it into your "EE-GB-SL_FALCON_KLB20.9-1.10-1.24-1.1_cid7_CFC_1FF.xml" folder
then rename it to just mfastboot.bat
and doubleclick that
and follow along
don't worry if you see errors on your device screen, it's normal
this is the contents and the correct flashing order of the bat file
and are for that xml.zip that you have
Code:
SET mfastboot=mfastboot.exe
%mfastboot% flash aboot emmc_appsboot.mbn
%mfastboot% reboot-bootloader
%mfastboot% flash partition gpt.bin
%mfastboot% flash motoboot motoboot.img
%mfastboot% flash logo logo.bin
%mfastboot% flash boot boot.img
%mfastboot% flash recovery recovery.img
%mfastboot% flash system system.img_sparsechunk.0
%mfastboot% flash system system.img_sparsechunk.1
%mfastboot% flash system system.img_sparsechunk.2
%mfastboot% flash modem NON-HLOS.bin
%mfastboot% erase modemst1
%mfastboot% erase modemst2
%mfastboot% flash fsg fsg.mbn
%mfastboot% erase cache
%mfastboot% erase userdata
%mfastboot% reboot-bootloader
Click to expand...
Click to collapse
@hhp_211
I think this will work but I just need the pc to recognise the device, I have attached screenshots of what the device is coming up as. I have installed Motorola Device Manager, SDK tools and Google USB but it still won't be recognise.
I ran the .bat file but command prompt is still saying <waiting for device>
Thank you so much for your help, I think its nearly fixed
Matt

barky02 said:
@hhp_211
I think this will work but I just need the pc to recognise the device, I have attached screenshots of what the device is coming up as. I have installed Motorola Device Manager, SDK tools and Google USB but it still won't be recognise.
I ran the .bat file but command prompt is still saying <waiting for device>
Thank you so much for your help, I think its nearly fixed
Matt
Click to expand...
Click to collapse
@ barky02
have you also installed the
Moto G USB Drivers (WinXP/7 32Bit-64Bit)
http://forum.xda-developers.com/showthread.php?t=2550635
what os are you running on your pc?
.

hhp_211 said:
@ barky02
have you also installed the
Moto G USB Drivers (WinXP/7 32Bit-64Bit)
http://forum.xda-developers.com/showthread.php?t=2550635
what os are you running on your pc?
.
Click to expand...
Click to collapse
@hhp_211
Windows 7 (just with 98 theme)
I already have that installed, and it still doesn't work. A lot of threads are saying to enable usb debugging, but I can't do that in the phones current state right?
I attached the screenshot of what cmd stays on

barky02 said:
Windows 7 (just with 98 theme)
I already have that installed, and it still doesn't work. A lot of threads are saying to enable usb debugging, but I can't do that in the phones current state right?
Click to expand...
Click to collapse
Ok I thought Win 7, but then other shots were looking different...
well I'll ask anyway...
have you downloaded and installed
the Minimal ADB and Fastboot -- Version 1.1.3
https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc/edit?usp=sharing
the mfastboot-v2.zip
http://forum.xda-developers.com/attachment.php?attachmentid=2427667&d=1385958280
[[[and extract the zip then copy mfastboot.exe into the same folder as the stock firmware files (the same folder as the .bin and .img files).]]]
then put the .bat file inside the firmware folder,,, then doubleclick the .bat file while phone is in fastboot mode and attached to pc

Related

[Q] Erased recovery

Help Ive erased recovery and im not really experienced with fastboot I was trying to install clockworkmod and ended up deleting recovery please help ive got the kernal image from ASus but it is tar.gz please help im so confused I cant update or flash custom rom now its a nightmare just got this 2 or 3 days ago
4SHR4F said:
Help Ive erased recovery and im not really experienced with fastboot I was trying to install clockworkmod and ended up deleting recovery please help ive got the kernal image from ASus but it is tar.gz please help im so confused I cant update or flash custom rom now its a nightmare just got this 2 or 3 days ago
Click to expand...
Click to collapse
So I assumed that your device is unlocked? I recommend to flash twrp, more easier and works wellstart with section 2).
http://forum.xda-developers.com/showthread.php?p=32825557
how did you delete recovery?
cyanogen mod forum has a good wiki on fastboot.
buhohitr said:
So I assumed that your device is unlocked? I recommend to flash twrp, more easier and works wellstart with section 2).
http://forum.xda-developers.com/showthread.php?p=32825557
Click to expand...
Click to collapse
I followed this thread before it says Scott's TF700T Recovery Install tool V1.0
www.scottsroms.com
Congrats! You now have a custom Recovery installed on the official
JB release by Asus!
From here you can install a custom ROM or simply root the stock ROM.
The choice is yours!
Thank you for using my Recovery Install Tool!
Please visit www.scottsroms.com!
Donations Greatly Appreciated but Never Expected!
But when I boot into recovery I get Un recoverable bootloader error (0x00000000)
Also when I used the program it does the first reboot but not the second I dont know why? Please HELP
4SHR4F said:
I followed this thread before it says Scott's TF700T Recovery Install tool V1.0
www.scottsroms.com
Congrats! You now have a custom Recovery installed on the official
JB release by Asus!
From here you can install a custom ROM or simply root the stock ROM.
The choice is yours!
Thank you for using my Recovery Install Tool!
Please visit www.scottsroms.com!
Donations Greatly Appreciated but Never Expected!
But when I boot into recovery I get Un recoverable bootloader error (0x00000000)
Also when I used the program it does the first reboot but not the second I dont know why? Please HELP
Click to expand...
Click to collapse
I don't think you did it correctly, first boot you should see the 4 icons and you need to hit the volume down button on your device (within 10sec) to select USB icon then hit the volume up button to select this setting, now proceed with the instruction on your pc to flash. Make sure you copy the recovery twrp file named" openrecovery-twrp-2.3.1.0-tf700t.blob" from here http://goo.im/devs/OpenRecovery/tf700t to the "install Recovery" folder and RENAME this file to recovery.blob
buhohitr said:
I don't think you did it correctly, first boot you should see the 4 icons and you need to hit the volume down button on your device (within 10sec) to select USB icon then hit the volume up button to select this setting, now proceed with the instruction on your pc to flash. Make sure you copy the recovery twrp file named" openrecovery-twrp-2.3.1.0-tf700t.blob" from here http://goo.im/devs/OpenRecovery/tf700t to the "install Recovery" folder and RENAME this file to recovery.blob
Click to expand...
Click to collapse
OK last time im trying this wish me luck
Edit: Same problem grrrrrr it says its sent hasnt reboot my device as well so have to do it manually and still says same error
4SHR4F said:
OK last time im trying this wish me luck
Edit: Same problem grrrrrr it says its sent hasnt reboot my device as well so have to do it manually and still says same error
Click to expand...
Click to collapse
Sounds like your pc is not communicate correctly with your device. When your device is on and you execute Scott's bat file, is your device reboot into recovery so that you can select fastboot mode? Basically, Scott bat file is using adb command to reboot your device into recovery mode, you manually select and enable fast boot mode on your device, then the script is using fastboot command to push the recovery.blob (located in the same directory as Scott bat file) to your device.
buhohitr said:
Sounds like your pc is not communicate correctly with your device. When your device is on and you execute Scott's bat file, is your device reboot into recovery so that you can select fastboot mode? Basically, Scott bat file is using adb command to reboot your device into recovery mode, you manually select and enable fast boot mode on your device, then the script is using fastboot command to push the recovery.blob (located in the same directory as Scott bat file) to your device.
Click to expand...
Click to collapse
Yes it reboots the first time allowing me to go into recovery but then doesnt reboot second after it writes the recovery files dont know why fastboot works thats why I can delete recovery but writing is a problem :~
4SHR4F said:
Yes it reboots the first time allowing me to go into recovery but then doesnt reboot second after it writes the recovery files dont know why fastboot works thats why I can delete recovery but writing is a problem :~
Click to expand...
Click to collapse
And you did select the USB icon and the text displayed "fastboot" on your device? You also have the twrp renamed to recovery.blob in the same folder as the script? Let manually push this file using fastboot.exe and see what's happens.
buhohitr said:
And you did select the USB icon and the text displayed "fastboot" on your device? You also have the twrp renamed to recovery.blob in the same folder as the script? Let manually push this file using fastboot.exe and see what's happens.
Click to expand...
Click to collapse
With fastboot same problem when I load from command prompt it sends the file however if I do it without starting from that directory it says file not found but fastboot devices show the number should I make a video and send it
4SHR4F said:
With fastboot same problem when I load from command prompt it sends the file however if I do it without starting from that directory it says file not found but fastboot devices show the number should I make a video and send it
Click to expand...
Click to collapse
don't trust the log from fastboot or any script. Just make sure the recovery.blog is in the same directory of the fastboot command and you must execute fastboot.exe from command prompt.
1. manually boot to fastboot mode from your device. (boot to recovery then select USB icon)
2. Open command prompt and run as admin and navigate to fastboot.exe directory (with recovery.blog in this directory also)
3. type;
fastboot.exe -i 0x0B05 flash recovery recovery.blob
4. Once done, type
fastboot -i 0x0B05 reboot
Let me know the status.
buhohitr said:
don't trust the log from fastboot or any script. Just make sure the recovery.blog is in the same directory of the fastboot command and you must execute fastboot.exe from command prompt.
1. manually boot to fastboot mode from your device. (boot to recovery then select USB icon)
2. Open command prompt and run as admin and navigate to fastboot.exe directory (with recovery.blog in this directory also)
3. type;
fastboot.exe -i 0x0B05 flash recovery recovery.blob
4. Once done, type
fastboot -i 0x0B05 reboot
Let me know the status.
Click to expand...
Click to collapse
This is what I get recovery.blob is in the folder and fastboot works as I can delete recovery just not write for some reason
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
H:\Users\Install user>cd C:\Fastboot
H:\Users\Install user>fastboot devices
015d262e99141416 fastboot
H:\Users\Install user>fastboot.exe -i 0x0B05 flash recovery recovery.blob
error: cannot load 'recovery.blob': No error
H:\Users\Install user>
Also I would also like to point out it does not let me reboot after I write the files (using holding shift key and opening command prompt) as it freezes I think??? BEcause I can reboot from fastboot before I input writing flash recovery but after it wont allow don't know why?
4SHR4F said:
This is what I get recovery.blob is in the folder and fastboot works as I can delete recovery just not write for some reason
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
H:\Users\Install user>cd C:\Fastboot
H:\Users\Install user>fastboot devices
015d262e99141416 fastboot
H:\Users\Install user>fastboot.exe -i 0x0B05 flash recovery recovery.blob
error: cannot load 'recovery.blob': No error
Click to expand...
Click to collapse
Did you even notice that you didn't change to drive C: before calling fastboot? Is your recovery.blob in C:\Fastboot or in "H:\Users\Install user"?
_that said:
Did you even notice that you didn't change to drive C: before calling fastboot? Is your recovery.blob in C:\Fastboot or in "H:\Users\Install user"?
Click to expand...
Click to collapse
Yes I know but my command prompt is awkward either way ive tried using Android flasher but I find the problem is my device freezes while writing files dont know why
4SHR4F said:
Yes I know but my command prompt is awkward either way ive tried using Android flasher but I find the problem is my device freezes while writing files dont know why
Click to expand...
Click to collapse
Try this, copy the recovery.blob to this directory:
H:\Users\Install user\
Then type dir then hit enter, make sure your fastboot.exe and recovery.blob are there
H:\Users\Install user> dir then hit enter
Should show both fastboot.exe and recovery.blob
Now execute the fastboot command to push the recovery.blob
buhohitr said:
Try this, copy the recovery.blob to this directory:
H:\Users\Install user\
Then type dir then hit enter, make sure your fastboot.exe and recovery.blob are there
H:\Users\Install user> dir then hit enter
Should show both fastboot.exe and recovery.blob
Now execute the fastboot command to push the recovery.blob
Click to expand...
Click to collapse
Same problem says its sent and that it is written but after if I try to reboot the tablet doesn't respond and cant go into recovery because of that error 0x00000000
All I want to do is get UBuntu and Clean ROM on my Tablet then no more modding
OK I give up with command prompt can I use Odin or some other software to flash recovery or at least flash a custom rom from windows rather then twrp or cwm boatloaders or can I get ubuntu and do it through ubuntu any possibilities helpful please
4SHR4F said:
OK I give up with command prompt can I use Odin or some other software to flash recovery or at least flash a custom rom from windows rather then twrp or cwm boatloaders or can I get ubuntu and do it through ubuntu any possibilities helpful please
Click to expand...
Click to collapse
Nope, no Odin, but if your device is rooted, you could download goomanager from the market and install twrp using goomanager app.
buhohitr said:
Nope, no Odin, but if your device is rooted, you could download goomanager from the market and install twrp using goomanager app.
Click to expand...
Click to collapse
What about install linux without root and from there send in the recovery that way will that work
4SHR4F said:
What about install linux without root and from there send in the recovery that way will that work
Click to expand...
Click to collapse
You can be the first one to try...it may or may not works, but the methods I provided proved by many that they worked.

[Q] Newbie needing help rooting my Sensation!

Hi there,
I'm new to all things development. I have an HTC Sensation on Virgin mobile in Canada. I am trying desperately to root my phone and I have followed this guide (http://forum.xda-developers.com/showthread.php?t=1632553). I've done lots of searching on this forum and google and can't find anyone with my specific problem.
I have put the SupperSU.zip file into my SD root, unlocked my bootloader through the HTC dev website and flashed CWM using the One X program. However, when I try to boot into recovery it stalls on the white HTC loading screen. I have tried to boot into recovery using One X, a command control from my android folder on my computer and using the power button and down volume button but it always stalls. Since I cant boot into recovery I cant use CWM flash the SuperSU.zip, which I understand finishes the rooting process.
Also: I am pretty sure my drivers are up to date but when I tried to install the drivers from One X it always interrupts the installer saying the Device is in Use...andnI dont know if that means my phone (which its not) or my computer. I uninstalled my antivirus because I read that might be blocking it... but still no luck!
I would really appreciate any help or guidance you can offer! I am a complete newbie when it comes to this and I have done my best to search out answers and tutorials before coming here for help.
reflash the recovery.img using the fastboot command(rename it as recovery.img)
fastboot flash recovery recovery.img then do
fastboot reboot bootloader
after that try to enter to recovery
note:i assume you know how to use fastboot commands
if you still can't enter to recovery then try this
place the recovery.img in the folder where you have adb and fastboot files
boot the device to bootloader and connect it to pc via usb(in the hboot screen must say fastboot usb)
open in the folder a cmd window and do
fastboot reboot recovery.img
rzr86 said:
reflash the recovery.img using the fastboot command(rename it as recovery.img)
fastboot flash recovery recovery.img then do
fastboot reboot bootloader
after that try to enter to recovery
note:i assume you know how to use fastboot commands
if you still can't enter to recovery then try this
place the recovery.img in the folder where you have adb and fastboot files
boot the device to bootloader and connect it to pc via usb(in the hboot screen must say fastboot usb)
open in the folder a cmd window and do
fastboot reboot recovery.img
Click to expand...
Click to collapse
Thanks for your advice! I just want to double check what you mean before I try anything.. Do you mean that I should rename the fastboot file to 'recovery.img' and then use the fastboot commands (by holding shift and right click on my android folder to open command folder)? I am really quite new an d I think I know how to use fastboot commands but I'm not positive. I'm not sure where to find the recovery.img file!
I'm a complete beginner and I'm really trying to understand this Thanks for being patient and helping!
kellai15 said:
Thanks for your advice! I just want to double check what you mean before I try anything.. Do you mean that I should rename the fastboot file to 'recovery.img' and then use the fastboot commands (by holding shift and right click on my android folder to open command folder)? I am really quite new an d I think I know how to use fastboot commands but I'm not positive. I'm not sure where to find the recovery.img file!
I'm a complete beginner and I'm really trying to understand this Thanks for being patient and helping!
Click to expand...
Click to collapse
exactly as you said
about recovery.img use the one from the guide you used to root the device(CMW 5.8.0.9 )
or check 4ext recovery from this guide
http://forum.xda-developers.com/showthread.php?t=1631861 (step 2)
rzr86 said:
exactly as you said
about recovery.img use the one from the guide you used to root the device(CMW 5.8.0.9 )
or check 4ext recovery from this guide
http://forum.xda-developers.com/showthread.php?t=1631861 (step 2)
Click to expand...
Click to collapse
So when I renamed my CMW recovery file as recovery.img and put it in my android folder, booted my phone into fastboot usb mode and connected it to my pc. I opened a command window from the android folder with the recovery.img file in it and typed fastboot reboot recovery.img all I got was this:
C:\android>fastboot reboot recovery.img
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
What should I do now? Thank you again!!
--
I also tried to open a command window there and reflash the recovery.img by typing fastboot flash recovery recovery.img ...except it said "error: "cannot load recovery.img" except the file is definitely in that folder and named recovery.img
kellai15 said:
So when I renamed my CMW recovery file as recovery.img and put it in my android folder, booted my phone into fastboot usb mode and connected it to my pc. I opened a command window from the android folder with the recovery.img file in it and typed fastboot reboot recovery.img all I got was this:
C:\android>fastboot reboot recovery.img
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
What should I do now? Thank you again!!
Click to expand...
Click to collapse
try this
fastboot boot recovery.img
rzr86 said:
try this
fastboot boot recovery.img
Click to expand...
Click to collapse
I tried that but it keeps saying - Cannot Load "recovery.img" and I know that the file is in the folder I'm opening the command window from and named recovery.img .
kellai15 said:
I tried that but it keeps saying - Cannot Load "recovery.img" and I know that the file is in the folder I'm opening the command window from and named recovery.img .
Click to expand...
Click to collapse
ok then flash it again with fastboot command
don't use the tool
then from bootloader select recovery
rzr86 said:
ok then flash it again with fastboot command
don't use the tool
then from bootloader select recovery
Click to expand...
Click to collapse
Sorry - can you explain exactly how and what I should flash again? I'm just a little unclear.
kellai15 said:
Sorry - can you explain exactly how and what I should flash again? I'm just a little unclear.
Click to expand...
Click to collapse
as you are in the folder with cmd window opened do
fastboot flash recovery recovery.img
fastboot reboot bootloader
then from bootloader select recovery
i assume you still have the recovery.img in the folder
rzr86 said:
as you are in the folder with cmd window opened do
fastboot flash recovery recovery.img
fastboot reboot bootloader
then from bootloader select recovery
i assume you still have the recovery.img in the folder
Click to expand...
Click to collapse
That worked!! I realized I had renamed the recovery file 'recovery.img' instead of just 'recovery)" (the second .img was redundant) which is why it wouldnt find the file. Anyway, it's rooted now!
You are the best! Thanks so much for helping a newbie out
kellai15 said:
That worked!! I realized I had renamed the recovery file 'recovery.img' instead of just 'recovery)" (the second .img was redundant) which is why it wouldnt find the file. Anyway, it's rooted now!
You are the best! Thanks so much for helping a newbie out
Click to expand...
Click to collapse
congratulations mate
but i suggest you to have 4ext recovery instead of cwm because of the smartflash feature(for S-ON devices only)
as i understand you are on S-ON
rzr86 said:
congratulations mate
but i suggest you to have 4ext recovery instead of cwm because of the smartflash feature(for S-ON devices only)
as i understand you are on S-ON
Click to expand...
Click to collapse
I have now flashed 4ext and installed a customROM! Couldn't have done it without your help

Is my Nexus 5 bricked?

Last night I tried to flash CM 11 through TWRP. I wiped factory and it failed. This morning I rebooted and no sim card or sd card could be found. I went to fastboot, tried to unroot back to stock and now my phone is stuck on boot loop. I can still boot into twrp but now my backup is missing and its not recognizing the sd. Can anyone help?
there's an sd card slot?!?
dicecuber said:
there's an sd card slot?!?
Click to expand...
Click to collapse
No, just the internal sd.
is it not letting you flash the stock image?
http://forum.xda-developers.com/showthread.php?t=2513701
Have you tried reading the sticky threads that tell you how to unbrick the device?
Sent from my Nexus 5 using Tapatalk
jj14 said:
is it not letting you flash the stock image?
http://forum.xda-developers.com/showthread.php?t=2513701
Click to expand...
Click to collapse
Thanks, trying this now.
jj14 said:
is it not letting you flash the stock image?
http://forum.xda-developers.com/showthread.php?t=2513701
Click to expand...
Click to collapse
It's saying fastboot is not a recognized as an internal or external command
FuMMoD said:
Have you tried reading the sticky threads that tell you how to unbrick the device?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Where are these stickies at? I'm not finding one in either development forum.
You skipped a step somewhere
Which method are you using? If you are using method 2, you have to set the path (or change directory) - depending on where you installed abd/fastboot to.
Top in general and top in question&answer forum.
Sent from my Nexus 5 using Tapatalk
FuMMoD said:
Have you tried reading the sticky threads that tell you how to unbrick the device?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Was it necessary to be rude? Would it have been more helpful to provide a link?
Engineer4life said:
It's saying fastboot is not a recognized as an internal or external command
Click to expand...
Click to collapse
Engineer4life said:
Where are these stickies at? I'm not finding one in either development forum.
Click to expand...
Click to collapse
You need to have adb and fastboot .exe's in the same directory as the factory images(assuming you're using Windows). Here's a link to a guide. You're definitely not bricked, just some problems with TWRP right now. http://forum.xda-developers.com/showthread.php?t=2513701
i would also suggest you to try to use some toolkit and bring it back to factory setting and then re root it...
housry23 said:
Was it necessary to be rude? Would it have been more helpful to provide a link?
You need to have adb and fastboot .exe's in the same directory as the factory images(assuming you're using Windows). Here's a link to a guide. You're definitely not bricked, just some problems with TWRP right now. http://forum.xda-developers.com/showthread.php?t=2513701
Click to expand...
Click to collapse
I went through the steps of adding the different drives. Downloaded SDK, saved to C:/ and tried to run fastboot to flash image. It keeps telling me fastboot is not recognized. Do you know of any other methods to flash a stock image. I cant even access my internal sd through TWRP, it's not recognized.
Engineer4life said:
I went through the steps of adding the different drives. Downloaded SDK, saved to C:/ and tried to run fastboot to flash image. It keeps telling me fastboot is not recognized. Do you know of any other methods to flash a stock image. I cant even access my internal sd through TWRP, it's not recognized.
Click to expand...
Click to collapse
You need to open a command prompt in the same directory as the fastboot executable. There are a million tutorials on exactly how to set up your adb/fastboot properly. Even Google provides the instructions on the same page you download the factory images. It isn't hard to do so
Sent from my Nexus 5
Pirateghost said:
You need to open a command prompt in the same directory as the fastboot executable. There are a million tutorials on exactly how to set up your adb/fastboot properly. Even Google provides the instructions on the same page you download the factory images. It isn't hard to do so
Sent from my Nexus 5
Click to expand...
Click to collapse
I've followed every step from this link
http://forum.xda-developers.com/showthread.php?t=2513701
I created and named the file image-hammerhead-krt16m and saved to C:/
the folder contains
android-info
boot.img
bootloader.img
cache.img
flash-all
flash-all.sh
flash-base.sh
image-hammerhead-krt16m..zip
radio.img
recovery.img
systerm.img
userdata.img
I've tried executing the command "fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img" from C:/android-adb/. It keeps giving me error: cannot open 'C:/image-hammerhead-krt16m/bootloader.img'
Engineer4life said:
I've followed every step from this link
http://forum.xda-developers.com/showthread.php?t=2513701
I created and named the file image-hammerhead-krt16m and saved to C:/
the folder contains
android-info
boot.img
bootloader.img
cache.img
flash-all
flash-all.sh
flash-base.sh
image-hammerhead-krt16m..zip
radio.img
recovery.img
systerm.img
userdata.img
I've tried executing the command "fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img" from C:/android-adb/. It keeps giving me error: cannot open 'C:/image-hammerhead-krt16m/bootloader.img'
Click to expand...
Click to collapse
You're using the wrong slashes. File directories are C:\file\goes\here, not C:/file/goes/here
bilago said:
You're using the wrong slashes. File directories are C:\file\goes\here, not C:/file/goes/here
Click to expand...
Click to collapse
Sorry, I used the right slashed in cmd and it's the same error
Engineer4life said:
Sorry, I used the right slashed in cmd and it's the same error
Click to expand...
Click to collapse
try making a simple folder . Move all the files from this directory to C:\nexus5\ .
open a command prompt and type this:
Code:
pushd c:\nexus5
then type
Code:
fastboot flash bootloader bootloader.img
what is the results
open command prompt from start menu. on mine, it starts me at
Code:
C:\Documents and Settings\Users\Austin
Use the command "cd.." to back up until you're at C:\
From there, type
Code:
cd image-hammerhead-krt16m
You should be at that directory now. and it'll say
Code:
C:\image-hammerhead-krt16m
Code:
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot erase cache
without having to try and navigate to them every time. This worked for me. If you have adb drivers installed correctly and the "adb version" and "fastboot devices" command both work, you're good.
EDIT : Just as a heads up, the last command "fastboot erase cache" messed up something on mine. It wouldn't hold APNs or connect to any network, so I had to run fastboot flash cache cache.img
Synyster06Gates said:
open command prompt from start menu. on mine, it starts me at
Code:
C:\Documents and Settings\Users\Austin
Use the command "cd.." to back up until you're at C:\
From there, type
Code:
cd image-hammerhead-krt16m
Click to expand...
Click to collapse
Its a lot faster and efficient to just type
Code:
pushd c:\image-hammerhead-krt16m
Your method will not work if the user has their documents folder on another partition, which is a smart way to set up your computer.

[SOLVED]cannot load factory image using fastboot

My phone is the Indian version of XT1033 2013. I was trying to install a factory image so downloaded an image(XML). I have downloaded 3 more images since(all XML). Every time the same error message pops up 'image is too big'. My internal data got erased so it's not as if I can go back to my previous ROM. One solution on a XDA thread suggested using mfastboot( I use minimal adb and fastboot), but my device isn't recognized by mfastboot. No such problems arose with minimal fastboot. My adb is also disabled, so I cannot push any ROM. What should I do now ?
Edit: i got out of the boot loop easy. My OTG wasn't recognized by CWM because it was using NTFS. Formatted and changed to FAT32, and voila !
You have to drop mfastboot.exe in the same folder as the firmware image files. Then navigate in command prompt to that location.
mfastboot: https://www.androidfilehost.com/?fid=24052804347778493
Flashing Tutorial: http://forum.xda-developers.com/showthread.php?t=2542219
Provide a log if you still have problems. Copy and paste command prompt screen. Take screenshots.
Done that already
lost101 said:
You have to drop mfastboot.exe in the same folder as the firmware image files. Then navigate in command prompt to that location.
mfastboot: https://www.androidfilehost.com/?fid=24052804347778493
Flashing Tutorial: http://forum.xda-developers.com/showthread.php?t=2542219
Provide a log if you still have problems. Copy and paste command prompt screen. Take screenshots.
Click to expand...
Click to collapse
The image file was too big. As I said, i tried it with 4-5 factory images. Nothing. So I managed to flash a ROM using OTG. It was simple,really. Thanks for repying !

Moto G XT1032 boot problem

Hi i use this rom http://forum.xda-developers.com/moto-g/development/stable-aosp-caf-t3284323
and i have a problem , my phone rebooted and stuck after the boot animation in a black screen.
I tried wipe cache , nothing and then i tried fix permission and now i cant go into my recovery , restarts itself, flassed revovery again , same thing.
Now i want to flass the rom with fastboot , what wipe commands i have to do?
I found online this
fastboot erase system -w
fastboot erase boot
fastboot update rom.zip
is this ok?
Thanks
[email protected] said:
Hi i use this rom http://forum.xda-developers.com/moto-g/development/stable-aosp-caf-t3284323
and i have a problem , my phone rebooted and stuck after the boot animation in a black screen.
I tried wipe cache , nothing and then i tried fix permission and now i cant go into my recovery , restarts itself, flassed revovery again , same thing.
Now i want to flass the rom with fastboot , what wipe commands i have to do?
I found online this
fastboot erase system -w
fastboot erase boot
fastboot update rom.zip
is this ok?
Thanks
Click to expand...
Click to collapse
I literally JUST unbricked my Moto G XT1032 after searching for a long while and piecing instructions together. Here's how:
PREPARATIONS
1) Download XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF.xml.zip
This is the stock firmware you need to flash. I haven't tried it with anything else. The instructions that follow are specific to this file, although you should be able to follow the general idea to install different ROMS.
Get the firmware (or a different one) here: http://forum.xda-developers.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795
2) Ensure that you also have the correct Motorola drivers for this phone. Download 32-bit or 64-bit versions depending on your PC.
Get them here http://forum.xda-developers.com/showthread.php?t=2550635
3) Download MFastBoot v2
Go to http://forum.xda-developers.com/gen...ng-mfastboot-exe-to-unbrick-motorola-t3203518
or simply download the file at (https://mega.nz/#F!xUh10AAD!5NvRwDf6eAfjE3bUWZfk7g)
Note: From what I've experienced, you CANNOT use normal Fastboot on this phone. You will keep getting errors such as Failed (remote failure). You have to use MFastBoot.
Open the downloaded file. There will be two other zip files inside it. Extract all contents of mfastboot-v2.zip to a folder of your choice.
4) Download TWRP Recovery. It's usually a good idea to have a recovery, even though it's not used to flash the ROM.
Get the highest version of it here: https://dl.twrp.me/falcon/
Extract the .img file to the SAME folder as where you extracted mfastboot and rename it to twrp.img (not really necessary, but it's easier to type into the command prompt).
5) Extract all contents of XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF.xml.zip to the SAME folder as where you extracted mfastboot.
6) Ensure the phone is off. Hold VOL DOWN first, and then press POWER button for about 5 seconds, then release POWER button before releasing VOL DOWN. You should be in fastboot mode. Plug the USB cable into the phone now.
If you see Device is locked. Status 0, follow the instructions in the UNLOCKING THE BOOTLOADER section.
If you see Device is unlocked. Status 3, continue to step 7.
FLASHING THE FIRMWARE
7) Open the folder where everything has been extracted to.
Hold CTRL+Shift and right click in an empty area of the folder. You will see a normally hidden option to "Open Command Window Here". Select that option and a command prompt window will open. If you are not seeing this, you may not have administrative rights on your account.
Type this into the command prompt: mfastboot reboot
I'm unsure if this is required or not, but mfastboot wouldn't work unless I rebooted it from the command prompt before any other instruction.
8) This is the step where the TWRP recovery and ROM files are flashed.
Type the following into the command prompt, pressing enter after each line. Alternatively, just copy each line and right click>paste into the command prompt. Credits to AgentChaos for the following:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot flash recovery twrp.img
If you used normal fastboot at this step, it will fail and give you an error of "Failure (remote failure)". or it will say it could not find or write to some directory.
Hopefully it does not fail, and should say OKAY after writing each file. This step will take several minutes.
If you used a different firmware than I did, you will have to flash the correct files to the correct directories, and they MAY be different than the ones listed above. I think (but I am not sure) that the only difference would be having to flash and additional sparsechunk.3 or 4. I would not suggest doing this if you aren't sure.
After all files have been flashed, do one final mfastboot reboot and press VOL DOWN and select Recovery, then press VOL UP to start it. You should see the TWRP recovery screen. The screen may glitch out but otherwise be operable. You can press REBOOT then SYSTEM to start the phone normally.
I hope this has been helpful.
UNLOCKING THE BOOTLOADER
A) Open the folder where everything has been extracted to.
Hold CTRL+Shift and right click in an empty area of the folder. You will see a normally hidden option to "Open Command Window Here". Select that option and a command prompt window will open. If you are not seeing this, you may not have administrative rights on your account.
Connect the USB and type this into the command prompt: mfastboot oem get_unlock_data
You will see a string of characters that looks like:
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
B) Go to Motorola's unlocking bootloder tool website here:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-b
You will need to create an account with a legitimate email account, which takes 1-2 minutes.
There is a text box on Motorola's site where you need to type the exact combined code you received from top to bottom with symbols included, but don't include "(bootloader)". Agree to their terms and services.
C) You will receive an email with your bootloader unlock code.
Go to the command prompt and type: mfastboot reboot to reboot the device. Alternatively, just reboot it manually.
Type: mfastboot oem unlock UNIQUE_KEY where UNIQUE_KEY is the unlock code you received. The screen should go black and you should see the word "Unlock...". The phone may stop responding at this point, in which case simply wait 1-2 minutes to ensure it is finished doing what it was doing, and then manually reboot it.
Boot into fastboot again and now your device should say "Device is unlocked. Status 3"

Categories

Resources