If you haven’t rooted your Nexus 7 yet, you can follow my previous post and do that easily. This guide assumes you have connected your device with your PC and can use ADB to push commands over to your device. If this doesn’t make any sense, read my previous guide.
In this post I am about to write how can you easily install Ubuntu Touch on your Nexus 7. Before we do that, you can read this article on why shouldn’t install Ubuntu Touch: 4 Reasons Why You Shouldn’t Install Ubuntu Touch on Your Nexus | OMG! Ubuntu!
But since we are dual booting the Ubuntu with Android, the reasons stated above won’t matter!
1. Installing Custom Recovery (Flashing TWRP Multi ROM)
Using adb commands the next you need to do is to flash a version of TWRP recovery which is tweaked for MultiROM support. The file I downloaded was “TWRP_multirom_grouper_20131022.img” from here: [MOD][OCT 22] MultiROM v16a (fix SuperSU for secondary ROMs) – xda-developers, and used following command to flash it.
fastboot flash recovery d:\path-to-recovery\TWRP_multirom_grouper_20131022.img
2. Flash Kernel with kexec-hardboot patch (We are getting closer)
The next thing which is required to dual boot is to flash a Kernel with kexec-hardboot patch and the file varies by the version of Android you have installed on your N7. I flashed, “kernel_kexec_430.zip” (get from above link) from TWRP recovery’s “Flash ZIP” option (not using adb).
3. Download Ubuntu Touch image (The Ubuntu Goodness!)
The final step is to flash the Ubuntu image from MultiROM, so that we can have dual boot. Latest built of Ubuntu Touch can be found here: Index of /ubuntu-touch/daily-preinstalled.
This steps requires to download two files and flashing them together from the Recovery. So I downloaded following two files:
(grouper is a code name for Nexus 7)
4. Copy the above files to device:
Next thing is to push these two files using adb commands:
adb push D:\path-to-first-file\trusty-preinstalled-touch-armel+grouper.zip /sdcard/
adb push D:\path-to-second-file\trusty-preinstalled-touch-armhf.zip /sdcard/
5. Flashing Ubuntu Touch (take a deep breath):
To flash these two files you will need to goto Recovery -> Advanced -> Multirom -> Flash files. And select both the above files. Flashing it takes a few seconds. And once its done, reboot the device from options.
Congratulations. If you have done everything correctly, you should have a multi boot menu when you reboot the device, from where you can select which OS to boot into. There should be two options, “Internal” which will open Android and other with the name of the file you flashed, which will boot into Ubuntu Touch. You can even rename these from the recovery and multi ROM menu.