[Q] Going back to stock factory using Mac - Samsung Galaxy Nexus

Hello. I am rooted and have cwm but I would like to go back to factory original. I cant seem to find the step by step guide to folllow for newbs. Does anyone have or know where to get such a guide. I had no problems unlocking bootloader, rooting, etc, but cant quite seem to grasp going back to factory stock. Any help would be appreciated. I have gsm version with google build still on 4.0.1. Thank you.

Which method did you use? If you used fastboot then you should be able to use any of the tutorials on how to flash with fastboot to get back to stock.
look here: http://forum.xda-developers.com/showthread.php?t=1366806

I used fastboot and everything was smooth but i am also pretty new to mac so i maybe getting lost in terminology. I have factory images from google, i have fastboot, i guess i am just looking for a morons guide to restoring for my first attempt. I am trying to get ota and i got it but cwm didnt let it take. Any links etc that would break down process step by step? I've been looking for two days and all info isnt helping me. Thank u for ur quick response.

Unzip the stock images and you should see "boot.img" "recovery.img" etc etc. You can flash these in fastboot using
Fastboot flash boot boot.img
Fastboot flash recovery recovery.img
So on and so forth. Then I believe you
Fastboot OEM lock or w.e the opposite of the unlock code is !
Sent from my Galaxy Nexus using xda premium

Guys pretend i am a moron, probably not far off. Step by step using fastboot and mac. For the first time doing this I would like a walk through so to speak so things can make sense for future newbs and myself. I really appreciate this guys.

What more do you need than the post I linked to? If you already used fastboot to to unlock the device then presumably you already know how to use it. If you actually used one of those one click scripts then I suggest you google for a tutorial on how to use the terminal to get a full understanding of what you are doing and then go back to the original script and view it in a text editor to see what it does for you.

Sorry about that last reply. In and out of coverage. Thank u guys so much. What a great place for android users.

If you look at it from my perspective you have already used fastboot to unlock the bootloader and root the device. You should be comfortable with using fastboot commands already. All you need is the correct commands on flashing it back to stock which is in the link I provided. If you are not comfortable with the commands than I don't see how you could have gotten this far already where you need to get back to stock from a custom ROM.
I'm not trying to be mean or anything but there really is no difference in the fastboot commands for windows or osx. If you are not comfortable using the terminal in osx that is why I suggested you go find a tutorial to familiarize yourself with it before trying the fastboot commands. It will teach you how to navigate the filesystem so that you don't have to be dependant on any tutorial. It will also give you a grasp of running different commands in the terminal to give you better confidence in using it.

Everything worked perfectly. I don't know why I was so freaked out. Days of research and a few minutes to do. As soon as I restored to factory and rebooted, I got the 4.0.2 OTA update. Thank you again and keep up the good work guys.

Related

A few questions for a beginner

Hi. I hope you are all doing well.
I`m a new Galaxy Nexus user coming from a Galaxy S II.
It's the GSM version.
As far as see, there are major differences in rooting and installing CWM between Nexus and Galaxy S II. And it seems like that I need to unlock the bootloader first.
So can someone please tell me what requirements I need to be able to install a custom GSM ROM like the Android Revolution HD.
Thanks. Much appreciated and sorry for my bad English.
You could try searching the forums. There is some pretty good information on here in the stickies. Alternatively, there is a site called theunlockr.com where they have a guide for quickly rooting and installing CWM for the Galaxy Nexus.
Check it out.
Use my guide buddy.
Link in my sig.
You'll be up and running in an hour.
All you'll need are fastboot and perhaps ADB (along with the .imgs and .zips of course). And that's just the manual way. Mskip has created a literal one click/press solution to unlock, flash and root phones, linked here. It can install all necessary drivers as well so there isn't any need to dig around for drivers and files.
<_<
I don't understand the instantaneous pushing of these one-click-do-it-all tools to new users.
What if they need to flash stock in an emergency can't boot and recovery is borked situation?
Or maybe even need to push a .zip to their sd card...but don't have ADB set up...and can't figure it out.
Use.
My.
Guide.
You'll thank yourself later.
Thanks guys. Much appreciated.
Jubakuba said:
<_<
I don't understand the instantaneous pushing of these one-click-do-it-all tools to new users.
What if they need to flash stock in an emergency can't boot and recovery is borked situation?
Or maybe even need to push a .zip to their sd card...but don't have ADB set up...and can't figure it out.
Use.
My.
Guide.
You'll thank yourself later.
Click to expand...
Click to collapse
This. Adb push/pull and fastboot are probably the most useful commands you will ever learn. Get something wrong and you will regret not knowing them someday
Sent from my Galaxy Nexus using XDA

[Q] Why is it so difficult to root the GN?

I just received my GSM Nexus that came with 4.0.4 and hopped on to root. Half the methods warn against using the method with 4.0.4 or have replies reporting 4.0.4 problems. The other half require 3-4 downloads, running command windows, and 30-40 minutes of time and a factory reset. What gives? Every other android phone I've had in the last 3 years have all had ultra simple one-click programs. Plug it in. Click. Done.
What's so different about this nexus that requires this complicated stuff?
BobbyDash said:
I just received my GSM Nexus that came with 4.0.4 and hopped on to root. Half the methods warn against using the method with 4.0.4 or have replies reporting 4.0.4 problems. The other half require 3-4 downloads, running command windows, and 30-40 minutes of time. What gives? Every other android phone I've had in the last 3 years have all had ultra simple one-click programs. Plug it in. Click. Done.
What's so different about this nexus that requires this complicated stuff?
Click to expand...
Click to collapse
There's nothing complicated about it. You only think it's complicated because you are used to one-click programs -- which is the very reason I don't recommend using them: it prevents the user from learning anything, much like using a calculator before learning how to add and subtract.
Obtaining root access on a GNex is extremely simple. It consists of booting or flashing a custom recovery and using it to flash one zip file. That's it.
And the reason that a lot of one-click exploits don't work on the GNex is that it is running the latest version of Android, which has patched the security holes the the older exploits were using.
Sent from my Galaxy Nexus using Tapatalk 2
Already tried the Gnex Toolkit 6.1?
This is supposed to work with 4.04. I didn´t try it yet, i rooted mine GN with 4.02.
But it wasn´t much more than 1 click with the toolkit.
My guide will work.
Ignore all toolkits, and do it the right way.
You'll thank yourself later if you ever need to go back to stock...
Or have a bricked device.
Srsly.
What is OP talking abouit? the GN is one of the EASIEST phones to root.
Its very easy, here:
https://www.youtube.com/watch?v=FK-AyIJm_6s&feature=youtube_gdata_player
Sent from my Galaxy Nexus using xda premium
Troll?
Sent from my Galaxy Nexus using Tapatalk 2
zephiK said:
What is OP talking abouit? the GN is one of the EASIEST phones to root.
Click to expand...
Click to collapse
Not if all your used to is installing an app with one big button saying "click here to root". So many people don't realize that you don't need a one-click app or a toolkit to make rooting easy -- all it takes is a little bit of reading.
efrant said:
Not if all your used to is installing an app with one big button saying "click here to root". So many people don't realize that you don't need a one-click app or a toolkit to make rooting easy -- all it takes is a little bit of reading.
Click to expand...
Click to collapse
Toolkit is available. Doing the manual method is not the only way of doing it.
Not that I'm endorsing using a one click root because it is relatively easy,
get drivers.
fastboot oem unlock
fastboot flash recovery
This phone is hard to root ?
Nono...the Droid Incredible was hard to root way back. We had to rely on a race condition and precise timing to get the exploit to work. THAT was hard.
I'm very confused. Every nexus phone always had one command:
Fastboot OEM unlock
Gnex is the same as all previous nexus. What am I missing here? Just fastboot one command and you're done.
RogerPodacter said:
I'm very confused. Every nexus phone always had one command:
Fastboot OEM unlock
Gnex is the same as all previous nexus. What am I missing here? Just fastboot one command and you're done.
Click to expand...
Click to collapse
The problem here is that the OP has not done much (if any) reading on this.
Yes, I agree with you, being able to unlock your bootloader makes gaining root access easy. But what you posted: "Just fastboot one command and you're done." is not a procedure to gain root (its information like this that makes a lot of n00bs think unlocking their bootloader is the same as getting root access), and it is certainly not a way to explain it. I could be mistaken though...
I think your just use to other phones that either u Odin it or use app that would flash the phone with root on it. I remember first Android I did it was a pain took time to get timing right for first few times I thought I was missing something
Sent from my Galaxy Nexus using Tapatalk 2
Jubakuba said:
My guide will work.
Ignore all toolkits, and do it the right way.
You'll thank yourself later if you ever need to go back to stock...
Or have a bricked device.
Srsly.
Click to expand...
Click to collapse
I used Jubakuba's guide; very straight forward, no surprises. Highly recommended!
If all you are used to is one click methods, then yes, it SEEMS hard. It is actually very simple.
Fastboot OEM unlock
Fastboot reboot bootloader
Fastboot flash recovery recovery.img
Fastboot reboot recovery
Flash the su.zip from recovery
Reboot to a newly rooted phone
Done. And I even added at least one step that you don't HAVE to do.
Sent from my Galaxy Nexus using XDA
thos25 said:
If all you are used to is one click methods, then yes, it SEEMS hard. It is actually very simple.
Fastboot OEM unlock
Fastboot reboot bootloader
Fastboot flash recovery recovery.img
Fastboot reboot recovery
Flash the su.zip from recovery
Reboot to a newly rooted phone
Done. And I even added at least one step that you don't HAVE to do.
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
This is on the right track.
But how about:
1) Where do I enter those commands?
2) Where do I get all the required files? Is recovery.img the same as cwm.img the same as recovery-clockwork-5.5.0.2-maguro.img?
3) How come my PC doesn't recognize my device?
efrant said:
This is on the right track.
But how about:
1) Where do I enter those commands?
2) Where do I get all the required files? Is recovery.img the same as cwm.img the same as recovery-clockwork-5.5.0.2-maguro.img?
3) How come my PC doesn't recognize my device?
Click to expand...
Click to collapse
1.) A command prompt
2.) Download the SDK - it has everything you need (drivers, fastboot, adb). The image is any image you download, put whatever it is named there.
3.) Because you don't have the drivers set up properly. Download the SDK. If it doesn't auto-detect select it manually from the usb drivers folder in the SDK. If it doesn't detect select manually from a list and pick android bootloader interface.
This has to be one of the easiest devices to root, took less then 5 minutes.
using fastboot it is also the easiest one to return to stock. I had to return mine to google due to a defect and it took less then ten minutes to do.
The OP just needs to read rather than looking to be spoon fed.
In each development section there are instructions in a sticky post.
Because everyone who wrote a procedure assumes people are not noobs so they skip steps.
I am a noob with my phone and it took me hours of reading various procedures and piecing them together to get my phone rooted
Not tell if this is trolling or real
Sent from my Galaxy Nexus using Tapatalk 2

Need to unlock phone, but haven't used in year

I have MIUI 2.3 on my old T-Mobile G2 that I need to use temporarily on AT&T. It is rooted (can't remember, but probably HBOOT root), but it must be unlocked. Unfortunately, GFree isn't working. Without doing a factory reset, is there a stock/older kernel available that will work with GFree? I couldn't seem to find one in the General forum. There was a link in the unlocking tutorial to a known GFree compatible kernel, but it was a .img file...and I don't know how to load that. Can anyone point me in the right direction?
images are flashed with fastboot
fastboot flash boot xxx.img
(just change xxx to name of image)
i dont know if simply flashing a stock kernel will work so you may need to downgrade further to root the proper way. if you are need of more help doing this setherio made a great guide to do this otherwise there are always many helpful people in the irc channel. or let me know where your stuck and i can see if i can help anymore
demkantor said:
images are flashed with fastboot
fastboot flash boot xxx.img
(just change xxx to name of image)
i dont know if simply flashing a stock kernel will work so you may need to downgrade further to root the proper way. if you are need of more help doing this setherio made a great guide to do this otherwise there are always many helpful people in the irc channel. or let me know where your stuck and i can see if i can help anymore
Click to expand...
Click to collapse
Thank you my friend. With your help I eventually, eventually got it unlocked. Apparently root/unlock is *difficult* w/ Gingerbread. After that had to add an APN just to get EDGE, too.

Help please. NEW to 2013 N7

Hello all. I am new to the N7. I look forward to trying out some of the awesome development in this forum. Before I begin I need to ask some things. I have spent ALL DAY today reading forums and researching this device b4 I begin. But to be honest, I can not spend days reading every post out there and still be a dad here. So I am trying to stream line this some. I am not a newbie in rooting / roming. Sorry if I have not seen a topic like this b4 posting. There are just so many in this forum now to go through. I will delete this one once helped if nessary. Also THANK YOU VERY MUCH in advance for any help I get here.
1. I have a Verizon note 2, Verizon PERMANENTLY locked the bootloaders on their phones so development has stoped/ slowed drastically. I know the N7 has a locked bootloader that can be unlocked. Is this still true on a stock 5.1.1 lollipop version? or Is there a step to reflash to an older rom I should do first?
2. I see the wugs toolkit out there and a nexus toolkit. Is there any reason to use one over the other? Are either of these working on my STOCK 5.1.1 rom still?
3. Can someone please run down the steps to achieve UNLOCK, ROOT, AND CUSTOM RECOVERY? I seen how wugs does all that in it's program. So if that is the way than a good link to use Please.
Once again. Thanks in advance for your help here. Please also feel free to add in here anything I need to be aware of b4 I begin making my N7 a beast of a tablet. I can not wait to try out some of the awesome roms and mods I have seen so far.
:thumbup::beer::thumbup::beer::thumbup::beer::thumbup::beer:
To root or not to root? That is the question.
1. It's unlockable
2. No need for a toolkit just use fastboot, unless you don't want to know what you're doing. It's in the platform-tools folder of the android sdk. There are many guides on xda about how to use it. Don't forget to install googles usb driver.
3. Very easy. Boot the tablet to the bootloader by holding volume down and power while turned off.
Plug into the computer and open a command prompt in whatever folder you have fastboot and type fastboot oem unlock and hit enter. Follow the steps on the tablet.
For recovery download the recovery .img you want and put it in the fastboot folder. Type fastboot flash recovery whatevername.img
To root just download the su zip from here and flash it through recovery.
You need to be careful you don't have a new Nexus 7 version which doesn't allow the mounting of any of the partitions in a custom recovery. I have one of these new Nexus 7s and no matter what I do I can't get the recovery to work, there's a thread about it.
Sent from my SM-G925F using Tapatalk
Batfink33 said:
You need to be careful you don't have a new Nexus 7 version which doesn't allow the mounting of any of the partitions in a custom recovery. I have one of these new Nexus 7s and no matter what I do I can't get the recovery to work, there's a thread about it.
Sent from my SM-G925F using Tapatalk
Click to expand...
Click to collapse
Ok so how do I locate n answer to this issue. The serial number in the bootloader info? Or something else?
Thanks for the two answers so far!
:thumbup::thumbup::thumbup::thumbup:
To root or not to root? That is the question.
robrooter said:
Ok so how do I locate n answer to this issue. The serial number in the bootloader info? Or something else?
Thanks for the two answers so far!
[emoji106][emoji106][emoji106][emoji106]
To root or not to root? That is the question.
Click to expand...
Click to collapse
Here's the thread on the issue. I bought my N7 yesterday and I'm affected by this. I can't resolve it and am stuck on stock at the moment which is annoying as I bought it to mess about with Roms and kernels. I'm not sure how you identify which tablets are affected but it seems the later manufactured ones are.
http://forum.xda-developers.com/showthread.php?t=3064562

Ota update sideload fail rooted unlocked

First off I want to preempt by saying I have searched for answers to the best of my abilities and haven't found a solution that has worked. However I might have missed one. I will attempt to be as thorough as i can here.
I have a rooted unlocked pixel 2xl, Magisk no twrp. I have attempted to sideload the Ota but it fails before it gets off the ground. I get a verification error and the Ota fails to load.
Dumb question #1) do i need to unroot to sideload the ota with the setup I have.?I thought unrooting was only necessary with partitioned recovery like TWRP.
I have the latest tools, the latest OTA for my model phone, a hope a prayer, but little else.
"E: footer is wrong
update package verification took 0.0 s (results 1)
E: signature verification failed
E: error 21
installation aborted.
"
What am I missing? Any help would be appreciated.
You can always just flash-all the 8.1 image (open up flash-all.bat and take out the -w at the bottom and leave 1 space) then fastboot into twrp temporarily then flash magisk then reboot.
Would the end result in any data loss as in a clean install?
filthysanches said:
Would the end result in any data loss as in a clean install?
Click to expand...
Click to collapse
Nope, that's why you remove the -w (=wipe)
So that's what that stands for. And that's why you are a senior member.
filthysanches said:
So that's what that stands for. And that's why you are a senior member.
Click to expand...
Click to collapse
I'm a senior member because I'm old! And, I've Jimmy Jacked enough phones in my day to gain a little bit of knowledge :laugh:
Well as a semi old obstinate consumer, I appreciate your help.
filthysanches said:
Well as a semi old obstinate consumer, I appreciate your help.
Click to expand...
Click to collapse
Hahahahahaha...welcome my friend :good:
Badger50 said:
Hahahahahaha...welcome my friend :good:
Click to expand...
Click to collapse
Well im back at it. couldn't get the OTA to sideload. I'm ready to go nuclear and restore my phone to factory in order to download 8.1 the pedestrian way and start from scratch. I already reset the phone via the normal way but root and unlock remains. documentation for unrooting is patchy and assumes I know more than I do. Is there any way you can help a brotha out with some instructions on how to unroot so i can install the OTA?
any help would be greatly appreciated.
filthysanches said:
Well im back at it. couldn't get the OTA to sideload. I'm ready to go nuclear and restore my phone to factory in order to download 8.1 the pedestrian way and start from scratch. I already reset the phone via the normal way but root and unlock remains. documentation for unrooting is patchy and assumes I know more than I do. Is there any way you can help a brotha out with some instructions on how to unroot so i can install the OTA?
any help would be greatly appreciated.
Click to expand...
Click to collapse
My post HERE might be able clear some things up for you and/or help you out -- specifically the bottom section (even if you don't use TWRP, it may still apply in getting OTA to work for you "TWRPless". If anything, I was able to do it (OTA via sideload), so my steps may make it happen for you...
filthysanches said:
Well im back at it. couldn't get the OTA to sideload. I'm ready to go nuclear and restore my phone to factory in order to download 8.1 the pedestrian way and start from scratch. I already reset the phone via the normal way but root and unlock remains. documentation for unrooting is patchy and assumes I know more than I do. Is there any way you can help a brotha out with some instructions on how to unroot so i can install the OTA?
any help would be greatly appreciated.
Click to expand...
Click to collapse
The post right after yours by simplepioni177 has a link to a very good guide for OTA's. As far as removing root, open the magisk app, hit uninstall, and select the option on the right. It will uninstall all root, then reboot, and done. Personally, I would ditch the whole OTA thing, learn fastboot, then just flash factory images going forward. But that's just me. BTW...stop trying to turn your phone into a desk top ornament! ??
Badger50 said:
The post right after yours by simplepioni177 has a link to a very good guide for OTA's. As far as removing root, open the magisk app, hit uninstall, and select the option on the right. It will uninstall all root, then reboot, and done. Personally, I would ditch the whole OTA thing, learn fastboot, then just flash factory images going forward. But that's just me. BTW...stop trying to turn your phone into a desk top ornament!
Click to expand...
Click to collapse
Actually i ditched sideload specifically cause it kept failing. as for the unrooting, I have seen all related posts including the one you mentioned. Magisk failed to uninstall. Everything i have seen looks simple including all fastboot methods but for whatever reason I have had no luck with all methods of updating. It was only after this nonsense that i decided to start from scratch to do it the way lord google demands, but even that fails. I got my phone unrooted by rebooting into recovery mode and flashing the factory 8.0.img via adb. And i did attempt to do the 8.1.img but that obviously failed .
So right now i have a stockish p2xl running 8.0 with an unlocked bootloader and twrp installed, but cant get magisk back on although i wont put much effort in rooting again until i have the appropriate update.
Im sure you know how frustrating it is to follow along the easiest tutorials ever and getting errors they dont address cause no one ever gets them. I suspect my phone is possessed.
And if i brick this 1k phone it will be a drywall ornament not a desk ornament.
Im going to watch winchester, drink a huge beer, eat some good italian food and try again later. I will be back with screenshots and error messages /codes
filthysanches said:
Actually i ditched sideload specifically cause it kept failing. as for the unrooting, I have seen all related posts including the one you mentioned. Magisk failed to uninstall. Everything i have seen looks simple including all fastboot methods but for whatever reason I have had no luck with all methods of updating. It was only after this nonsense that i decided to start from scratch to do it the way lord google demands, but even that fails. I got my phone unrooted by rebooting into recovery mode and flashing the factory 8.0.img via adb. And i did attempt to do the 8.1.img but that obviously failed .
So right now i have a stockish p2xl running 8.0 with an unlocked bootloader and twrp installed, but cant get magisk back on although i wont put much effort in rooting again until i have the appropriate update.
Im sure you know how frustrating it is to follow along the easiest tutorials ever and getting errors they dont address cause no one ever gets them. I suspect my phone is possessed.
And if i brick this 1k phone it will be a drywall ornament not a desk ornament.
Im going to watch winchester, drink a huge beer, eat some good italian food and try again later. I will be back with screenshots and error messages /codes
Click to expand...
Click to collapse
The end of your post cracked me up....NICE! Question, I know you said you have an unlocked bootloader, but did you execute both unlocking commands.
fastboot flashing unlock
And
fastboot flashing unlock_critical
Just curious is all? ?
equlizer said:
You can always just flash-all the 8.1 image (open up flash-all.bat and take out the -w at the bottom and leave 1 space) then fastboot into twrp temporarily then flash magisk then reboot.
Click to expand...
Click to collapse
I'm quoting this as it's exactly my opinion also. Why even mess with flashing the OTA (has some official history of failing even in stock) when the full image with the-w removed flash-all.bat is almost fool proof.
Alright for any other sad sack scouring the span of human knowledge who happen to land here with a similar issue which consists of equal parts ignorance and reckless abandon...
Make sure you are unlocked with:
Code:
fastboot flashing unlock
Code:
fastboot flashing unlock_critical
If for some godamn reason all you get is a list of availible commands vs the result you want, try the following:
Code:
./fastboot flashing unlock
Code:
./fastboot flashing unlock_critical
The "./" got me there. Dont know why, I'm sure someone smarter than I can explain that nonesene. Now I know in other languages, this just allows you to not have to be so specific with the path you are looking for; however, since no files are being referenced I dont think that is it. It is by pure chance and a tut somewhere that i stumbled on that.
After trying to sideload, pushing, flashing, and smashing:
boot into bootload mode
download the FULL official 8.1 or i suspect 8. anything going foward and extract into your platform tools folder where your adb and fastboot live. Make sure you copy the files contained within and paste them along side the adb and fastboot files.
if you don't want to wipe your info, open the flash-all.bat file in the program notepad++ and remove the reference "-w" which is somewheres towards the bottom of the file--save.
double click the "flash-all.bat" file.
Thats it basically. what a **** show. the amount of brain power i used on something this simple makes me want to choke kittens. But I have to tie my bit of failure up here with a bow just in case someone else stumbles into the same folly. Please check my work and let me know if i missed anything. viva la 8.1!

Categories

Resources