Thursday, February 21, 2013

[GUIDE] How to install Ubuntu Touch Developer Preview on your Nexus device


We previously reported that Canonical had released the Ubuntu Touch Developer Preview for certain Nexus devices. They have also provided a somewhat detailed guide on how to install these images on your devices. However it is important to remember that you may face various obstacles during the setup process. In order to make the process easier and help you through any issues you may phase, we have put together the following step by step guide on how to install the Ubuntu Touch Developer Preview on your Nexus devices.'

The Developer Preview is available for the Google Nexus 4, Google Nexus 7, Google Nexus 10 and Google Galaxy Nexus. The Developer Preview is meant to be used for development and evaluation purposes only as it doesn’t provide the features and services offers by a retail device. Please make sure you have one of the following devices before you proceed.
  • Google Nexus 4 (mako)
  • Google Nexus 7 (grouper)
  • Google Nexus 10 (manta)
  • Google Galaxy Nexus (maguro)
[NOTE] Only the GSM version of the Galaxy Nexus is mention. Please do not proceed if you own a Verizon Galaxy Nexus or Sprint Galaxy Nexus.
[DISCLAIMER] Please keep in mind that this is a pre-release build not intended for the general public. Also note that this build should not be considered or treated as an Android custom ROM or launcher. You can cause device malfunction or permanent damage if you don’t understand what you are doing. Please proceed at your own risk
Requirements
  • A computer running Ubuntu. You can either build a dual boot environment or install and run Ubuntu a virtual environment like VirtualBox or VMware Player.
  • Download and install the Android SDK on that computer.
  • Download and install the JRE or JDK. You can do this using the Ubuntu Software Center.
  • Root your Nexus device and install a custom recovery of your choosing.
  • Make sure that USB debugging is enabled on your Nexus device.
Preparing your Computer
On a computer running Ubuntu 12.10 or later, open a terminal window (press Ctrl + F2) and then type the following commands, one at a time:
  • sudo add-apt-repository ppa:phablet-team/tools
  • sudo apt-get update
  • sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
Preparing your Nexus device
Unlock your bootloader if you already haven’t done so. Keep in mind that unlocking the bootloader will erase all the content on your device so be sure to backup any required data before you proceed.
  • Turn off your Nexus device
  • Switch it back up by holding the power button and the volume down button
  • When you have rebooted into the bootloader, connect your device to the computer using the USB cable
  • Open a terminal, and type ‘sudo fastboot oem unlock’ without the quotes. When this is done, your bootloader will be unlocked — and any data on your device will be wiped.
Installing Ubuntu Touch on your Nexus device

Assuming you've got USB debugging enabled and all the tools on your Ubuntu desktop (or notebook) PC, all you have to do is type the following command into a terminal window:
phablet-flash -b
This will download the appropriate version of Ubuntu for your device and deploy it onto your phone or tablet.

[NOTE] This step may take some time. Feel free to catch up on your reading until it is done.
  • Once the downloads have been pushed to your Nexus device it will be booted into Recovery mode
  • Go to your custom Recovery and Select to install Zip files from your SD Card.
  • Manually select and install the following files:
    quantal-preinstalled-boot-armel+xxxx.img (here xxx represents your nexus version (eg: Nexus 4 – mako)
    quanal-preinstalled-phablet-armhf.zip
  • Once the installation is complete, reboot the system.
  • Your Nexus device should now boot into Ubuntu Touch Developer Preview
You can install future nightly builds just by typing “phablet-flash” without the “-b.”


Reverting back to Android on your Nexus device

With the Google I/O coming along, the potential of having Android 5.0 Key Lime Pie on your Nexus devices will surely make you want to revert back to using Android. In order to restore to Android, you will first have to download the latest factory image for your device by heading over to the Google Developer website.
Now connect your device to your computer with a USB cable, extract the disk image, and use the terminal command “chdir directory” where directory is the name of the new directory you created by extracting the file.
From that directory, type the following commands, one at a time:
  • run adb reboot-bootloader
  • run ./flash-all.sh
If you receive a message saying you don’t have permissions, type the word ‘sudo’ before the second command.
Once you’ve re-installed a stock version of Android, you can go ahead and root it, install a custom recovery, and restore from the backup you took before you started this whole process.

 

FAQ
  1. How to enable USB debugging on your device
    Go into the Settings on your Android device, and from the Developer options area, check the box for USB debugging.
    • If you’re running Android 4.1 or later, you’ll need to go to the About Phone (or About Tablet) section and tap the Build number 7 times before Developer options shows up in the settings.
    • If you’re running Android 4.2.2 or later, you’ll need to accept a host key on your device for debugging to work. So on your PC, type “adb kill-server” followed by “adb start-server” (without quotes) and check the OK box on your tablet when it asks you to accept the key.
      -
  2. What to do if you receive ‘adbd cannot run as root in production builds’ message.
    Once the Ubuntu Touch files are pushed to your device you may receive the following error message
    -
  3. What to do if you receive ‘adb error: device offline’ message
    This means that your device is no longer visible to ADB. You will need to perform the following steps
    • Disable and enable USB debugging on your device
    • Now perform the following command on your terminal, one at a time: ‘adb kill-server’, ‘adb start-server’ without the quotes.
      -
  4. How do I flash the Ubuntu files on your Nexus device?
    Flashing the ‘quantal‘ files to your Nexus device is similar to flashing a custom ROM to your handset. If you are unfamiliar with flashing custom ROMs, its best to get acquainted with doing so first. You can find a basic guide on how to root your Android device and install a custom ROM here. If you own a Nexus 4, check out our guide on how to root your Nexus 4 here.
This guide is still a work in process as I attempt to go through various scenarios of installing the Ubuntu Touch Preview on your Nexus devices. Feel free to add your own questions, comments or suggestions in the discussion section below to help our readers further.





















DJRipster Web Developer

Morbi aliquam fringilla nisl. Pellentesque eleifend condimentum tellus, vel vulputate tortor malesuada sit amet. Aliquam vel vestibulum metus. Aenean ut mi aucto.