[TOOL] [LINUX/MAC] Nexus Tools 2.8 (Featured by XDA)

Status
Not open for further replies.
Search This thread

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
shjM51Q.png


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

Code:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)

and this command to un-install Nexus Tools:

Code:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/uninstall.sh)

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

If you have a problem with Nexus Tools, leave a reply below or as an issue on the GitHub project!

GitHub Project
XDA News Article
 
Last edited:

iNaruX

Senior Member
Jun 29, 2012
195
120
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 ^-^
 
  • Like
Reactions: FazeyLeah

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
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
 
  • Like
Reactions: FazeyLeah

Heart1010

Senior Member
Jan 27, 2009
639
24
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/showthread.php?t=2302780
 

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
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/showthread.php?t=2302780

Thanks, I'll make sure to add this!
 

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
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
 
  • Like
Reactions: Titchener17

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
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)
 

ayr-ton

Member
Dec 12, 2011
44
23
Manaus
ayrtonaraujo.net
shjM51Q.png


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:
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.
 

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
[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.

Debian has updated binaries for Debian on ARM, however it would mean that the script would also have to install some other binaries/libraries that I have yet to test on Chrome OS. I'm working out if the binaries would work if the script added the other libraries.
 

corbindavenport

Senior Member
Feb 26, 2012
133
238
Raleigh, NC
corbin.io
Nexus Tools 2.3

New in Nexus Tools 2.3:
  • Now displays diagnostic information if an error occurs
  • Updated links and command to work with GitHub's new link format
  • Generates directories for udev they do not exist
  • Fixed uninstall for Chrome OS
  • General bug fixes and code cleanup
 
  • Like
Reactions: Heart1010

dang025

Senior Member
Jan 8, 2011
127
7
New in Nexus Tools 2.3:
  • Now displays diagnostic information if an error occurs
  • Updated links and command to work with GitHub's new link format
  • Generates directories for udev they do not exist
  • Fixed uninstall for Chrome OS
  • General bug fixes and code cleanup

any news on the updated binaries for arm chromebook? gave away my PC and now am looking to flash the android L developer preview.

Thanks
 

gustavo_pr

Member
Feb 12, 2011
22
5
Acer c720 Chromebook

Trying to run script on a Acer c720 Chromebook. I'm in Developer Mode. This is the message after entering the script in the OP.

[email protected] / $ bash <(curl https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 100 7211 100 7211 0 0 7892 0 --:--:-- --:--:-- --:--:-- 10199
[INFO] Nexus Tools 2.3
[INFO] Please enter sudo password for install.
Password:
[ OK ] Sudo access granted.
[INFO] Downloading ADB for Chrome OS [Intel CPU]...
[INFO] Downloading Fastboot for Chrome [Intel CPU]...
[INFO] Downloading udev list...
chmod: cannot access ‘/etc/udev/rules.d/51-android.rules’: No such file or directory
[INFO] Making ADB and Fastboot executable...
chmod: cannot access ‘/usr/bin/adb’: No such file or directory
chmod: cannot access ‘/usr/bin/fastboot’: No such file or directory
[ OK ] Done!
[INFO] Type adb or fastboot to run.

Any ideas? Has anyone succesfully install this on an Acer c720. Thanks.
 

mightyfo

Member
Oct 13, 2010
13
1
Brooklyn, NY
Trying to run script on a Acer c720 Chromebook. I'm in Developer Mode. This is the message after entering the script in the OP.

[email protected] / $ bash <(curl https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 100 7211 100 7211 0 0 7892 0 --:--:-- --:--:-- --:--:-- 10199
[INFO] Nexus Tools 2.3
[INFO] Please enter sudo password for install.
Password:
[ OK ] Sudo access granted.
[INFO] Downloading ADB for Chrome OS [Intel CPU]...
[INFO] Downloading Fastboot for Chrome [Intel CPU]...
[INFO] Downloading udev list...
chmod: cannot access ‘/etc/udev/rules.d/51-android.rules’: No such file or directory
[INFO] Making ADB and Fastboot executable...
chmod: cannot access ‘/usr/bin/adb’: No such file or directory
chmod: cannot access ‘/usr/bin/fastboot’: No such file or directory
[ OK ] Done!
[INFO] Type adb or fastboot to run.

Any ideas? Has anyone succesfully install this on an Acer c720. Thanks.


Tried running the scrpt myself on my Dell Chromebook 11. Yes I am a noob, I can grasp some basic commands. I would greatly appreciate your help and support. Nexus-tools is exactly what I want. Considered installing Crouton just for adb, however nexus tools seems to eliminate that.
 

mario24601

Senior Member
Oct 1, 2008
889
80
Seems im kind of late to this thread but are lots of folks using this method? Any risks to doing it this way?
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    shjM51Q.png


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

    Code:
    bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)

    and this command to un-install Nexus Tools:

    Code:
    bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/uninstall.sh)

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

    If you have a problem with Nexus Tools, leave a reply below or as an issue on the GitHub project!

    GitHub Project
    XDA News Article
    4
    New in Nexus Tools 2.8:
    • (Hopefully) fixed all problems on Mac OS X 10.11 El Capitan
    • Changed installation directory to /usr/local/bin/
    • Removed Mac OS X 10.11 warnings
    • Now downloads binaries over HTTPS
    2
    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
    1
    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 ^-^
    1
    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