Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 ADB tutorial, About Tutorial ADB in general android

views
     
SUSkhalpowers
post Nov 16 2010, 12:36 AM, updated 16y ago

Regular
******
Senior Member
1,966 posts

Joined: Dec 2009
Here I / copy / edit a tutor on how to use / connect with the thousands adb..


For starters what is ADB?

ADB is the acronym for "Debugging Android Bridge" or Spanish "Android Debug Bridge."
It is a tool that comes with the android SDK and allows us to access and control an android device from a PC.

*) Step 1: Download the SDK from the page HERE

*) Step 2: Extract the zip where you want, for example, did it in C: \ android

*) Step 3: define the working path android.
Here we have two ways:

A: A travez of CMD.
Open a CMD and type the following:
CODE
set PATH =% PATH% c: \ android \ android-sdk-windows \ tools


B: Do it graphically
In XP
Right-click on My Computer
-Click Properties
-Click on advanced options
-Click Environment Variables
-Check the path variable and click the edit button
-Add the variable to the end of everything
CODE
C: \ android \ android-sdk-windows \ tools


In Vista and W7
"Let's Start.
Right-click EQUIPMENT
-Click Properties
-Click Advanced System Settings
-Click on advanced options
-Click Environment Variables
-Check the path variable and click the edit button
-Add the variable to the end of everything
CODE
C: \ android \ android-sdk-windows \ tools



*) STEP 4: Run the SDK Setup.exe file that is inside the folder android-sdk-windows and a picture should appear like this:
user posted image

Now let's settings and mark the box that says "Force https: / / ... to Be fetch sources using http:// ... " and press the button "Save & Apply"

After that we go where it says "Available Packages" button then need to "Refresh" and we should look something like this:

user posted image

Mark the packages needed and give it to "install selected"
I have the picture above, if NO go to program or use the emulator just down the second and the last option

*) STEP 5: In the phone: menu -> settings -> applications -> Development -> "USB debugging"

*) STEP 6: when you connect your phone, if you ask drivers to use the directory usb_driver

*) Step 7: Done only remains open CMD and run the command "adb" without quotes

Adb Some useful commands:

CODE
adb devices - shows devices / emulators available
adb push remote location - upload files to the phone eg: adb push c: \ photo.jpg / sdcard / photo.jpg
adb pull - otherwise
adb shell - opens a console terminal to the cellular
adb Logcat - shows the log of the cellular, if something unusual happens perhaps say here (stop with Ctrl + C)
app.apk adb install - install app.apk
adb uninstall name - uninstall the app name
adb bugreport - generates a file with abundant information for bug reports



Source: Android developer
ADB WiKi
thumbup.gif thumbup.gif

This post has been edited by khalpowers: Nov 16 2010, 12:48 AM
cleave
post Nov 16 2010, 01:09 AM

Custom Title goes here...
****
Senior Member
673 posts

Joined: Nov 2007


As a rule of thumb, please run 'adb devices' whenever you connect your phone to the USB and planning to run ADB commands. If there's no serial numbers that came up after running 'adb devices', then dont bother running any ADB commands. They wont work, you'd need to sort out your USB driver issues first. wink.gif
SUSkhalpowers
post Nov 16 2010, 01:15 AM

Regular
******
Senior Member
1,966 posts

Joined: Dec 2009
Hehehe...
That the mandatory... .what ever it is adb device 1st...
biggrin.gif

gajahwhite
post Nov 16 2010, 01:25 AM

Android Monster
******
Senior Member
1,852 posts

Joined: Jun 2010
From: Alor Setar, Kedah. Live: Kangar, Perlis.


thumbup.gif
silentser
post Nov 16 2010, 01:38 AM

OH MAH ANDROID
*******
Senior Member
3,177 posts

Joined: Sep 2006
From: subway FTW


wow never seen a tutorial like this..... usualy i just go and use windows cmd
LEVIATHAN
post Nov 16 2010, 07:03 AM

Master Chief Carl M. Brashear
*******
Senior Member
2,281 posts

Joined: Oct 2006
From: Littleroot Town



Why those spaces before and after backslashes? Won't they affect anything?
cwleong59
post Nov 16 2010, 08:10 AM

Casual
***
Junior Member
333 posts

Joined: Jul 2010
Thank you for the informative tutorial, now I can root and do recovery on my device with more confidence. Those cmd codes are really useful. Now I have a better under standing of adb.
llobak
post Nov 16 2010, 09:11 AM

Casual
***
Junior Member
344 posts

Joined: Dec 2009
From: MALACCA


very nice tutorial.. thanks alot!
Benjamin
post Nov 16 2010, 04:25 PM

Casual
***
Junior Member
312 posts

Joined: Apr 2007


Nice one, I think this should be pinned.

 

Change to:
| Lo-Fi Version
0.0218sec    0.70    5 queries    GZIP Disabled
Time is now: 13th December 2025 - 02:07 PM