Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
tamarian
Old
#1  
Senior Member - OP
Thanks Meter 43
Posts: 277
Join Date: Jan 2010
Default [Q] How to factory reset with broken screen

I'd like to wipe the data from my Galaxy Nexus to send it for repair, but since the screen is blank/broken, I have no feedback to my adb commands, and no way to press on screen prompts. The device is stock, unrooted. Doing adb shell/wipe data gives me no permission, so I think I need to be in bootloader or recovery.

Does any guru here have the steps required to wipe data/factory reset in such a screenless/touchless mode?
 
Tung_meister
Old
#2  
Tung_meister's Avatar
Senior Member
Thanks Meter 35
Posts: 411
Join Date: May 2005
Location: Rotherham
you could root it then wipe it using adb like you said.
One X - InsertCoin 13.0.0
Battered old HD2
 
tamarian
Old
#3  
Senior Member - OP
Thanks Meter 43
Posts: 277
Join Date: Jan 2010
Just in case someone needs this here goes:

You do NOT need to be rooted. Just install ADB and fastboot.

Turn on your device in bootloader mode, hold volume up and volume down and power button simultaniously, until you feel a vibration, then let go the buttons.

Connect USB cable to PC.

Run ADB as root, type: adb root

Check you are in in fastboot mode and connected, type: fastboot-linux devices

This should show a long number

Finally, type: fastboot-linux -w

And just to be sure type: fastboot-linux erase data.img

fastboot-linux reboot
 
qwer23
Old
(Last edited by qwer23; 3rd December 2011 at 02:55 PM.)
#4  
qwer23's Avatar
Senior Member
Thanks Meter 264
Posts: 1,272
Join Date: Jan 2010
Location: Realm of Württemberg
Or you could fastboot flash the stock images that are provided by google. Fastest method, even more since zyo made a one-click batch file for that.

If you want to make sure everything is wiped correctly, you could boot the phone and connect it with a screen via MHL.

Sent from my Galaxy Nexus using XDA App

Nexus 4 - Rooted stock for the moment.
Samsung Galaxy Nexus (GSM) -- Constantly changing...
ASUS Eee Pad Transformer -- Revolver 4 by Gnufabio (daily driver) / AOKP by sportsstar89
SE Xperia X10i -- T.E.A.M ROM by Pvyparts & iridaki
SE Xperia X1i -- X2 port by jerpelea/FXP & XDAndroid


If someone has helped you, hit the thanks button!
 
taogenix
Old
#5  
Junior Member
Thanks Meter 2
Posts: 19
Join Date: Sep 2010
Location: Lübeck
Quote:
Originally Posted by tamarian View Post
Just in case someone needs this here goes:

You do NOT need to be rooted. Just install ADB and fastboot.

Turn on your device in bootloader mode, hold volume up and volume down and power button simultaniously, until you feel a vibration, then let go the buttons.

Connect USB cable to PC.

Run ADB as root, type: adb root

Check you are in in fastboot mode and connected, type: fastboot-linux devices

This should show a long number

Finally, type: fastboot-linux -w

And just to be sure type: fastboot-linux erase data.img

fastboot-linux reboot

ok. so putting the device in bootloader mode is easy. but trying to understand what you mean with "run adb as root" ??

this what i did, i run cmd and see C:\user\name>

typing C:\user\name>c:\adb (which is where my adb folder is located)
only gives me this message:

'c:\adb' is not a recognized as an internal or external command, operable program or batch file.

can some1 give a step to step guide or give a me link that tells me how to do this?
__________________________________________________ __________________________________________________ _____________________
LG Nexus 4 (4.2.1 Stock)
Asus Nexus 7 (rooted)
 
gee2012
Old
(Last edited by gee2012; 3rd May 2012 at 08:45 AM.)
#6  
gee2012's Avatar
Senior Member
Thanks Meter 1300
Posts: 4,249
Join Date: Jul 2010
Location: Heerlen
Quote:
Originally Posted by taogenix View Post
ok. so putting the device in bootloader mode is easy. but trying to understand what you mean with "run adb as root" ??

this what i did, i run cmd and see C:\user\name>

typing C:\user\name>c:\adb (which is where my adb folder is located)
only gives me this message:

'c:\adb' is not a recognized as an internal or external command, operable program or batch file.

can some1 give a step to step guide or give a me link that tells me how to do this?
Type: cd c:\android-sdk\platform-tools to be able to get in the tools.
c:\android-sdk is the location where i have my sdk tools, if yours is different type that instead. Place the sdk directly on the c drive, not in a (sub) folder.
Than type: adb reboot-bootloader and you`re in fastboot mode.

---------- Post added at 09:57 AM ---------- Previous post was at 09:43 AM ----------

I f you`re not familiar with adb/fastboot i advice you to do this:
Install GNex Toolkit from here http://forum.xda-developers.com/show....php?t=1614827, Flash a google image from here https://developers.google.com/androi...es#yakjuimm76i.
Install the toolkit, do option 1 (drivers), put the downloaded and the not to be extracted google image (.tgz file) here C:\Galaxy Nexus ToolKit\put_google_factory_image_here ,put your phone in fastboot mode and do option 8. After that lock the bootloader.
Galaxy S IV GT-I9505
- Unroot/Unbrick, Flash official stock firmware on Galaxy S4 GT-I9500 & I9505 http://forum.xda-developers.com/show....php?t=2265477 by samersh72
- Modem collection http://forum.xda-developers.com/show....php?t=2192025 by djembey
- Root guide http://forum.xda-developers.com/show....php?t=2255190 by djembey
 
taogenix
Old
#7  
Junior Member
Thanks Meter 2
Posts: 19
Join Date: Sep 2010
Location: Lübeck
Quote:
Originally Posted by gee2012 View Post
Type: cd c:\android-sdk\platform-tools to be able to get in the tools.
c:\android-sdk is the location where i have my sdk tools, if yours is different type that instead. Place the sdk directly on the c drive, not in a (sub) folder.
Than type: adb reboot-bootloader and you`re in fastboot mode.

---------- Post added at 09:57 AM ---------- Previous post was at 09:43 AM ----------

I f you`re not familiar with adb/fastboot i advice you to do this:
Install GNex Toolkit from here http://forum.xda-developers.com/show....php?t=1614827, Flash a google image from here https://developers.google.com/androi...es#yakjuimm76i.
Install the toolkit, do option 1 (drivers), put the downloaded and the not to be extracted google image (.tgz file) here C:\Galaxy Nexus ToolKit\put_google_factory_image_here ,put your phone in fastboot mode and do option 8. After that lock the bootloader.
ok, i tried the Gnex toolkit and i believe it worked. i can see the serial ID when its in fastboot mode. and i followed all those steps to restore the img.
yesterday i just bought an original samsung mhl adapter. i tried to connect it with my Gnex, plugged in the power cable and tried to connect the hdmi cable both to my pc monitor and my flatscreen tv. nothing works. i tried connecting all the cable first while the phone was off and then turn on the Gnex. still nothing works. no Signal/no Device is being recognized by either monitor.

Is there a way to get this to work, so i can see my Gnex "screen" on any Monitor?
__________________________________________________ __________________________________________________ _____________________
LG Nexus 4 (4.2.1 Stock)
Asus Nexus 7 (rooted)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more