Skip to content

Instantly share code, notes, and snippets.

@cobainmo
Last active December 27, 2018 06:58
Show Gist options
  • Save cobainmo/d3a6b8a54eb9cda0668b3b098d836d0c to your computer and use it in GitHub Desktop.
Save cobainmo/d3a6b8a54eb9cda0668b3b098d836d0c to your computer and use it in GitHub Desktop.
Small tutorial about how to install ubuntu touch on nexus 4 device since provided software does not work out of the box

Installing ubport on Nexus4 using macOS and VirtualBox

Since original installer is not working on any platform by default for Nexus 4, here is workaround using MacOS and VirtualBox with Ubuntu 16.04

  1. Install VirtualBox : https://download.virtualbox.org/virtualbox/6.0.0/VirtualBox-6.0.0-127566-OSX.dmg

  2. Please be aware that you will need to install VirtualBox Extension Pack in order to use USB 2.0 (EHCI) controller which is needed. Download extension pack here: https://download.virtualbox.org/virtualbox/6.0.0/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack

  3. Set up Ubuntu OS

  4. in VirtualBox window select OS and go to Settings -> Ports -> USB (tab): *check Enable USB Contntroller *select USB 2.0 (EHCI) Controller (if you get message that its not supported on the bottom of the window, you did not install extension pack) *On the right from USB Filters section you will have incos with (+) sign, add your device while in fastboot mode. Also boot into phone OS, enable USB debuggind (This is mus, otherwise you will get unauthorised device in adb devices list), try to see if its visible by using "adb devices" command and then add it on USB Device Filters list (it will have different name, fastboot will have Android[0100] and abd will have LGE Nexus 4 or whatever device you are using.

  5. Run ubuntu from VirtualBox and install adb tools for adb and fastboot (sudo apt-get install android-tools-adb, sudo apt-* get install android-tools-fastboot)

  6. Download source git clone https://github.com/ubports/ubports-installer.git

  7. In terminal go to clonned directory and enter ./setup-dev.sh

  8. In file src/adb.js change value const PORT = 5038 to const PORT = 5037 (default port for adb is 5037, if you are using something different, change to it)

  9. using sudo run npm start and folow instructions

If you folowed instructions you should be able to go trough all process without any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment