Results 1 to 19 of 19
Like Tree1Likes
  • 1 Post By liquidxit2
  1. Thread Author  Thread Author    #1  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default How to access your ADB shell.

    Thanks have to go to the following for this information (where I learned the ADB shell):

    and

    So you want to have full access to your Samsung epic 4g but dont want to have to type all those rooting commands on the virtual or physical keyboard? Or maybe you just want to remove some of those pesky .apk files so you can remove certain apps (cough nascar cough cough). Well here is your thread to connect your Epic 4g to your PC.

    Step 1: Download the USB drivers (direct links)

    32bit OS:

    64bit OS:

    Thanks Kieth Newman for the links in rooting thread.

    Install the drivers. This will load not only the USB driver for the phone, but also the ADB and necessary software to run the shell (minus the SDK).

    Step 2: Download the Android SDK (direct link)



    Make a folder on the root of your 'c' drive named android (mine is c:\androidSDK and is the path Ill use in this guide). Extract the contents of the zip file then navigate through the extracted file 1 level until you see the following files: add-ons, platforms, tools, SDK readme, and SDK setup. Copy all those files into the c:\androidsdk folder.

    Step 3: Connecting to and testing the ADB shell connection.

    On your epic 4g navigate to: settings>applications>developement and select usb debugging as this allows for the shell to interface with your phone. Plug in your epic with the usb cable provided with your phone and wait for drivers to load. Then on your computer hit start and type "cmd" (without quotes) in the search box (vista/7) or select run and type cmd (XP) then hit enter. You now have a virtual MS DOS window open type the following (each line is its own command and hit enter after typing each line):

    cd\
    cd androidsdk\tools
    adb devices

    This should come up with your devices serial number and show that the connection is ready to be initiated.

    step 4: Running the ADB shell

    Make sure your phone is in USB debugging mode, connected to your pc and open a virtual dos window again: hit start and type "cmd" (without quotes) in the search box (vista/7) or select run and type cmd (XP) then hit enter. Type the following to enter the ADB shell (each line is its own command and hit enter after typing each line):

    cd\
    cd androidsdk\tools
    adb shell

    You should now see a "$" (no quotes) and that signifies that you have the adb shell up and running. Congratulations! you're now able to issue commands to your phone over your PC. This shell is the interface where one click roots and such are done. Now you are able to root your phone. Good luck!

    **Disclaimer** I do not accept responsibility for rooting and bricking your phone by issuing the wrong commands.
    Last edited by sphinxx; 09-07-2010 at 10:40 AM.
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
    Thanked by 3:
    sonarchist likes this.
  2. #2  
    Andrew Ruffolo's Avatar

    Posts
    3,809 Posts
    Global Posts
    3,815 Global Posts
    ROM
    Stock

    Default

    Process is the same for mac with 2 caveats. Install SDK to your home folder. No need to install drivers. Turn USB debugging on. Open terminal and type:
    Code:
    cd android-sdk-mac_86/tools
    ./adb devices
    ./adb shell
    Caveat 1:
    Unix devices use / instead of \

    Caveat 2:
    adb commands require "./" before them.
    Thanked by 2:
  3. Thread Author  Thread Author    #3  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default

    Quote Originally Posted by Andrew Ruffolo View Post
    Process is the same for mac with 2 caveats. Install SDK to your home folder. No need to install drivers. Turn USB debugging on. Open terminal and type:
    Code:
    cd android-sdk-mac_86/tools
    ./adb devices
    ./adb shell
    Caveat 1:
    Unix devices use / instead of \

    Caveat 2:
    adb commands require "./" before them.
    Thanks for the mac version! I was going to 'steal' my wifes macbook and do a write up on it but this saves me the time! Thanks a million!
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
  4. #4  
    Andrew Ruffolo's Avatar

    Posts
    3,809 Posts
    Global Posts
    3,815 Global Posts
    ROM
    Stock

    Default

    no problem. If you want to know the ADB commands... like
    (./)adb kill-server if you are having trouble connecting and to start over or, (./)adb reboot recovery to reboot into recovery mode. You can just type adb and a list of the commands available will be displayed. One you would need with a rooted phone and remount installed to remove stock Sprint apps would be:
    (./)adb remount
    then:
    (./)adb shell
    cd /system/app/
    ls
    then to remove them:
    rm NAMEOFAPP.apk

    () for mac and linux users.
  5. Thread Author  Thread Author    #5  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default

    For removing apps I always type the following:

    mount -o remount,rw -t rfs /dev/stl5 /system (to remount for access to the system folder beyond reading)
    cd /system/app
    rm application.apk
    mount -o remount,ro -t rfs /dev/stl5 /system (to remount to read only for protection)
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
  6. #6  
    Andrew Ruffolo's Avatar

    Posts
    3,809 Posts
    Global Posts
    3,815 Global Posts
    ROM
    Stock

    Default

    right, thats before having remount installed. Once that is installed, all you need to do is type adb remount before accessing the shell.
  7. #7  
    caliskimmer's Avatar
    Retired Moderator

    Posts
    1,891 Posts
    ROM
    N/A

    Default Re: How to access your ADB shell.

    Sweet! Thanks guys! I could never get the adb shell to run except by luck. Now I have a guide!

    Sent from my awesome Samsung Epic 4g
  8. #8  
    cody's Avatar

    Posts
    37 Posts
    Global Posts
    3,249 Global Posts

    Default

    Quote Originally Posted by Andrew Ruffolo View Post
    right, thats before having remount installed. Once that is installed, all you need to do is type adb remount before accessing the shell.
    sweet, new to android, but not new to hack and moding phones. android is a lot different than other platforms.

    one question....

    you said "before having remount installed". can you explain this remount thing?

    Thanks, Cody
  9. Thread Author  Thread Author    #9  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default

    I think what he means is you can use the "adb remount" command to mount the drive to read/write and read only. I like using the full command as Im already in the shell and really dont think about mounting the system until Im already where I need to be.
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
  10. #10  
    Andrew Ruffolo's Avatar

    Posts
    3,809 Posts
    Global Posts
    3,815 Global Posts
    ROM
    Stock

    Default

    It needs to be installed before that command works.
  11. #11  
    Dolio's Avatar

    Posts
    6 Posts
    Global Posts
    54 Global Posts

    Default

    Thank you much, Ima have to checkout the remount command, that could have been handy the night I rooted...
  12. Thread Author  Thread Author    #12  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default

    When I rooted I tried to access the /system/app directory and couldnt do anything but read and I was wondering what was up since I had SU access. Then I found the remount to read/write command on a moment forums and viola! I had the apks I wanted off in a matter of minutes.
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
  13. #13  

    Default

    I followed all the steps. I was rooted. downloaded a few rooted apps. Charged phone went to bed. Got up and my root was not being recognized. I went back through the steps again and everything is showing correct. It shows me the device and the $ sign in the cmd prompt. When I try and open an app that has root it says your device is not rooted. Any thoughts?
  14. Thread Author  Thread Author    #14  
    liquidxit2's Avatar

    Posts
    739 Posts
    Global Posts
    885 Global Posts
    ROM
    Stock ICS

    Default

    Hmm. If you used the manual SDX root method then it may not have stuck. I would try using the one click method from noobnl as it cleared up alot of issues for me. I would honestly run the uninstaller first then use the one click method after a phone reboot.



    On a side note have you tried typing "su" (no quotes) into a terminal or adb shell?
    My mobile device timeline:
    Misc electronic organizers -> Cassiopeia -> palm pilot III -> m100 -> Palm Pilot VII and Zire 21 -> Treo 90 -> Treo 650 -> PPC6700 -> Treo 755p -> PPC6800 -> Palm Pro -> Palm Pre -> Samsung moment -> Samsung Epic 4g -> HTC EVO Shift 4g-> Galaxy Nexus-> EVO LTE
  15. #15  

    Default

    i keep getting an error message on the cmd prompt when i try to access the adb shell.

    it says its not a recognized internal or external operable program or batch file.

    wat does this mean?!??!?!?!
  16. #16  
    Frogger420's Avatar

    Posts
    42 Posts
    ROM
    Ginger rom/ginger kernel

    Default Re: How to access your ADB shell.

    Ok I forgot how to do this since it was so long since I rooted a phone. I took the easy way and one click rooted this time, but I had all the right stuff already on my pc in c:android \ platform-tools not androidsdk\tools. after getting the correct directory. I just type su after the $ sign and click enter. Then I look at the phone and click allow on superuser to get to the root # symbol I need to install custom recovery.
    LG optimus s
    Xionia clockwork
    Ginger rom with Ginger kernel
  17. #17  
    dtm_stretch's Avatar
    Awesome Possum

    Posts
    726 Posts
    ROM
    AOSP JB/CM9

    Default Re: How to access your ADB shell.

    For anyone interested this is a very nice user interface for ADB, it works on linux, mac, and windows.
  18. #18  

    Default Re: How to access your ADB shell.

    This is a must know for a noob!
  19. #19  

    Default Re: How to access your ADB shell.

    helped me flash a custom recovery when nothing else worked.

Posting Permissions

B