5,604,292 Members 49,100 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL] [LINUX/MAC/CHROME OS] Nexus Tools 2.2 (Featured by XDA)

Tip us?
 
corbin052198
Old
(Last edited by corbin052198; 13th March 2014 at 05:11 PM.)
#1  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Prompt [TOOL] [LINUX/MAC/CHROME OS] Nexus Tools 2.2 (Featured by XDA)



Nexus Tools is an installer for the Android debug/development command-line tools ADB (Android Device Bridge) and Fastboot for Mac OS X, Linux, and Google Chrome/Chromium OS. The script does not need to be downloaded, simply copy and paste this command into the terminal and run it to install Nexus Tools:

Code:
bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/install.sh)
and this command to un-install Nexus Tools:

HTML Code:
bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/uninstall.sh)
These commands will download the selected script and run it. The script will download the files it needs during runtime, so it requires an internet connection. The script works on both Mac OS X and Linux (as long as the curl package is installed).

Support for Google Chrome OS is experimental at this time, as I was only able to test it on a build of Chromium for x86 PCs. I don't have an actual Chromebook to test it on, but Nexus Tools should work correctly on both x86 and ARM Chromebooks.

Nexus Tools requires sudo privileges to install/uninstall the adb and fastboot tools to /usr/bin, so they can be run without typing the full directory. Nexus Tools is licensed under the GPLv3 license.

GitHub Project
XDA News Article
Reddit username: corbindavenport (for /r/Android mods)
The Following 2 Users Say Thank You to corbin052198 For This Useful Post: [ Click to Expand ]
 
iNaruX
Old
#2  
iNaruX's Avatar
Member
Thanks Meter 18
Posts: 45
Join Date: Jun 2012
Location: Frankfurt
Thanks, I was waiting for something like that.

Windows gets all the love and toolkits but our Macs are neglected?
Not anymore, thanks to you ^-^
The Following User Says Thank You to iNaruX For This Useful Post: [ Click to Expand ]
 
corbin052198
Old
#3  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Default 1.1 Update

New in Nexus Tools 1.1:
  • Added uninstaller
  • Installer now checks for previously installed ADB/Fastboot
  • ABD and Fastboot are now variables in the script, so they can be easily changed
  • Minor script fixes and changes
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
The Following User Says Thank You to corbin052198 For This Useful Post: [ Click to Expand ]
 
corbin052198
Old
#4  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Default 1.2 Update

New in Nexus Tools 1.2:
  • Experimental support for Google Chrome OS
  • Installation works on Intel and ARM Chromebooks, as well as Chromium builds
  • Misc fixes for the install/uninstall script

Thanks to XDA users Quinny899 and KMyers for compiling ADB and Fastboot for Chrome OS (ARM + Intel), see the original thread here
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
The Following User Says Thank You to corbin052198 For This Useful Post: [ Click to Expand ]
 
Heart1010
Old
#5  
Heart1010's Avatar
Senior Member
Thanks Meter 13
Posts: 593
Join Date: Jan 2009
Really nice shell script, thanks for that!

A small check if there are already an udev rules file present would be a nice addition. If not adding a new file (/etc/udev/rules.d/51-android.rules) with the following content:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
(speaking for the linux part here)

source: http://forum.xda-developers.com/show....php?t=2302780
 
corbin052198
Old
#6  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Quote:
Originally Posted by Heart1010 View Post
Really nice shell script, thanks for that!

A small check if there are already an udev rules file present would be a nice addition. If not adding a new file (/etc/udev/rules.d/51-android.rules) with the following content:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
(speaking for the linux part here)

source: http://forum.xda-developers.com/show....php?t=2302780
Thanks, I'll make sure to add this!
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
 
corbin052198
Old
#7  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Lightbulb Nexus Tools 2.0

New in Nexus Tools 2.0:
  • Chrome OS and generic Linux both use same binaries
  • Detects processor platform for Linux (ARM or x86)
  • Downloads udev list for ADB
  • Script improvements/fixes

Thanks to XDA user edwinr29 for compiling updated ADB and Fastboot binaries for Chrome OS
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
The Following User Says Thank You to corbin052198 For This Useful Post: [ Click to Expand ]
 
corbin052198
Old
#8  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Lightbulb Nexus Tools 2.1

New in Nexus Tools 2.1:
  • Added warning that ADB binaries for ARM CPUs are out of date (need to compile newer ones compatible with Android 4.2+)
  • Chrome OS/Linux installers now use the same code
  • Raspberry Pi now detected as ARM Linux (only tested with Raspbian distro)
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
 
corbin052198
Old
#9  
corbin052198's Avatar
Member - OP
Thanks Meter 59
Posts: 54
Join Date: Feb 2012
Default Nexus Tools 2.2

New in Nexus Tools 2.2:
  • Fixes problems under Chrome OS
  • Improves error handling
LG Nexus 5 (OmniROM + Franco kernel) | Asus Transformer TF300T (OmniROM) | B&N Nook Simple Touch (Stock 2.1 rooted)
Nexus Tools - automatic ADB and Fastboot installer for Mac OS X and Linux
The Following User Says Thank You to corbin052198 For This Useful Post: [ Click to Expand ]
 
ayr-ton
Old
#10  
Member
Thanks Meter 23
Posts: 44
Join Date: Dec 2011
Location: Manaus

 
DONATE TO ME
Quote:
Originally Posted by corbin052198 View Post


Nexus Tools is an installer for the Android debug/development command-line tools ADB (Android Device Bridge) and Fastboot for Mac OS X, Linux, and Google Chrome/Chromium OS. The script does not need to be downloaded, simply copy and paste this command into the terminal and run it to install Nexus Tools:

Code:
bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/install.sh)
and this command to un-install Nexus Tools:

HTML Code:
bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/uninstall.sh)
These commands will download the selected script and run it. The script will download the files it needs during runtime, so it requires an internet connection. The script works on both Mac OS X and Linux (as long as the curl package is installed).

Support for Google Chrome OS is experimental at this time, as I was only able to test it on a build of Chromium for x86 PCs. I don't have an actual Chromebook to test it on, but Nexus Tools should work correctly on both x86 and ARM Chromebooks.

Nexus Tools requires sudo privileges to install/uninstall the adb and fastboot tools to /usr/bin, so they can be run without typing the full directory. Nexus Tools is licensed under the GPLv3 license.

GitHub Project
XDA News Article
Reddit username: corbindavenport (for /r/Android mods)
[WARN] The ADB binaries for ARM are out of date, and do not work on Android 4.2.2+

About this warning, someone knows if theres some ADB binaries updated for ARM?

Thanks.
Recognized Ubuntu Member (:

Tags
adb, fastboot, nexus
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes