Go Back   Android Forums > Community Info & Talk > FAQs
FAQs Android, Device, and Forum FAQs

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Like Tree29Likes
  • 11 Post By El Presidente
  • 17 Post By EarlyMon
  • 1 Post By palmtree5

Closed Thread
 
LinkBack Thread Tools
Old November 10th, 2011, 08:20 AM   #1 (permalink)
Beware The Milky Pirate!
Thread Author (OP)
 
El Presidente's Avatar
 
Join Date: Jan 2011
Location: Scotland
Posts: 26,623
 
Device(s): Xperia Z1, Nexus 7 3G, HTC One X, SGS3 Mini
Carrier: EE

Thanks: 14,041
Thanked 15,845 Times in 8,508 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, please see post #4 below

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.

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

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, 1769 views)
File Type: jpg sdk-install-02.jpg (63.1 KB, 1208 views)
File Type: jpg sdk-install-03.jpg (65.6 KB, 973 views)
File Type: jpg sdk-install-04.jpg (64.3 KB, 876 views)
File Type: jpg sdk-install-05.jpg (30.6 KB, 765 views)
File Type: jpg sdk-install-06.jpg (48.3 KB, 790 views)
File Type: jpg sdk-install-07.jpg (121.1 KB, 944 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 online now  
Last edited by EarlyMon; November 27th, 2013 at 12:47 AM. Reason: add chmod / sudo reference for linux adb/fastboot references
The Following 130 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), anoniemouse (April 12th, 2014), arpee (August 11th, 2012), asheehanjr (January 22nd, 2012), atljatl (August 18th, 2012), avinashmeena (February 13th, 2012), awesomeofsauce (July 17th, 2012), aznkp (January 26th, 2012), badblue1 (June 24th, 2013), benyart (November 18th, 2012), Blublud (January 19th, 2013), brulez (August 2nd, 2013), bszaki (May 17th, 2012), bud_watcher (January 12th, 2013), candyflip (May 30th, 2012), Caveman419 (February 12th, 2013), cgaWolf (April 14th, 2014), cheza0021 (August 6th, 2012), D-U-R-X (March 14th, 2012), darkrealm001 (January 13th, 2013), DeepEmissions (April 22nd, 2013), demo3827 (June 6th, 2012), dennisormesher (October 7th, 2013), Din0777 (November 8th, 2012), dlinderaz (December 4th, 2012), downthemachine (June 10th, 2012), EarlyMon (December 29th, 2011), el bandido (June 11th, 2013), fiatandroid (December 17th, 2011), flasherNoob (January 18th, 2013), GalaxyNexus (January 21st, 2012), garryweil (January 14th, 2012), gatgat23 (March 15th, 2013), gbiggie (February 6th, 2012), gkinsella2 (February 28th, 2012), gotdotdigital (December 16th, 2013), Granite1 (March 7th, 2012), Hadiir (May 10th, 2012), Harish Harris (December 23rd, 2011), Hashtag (June 2nd, 2012), hvrc (May 22nd, 2012), I luv trolling (July 25th, 2013), ivanprskalo (June 21st, 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), kmpatel (August 1st, 2013), 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), leramak (October 6th, 2013), ljpolaris (August 25th, 2012), lunatic59 (February 11th, 2012), Metroid Prime (December 8th, 2012), mind0rz (October 16th, 2013), 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), OlderGuy (October 9th, 2013), palmtree5 (January 17th, 2013), Pappy62 (January 10th, 2013), paragoneer (February 2nd, 2014), pato500 (October 18th, 2013), PolicyWonk (December 22nd, 2011), Pred-a-tor (March 24th, 2012), Puppetmaster (December 11th, 2013), 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), Sedigh (January 2nd, 2014), SelfElevated2 (August 26th, 2012), sh4dowpriest (December 1st, 2013), shreymehrotra (May 3rd, 2012), skyechan (February 5th, 2014), Slim1001 (May 4th, 2013), Slubgob (December 18th, 2011), soniraj (June 12th, 2013), SRISRIANDROID (August 11th, 2012), sthree (December 26th, 2011), Stinky Stinky (September 13th, 2012), sufaz76 (July 1st, 2012), sunnyrt (July 30th, 2012), teddyearp (August 28th, 2013), thforrtnor (August 24th, 2013), thornev (November 25th, 2011), tujuhtigatujuh (December 27th, 2013), varun.chitre15 (July 17th, 2012), Victoriaaa (August 12th, 2012), vijaya1028 (August 17th, 2012), Waykam (August 2nd, 2012), wellshaman (June 18th, 2013), xenoblade (January 1st, 2014), zzyzzyzzx (June 2nd, 2013)
sponsored links
Old January 2nd, 2013, 03:08 PM   #2 (permalink)
The PearlyMon
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,060
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,706
Thanked 54,844 Times in 21,879 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, 21116 views)
EarlyMon is online now  
Last edited by OutOfPhase; July 21st, 2013 at 05:46 PM. Reason: Updated toolkit with latest version of ADB
The Following 65 Users Say Thank You to EarlyMon For This Useful Post:
93stang (November 9th, 2013), acupofcoffee (March 4th, 2014), amjadraadq (July 19th, 2013), anoniemouse (April 12th, 2014), badblue1 (June 24th, 2013), bleinert (January 8th, 2014), brulez (August 2nd, 2013), CapedCrusader (December 20th, 2013), catonkatonk (July 3rd, 2013), cgaWolf (April 14th, 2014), cvic (August 8th, 2013), dalecooper (August 22nd, 2013), darkrealm001 (January 13th, 2013), dennisormesher (October 7th, 2013), doogald (February 7th, 2013), dustwun77 (March 28th, 2013), el bandido (June 11th, 2013), El Presidente (January 2nd, 2013), fdetti (March 17th, 2014), funkylogik (May 18th, 2013), garuta (January 14th, 2014), gnulab (August 13th, 2013), Granite1 (June 5th, 2013), iowabowtech (November 26th, 2013), itsameluigi007 (March 8th, 2014), JeffinCA (December 10th, 2013), kashifarain (November 6th, 2013), littlewhiteowl (January 6th, 2014), maxmaxwell (November 12th, 2013), md ali Bhuyan (February 3rd, 2014), MibsXX (October 11th, 2013), mlwilcox86 (February 2nd, 2014), mothergooser (August 5th, 2013), mrhop (August 4th, 2013), nexusdreamer (February 23rd, 2013), nlsdaddy (September 26th, 2013), NL_Derek (March 27th, 2014), OlderGuy (October 9th, 2013), OutOfPhase (May 21st, 2013), palmtree5 (February 15th, 2013), paragoneer (February 2nd, 2014), paul (October 26th, 2013), pleomax (March 7th, 2013), Rush (November 14th, 2013), russellvone (November 7th, 2013), sam_0829 (September 21st, 2013), scary alien (March 10th, 2013), scotty85 (January 1st, 2014), sh4dowpriest (December 1st, 2013), shoaibmirzaa (July 30th, 2013), thforrtnor (August 24th, 2013), tomchan1 (December 17th, 2013), trandn (March 27th, 2014), tujuhtigatujuh (December 27th, 2013), Twisted21 (December 30th, 2013), uriel40 (August 12th, 2013), Wallago67 (July 31st, 2013), wellshaman (June 18th, 2013), whj58 (February 2nd, 2014), wyelkins (July 12th, 2013), yentnar (March 22nd, 2013)
Old August 18th, 2013, 04:06 PM   #3 (permalink)
Senior Member
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 2,744
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 1,655
Thanked 1,462 Times in 754 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
Point here is 64-bit Linux (doesn't really matter what distro) needs certain 32-bit libraries in order for adb and fastboot to work.
james12345 likes this.
__________________
Find a post helpful? Hit
See spam or something offensive? Hit
New to the site? Site Rules/Guidelines and Introductions
Not a member yet but want to join? Join here!
Let's cure cancer with our phones
palmtree5 is offline  
Last edited by palmtree5; December 7th, 2013 at 08:13 PM.
The Following 6 Users Say Thank You to palmtree5 For This Useful Post:
HwDzBeAzT (September 24th, 2013), maxmaxwell (November 12th, 2013), pato500 (October 18th, 2013), thforrtnor (August 24th, 2013)
Old November 27th, 2013, 12:45 AM   #4 (permalink)
The PearlyMon
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,060
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,706
Thanked 54,844 Times in 21,879 Posts
Default

Having trouble finding the right drivers?

Maybe this will help -

OEM USB Drivers | Android Developers
EarlyMon is online now  
The Following 5 Users Say Thank You to EarlyMon For This Useful Post:
D-U-R-X (November 27th, 2013), Granite1 (April 5th, 2014), ocnbrze (December 1st, 2013), scary alien (December 1st, 2013), Twisted21 (December 30th, 2013)
Closed Thread


Go Back   Android Forums > Community Info & Talk > FAQs
Thread Tools

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 05:42 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.