Install the Latest Android sdk
From CyanogenMod Wiki
Contents |
[edit] GNU/Linux
[edit] udev
You need to add the following:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01", MODE="0666", OWNER="[user_name]" #Normal
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02", MODE="0666", OWNER="[user_name]" #Recovery
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0fff", MODE="0666", OWNER="[user_name]" #Fastboot
to the following to two locations: (I haven't tested this, but you probably only need one or the other)
/lib/udev/rules.d/11-android.rules <- Ubuntu 9.10+ ?
/etc/udev/rules.d/11-android.rules <- Ubuntu 9.04 or less ?
- Change [user_name] to your user name.
[edit] Generic Linux Instructions
Use with distributions that do not package the Android SDK.
- Download the latest Android SDK.
- Unzip to /usr/local (you will need to be root / use sudo for this).
- Add the 'tools' subdirectory to your $PATH environment variable. Open ~/.bashrc in an editor and add:
export PATH="/usr/local/android-sdk-linux/tools/:${PATH}"If you have multiple users on your workstation, you may wish to add this path to /etc/profile so all users will have it.
[edit] Gentoo Linux
- emerge dev-util/android-sdk-update-manager
- adb will be at /opt/android-sdk-update-manager/tools/adb.
- You can edit your .bashrc file and add this line to save some typing work:
export PATH="/opt/android-sdk-update-manager/tools/:${PATH}"
[edit] Mac OS X
- Download and install Eclipse 3.5 Classic
- Download and unzip the Android SDK to your desktop, then move the folder into your documents.
- Open Terminal from Applications/Utilities.
- In Terminal Type "ls -a" and see if there is a .bash_profile in your home folder.
- If you do not have a .bash_profile, type:
touch .bash_profile
This will create a blank file named .bash_profile
- If you do not have a .bash_profile, type:
- Now, type:
open -e .bash_profile
This will open it in TextEdit. - Add the following line:
export PATH=${PATH}:[your_sdk_dir]/tools[your_sdk_dir] is the full path to the android sdk folder. Remember to type carefully, removing the [ ] brackets. See example:export PATH=${PATH}:/Users/YOUR-LOGIN-USERNAME/Documents/android-sdk-mac/tools - Follow these instructions: Installing the Android SDK to finish installing the SDK and Updates.
[edit] Windows
Instructions from Android Developers and ADB, Fastboot, and Nandroid for Noob
- Download the latest Android SDK.
- Unzip to C:\AndroidSDK
- Right-click on (My) Computer, and select Properties
- Go to Advanced settings
- XP: Click the Advanced tab
- Vista/7: Click Advanced system settings on the left
- Click the Environment Variables button
- double-click on Path (under System Variables)
- Add the full path to the tools/ directory:
C:\AndroidSDK\tools\
(make sure a semicolon (;) separates this new path from all the others) Latest windows version appears to need: "C:\AndroidSDK\android-sdk-windows\tools", install location may have changed. (sorry I don't know how to format this correctly!) - Run C:\AndroidSDK\SDK Setup.exe
- If it gives you an error go to settings and click on "Force http//....."
- Unselect all options except for the USB driver
- If you can't get the setup to work, download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7)
- On your phone, click Settings > Applications > Development and make sure USB Debugging is on.
- Plug your phone into your computer via USB cable (it needs to be on). It should say installing drivers if using Windows.
- After it installs the drivers, goto the Start menu and type cmd into the search bar (Vista or higher) or click Run then type in cmd (XP) to open the command prompt.
- Type the following into the command prompt window:
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set. If you do NOT see a serial number, then we need to reinstall the drivers.
- Download USBDeview
- While the phone is still plugged in, open USBDeview and sort by manufacturer. Find all the HTC/Android drivers and uninstall them all. (Windows Vista requires program to be run as an administrator, otherwise files won't uninstall.)
- Once all have been uninstalled, unplug the phone from the USB cable and plug it back in.
- The correct drivers should reinstall automatically (check the drivers as they are installing, one should say ADB Device driver).
- To check, go to Devices in your Start menu then click on the “Android Phone”. Click on the Hardware tab, and check the list of drivers for ADB Interface under Type.
- Done! Now you can use ADB to alter your phone from your computer.
