with a new galaxy nexus and wanting to unlock the bootloader and root my phone and since I’ve got a fresh install of ubuntu 11.10 i needed to do a new install of adb. Here’s how I did it:
installing java (replace aptitude with apt-get if that’s what you use)
sudo aptitude install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo aptitude update
sudo aptitude install sun-java6-jdk sun-java6-plugin
download the sdk here and extract to your home folder. Fire up a terminal and enter
android-sdk-linux/tools/android update sdk --no-ui
which will update the sdk (this might take a while as it downloads everything, remove the –no-ui to be selective).
chmod +x ~/android-sdk-linux/tools/fastboot
chmod +x ~/android-sdk-linux/platform-tools/adb
to make adb commands work anywhere do the following in the terminal (replace vi with your editor of choice):
sudo vi ~/.bashrc
and add the following to the bottom:
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
then we need to edit the usb rules to get the phone recognized in fastboot (we’re creating this file if it doesn’t exist already), in the terminal enter (replace vi with your editor of choice):
sudo vi /etc/udev/rules.d/70-android.rules
and add the following line (replace <username> with your username):
# fastboot protocol on maguro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0666", OWNER="<username>"
then execute the following in the terminal (which will reboot your computer):
sudo chmod a+rx /etc/udev/rules.d/70-android.rules
sudo reboot
then fire up a terminal and run ‘adb devices’ if you return an alphanumeric set on the left with device on the right the job’s a good un! (boot into the bootloader by powering off then use vol up + vol down + power at the same time. Once in the bootloader execute ‘fastboot devices’ in the terminal to test bootloader works)
Now off you go and unlock your bootloader and add root by using this guide:
enjoy!
edit: updated with some obsernations from airtonix
No related posts.