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
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


 

Change to:
| Lo-Fi Version
0.0143sec    0.62    6 queries    GZIP Disabled
Time is now: 15th December 2025 - 10:39 PM