DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Dust off the old adb commands

  1. RS Admin
    pc747's Avatar
    Member #
    18832
    Join Date
    Dec 2009
    Posts
    16,618
    Liked
    1681 times
    Phone
    moto droid
    Premium Member
    #1

    Dust off the old adb commands

    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.



    ^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/)
    II. Setup ADB

    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).
    III. Unlock the Bootloader

    1. Turn off [COLOR=#00c800 !important][COLOR=#00c800 !important]your [COLOR=#00c800 !important]phone[/COLOR][/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][COLOR=#00c800 !important]menu[/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][COLOR=#00c800 !important]cd[/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][COLOR=#00c800 !important]bootloader[/COLOR][/COLOR].
    IV. Flash a Custom Recovery Image

    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.
    V. Root the Phone

    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][COLOR=#00c800 !important]zip [COLOR=#00c800 !important]file[/COLOR][/COLOR][/COLOR] and save it to your computer.
    Superuser for Android 2.0 and Up Flashable Zip
    3. Once in [COLOR=#00c800 !important][COLOR=#00C800 ! important]recovery [COLOR=#00C800 ! important]mode[/COLOR][/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][COLOR=#00c800 !important]sdcard[/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][COLOR=#00c800 !important]reboot[/COLOR][/COLOR].
    VI. Stop the Phone from Uninstalling the Custom Recovery Image

    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][COLOR=#00C800 ! important]custom [COLOR=#00C800 ! important]ROM[/COLOR][/COLOR][/COLOR] head to the next procedure linked below.



    (from: How to: Unlock the Galaxy Nexus Bootloader – Droid Life: A Droid Community Blog)
    How to: Unlock the Galaxy Nexus Bootloader

    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?
    Instructions:

    *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.
    Questions:

    -Can I still receive OTA updates after unlocking the bootloader?

    -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.
  2.  
     
     
     
  3. Master Droid
    alienware777's Avatar
    Member #
    10139
    Join Date
    Nov 2009
    Posts
    616
    Liked
    6 times
    Phone
    Droid
    #2
    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.
  4. Droid Ninja
    Snow02's Avatar
    Member #
    159755
    Join Date
    Jan 2011
    Posts
    1,343
    Liked
    27 times
    Phone
    Droid X
    #3
    Quote Originally Posted by alienware777 View Post
    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.
  5. Master Droid
    alienware777's Avatar
    Member #
    10139
    Join Date
    Nov 2009
    Posts
    616
    Liked
    6 times
    Phone
    Droid
    #4
    Quote Originally Posted by Snow02 View Post
    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?
  6. Droid Ninja
    Snow02's Avatar
    Member #
    159755
    Join Date
    Jan 2011
    Posts
    1,343
    Liked
    27 times
    Phone
    Droid X
    #5
    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.
  7. Droid
    coverton341's Avatar
    Member #
    55579
    Join Date
    Apr 2010
    Posts
    83
    Liked
    2 times
    Phone
    Samsung Galaxy Nexus (Rooted)
    #6
    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.
  8. RS Admin
    pc747's Avatar
    Member #
    18832
    Join Date
    Dec 2009
    Posts
    16,618
    Liked
    1681 times
    Phone
    moto droid
    Premium Member
    #7
    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.
  9. RS Admin
    pc747's Avatar
    Member #
    18832
    Join Date
    Dec 2009
    Posts
    16,618
    Liked
    1681 times
    Phone
    moto droid
    Premium Member
    #8
    Quote Originally Posted by coverton341 View Post
    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.
  10. Droid
    coverton341's Avatar
    Member #
    55579
    Join Date
    Apr 2010
    Posts
    83
    Liked
    2 times
    Phone
    Samsung Galaxy Nexus (Rooted)
    #9
    Quote Originally Posted by pc747 View Post
    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.
  11. Droid Ninja
    Snow02's Avatar
    Member #
    159755
    Join Date
    Jan 2011
    Posts
    1,343
    Liked
    27 times
    Phone
    Droid X
    #10
    Quote Originally Posted by coverton341 View Post
    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 . 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.
Page 1 of 2 12 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. D3 bit the dust.
    By BJPalmer85 in forum Motorola Droid 3
    Replies: 7
    Last Post: 08-01-2011, 10:18 AM
  2. Droid X bi the dust
    By SquireSCA in forum Droid X Tech Support
    Replies: 10
    Last Post: 05-26-2011, 08:09 AM
  3. Dust!
    By jwgraves in forum Motorola Droid Pro
    Replies: 7
    Last Post: 01-13-2011, 03:41 PM
  4. Dust under Screen
    By Raydee35 in forum Android Tech Support
    Replies: 9
    Last Post: 06-14-2010, 04:34 PM
  5. Pocket Dust
    By BavarianBuilt in forum Android General Discussions
    Replies: 10
    Last Post: 01-11-2010, 12:22 PM

Search tags for this page

adb commands

,
adb device offline galaxy nexus
,
adb devices offline galaxy nexus
,
command adb push on galaxy nexus
,
copy adb command
,
droid razr adb offline
,
galaxy nexus adb device offline
,
how to use adb
,
power off device adb command
,
root droid razr with adb command line
Click on a term to search our site for related topics.
Find us on Google+