-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathADB-Install-Mac.sh
executable file
·27 lines (26 loc) · 1.06 KB
/
ADB-Install-Mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# ADB Install.sh
#
# This script installs adb and fastboot into usr/local/bin/
# This may be run from anywhere and is compatible with Linux
# and Mac OS X. Hopefully a Windows batch file will be available
# very soon.
#
# Created by kalaker on 04/20/2012
# Updated by kalaker on 04/03/2014
# http://forum.xda-developers.com/member.php?u=4510103 <-My XDA Profile
# https://github.com/teamblueridge/adb-fastboot-install <-GitHub Page
install_path=/usr/local/bin
echo "This will install ADB and Fastboot on your computer."
echo "Root Permissions required. Please type your password."
sudo cd ~ #Gives Superuser permissions
cd "`dirname "$0"`" #CDs to script directory
echo "Changed directory to `pwd`" #Informs user of path change
echo "Moving ADB"
sudo cp Mac/adb_Mac $install_path/adb #Moves adb
echo "ADB Moved to $install_path/adb"
echo "moving Fastboot"
sudo cp Mac/fastboot_Mac $install_path/fastboot #Moves Fastboot
echo "Fastboot moved to $install_path/fastboot"
echo "You may now run Android Debug Bridge and Fastboot commands"
echo "Have a nice day."