How to access your ADB shell.
Thanks have to go to the following for this information (where I learned the ADB shell):
Android Developers and The unlockr
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: http://download2us.softpedia.com/dl/...Phones_x86.exe
64bit OS: http://download2us.softpedia.com/dl/...alaxyS_x64.zip
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):
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):
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.
- 09-07-2010, 10:47 AM #2
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:
cd android-sdk-mac_86/tools ./adb devices ./adb shell
Unix devices use / instead of \
adb commands require "./" before them.
- 09-07-2010, 11:05 AM #4
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:
then to remove them:
() for mac and linux users.
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)
mount -o remount,ro -t rfs /dev/stl5 /system (to remount to read only for protection)
- 09-07-2010, 11:15 AM #6
- 09-07-2010, 04:51 PM #7
- 09-07-2010, 05:47 PM #8
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.
- 09-07-2010, 08:56 PM #10
- 09-13-2010, 01:10 AM #11
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.
- 09-17-2010, 05:07 PM #13
- 4 Posts
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?
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.
One click root for the Epic 4G! v2.2.4 Now has Busybox & remount scripts! - xda-developers
On a side note have you tried typing "su" (no quotes) into a terminal or adb shell?
- 03-30-2011, 02:43 PM #15
- 10-21-2011, 02:45 PM #16
- 42 Posts
- Ginger rom/ginger kernel
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.
- 10-21-2011, 07:50 PM #17Awesome Possum
- 726 Posts
- AOSP JB/CM9
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.
[APP] QtADB Easy ADB, File Manager, Apps etc - xda-developers
- 01-02-2012, 06:58 AM #18
- 01-02-2012, 06:59 AM #19