The first phones with Ubuntu Phone they will finally be a reality todayBut precisely because many of us have just arrived we will not have a device that runs the serial operating system like the ones presented today. However, what we can do as long as we have a compatible Android terminal is install a ROM of system in them.
With this guide that we are going to offer you today you can to Install Ubuntu Phone on Your Android |But before you do, we recommend several things: Check the list of officially supported devices, The of community-supported devices, Follow the steps we are going to show you, have backups of everything and be very clear about what you are doing.
First of all it should be clear that the guide we will give you is specifically designed to install the ROM in devices that have official support. If you do not have one of these devices, the corresponding guide for it should appear in the list of terminals that are supported by the community.
Another thing you need to know is that installing Ubuntu Phone will involve the data loss from your terminal, But for this later we will give you the tools to back up everything you have on the terminal using ADB commands.
Prepare the desktop
First of all we need to make sure that we have the Universe repository enabled, as the package we will need to install is contained in it. Once we have done that, we will have to add the Ubuntu SDK PPA. We open a terminal and add the following:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
Then we update the repository list:
sudo apt-get update
The next thing we need to do is install the package
ubuntu-device-flash. That is why in a terminal we execute this command:
sudo apt-get install ubuntu-device-flash
To know better what we can do with this package we can always resort to the manual page, Typing the following in the terminal:
The following is install the package
phablet-tools. To do this we go back to the terminal:
sudo apt-get install phablet-tools
We can get one list of tools included in it with this command:
dpkg -L phablet-tools | grep bin
we can get help on tools of this package with the modifier
-h, For example:
phablet-config -h usage: phablet-config [-h] [-s SERIAL] ... Set up different configuration options on a device [...]
ADB and Fastboot considerations
When installing the package
ubuntu-device-flash two tools are added which we will use quite a bit in this guide: ADB and Fastboot. ADB is a bridge between the terminal and the computer that allows us to act through a terminal when it is fully booted, and Fastboot offers a USB connection when the device is booted from the bootloader.
we recommend take a look at the help pages of these two elements using these two commands to get out of doubts as much as possible:
adb help 2>&1 | less fastboot help 2>&1 | less
Saving Android backups
that it can be done in two ways: If you already have the bootloader unlocked and a custom recovery installed you can always make a backup through the recovery which you could then restore in the same way. If you do not have any recovery tool installed, you will first need to go to Android Settings to enable development mode.
For this and if you have never done it, you will have to go to section About the phone and pressing the build number several times until a message similar to appears Congratulations! You are already a developer!. Then the development options will appear, and here you can activate the USB debugging mode.
When you have it activated you will be able to connect with the USB cable which will serve us to extend the ADB bridge. You can check that the connection was made correctly using a command on the terminal that should turn you into something like this:
adb devices List of devices attached 025d138e2f521413 device
Once we have done this, then we can proceed to save a backup to our desktop of everything included in our Android terminal, which we can then use to restore our terminal in case Ubuntu Phone does not convince us. Here is one method to restore Android provided by Canonical, but we will still try to dedicate another guide to it at another time.
To create the backup we need run the following command at the terminal:
adb backup -apk -shared -all
We should show up 1:00 message as the backup will be created on our phone and it will ask us if we want to authorize it. We tell him yes.
Unlocking the bootloader
To install any ROM, whether it’s Ubuntu or a custom Android like Cyanogenmod, is this item needs to be unlocked. To do this from the terminal we must first restart the device on the bootloader. To do this we use the following command:
adb reboot bootloader
We will know that we are in the bootloader when we see a picture of a android lying on his back with its front panel open. After that we check again that the device is well connected, and if all goes well we should see an output like this:
fastboot devices 025d138e2f521413 fastboot
The next from one command to unlock the bootloader in itself:
sudo fastboot oem unlock
We will see a screen of terms and conditions that we must accept to continue. It is important to know that if we unlock the bootloader we will lose your phone warranty. After that we will restart again on Android, we will have lost our data and we will have to enter the minimum information to complete the first boot, because when we install Ubuntu all this data will be lost again.
Installing Ubuntu Phone
To install Ubuntu Phone we must first turn off the device. Once we have done that, we will have to restart by pressing the correct key combination for it to do so in mode fastboot. As we are using the method for officially supported devices, we can resort to the guide published by Google to do it the right way.
The next step is to install the ROM, for which it is necessary choose a channel. Assuming, for example, we are using a Nexus 7 for our installation, we can use the channel devel. To do this we should enter the command in the terminal
ubuntu-device-flash, And the output we should get would be something like this:
ubuntu-device-flash --channel=devel --bootstrap 2014/04/16 10:19:26 Device is |flo| 2014/04/16 10:19:27 Flashing version 296 from devel channel and server https://system-image.ubuntu.com to device flo 2014/04/16 10:19:27 ubuntu-touch/trusty is a channel alias to devel [...]
As for which channel to choose, Canonical has released one channel choice guide according to our device, as it is the way we have to identify the images. This guide can be consulted through the web for Ubuntu developers.
When the installation is complete the phone will restart, and before doing anything you should wait for it the reboot is completely finished. In most cases no user interaction is required, and we note that it may take a few minutes. As for system updates, notifications of their availability should arrive automatically.
And so far our guide to installing Ubuntu Phone on an Android phone. We take this opportunity to emphasize that with this method of installation we will remove the Android ROM completely; this is not one dual boot. To perform an installation with dual boot we will develop another guide that we will also publish in Ubunlog.
per get more information regarding system installation you can direct to the guide published by Canonical.