Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ADB Guide
07-06-2010, 03:40 PM (This post was last modified: 07-06-2010 03:41 PM by william.)
Post: #1
ADB Guide
Hello All!

Here is a simple guide for getting adb to work on your PC. by using adb you can do quite a few things but it is also what is needed to put the phone into recovery mode to begin the root process!

--------------------------------------------------------------------------

Things you need:

Android SDK - Download
Winrar
Windows PC
USB Cable


--------------------------------------------------------------------------

Setting up the Android SDK

Download the file from above
Unzip to your desktop
Take the "android-sdk-windows" folder and move it to the root of your hard drive (C:\)

Right click on My Computer and click properties
Select the Advanced Tab or Advanced System Setting (Vista/Windows 7)
Select Environment Variables...
Press New

For Variable Name type: adb
For Variable Value type: C:\android-sdk-windows\tools

Now, [Get new sdk (1.5r3) to work]

1. Run SDK Setup.exe
2. If it gives you an error go to settings and click on "Force http//....."
3. Select all options and let it download and install

If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7)

--------------------------------------------------------------------------

Preparing your phone for ADB

Go to Settings on your phone
Select Applications
Select Development
Make sure 'USB Debugging' is checked

--------------------------------------------------------------------------

Installing Drivers

Plug in your phone through USB and DO NOT MOUNT IT!!!!!
Your computer should see a new device and try to install Android 1.0 driver (If it doesnt, scroll down to the "Im not getting a notification of Android ADB when i plug in my USB" section)
Let it load
Once it cant find them select "Install drivers from my pc"
The drivers you need are in the Android SDK 1.5r2 folder (C:\android-sdk-windows\usb_driver)
Depending on your OS pick x86 or amd64
You ADB Android Device should now be installed! Good Job

For Android SDK 1.5r3+

1. Run SDK Setup.exe
2. If it gives you an error go to settings and click on "Force http//....."
3. Select all options and let it download and install

If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7)

--------------------------------------------------------------------------

Check if your phone is detected by ADB

Open up Command Prompt (Go to run, type in cmd, press enter)
Type in

Code:
cd C:\android-sdk-windows\tools === Press Enter
adb devices === You should see your device listed
adb shell === you should see # in the next line

Now you are all set to run adb commands

Note: for a list of commands type in 'adb' in cmd

CONGRATS YOU NOW HAVE ADB FULLY RUNNING!

when asked to insert any adb code you need to come back to this spot.
cd C:\android-sdk-windows\tools


I know this looks all confusing and a bit too much but it really isn't. Once the SDK is installed it's really easy to use adb.

Phone: SGS
ROM: Ryyuu's EDB v1.3
Kernel: Dark Core
Modem: XXJVQ
Find all posts by this user
Add Thank You Quote this message in a reply
07-06-2010, 04:04 PM
Post: #2
RE: ADB Guide
thanks man. cant wait to get a Galaxy s and start playing around with it
Find all posts by this user
Quote this message in a reply
07-06-2010, 04:16 PM
Post: #3
RE: ADB Guide
Awesome Thread!!!! I wanted a easy to read how-to on ADB.

William your a champ!

[Image: ausdroid-header.png]

Phones: Sony Ericsson K750i > Nokia N95 > iPhone 2G > iPhone 3GS > iPhone 4 > HTC Desire HD
Visit this user's website Find all posts by this user
Quote this message in a reply
07-06-2010, 05:51 PM
Post: #4
RE: ADB Guide
your welcome guys.
Glad you enjoy it. Is it easy enough to follow?
Sticky perhaps?

I did have a Galaxy S Root guide but the forum thought it was spam and deleted it. I've contacted Buzz to release it for me but haven't heard back yet.

Phone: SGS
ROM: Ryyuu's EDB v1.3
Kernel: Dark Core
Modem: XXJVQ
Find all posts by this user
Quote this message in a reply
07-06-2010, 07:13 PM
Post: #5
RE: ADB Guide
yeah it seems to be easy enough (but seeing i dont have a phone to test it on ill really have to wait till i can try it) and the little explanation at the start about adb is a nice touch.
Find all posts by this user
Quote this message in a reply
07-07-2010, 10:52 AM
Post: #6
RE: ADB Guide
If you're a geek - like me - you'll probably get a kick out of the command `adb logcat`. After you've installed adb, type this command and it will spit out very verbose information regarding what is happening in the background of your Android phone. One of the many useful functions of the android developor bridge.

Current phone: HTC Hero with stock 2.1 firmware
Find all posts by this user
Quote this message in a reply
07-10-2010, 01:35 PM
Post: #7
RE: ADB Guide
(07-07-2010 10:52 AM)spencer Wrote:  If you're a geek - like me - you'll probably get a kick out of the command `adb logcat`. After you've installed adb, type this command and it will spit out very verbose information regarding what is happening in the background of your Android phone. One of the many useful functions of the android developor bridge.

Very useful for reporting any bugs you find to developers in their applications Smile
Find all posts by this user
Quote this message in a reply
07-10-2010, 05:08 PM
Post: #8
RE: ADB Guide
in cmd type ddms

use that to take screenshots Smile

[Image: ausdroid-header.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-17-2010, 10:54 PM
Post: #9
RE: ADB Guide
Nice guide, thanks.

(07-06-2010 03:40 PM)william Wrote:  Things you need:
...
Windows PC

Just want to point out though, Windows is not a requirement at all. The SDK is quite functional on Linux (and by the looks of it was originally built for Linux, and then ported to Windows). It also runs fine on MacOSX.
Find all posts by this user
Quote this message in a reply
12-18-2010, 10:09 AM
Post: #10
RE: ADB Guide
Hi there!

I'm not rpt not a developer, so I haven't got the Java stuff loaded on my PC. So when I try to unzip the downloaded SDK it directs me to get the Java bits, or abort the installation...

Is there a way to avoid this behaviour?

Thanks.

LMH a.k.a carioca
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: