Your 1 stop G1 spot.
 
HomePortalFAQSearchRegisterLog in
Please come rejoin our new and improved forum @ www.g1addicts.com! Thanks and sorry for the inconvenience.

Share | 
 

 [HOW-TO] ADB for Dummies(How-To Learner's Guide)

Go down 

Did this help you out?
YES
0%
 0% [ 0 ]
NO
0%
 0% [ 0 ]
Total Votes : 0
 

AuthorMessage
bboyWhodini
Moderator
Moderator
avatar

Posts : 386
Join date : 2009-06-28
Age : 34
Location : New Jersey

Character sheet
Name/Nickname: BboyWhodini
Which G1 do you have?:
Do you have root?: yes

PostSubject: [HOW-TO] ADB for Dummies(How-To Learner's Guide)   Sun Jun 28, 2009 11:04 pm

ADB for Dummies - Almost impossible to mess this one up
Make sure that debugging mode is checked in your G1 Settings, if not ADB will not work.


Supported Operating Systems:
* Windows XP (32-bit) or Vista (32- or 64-bit)
* Mac OS X 10.4.8 or later (x86 only)
* Linux (tested on Linux Ubuntu Dapper Drake)


Section 1: Pre-reqs

Android 32/64 bit ADB Windows Driver

Android SDK

Windows

Mac OS X

Linux i386(x86/32-bit)

*Please note that I am using Vista Ultimate x64 SP1*

Section 2: Where does it all go?

*UPDATE*



Linux users wanting to know how to install/run the Android SDK can check the 2 links below for more info. Thanks to xyrcncp for these links.

Downloading
http://developer.android.com/sdk/1.1_r1/index.html

Installing
http://developer.android.com/sdk/1.1_r1/installing.html

And thanks to tubaking182 for giving us some more commands to use for all the linux users.

You can download it and:
Code:
mv ~/Desktop/sdk/tools/adb /usr/bin/adb abd

You should be able to run the adb commands from any directory

Not too hard to cd to the correct directory but i personally don't like to type:
Code:
cd ~/Phone/tools/android-sdk/tools

And again, thanks to mark925 for his input:

"Just to add, if you take adb.exe and adbwinapi.dll and copy or move them to the \windows\system32 directory you can run adb from any dos directory prompt."


Now that you have all the essential files you need to run "adb", let's get started shall we?

First off you want the make note of where you downloaded the ADB Android Driver and the Android SDK. Both of these files are zipped and will need to be extracted before they can be used. Windows vista has ".zip" extracting built-in and does not require an external app.(I have listed some links below)

Use the links below to install a 3rd-party compression/extraction app:

7-zip 4.65 32-bit

7-zip 4.65 64-bit

(If you do not know how to install a windows executable file, please kill yourself now! )

OK, now it's time to move our extracted ADB Drivers and Android SDK to a better location(preferably the root of C:\).

- Right click on the extracted folders(android_adb_usb_driver or android-sdk-windows-1.1_r1) and select copy(or Ctrl+C)

- Now navigate to the root of your primary hard-drive(C:\) and right-click then select paste(or Ctrl+V)

After we copy both of our newly extracted folders to our (C:\) drive we now have to install the USB drivers.

- Connect your G1 to your PC using the provided USB Cable or just a plain ole 6-pin to 4-pin usb cable... (I prefer to use one with a ferite core)

DO NOT MOUNT YOUR G1 TO YOUR PC FROM THE G1 NOTIFICATION WINDOW!

- When the new hardware device notification pops-up on your pc point windows to the driver folder we moved to our C-drive(C:\android_adb_usb_driver) and install the adb driver.

- Now that windows knows what the G1 is let's get started learning how to run adb shall we?

Section 3: Running ADB from Command Prompt

Running Command Prompt:


Windows XP: Select Start or Tap the Windows Key on your Keyboard, select "Run" and type "CMD" then hit "Enter".

Windows Vista: Select Start or Tap the Windows Key on your Keyboard, select the search box on the left and type "cmd" then hit "Enter".


- Also, Mikey1022 has reminded me to add the "ADB" directory path as a system variable in windows...

To do this right-click on "My Computer" and select Properties. Next select the Advanced tab(Advanced Settings in Vista) then select Environment Variables.

Click "New" under System Variables and add the following:

Variable: adb
Value: C:\android-sdk-windows-1.1_r1\tools


Now your are in a command prompt! Everybody DANCE!!!

From the command prompt we must navigate to the adb executable within the android sdk. You can find the adb executable in the tools folder within the android sdk.

Let's point our command prompt to the tools folder now:

Code:
C:\Users\Your User Name> cd C:\android-sdk-windows-1.1_r1\tools <-- Tap Enter

C:\android-sdk-windows-1.1_r1\tools> <run your adb command here>

Ok, now that you know how to initiate an adb command let's try one shall we?

Remember, we are still in the command prompt and in the /tools folder within the android sdk....

Code:
C:\android-sdk-windows-1.1_r1> adb shell <--- Hit Enter
# <--- Now notice that if done correct you will be inside the android shell
# ls <--- Hit enter to show a current directory listing


THAT'S IT LADIES & GENTLEMEN!!!!

This Tutorial is brought to you by: AndroidSamurai aka. VanillaTbone

_________________
If you find my Post/Reply helpful click the little plus sign on the side

_______________________________________________
Black T-Mobile G1/HTC/Dream Rooted to
BLUE PrOdigal_Sun
Increase Max Volume V3 + V6
*Join http://www.thamadhouse.com/say BboyWhodini refered you*
*Join http://www.g1addicts.com/say BboyWhodini refered you*

Back to top Go down
 
[HOW-TO] ADB for Dummies(How-To Learner's Guide)
Back to top 
Page 1 of 1
 Similar topics
-
» Blogging for dummies
» Dope for dummies
» Vinyl for dummies.
» Mixed results from my learner attempts with HO
» Did you Notice....from Phantom Notes Feb/Mar 1990

Permissions in this forum:You cannot reply to topics in this forum
G1 Addicts :: Newbie section :: How To. . .-
Jump to: