Setting up ADB (Android Debug Bridge)

Instructions how to set up the devlopment environment and take part in the JetDroid development

Moderator: JetDroid Dev Team

Setting up ADB (Android Debug Bridge)

Postby Dopi » Tue Jan 25, 2011 1:48 pm

[original post by KB_JetDroid]

If you need the command login to JetDroid on remote computer, then ADB is the best tool to be used.
For installing it in Windows below is a good guide already posted on our forum.
http://www.jetdroid.org/forum/viewtopic.php?f=11&t=106

In Linux the steps were similar and simple till android sdk version 7 and before.
For the latest version r08, the steps are little different I'll try to give you the steps to make it run on Linux.

1. Download the latest android sdk for below link.
http://dl.google.com/android/android-sdk_r08-linux_86.tgz
2. Unzip the tar file at your desired location. (I have put it in the my home directory).
Code: Select all
e.g. /home/<user-name>/android-sdk-linux_x86

3. Switch to the directory "tools" inside <sdk> directory.
Code: Select all
cd /home/<user-name>/android-sdk-linux_x86/tools

4. Run the script "android". It will start the SDK manager.
5. In the SDK-manager install the "Android SDK Platform-tools, revision 1". This will install all the tools including adb.
6. Now open a terminal and switch to root user using "sudo -s".
Code: Select all
sudo -s

7. Export the path of the "adb" tool using following command:
Code: Select all
export PATH=$PATH:/home/<user-name>/android-sdk-linux_x86/platform-tools

8. You can now connect the phone to USB and run "adb shell" command.
Thats it!!! You are ready to use the adb.

Note 1 : Steps 6 and 7 are absolutely necessary to make the device accessible via USB port. Without this you will see "????????" in "adb devices" command and it wont allow you to access the device.
Note 2 : Steps 3, 4 and 5 are not necessary if you have older version of android sdk (r07 or earlier).
Let me know if you face any problems in above steps.

- KB
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Advertisement

Return to Development Howto

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron