What command can I use in fastboot or adb to factory reset my nexus 7? Digitizer cracked and touch no longer works, I have someone that wants it for parts but want to reset it before I give it to him.....
Code:
fastboot erase data
should remove all data. If you want to be sure that also all caches are cleaned up, apply
Code:
fastboot erase cache
too.
"fastboot erase data" is not allowed on my phone. a workaround could be:
Code:
fastboot boot /path/to/file/on/pc/twrp.img
adb shell
wipe data
wipe cache
for more details see https://twrp.me/faq/openrecoveryscript.html and https://android.stackexchange.com/questions/201212/how-can-i-reboot-into-recovery-from-fastboot
but this somehow does not work on my phone. It either does not boot twrp or twrp does not enable ADB. I don't know because the display is broken.
any other way?
fastboot -w
this command delete data and cache.
JPT223 said:
"fastboot erase data" is not allowed on my phone. a workaround could be:
Code:
fastboot boot /path/to/file/on/pc/twrp.img
adb shell
wipe data
wipe cache
for more details see https://twrp.me/faq/openrecoveryscript.html and https://android.stackexchange.com/questions/201212/how-can-i-reboot-into-recovery-from-fastboot
but this somehow does not work on my phone. It either does not boot twrp or twrp does not enable ADB. I don't know because the display is broken.
any other way?
Click to expand...
Click to collapse
did you find anything??
Well. My screen wasn't broken. I was able to reboot it using ADB. I don't remember about the factory reset....
and it is actually possible to reboot the phone by pressing the power button for almost an eternity.
kaber420 said:
fastboot -w
this command delete data and cache.
Click to expand...
Click to collapse
That worked nicely for me and erased both, whereas fastboot erase data was not allowed permission on my device. Thanks.
kaber420 said:
fastboot -w
this command delete data and cache.
Click to expand...
Click to collapse
how can I fix this error "CreateProcess failed: the system cannot find the file specified"
I did fastboot -w but now device doesn't apper in file explorer from pc in recovery. I think I should flash the data partition but i don't know how, xiaomi mi 9t
I was able to wipe data on an old tablet I forgot the code to using
Code:
fastboot oem unlock-go
Just in case this helps someone else.
Related
cm7 started screwing up, com.android.phone fc so reflashed and then the touchscreen is out of wack. bottom buttons dont work and its like i can use the bottom black part of the screen to scroll. ive tried flashing and wiping everything, ive tried new roms and everything but nothing is working
im pretty sure that's what happens when your pds partition ( /dev/block/mmcblk0p3 ) get's screwed up.
where you messing around with partitions or anything in the root folder of your device?
no i was just flashing a backup then decided to wipe and start from scratch then bam is it fixable?
ive tried formatting that too, i just formatted it again to try
its like the screen is shifted down or something, and formatting it ddid nothing
Try a advanced restore & restore your pds.img from with in cwm backup.
Also u might have use fastboot to
Clean things up.. For doing a restore.
Sent from my MB860 using Tapatalk
XRange said:
Try a advanced restore & restore your pds.img from with in cwm backup.
Also u might have use fastboot to
Clean things up.. For doing a restore.
Sent from my MB860 using Tapatalk
Click to expand...
Click to collapse
where do i get a pds.img? and im on a mac, but i can boot into windows, its formatting the sd card right now, after i will try the advanced restore and see how that goes, i hope i didnt screw it up :C
alright so ive read up, and i guess i shouldnt have formatted that partition in the first place.. lesson learned, now i just need to find that file and push it back to my phone, is anyone willing to help me out here?
i got the file but im having trouble flashing it with fstboot
im stuck
Smith-Strattons-MacBook:~ Smitty$ cd ~/ moto-fastboot-osx/moto-fastbootSmith-Strattons-MacBook:~ Smitty$ cd ~/downloads/moto-fastboot-osxSmith-Strattons-MacBook:moto-fastboot-osx Smitty$ moto-fastboot-osx32 flash pdsfix pdsfix.img
-bash: moto-fastboot-osx32: command not found
Smith-Strattons-MacBook:moto-fastboot-osx Smitty$
I use a MacBook Pro and I use fastboot, apkmanager, and the Android SDK all fine.
Move the fastboot file to /Users/Smitty
Then go into the terminal and do
# fastboot wipe system
# fastboot wipe userdata
# fastboot wipe cache
# fastboot wipe webtop
# fastboot wipe preinstall
# fastboot wipe boot
Then load directly into recovery. Wipe Data/System Reset, Wipe Cache and Dalvik Cache, then install whatever ROM you wwant and let me know
Sent from my MB860 using XDA App
There is fastboot for mac & Linux. In 32 bit & 64 bit version.
Also if you was using romracers cwm you find pds.img in cwm backup folder..
Which you can restore from the Advanced Restore Option..
Here link for fastboot all OS options.
http://forum.xda-developers.com/showthread.php?t=1138092
Erase System with Fastboot
Code:
./moto-fastboot-osx64 erase system
./moto-fastboot-osx64 -w
./moto-fastboot-osx64 erase webtop
./moto-fastboot-osx64 erase preinstall
./moto-fastboot-osx64 erase boot
Sent from my MB860 using Tapatalk
jakew02 said:
I use a MacBook Pro and I use fastboot, apkmanager, and the Android SDK all fine.
Move the fastboot file to /Users/Smitty
Then go into the terminal and do
# fastboot wipe system
# fastboot wipe userdata
# fastboot wipe cache
# fastboot wipe webtop
# fastboot wipe preinstall
# fastboot wipe boot
Then load directly into recovery. Wipe Data/System Reset, Wipe Cache and Dalvik Cache, then install whatever ROM you wwant and let me know
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
XRange said:
There is fastboot for mac & Linux. In 32 bit & 64 bit version.
Also if you was using romracers cwm you find pds.img in cwm backup folder..
Which you can restore from the Advanced Restore Option..
Here link for fastboot all OS options.
http://forum.xda-developers.com/showthread.php?t=1138092
Erase System with Fastboot
Code:
./moto-fastboot-osx64 erase system
./moto-fastboot-osx64 -w
./moto-fastboot-osx64 erase webtop
./moto-fastboot-osx64 erase preinstall
./moto-fastboot-osx64 erase boot
Sent from my MB860 using Tapatalk
Click to expand...
Click to collapse
YOU ARE MY HERO!!!!!!!!!
i was trying to type moto-fastboot-osx32 flash pds pdsfix.img
i needed the ****** ./ ****** in the front!! im soo happpy now that my phones working again, you guys are my heros so happy now
So I was following all the steps from this thread: http://forum.xda-developers.com/showthread.php?t=2010312
and I did flash the stock 4.2 img. Now, after unlocking the boot loader, i didnt exit the fastboot mode and stayed in. And continued the steps of section D (all of it). Then I did a fastboot reboot , and Google appeared and below it unlocked lock and then the jellybean logo. It's been almost 20 min and it hasn't passed that screen yet. The rainbow colour X.
What do I do to fix this?? I can go back to fastboot mode, but not sure what to do. I did the fastboot erase cache before rebooting my phone!
Look at the notes of section D.
You have to reboot into recovery, clear cache and factory reset.
Sent from my Nexus 4
El Daddy said:
Look at the notes of section D.
You have to reboot into recovery, clear cache and factory reset.
Sent from my Nexus 4
Click to expand...
Click to collapse
I did this though: 13) Erase the cache partition: fastboot erase cache
14) Reboot: fastboot reboot
Okay, and I will try to do that now.
El Daddy said:
Look at the notes of section D.
You have to reboot into recovery, clear cache and factory reset.
Sent from my Nexus 4
Click to expand...
Click to collapse
I booted myself into recovery via fastboot and it shows android laying down with a red triangle and inside that its " ! "
What now?
Press volume up and power at the same time. It will open the menu.
Sent from my Nexus 4
LimitsX said:
I booted myself into recovery via fastboot and it shows android laying down with a red triangle and inside that its " ! "
What now?
Click to expand...
Click to collapse
Flash it again using fastboot and the official Google image. Recent nexus devices are strange, i never had problems before but softbricked both nex4 and 7 just like that. If you can enter fastboot mode all is well though.
Ps. That tutorial, that was the longest one I've seen in my life. Are you aware that Google images contain clickme.bat files? You literally click it and it's done. Just make sure you have fastboot and adb installed. You can extract them from nexus toolkit as well.
If you do wanna make it by hand, also no problem. Download the image from here:https://developers.google.com/android/nexus/images
And type:
fastboot flash bootloader bootloader-maguro-primekk15.img
fastboot reboot-bootloader
fastboot flash radio radio-maguro-i9250xxkk6.img
fastboot reboot-bootloader
fastboot -w update image-yakju-icl53f.zip
Exchange the correct names of course. And make sure you're in fast boot mode.
El Daddy said:
Press volume up and power at the same time. It will open the menu.
Sent from my Nexus 4
Click to expand...
Click to collapse
Do I do that on that screen? I did, and it went into completely black screen.
molesarecoming said:
Ps. That tutorial, that was the longest one I've seen in my life. Are you aware that Google images contain clickme.bat files? You literally click it and it's done. Just make sure you have fastboot and adb installed. You can extract them from nexus toolkit as well.
If you do wanna make it by hand, also no problem. Download the image from here:https://developers.google.com/android/nexus/images
And type:
fastboot flash bootloader bootloader-maguro-primekk15.img
fastboot reboot-bootloader
fastboot flash radio radio-maguro-i9250xxkk6.img
fastboot reboot-bootloader
fastboot -w update image-yakju-icl53f.zip
Exchange the correct names of course. And make sure you're in fast boot mode.
Click to expand...
Click to collapse
Okay, im gonna go and do that! Thanks!
I was trying to mount the sdcard with nexus 4 but it wont do that with CWM and TWRP.
okay I think I just lost access to everything on my phone :|. I am still on TWRP, is there anything I can do with that?
I accidentally wiped the system files ugh. So I lost bootloader which means my phone is empty and useless and im still active on TWRP.
This is what I did in TWRP:
went to WIPE menu and did the following:
1)Wipe Cache
2)Dalvik Cache
3)Factory Reset
4)Wipe System
5)Wipe External storage ( didn't work - failed)
6)Wipe Internal storage (deleted)
So I have a boot loader still ?? or is that gone too? I am still active in TWRP. What are my options to fix this mess I've gotten myself into =\.
molesarecoming said:
Ps. That tutorial, that was the longest one I've seen in my life. Are you aware that Google images contain clickme.bat files? You literally click it and it's done. Just make sure you have fastboot and adb installed. You can extract them from nexus toolkit as well.
If you do wanna make it by hand, also no problem. Download the image from here:https://developers.google.com/android/nexus/images
And type:
fastboot flash bootloader bootloader-maguro-primekk15.img
fastboot reboot-bootloader
fastboot flash radio radio-maguro-i9250xxkk6.img
fastboot reboot-bootloader
fastboot -w update image-yakju-icl53f.zip
Exchange the correct names of course. And make sure you're in fast boot mode.
Click to expand...
Click to collapse
Yeah the thread is verbose, but its more of a tutorial than a "fix my fone nao!!!" Thread.
Efrant wrote it like that so users understand what they are doing.
Sent from my Nexus 4
so basically I have a dead phone?! =\. Anyone..help or point me in the right direction?
Nevermind. I figured it out and fixed it :victory: !!
El Daddy said:
Yeah the thread is verbose, but its more of a tutorial than a "fix my fone nao!!!" Thread.
Efrant wrote it like that so users understand what they are doing.
Sent from my Nexus 4
Click to expand...
Click to collapse
sure, didnt want to apply its not good or anything. its nice to know that google gives you some sort of emergency option, i've used it countless of times.
LimitsX said:
okay I think I just lost access to everything on my phone :|. I am still on TWRP, is there anything I can do with that?
I accidentally wiped the system files ugh. So I lost bootloader which means my phone is empty and useless and im still active on TWRP.
This is what I did in TWRP:
went to WIPE menu and did the following:
1)Wipe Cache
2)Dalvik Cache
3)Factory Reset
4)Wipe System
5)Wipe External storage ( didn't work - failed)
6)Wipe Internal storage (deleted)
So I have a boot loader still ?? or is that gone too? I am still active in TWRP. What are my options to fix this mess I've gotten myself into =\.
Click to expand...
Click to collapse
for the next time, you better learn what all this stuff is and means which you are flashing. i cant help but thinking its dangerous what you're doing there. if you are in twrp you're free to install any rom, your phone is pretty much safe if you can access it. wiping system wont kill your bootloader, system is a partition, your rom gets installed in there. you can wipe it, most roms even do it by default in the installation script. if your bootloader is gone you'll know.
I followed official Ubuntu Touch instructions for installing/uninstalling Ubuntu.
Installation went without any problems, but after returning back Android, the device is stuck on the "X" animation and cannot proceed.
I tried the following:
Going into recovering mode
Flashing the device to stock version of Android (v4.2)
Flashing the device to previous installed Android (v4.3)
The flash-all.sh command is executed successfully every time, but boot gets stuck at "X" animation no matter what I do.
What can I do to fix this issue? Any ideas?
Thanks!
batric said:
I followed official Ubuntu Touch instructions for installing/uninstalling Ubuntu.
Installation went without any problems, but after returning back Android, the device is stuck on the "X" animation and cannot proceed.
I tried the following:
Going into recovering mode
Flashing the device to stock version of Android (v4.2)
Flashing the device to previous installed Android (v4.3)
The flash-all.sh command is executed successfully every time, but boot gets stuck at "X" animation no matter what I do.
What can I do to fix this issue? Any ideas?
Thanks!
Click to expand...
Click to collapse
try this !
http://forum.xda-developers.com/showthread.php?t=2010312
try to format cache via fastboot.
fastboot erase cache and fastboot format cache and reboot!
if it happens the same try to enter in the stock recovery! attention just stock recovery and press and follow this:
---> Note that some users indicate that they can't get past the X on boot. If this happens to you, reboot into the bootloader and select recovery. Then, when you see the Android with the red exclamation mark, hold power and press volume up to take you to the menu. Wipe cache. If that still doesn't work, boot back into recovery and do a factory reset (this will obviously delete all your data & files in /sdcard...).
and if not boots dont worry try to flash everything again manually dont press the button flash all , just follow the point D
D. Type in the commands into the command prompt
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept. Note: you use the volume keys to change the option and the power button to accept. You cannot use the touch screen.
4) Reboot by typing: fastboot reboot-bootloader
5) Flash the bootloader: fastboot flash bootloader bootloader-mako-makoz10o.img (or whatever the name of the bootloader image that you downloaded).
6) Reboot: fastboot reboot-bootloader
7) Flash the radio: fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.48.img (or whatever the name is of the radio image that you downloaded).
8) Reboot: fastboot reboot-bootloader
9) Flash the system partition: fastboot flash system system.img
10) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked. See note 2 below.
11) Flash the kernel/ramdisk: fastboot flash boot boot.img
12) Flash the recovery partition: fastboot flash recovery recovery.img
13) Erase the cache partition: either a) fastboot erase cache OR b) fastboot format cache <<== the second option seems to work better for most people. Thanks joostburg.
14) Reboot: fastboot reboot
15) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.
it should works!!
Thanks a lot for your answer Alvin - the issue was related to caches. I managed to fix the situation by doing the following:
Going into the bootloader mode and selecting "Recovery"
Holding volume up and power button until a new screen is opened
Do a factory reset
Wipe out partition cache
Do a factory reset again
Everything seems to be working properly now.
Hello gents,
After messing around with the fastboot yesterday i got back to stock Android and realised i have only a 5GB partition....
I formatted the phone and installed again the stock Rom but that didn't work.
Anybody as any idea on how to solve this problem? thanks:good:
Anyone?
Fix for 16GB N4 showing as 8GB
I just experienced the same exact problem, and wasn't able to find a solution until I followed this guide: http://forum.xda-developers.com/showthread.php?t=2033692
Make sure you have the latest occam image https://developers.google.com/android/nexus/images#occam
Use 7-Zip to extract the files from within the .tgz file, and then the .tar file.
Shift + Right Click in the folder to Open a Command Prompt, and run the following commands:
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-mako-makoz20i.img
fastboot reboot-bootloader
fastboot -w update image-occam-jwr66y.zip
jsteg94 said:
I just experienced the same exact problem, and wasn't able to find a solution until I followed this guide: http://forum.xda-developers.com/showthread.php?t=2033692
Make sure you have the latest occam image https://developers.google.com/android/nexus/images#occam
Use 7-Zip to extract the files from within the .tgz file, and then the .tar file.
Shift + Right Click in the folder to Open a Command Prompt, and run the following commands:
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-mako-makoz20i.img
fastboot reboot-bootloader
fastboot -w update image-occam-jwr66y.zip
Click to expand...
Click to collapse
Its a common error after flashing the factory images and all you usually have to do is this:
-Boot into STOCK RECOVERY (If you are running a custom recovery you must flash to stock)
-Clear cache
-Factory reset
which is right at the top of el daddy's thread
kzoodroid said:
Its a common error after flashing the factory images and all you usually have to do is this:
-Boot into STOCK RECOVERY (If you are running a custom recovery you must flash to stock)
-Clear cache
-Factory reset
which is right at the top of el daddy's thread
Click to expand...
Click to collapse
Thanks, kzoodroid. I didn't realize that you had to be in Stock Recovery. Every time I followed the above steps on el daddy's thread, I was using TWRP, which never solved the problem.
Well i´ve been trying and trying... its simple to follow the guide but wen i get to this step fastboot -w update image-occam-jdq39.zip the CMD crashes all the time...
I´ve restarted the computer and everything but it crashes always...
And also i can´t get into stock recovery... The droid with the triangle come up the i press power and then vol up but nothing happends...
Yeah, i think i just found a easy way to go around this problem!
Very simple:
1. After flashing the stock rom use Nexus Root Toolkit to do a OEM Lock
2. Run CMD fastboot and use this command: fastboot oem unlock. You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
3 Restart and that's it! Your back to 13GB again
Thanks to all for your help. I will share this info on El Daddy thread.
SWEagle said:
Yeah, i think i just found a easy way to go around this problem!
Very simple:
1. After flashing the stock rom use Nexus Root Toolkit to do a OEM Lock
2. Run CMD fastboot and use this command: fastboot oem unlock. You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
3 Restart and that's it! Your back to 13GB again
Thanks to all for your help. I will share this info on El Daddy thread.
Click to expand...
Click to collapse
I've had this issue come up more times than I can count, and just the other day I wasn't able to get back to the full storage allotment after several attempts following the steps to erase all the partitions and reflash. I did exactly what you did by flashing the factory images, re-locking the bootloader, then unlocking it again, and my storage was back to normal. I'm not exactly sure what happened, but I discovered this works, just as you did
hp420 said:
I've had this issue come up more times than I can count, and just the other day I wasn't able to get back to the full storage allotment after several attempts following the steps to erase all the partitions and reflash. I did exactly what you did by flashing the factory images, re-locking the bootloader, then unlocking it again, and my storage was back to normal. I'm not exactly sure what happened, but I discovered this works, just as you did
Click to expand...
Click to collapse
Cool! :laugh:
SWEagle said:
Well i´ve been trying and trying... its simple to follow the guide but wen i get to this step fastboot -w update image-occam-jdq39.zip the CMD crashes all the time...
I´ve restarted the computer and everything but it crashes always...
And also i can´t get into stock recovery... The droid with the triangle come up the i press power and then vol up but nothing happends...
Click to expand...
Click to collapse
With my phone I have to press power and volume+ a bunch of times to get it to finally go into stock recovery it never does it on the first few tries and can take a few minutes of playing to hit them perfectly to get it to open.
SWEagle said:
Yeah, i think i just found a easy way to go around this problem!
Very simple:
1. After flashing the stock rom use Nexus Root Toolkit to do a OEM Lock
2. Run CMD fastboot and use this command: fastboot oem unlock. You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
3 Restart and that's it! Your back to 13GB again
Thanks to all for your help. I will share this info on El Daddy thread.
Click to expand...
Click to collapse
Wow, that's actually a lot easier. Thanks for finding a simpler way, SWEagle! I'll try that next time.
jsteg94 said:
Wow, that's actually a lot easier. Thanks for finding a simpler way, SWEagle! I'll try that next time.
Click to expand...
Click to collapse
Instead of using the toolkit you probably could just use fastboot to lock the device too.
fastboot oem lock
kzoodroid said:
Instead of using the toolkit you probably could just use fastboot to lock the device too.
fastboot oem lock
Click to expand...
Click to collapse
I thought about that too. It might work. If it does it's even easier
The screen on my Stock unrooted & locked Nexus 6P is completely non-functional (shattered, not displaying anything, likely not responding to touch) and I'd like to wipe it before disposing of it.
I'm able to blindly navigate to the bootloader but I'm having trouble unlocking for the purposes of
Code:
fastboot erase system -w
.
Process
Boot into bootloader then issue the unlock command:
Code:
fastboot flashing unlock
Because I can't see the screen, I'm assuming pressing up or down will select 'Yes' and power will confirm it.
Either way (up+pwr or down+pwr or just pwr) the phone restarts and I let it sit for a while.
I reboot into the bootloader but the unlocked variable returns no.
I figured the closest analog would be to reflash via
Code:
fastboot -w update "image.zip"
, which will wipe userdata and cache - is that sufficient?
Don't worry....just download and install Nexus toolkit or do it manually by downloading Adb fastboot minimal <10mb size.
First, install driver for flashing firmware.
Reboot to bootloader,
Connect to pc,it will make sound if connected.
Now,put system.img to adb minial folder.
Right click and open cmd in adb minimal folder.
Type adb fastboot flash system system.img
Then,in the middle disconnect from pc.since,it will corrupt your system file.Do this for 2-3 times,that is flashing system.img and disconnecting in the middle to insure that system file have corrupted.
Then,at last flash system.img till end to complete.
Voila...you will have a factory reset phone.
I did this trick before selling my galaxy s5 broken display phone.
When buyer put display in front of me,it was factory reset.
Phylum said:
The screen on my Stock unrooted & locked Nexus 6P is completely non-functional (shattered, not displaying anything, likely not responding to touch) and I'd like to wipe it before disposing of it.
I'm able to blindly navigate to the bootloader but I'm having trouble unlocking for the purposes of
Code:
fastboot erase system -w
.
Process
Boot into bootloader then issue the unlock command:
Code:
fastboot flashing unlock
Because I can't see the screen, I'm assuming pressing up or down will select 'Yes' and power will confirm it.
Either way (up+pwr or down+pwr or just pwr) the phone restarts and I let it sit for a while.
I reboot into the bootloader but the unlocked variable returns no.
I figured the closest analog would be to reflash via
Code:
fastboot -w update "image.zip"
, which will wipe userdata and cache - is that sufficient?
Click to expand...
Click to collapse
Run a drill bit through the upper 1/4 of the screen and through the motherboard then dispose.
hawkswind1 said:
Run a drill bit through the upper 1/4 of the screen and through the motherboard then dispose.
Click to expand...
Click to collapse
Lol sounds good to me!
zameer hassan said:
Don't worry....just download and install Nexus toolkit or do it manually by downloading Adb fastboot minimal <10mb size.
First, install driver for flashing firmware.
Reboot to bootloader,
Connect to pc,it will make sound if connected.
Now,put system.img to adb minial folder.
Right click and open cmd in adb minimal folder.
Type adb fastboot flash system system.img
Then,in the middle disconnect from pc.since,it will corrupt your system file.Do this for 2-3 times,that is flashing system.img and disconnecting in the middle to insure that system file have corrupted.
Then,at last flash system.img till end to complete.
Voila...you will have a factory reset phone.
I did this trick before selling my galaxy s5 broken display phone.
When buyer put display in front of me,it was factory reset.
Click to expand...
Click to collapse
Excellent excellent excellent advice - much appreciated.
You need to have USB debugging enabled btw to unlock your phone and issue those fastboot commands.