What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Dust off the old adb commands

pc747

Regular Member
Rescue Squad
For those of you who have been use to one clicks abut do not want to wait for a one click or just want to get refreshed on adb to unlock your nexus Im posting some snippets that I found on the web.

[video=youtube;-NCSlzM08AU]http://www.youtube.com/watch?v=-NCSlzM08AU[/video]

^the above is the Nexus S (this is just meant to get you up to speed what is going on)

(from: theunlockr.com/2010/12/17/how-to-root-the-samsung-nexus-s/)
[h=3]II. Setup ADB[/h] 1. Head to our How To Setup ADB procedure, once you can see your phone’s serial number after typing adb devices then come back to this procedure and continue.
(MAKE SURE YOU FOLLOW ALL THE STEPS IN THE WRITTEN PROCEDURE AS THERE HAVE BEEN UPDATES ADDED).
[h=3]III. Unlock the Bootloader[/h] 1. Turn off [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]your [/FONT][COLOR=#00c800 !important][FONT=inherit !important]phone[/FONT][/COLOR][/FONT][/COLOR][/COLOR].
2. Turn it on by holding Volume Up and Power until fastboot mode comes up.
3. Plug the phone in via USB cable to your computer while it is in fastboot mode.
4. Open a command prompt on your computer by clicking on the Start [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]menu[/FONT][/FONT][/COLOR][/COLOR] button and typing cmd and hitting enter in the search box.
5. In the command prompt that pops up, type the following with hitting enter at the end of each line:
[COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]cd[/FONT][/FONT][/COLOR][/COLOR] c:\androidsdk\tools\
fastboot oem unlock
6. At this point the phone will ask you to confirm, select yes. You now have an unlocked [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]bootloader[/FONT][/FONT][/COLOR][/COLOR].
[h=3]IV. Flash a Custom Recovery Image[/h] 1. Download the custom recovery image and save it to your computer:
ClockworkMod Recovery for Nexus S
2. Copy the recovery.img file inside the tools folder of the sdk (so it is in the same folder as fastboot.exe)
3. Then in the command prompt that should still be open, type the following with hitting enter at the end of each line:
fastboot flash recovery recovery.img
4. Once it is flashed, leave the phone in plugged in and in fastboot mode.
[h=3]V. Root the Phone[/h] 1. In fastboot mode, select Recovery using the volume buttons and power button and wait for it to boot into recovery mode.
2. Download the Superuser flashable [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]zip [/FONT][COLOR=#00c800 !important][FONT=inherit !important]file[/FONT][/COLOR][/FONT][/COLOR][/COLOR] and save it to your computer.
Superuser for Android 2.0 and Up Flashable Zip
3. Once in [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00C800 ! important][FONT=inherit ! important]recovery [/FONT][COLOR=#00C800 ! important][FONT=inherit ! important]mode[/FONT][/COLOR][/FONT][/COLOR][/COLOR], select Mounts and Storage then select Mount USB Storage so we can transfer files to the sd while it is in recovery mode.
4. Copy the Superuser.zip file to the root of your internal storage (do NOT extract it, do NOT put it in any folders, just on the phone’s storage itself).
5. Select Unmount on the phone.
6. Select Mount System, then select Go Back to get back to the main menu.
7. Then scroll to flash zip from [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]sdcard[/FONT][/FONT][/COLOR][/COLOR] and then choose zip from sd card and select the superuser.zip file and wait for it to finish flashing.
8. Once it is done, select Go Back then Reboot System and wait for the phone to [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00c800 !important][FONT=inherit !important]reboot[/FONT][/FONT][/COLOR][/COLOR].
[h=3]VI. Stop the Phone from Uninstalling the Custom Recovery Image[/h] 1. Once the phone is booted up, plug it in via USB cable and do NOT mount the storage.
2. Open a command prompt on the computer and type the following with hitting enter at the end of each line:
adb shell
cd etc
mount -o rw,remount /dev/block/mtdblock3 /system
mv install-recovery.sh install-recovery-no.sh
3. That will mount the system as writable and rename the file that overwrites the recovery image on reboot so that our custom recovery will stay.
4. Turn off the phone and turn it back on by holding down Volume Up and Power to get into fastboot mode.
5. Plug the phone in via USB cable while in fastboot mode and open the command prompt again and type the following with hitting enter at the end of each line:
cd\
cd c:\androidsdk\tools\
adb reboot bootloader
fastboot flash recovery recovery.img
5. Once it is done, you have just reflashed the recovery image and it will now stick. You are all done! You have an unlocked bootloader, a custom recovery image, and root access! If you want to now load a [COLOR=#00c800 !important][FONT=inherit !important][COLOR=#00C800 ! important][FONT=inherit ! important]custom [/FONT][COLOR=#00C800 ! important][FONT=inherit ! important]ROM[/FONT][/COLOR][/FONT][/COLOR][/COLOR] head to the next procedure linked below.




(from: How to: Unlock the Galaxy Nexus Bootloader – Droid Life: A Droid Community Blog)
[h=2]How to: Unlock the Galaxy Nexus Bootloader[/h] by: Kellex | posted 12.05.11 | Galaxy Nexus, News, Root
We may be just days away from the release of the Galaxy Nexus on Verizon, and I’m sure that many are starting to think about this whole bootloader unlocking process. As a Nexus device, the bootloader does not have to be bypassed or hacked like you have probably had to do to your last couple of phones. It’s a developer device that is made to be open. You can unlock your G-Nex within a couple of minutes as long as you have all of the right tools in place.
To get you prepared, we have put together a set of instructions that should cover the whole process. The big trick here is to get the Android SDK installed and to have it recognize your device through adb. Once you have done that, you should be able to unlock your phone with 2 simple commands and a quick volume press on the device.
And we are telling you about this now, because unlocking the bootloader of your Nexus should be step 1 before you get into customizing it to your like, downloading your favorite apps, etc. Unlocking the bootloader wipes your phone clean, so you will want to take care of this step from the get-go instead of having to start over on your phone down the road. Once your phone is unlocked, you won’t have to worry about unlocking it ever again.
So your homework until the phone arrives, is to check out the first 7 steps that we have below to get your Windows computer all set up for adb through the SDK. If you can get your phone to reboot to the bootloader by typing “adb reboot bootloader” then you should be all set. Your current Android phone should work just fine in getting this all set up.
Ready?
[h=3]Instructions:[/h]
*Windows only.
1. Most important piece to this, is getting the Android SDK set up properly. [Instructions]
This can be one of the most difficult things to get set up, however, you cannot go forward without the SDK and adb set up and working. The instructions we linked should get you setup. Once the SDK is installed, you can move on to step 2.
2. Place a fastboot.exe file in your SDK/Tools (or Platform-Tools) folder (same as your adb.exe file) if it is not there already. [Download]
*You may also need to move AdbWinApi.dll into the same folder as your adb.exe and fastboot.exe if you are running into issues. I believe in the latest SDK, that everything defaults to SDK/Platform-Tools rather than SDK/Tools. Just depends on the version you are using. The big thing, is to get adb.exe, fastboot.exe, and AdbWinApi.dll into the same folder.
3. On your device, turn USB Debugging on.
Settings>Developer options>USB debugging
4. Plug your phone into your computer.
5. On your computer, head into your SDK/Tools folder or wherever your adb.exe and fastboot.exe files are.
6. Hold SHIFT and right click – choose “Open command window here.”
7. Type the following command:
adb reboot bootloader
8. Your phone will turn off and reboot to the bootloader.
9. Type the following command:
fastboot oem unlock
10. Your phone will then ask if you want to unlock.
11. Using the volume keys, highlight “Yes” and then press the power button to select it.
12. Your bootloader will now be unlocked.
13. Your phone will factory reset itself and reboot.
14. You are now operating with an unlocked Galaxy Nexus.
[h=3]Questions:[/h] [h=4]-Can I still receive OTA updates after unlocking the bootloader?[/h] -Answer: Yes. Your phone really does not change at all when you unlock the bootloader. You will still receive updates from Google. Now, if you start putting on custom recoveries and rooting, you may run into issues with receiving OTA updates. The good news is that Google usually releases the system image files for their Nexus phones which makes it a breeze to go back to stock for updates.
_____________________________________​
If you run into issues along the way, be sure to drop them in the comments and we will all do our best to help you get through them. The SDK portion will be the most difficult, but there are countless resources out there to get you fully up and working in that department. Once the SDK is ready to go, this really only takes about 5 minutes.
 
Honestly I wish the new methods and easier methods were never found. It was much better back when rooting was hard and people tended to shy away. Only people who had faith in their skills would try to complete it, and people barely ever bricked their phone.
 
Honestly I wish the new methods and easier methods were never found. It was much better back when rooting was hard and people tended to shy away. Only people who had faith in their skills would try to complete it, and people barely ever bricked their phone.

Ahhh, the old "I'm better because I can follow a tutorial" argument. The only thing one clicks have done is saved time.

And very, very, very few people actually brick their phones (stuck in bootloader, bootloops, etc. are not bricks). And there's certainly no correlation with the availability of one click root scripts. If anything, they prevent people from fouling things up.
 
Ahhh, the old "I'm better because I can follow a tutorial" argument. The only thing one clicks have done is saved time.

And very, very, very few people actually brick their phones (stuck in bootloader, bootloops, etc. are not bricks). And there's certainly no correlation with the availability of one click root scripts. If anything, they prevent people from fouling things up.

When did I ever say I'm better than anyone? I know near nothing on the grand scheme of all of android. The only people "better" than any of us are the devs. And literally everyone is (should?) be able to follow a tutorial. But one click root has done more than save time. We have an entire rescue squad now because people are "bricking" their phones. Theres hundreds of people asking the same things, giving the same steps they did, and RS has to give the same answers every time. From your join date I can tell you weren't here way back before, but if you care enough go look at the archives. People barely ever hurt their phone. Instead of going, "I don't really understand what root or romming means, but who cares, I can just click one button and have it work!", people would know they weren't capable of doing it themselves. Does that mean they shouldn't root/rom? Of course not, you can talk to someone you know and have them explain everything and show you. One Click and other scripts DO create more "bricked" phones then there would be without. Thats not an opinion.

And yes, I used brick in a way I shouldn't. But really, thats one of the things you choose to debunk what I said with? Really...? I used quotes this time, happy? :dry:
 
Because the influx of problem threads has nothing to do with the explosion of the Android user base... More users, more will have problems. The problem with your argument is mistaking correlation for causation.

Sorry for derailing the thread, pc. Thanks for the post. Should come in handy. My upgrade isn't until the 23rd though, unfortunately.
 
Glad to see this didn't turn uncivilised, it's always a touchy subject when discussing One-Clicks versus adb pushing and rooting. I for one think it's more useful to use the command line for the simple facts that it is more fun, if you pay attention to what you are doing you learn what is going on to some extent, in learning what is going on you can correct mistakes if you make them, it breaks down the process into steps that don't require a person to wait and have patience and "let the computer do its thing".

One-Clicks have their place and let more people with less knowledge have access to a rooted device, but that does mean that there is a correlation between looping devices and One-Clicks. If they were never released then less people would root = less looping devices and hence less need for a rescue squad. Statistically speaking it is correlated and significant if looking at it from a pure numbers standpoint. (Sorry, just finished a semester of stats)

Anyway, back on topic, thanks for posting this up, I haven't used the trusty old adb commands in a while since my D1 is at the edge of its life.

Hopefully, the GN will release this week and I can turn the D1 into my alarm clock/USB thumb drive.
 
I am not against one-clicks in fact I first got into it thanks to a simplified form in sholesmod. With that said it would be better in the long run for people to atleast know what the script is doing and know about adb. This will help people understand what is happening and take their time before rushing into anything. Please keep it civil the thread is meant to share knowledge.
 
Glad to see this didn't turn uncivilised, it's always a touchy subject when discussing One-Clicks versus adb pushing and rooting. I for one think it's more useful to use the command line for the simple facts that it is more fun, if you pay attention to what you are doing you learn what is going on to some extent, in learning what is going on you can correct mistakes if you make them, it breaks down the process into steps that don't require a person to wait and have patience and "let the computer do its thing".

One-Clicks have their place and let more people with less knowledge have access to a rooted device, but that does mean that there is a correlation between looping devices and One-Clicks. If they were never released then less people would root = less looping devices and hence less need for a rescue squad. Statistically speaking it is correlated and significant if looking at it from a pure numbers standpoint. (Sorry, just finished a semester of stats)

Anyway, back on topic, thanks for posting this up, I haven't used the trusty old adb commands in a while since my D1 is at the edge of its life.

Hopefully, the GN will release this week and I can turn the D1 into my alarm clock/USB thumb drive.

One-clicks do have their place. There have been times when I updated or when back to stock for warranty issues and when I got my new device the one click was faster. With that said it does not hurt for people to learn adb. It really isnt that hard and by having an idea what is going on you can pick up if something goes wrong with a script. I remember a one click script that kept stalling at 50%. Instead of waiting on the dev to get back to me I was able to open the command line and just finish it.
 
One-clicks do have their place. There have been times when I updated or when back to stock for warranty issues and when I got my new device the one click was faster. With that said it does not hurt for people to learn adb. It really isnt that hard and by having an idea what is going on you can pick up if something goes wrong with a script. I remember a one click script that kept stalling at 50%. Instead of waiting on the dev to get back to me I was able to open the command line and just finish it.

100% agree with you. Knowing what is happening to your device even if you are running a script is a good thing to have knowledge of. I personally won't use one unless I write it myself for the simple fact that I don't like letting the computer "do its thing". That might sound snooty or elitist or whatnot, but it's just the fact that sometimes software loses its mind or another process interrupts a line of code or a call to something and things can go downhill quickly, and I would rather not take that chance with a phone.
 
One-Clicks have their place and let more people with less knowledge have access to a rooted device, but that does mean that there is a correlation between looping devices and One-Clicks. If they were never released then less people would root = less looping devices and hence less need for a rescue squad. Statistically speaking it is correlated and significant if looking at it from a pure numbers standpoint. (Sorry, just finished a semester of stats)

Again, correlation is not tantamount to causation. Plus you make a couple of really hard to quantify assumptions. You just had stats? You should know better.

But let's look at it, from a pure numbers standpoint, if you will :p . Android sales were ~5.5 million units in Q1 2010. Last quarter? 60.5 million. I'd say there's probably a stronger correlation with the increase in overall users.

Round and round we go.
 
I am not against one-clicks in fact I first got into it thanks to a simplified form in sholesmod. With that said it would be better in the long run for people to atleast know what the script is doing and know about adb. This will help people understand what is happening and take their time before rushing into anything. Please keep it civil the thread is meant to share knowledge.

Definitely agreed. And we're all having fun here I think.
 
100% agree with you. Knowing what is happening to your device even if you are running a script is a good thing to have knowledge of. I personally won't use one unless I write it myself for the simple fact that I don't like letting the computer "do its thing". That might sound snooty or elitist or whatnot, but it's just the fact that sometimes software loses its mind or another process interrupts a line of code or a call to something and things can go downhill quickly, and I would rather not take that chance with a phone.

The devs that code scripts do a good job. With that said, scripts do fail and I dont know how many times people have panicked because of it and they dont know what to do.
 
Again, correlation is not tantamount to causation. Plus you make a couple of really hard to quantify assumptions. You just had stats? You should know better.

But let's look at it, from a pure numbers standpoint, if you will :p . Android sales were ~5.5 million units in Q1 2010. Last quarter? 60.5 million. I'd say there's probably a stronger correlation with the increase in overall users.

Round and round we go.

Very true, but you are also working with one glaringly incorrect assumption; One-Clicks did not come out last quarter. In fact they came relatively shortly after the adb method because they were just scripts. Anyway, we're both using a few logical fallacies, so I sit corrected. I still stand by the fact that One-Clicks opened up the ability to root to more people (which I think is a good thing) and therefore led to more looping devices that needed rescue services.

And yes, I am very much having fun. I enjoy engaging in intellectual conversation, something that is oh so woefully absent on these here internets for the most part (not really point at the community of these forums)
 
Very true, but you are also working with one glaringly incorrect assumption; One-Clicks did not come out last quarter. In fact they came relatively shortly after the adb method because they were just scripts. Anyway, we're both using a few logical fallacies, so I sit corrected. I still stand by the fact that One-Clicks opened up the ability to root to more people (which I think is a good thing) and therefore led to more looping devices that needed rescue services.

And yes, I am very much having fun. I enjoy engaging in intellectual conversation, something that is oh so woefully absent on these here internets for the most part (not really point at the community of these forums)

Ok, then let's put it another way. Would you agree that an 800+% uptick in "my phone won't boot" threads over the past year or so sounds accurate?
 
First off I just want to say thank you for posting these instructions. I have a GN reserved at the local VZW store and thanks to this thread I'll have an unlocked bootloader tomorrow evening without much trouble.

I rooted my D2 the "old fashioned way" and I think that helps in a sense to realize the gravity of what you're doing with the phone. After you go through that process it is no longer just a little old phone, it's yours, if that makes any sense. I could have one-clicked it but I wanted to know the process in more depth because that fosters a deeper understanding of what you're doing. Since I also make a hobby of modifying cars, I would relate it to someone building their own racecar vs taking it to a shop, ordering from a menu and getting the end result without actually doing anything other than coming up with the money to pay for what you wind up with. For me, I took great satisfaction from the fact that I was able to root it myself and didn't need someone else to write a script to have what I ended up with. Yes, I followed a tutorial but just like tonight, it's not just following a recipe like you're making a chocolate cake, you still have to figure things out on your own and put it all together to make it work in the end.

I'm rambling but I guess my point is that I like to see that I accomplished something without having someone else do every bit of the work for me. Yea, I didn't write the instructions and I wouldn't have been able to do what I did without your help, but is that really as easy as ordering up an app from the market? Not really.

Anyway, thanks again for the post, it was immensely helpful and hopefully tomorrow I can check back on this thread from my VZW GN :)
 
Back
Top