site  contact  subhomenews

Nexus 5 updated to Android 8.1.0

March 24, 2018 — BarryK

I originally purchased the Nexus 5 to be able to play with MaruOS:

http://bkhome.org/news/201606/nexus-5-phone-ordered.html

The most recent version of MaruOS is 0.4.1. This evening, decided to install a recent vanilla-flavoured Android. This is how it was done...

Download MaruOS image, to get the 'adb' and 'fastboot' binaries:

https://github.com/maruos/maruos/releases

...get them out of the zip file.

Download Android 8.1.0 image for Nexus 5:

https://builds.unlegacy-android.org/aosp-8.1/hammerhead/

Download TWRP for Nexus 5:

https://twrp.me/lg/lgnexus5.html

https://dl.twrp.me/hammerhead/

How to install TWRP:

https://github.com/maruos/maruos/wiki/TWRP

Place 'adb', 'fastboot', 'twrp.img' and the Android zip file in the same folder, open a terminal.

Plug USB cable from computer to phone. On the phone, turn on "USB debugging", as explained here:

https://github.com/maruos/maruos/wiki/USB-Debugging

Type "lsusb" in terminal to verify that computer sees phone.

What I did to install TWRP, in computer terminal:

# ./adb reboot bootloader
# ./fastboot flash recovery twrp.img

On phone, press Up-Volume physical button, until "Recovery" appears on phone screen, then press Power physical button.

On computer, reboot the phone in Recovery mode:

# ./adb reboot recovery

On phone, press "Advanced" button, then "ADB Sideload" button. There are a couple of checkboxes, "Wipe Dalvik cache" and "Wipe cache", tick those. Then there is a slider to start the sideload.

Back on the computer, type:

# ./adb sideload ua_hammerhead-8.1.0-EXPERIMENTAL-20180207-0816.zip

This will install the Android image file from the computer to the phone. Then there will be a button on phone to reboot. TWRP will then display "Swipe to install TWRP app", do it (not sure if necessary). Yay, it worked!

Tags: tech