Wednesday, 5 September 2012

adb

Android Debug Bridge. A tool used to connect and sends commands to your Android phone from a desktop or laptop computer.

You can find adb tool inside SDK folder using this path "~/your sdk path/android-sdk-linux/platform-tools/adb".


How to run adb ?

To run adb we have verious options which are listed below:


1. Change your working directory to  "~/your sdk path/android-sdk-linux/platform-tools/" and run it as below

$ cd ~/your sdk path/android-sdk-linux/platform-tools/
$ ./adb <adb_commands>


2. Set android platform tools path in your system environment variable and run adb and other android tool directly from your working directory.

To set PATH environment variable use following procedures.

$ sudo gedit ~/.bashrc

Then add following line end of the file then save and restart the terminal.
will get your given path value has changed for your open terminal.

export PATH=$PATH:"your_sdk_path/android-sdk-linux/platform-tools/"
  
Open terminal and use adb as follows

$ adb <adb_command>

OR
------

$ sudo gedit /etc/environment


Then add following line end of the file then save and restart your computer you will get your given path value permanently change for your system .

export PATH=$PATH:"your_sdk_path/android-sdk-linux/platform-tools/"


Open terminal and use adb as follows

$ adb <adb_command>



Thanks ....





No comments:

Post a Comment