Go Back   Android Forums > Community Info & Talk > FAQs
FAQs Android, Device, and Forum FAQs
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree11Likes
  • 8 Post By El Presidente
  • 3 Post By EarlyMon

Closed Thread
 
LinkBack Thread Tools
Old November 10th, 2011, 08:20 AM   #1 (permalink)
Captain of the Moon
Thread Author (OP)
 
El Presidente's Avatar
 
Join Date: Jan 2011
Location: Scotland
Posts: 20,460
 
Device(s): Nexus 4, Nexus 7 3G, HTC One X, Wildfire S
Carrier: Orange UK

Thanks: 9,614
Thanked 9,991 Times in 5,721 Posts
Default ADB Guide (updated 2013/05/21)

All credit for this goes to scary alien! Go click the Thanks button on one of his posts to show your appreciation.
(LOL, El Presidente, just saw this (12/25/2011)...you are too kind, sir! Thank you for that nice note...SA)

The adb (Android Debug Bridge) is a useful utility, often used for root-related operations.

To use the adb utility, you'll need to:

1. install the Android SDK (Software Development Kit) and its platform-tools package

2. for Windows PCs, you'll need to have the adb USB device drivers specific to your Android device; for Apples Macs, this is not a stumbling block, but often is for Windows machines; finding and installing the adb USB device drivers for Windows is beyond the scope of this tutorial

Details and options for installing the Android SDK and the adb utility follow below:

Manual / Standard Method





Mini-SDK (contains adb and fastboot utilities for Windows, Mac, and Linux)

Please see the next post in this thread for the Mini-SDK.

Alternative Method

Here's an alternative method for getting adb (and some other parts of the Android SDK) installed. Its got some screenshots and a video to help with the installation):

New pre-packaged ADB installation

----------------------------------------------------------------------

How to update your PATH environment variable to include adb and your Java installation
(courtesy of txwolf1980)




----------------------------------------------------------------------

Hope that helps!

Cheers!

---------------------------
change log:

2011-11-12 scary alien: 1) minor edits, 2) additional instructions, 3) include example images
2011-11-25 scary alien: replace attachments with better imageshack links
2011-12-02 scary alien: include link to alternative, pre-packaged adb/SDK installation
2011-12-04 scary alien: include another, mini-SDK alternative installation option
2011-12-05 scary alien: add Mac and Linux adb and fastboot utilities to sdk-tools.zip
2011-12-07 scary alien: adding information for updating PATH environment variable (courtesy of txwolf1980)
2013-05-21 EarlyMon: removed mini-SDK

also, here are the original attachments/thumbnails:
Attached Images
File Type: jpg sdk-install-01.jpg (51.0 KB, 1291 views)
File Type: jpg sdk-install-02.jpg (63.1 KB, 898 views)
File Type: jpg sdk-install-03.jpg (65.6 KB, 738 views)
File Type: jpg sdk-install-04.jpg (64.3 KB, 675 views)
File Type: jpg sdk-install-05.jpg (30.6 KB, 577 views)
File Type: jpg sdk-install-06.jpg (48.3 KB, 601 views)
File Type: jpg sdk-install-07.jpg (121.1 KB, 695 views)

__________________
Site Rules & Guidelines / Staff List / Ask the Staff
Want to bring naughty posts to our attention? Use:
Be respectful to each other - That's what we're all about.
El Presidente is offline  
Last edited by EarlyMon; May 21st, 2013 at 12:34 PM. Reason: add chmod / sudo reference for linux adb/fastboot references
The Following 102 Users Say Thank You to El Presidente For This Useful Post:
1991Syclone (March 19th, 2013), adamus (June 16th, 2012), adcross (January 31st, 2013), agent86 (June 30th, 2012), agentc13 (December 8th, 2011), alfick3 (June 4th, 2012), AndyOpie150 (December 1st, 2011), arpee (August 11th, 2012), asheehanjr (January 22nd, 2012), atljatl (August 18th, 2012), avinashmeena (February 13th, 2012), awesomeofsauce (July 17th, 2012), aznkp (January 26th, 2012), benyart (November 18th, 2012), Blublud (January 19th, 2013), bszaki (May 17th, 2012), bud_watcher (January 12th, 2013), candyflip (May 30th, 2012), Caveman419 (February 12th, 2013), cheza0021 (August 6th, 2012), ckxng (December 17th, 2011), D-U-R-X (March 14th, 2012), darkmagician08 (April 27th, 2012), darkrealm001 (January 13th, 2013), DeepEmissions (April 22nd, 2013), demo3827 (June 6th, 2012), Din0777 (November 8th, 2012), dlinderaz (December 4th, 2012), downthemachine (June 10th, 2012), EarlyMon (December 29th, 2011), fiatandroid (December 17th, 2011), flasherNoob (January 18th, 2013), GalaxyNexus (January 21st, 2012), garryweil (January 14th, 2012), gatgat23 (March 15th, 2013), gbiggie (February 6th, 2012), Genozzz (July 14th, 2012), gkinsella2 (February 28th, 2012), Granite1 (March 7th, 2012), Hadiir (May 10th, 2012), Harish Harris (December 23rd, 2011), Hashtag (June 2nd, 2012), hvrc (May 22nd, 2012), ivanprskalo (June 21st, 2012), ivo_13 (December 19th, 2012), jaiswal8790 (January 5th, 2012), jbdan (February 8th, 2012), jbreezy (August 1st, 2012), jerofld (March 1st, 2012), Jewelz37 (January 10th, 2013), JKDS87 (March 15th, 2013), jubair07 (May 12th, 2012), kenako (September 18th, 2012), kojoe (July 8th, 2012), kool kat2 (February 17th, 2012), korimo (October 15th, 2012), kristopher5823 (April 29th, 2012), lancemitrex (April 1st, 2013), lazyme (December 29th, 2011), ljpolaris (August 25th, 2012), lunatic59 (February 11th, 2012), Metroid Prime (December 8th, 2012), missykai (July 9th, 2012), mistermistery (June 22nd, 2012), Mobstergunz (December 4th, 2011), monac66 (June 22nd, 2012), msafstrom (April 12th, 2012), nawwaf (April 13th, 2012), ninadchaudhari (March 14th, 2012), ocnbrze (February 7th, 2013), palmtree5 (January 17th, 2013), Pappy62 (January 10th, 2013), PolicyWonk (December 22nd, 2011), Pred-a-tor (March 24th, 2012), RainSaeid (January 28th, 2012), rapskallyun (April 13th, 2012), rayzore (October 24th, 2012), RedheadTarn (January 23rd, 2012), rlh445 (March 28th, 2012), rodriguez27298 (October 1st, 2012), ronaele (December 8th, 2012), roseangel (March 26th, 2012), Rxpert83 (June 19th, 2012), ryancmatchett (January 10th, 2012), SamuraiBigEd (February 7th, 2012), scary alien (November 11th, 2011), SelfElevated2 (August 26th, 2012), shreymehrotra (May 3rd, 2012), Slim1001 (May 4th, 2013), Slubgob (December 18th, 2011), SRISRIANDROID (August 11th, 2012), sthree (December 26th, 2011), Stinky Stinky (September 13th, 2012), sufaz76 (July 1st, 2012), sunnyrt (July 30th, 2012), thornev (November 25th, 2011), Usha Rani (September 4th, 2012), varun.chitre15 (July 17th, 2012), Victoriaaa (August 12th, 2012), vijaya1028 (August 17th, 2012), Waykam (August 2nd, 2012), Zingaro (October 1st, 2012)
Sponsors
Old January 2nd, 2013, 03:08 PM   #2 (permalink)
The PearlyMon
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 35,463
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 34,525
Thanked 40,798 Times in 16,860 Posts
Default

The Mini-SDK

During the course of rooting, you'll likely be instructed to go grab the Android SDK.

You very likely don't need that.

If you go and download the whole Android SDK shebang and get a platform tools folder, you'll have everything to begin development in Android. And a big waste of space on your hard drive if you're not into that.

Use our forums' Mini-SDK and unzip that to C:\sdk-tools under Windows
- or -
... under an sdk-tools folder inside your home directory or Documents Mac or Linux.

Then, wherever you see instructions telling you to go to "platform tools" - just use your sdk-tools folder and you're all set.

Contents:
  • Version.txt
  • Windows:
    • adb.exe
    • AdbWinApi.dll
    • AdbWinUsbApi.dll
    • fastboot.exe
    • md5sums.exe
  • Linux:
    • adb-linux
    • fastboot-linux
  • Mac OS X:
    • adb-mac
    • fastboot-mac
  • sdk.sh
    • installer for Linux and Mac OS X only
    • To use: sh sdk.sh
Good for both 32/64-bit Windows or Linux, 64-bit OS X. (The only 32/64-bit differences are elsewhere in the full SDK - adb and fastboot are the same regardless. Now aren't you glad you're using the Mini-SDK so you don't have to care? )

Note to 64-bit Fedora users or others using distros based on that -
https://ask.fedoraproject.org/question/8969/installing-android-sdk-on-64-bit-fedora/
HOWTO Setup Android Development - FedoraProject


Note that the md5 checksum utility is included in Linux and Mac OS X but added here for Windows.


On Windows, the commands from inside the sdk-tools directory are:

adb rest of command line

fastboot rest of command line

md5sums filename

For Linux or Mac OS X, please run the installer first -
  • unzip sdk-tools.zip, double-clicking in your file explorer or Mac Finder is ok
  • sh sdk.sh

On a Mac from within the sdk-tools folder, to use -

./adb rest of command line

./fastboot rest of command line

md5 filename (see note following Linux)


On Linux from within the sdk-tools folder, to use -

sudo ./adb rest of command line

sudo ./fastboot rest of command line

md5sum filename (see note following)

Note - on Mac/Linux, adb and fastboot are added to your path by the installer. Thereafter, the ./ file location qualifier won't be needed in new terminal windows.

Windows users please refer to post 1 to get the Mini-SDK into your path, substitute "C:\sdk-tools" as the proper path. You don't need to worry Java or the JDK with the Mini-SDK.

Hope this helps!

CHANGELOG:

Updated May 20, 2013 to reflect the February 13, 2013 sdk.



Attached Files
File Type: zip sdk-tools.zip (1.71 MB, 148 views)
dustwun77, OutOfPhase and argedion like this.
EarlyMon is offline  
Last edited by EarlyMon; May 21st, 2013 at 12:53 PM. Reason: Updated toolkit with latest version of ADB
The Following 11 Users Say Thank You to EarlyMon For This Useful Post:
darkrealm001 (January 13th, 2013), doogald (February 7th, 2013), dustwun77 (March 28th, 2013), El Presidente (January 2nd, 2013), funkylogik (May 18th, 2013), nexusdreamer (February 23rd, 2013), OutOfPhase (May 21st, 2013), palmtree5 (February 15th, 2013), pleomax (March 7th, 2013), scary alien (March 10th, 2013), yentnar (March 22nd, 2013)
Closed Thread


Go Back   Android Forums > Community Info & Talk > FAQs

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:12 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.