One of the main reasons to buy a Nexus device is the fact that they're always the first to get new Android updates. Another great selling point for the Nexus series is that the devices are amongst the easiest to root and mod. Unfortunately, though, these two features are somewhat mutually exclusive.
Over-the-air (OTA) updates now check to see if your device is rooted or modified in any way at the system level—and if it is, installation fails. This is also true if you've disabled forced encryption on your Nexus 6 to improve read and write speeds.
But if you're one who likes to have their cake and eat it too, manually installing an update on a rooted or modified Nexus is about as simple as it was to root and modify in the first place. I'll outline the process below for users of Windows, Mac, and Linux computers alike.
- Windows, Mac, or Linux computer
- USB data cable
- Unlocked bootloader (if you've rooted, installed a custom recovery, or disabled encryption in the past, your bootloader is unlocked, unless you actively relocked it)
We'll essentially be cherry-picking the individual system update images that fit our needs, then installing them with Fastboot commands. In order for your phone to accept Fastboot commands, you'll need to put it in Bootloader mode.
To do that, start by powering your Nexus 6 completely off. When the screen goes black, press and hold the volume down and power buttons simultaneously. After about a second, the bootloader menu will appear—go ahead and connect your phone to your computer using a good quality USB cable at this point.
For your computer to be able to fully interact with your Nexus, you'll have to make sure you have the ADB and Fastboot drivers installed on your system.
If you own a Windows PC, you can download the drivers at this link. Just run the file, then follow the prompts, and you'll be good to go.
If you're a Linux user, download and extract this ZIP file, then run the script with Terminal.
For Mac users, the process of installing the proper drivers is a bit more involved. Please see our guide on the topic for more information.
Now that your phone and your computer can communicate with one another, you'll just need an interface to use for sending commands. Android Debug Bridge (ADB) and its companion, Fastboot, are all you need to get this done.
If you're a Windows user, Minimal ADB and Fastboot will do the trick. You can download the installer file here—just run it and follow the prompts to get the command interface installed.
For Linux machines, simply open a Terminal window and paste in the following command:
Mac users can find a more detailed guide on installing ADB and Fastboot at this link.
For Windows users, there is a great utility available that will essentially give ADB and Fastboot a nice graphical user interface. It's called Nexus Root Toolkit, and the installer file can be downloaded at this link.
Just run the file and follow the prompts to get NRT installed on your system, making sure to allow the toolkit to download all any additional files that it wants. When prompted, select "Nexus 6" as your device and "5.0.0 - LRX210" as your Android Version Number. The rest of the tutorial will still apply with this method, but I'll outline the actual update process for NRT users at the bottom of Step 6 below.
This will expose a second archive named shamu-lrx22c-factory-ff173fc6.tar—extract its contents as well.
Open the shamu-lrx22c folder that this creates, then locate the image-shamu-lrx22c.zip file inside of it. Extract this archive, too.
The shamu-lrx22c folder should now contain 12 files. To keep from getting things mixed up, make sure that your computer is set to show file extensions. On Windows, this can be done by going to "View," then "Options," and selecting "Change Folder and Search Options." From here, click the "View" tab, then make sure the "Hide extensions for known file types" option is disabled.
Next, tidy things up a bit. Any file in the shamu-lrx22c folder that does not end in .img can be deleted.
You should be left with 7 .img files now—these are the core images that make up the latest Android update. But, since our goal today is to update while keeping some of our phone's existing modifications intact, several of these files will not be needed.
Start by deleting the "boot.img" file—this is the image that forces encryption on the Nexus 6. After that, delete the "cache.img" and "userdata.img" files since these will overwrite your existing data. Finally, if you're using a Custom Recovery, delete the stock "recovery.img" file.
You should now be left with only 3 image files. To simplify, rename the bootloader-shamu-moto-apq8084-71.05.img file to "bootloader.img." After that, rename the radio-shamu-d4.0-9625-02.55.04.img file to "radio.img."
In the end, there should only be 3 files—bootloader.img, radio.img, and system.img.
The three image files that are sitting in your shamu-lrx22c folder right now make up the core of the Android update. But the updated kernel and other hardware-level coding were contained in the "boot.img" file—we couldn't use the stock version, though, because it is what forces encryption on the Nexus 6.
Instead, we'll use a modified version of the stock "boot.img" file that is set to not enforce encryption. Download the file from this link, then place it in your shamu-lrx22c folder.
Next, rename this file to simply "boot.img." You should now have 4 image files—boot.img, bootloader.img, radio.img, and system.img.
Next, locate the folder on your computer where ADB and Fastboot are installed. For Windows users, this will be C:\Program Files (x86)\Minimal ADB and Fastboot. Move the 4 image files to this location.
After that, open a command prompt window and navigate to this same folder. With Windows, this is simple—just hold down the Shift key on your keyboard, then right-click any empty space in the folder that contains the images and select "Open Command Window Here."
From the command prompt window, type:
- fastboot devices
Then hit Enter. If your phone and computer are properly connected, you'll see a series of letters and numbers followed by the word fastboot.
Next, install the updated bootloader image. To do that, type:
- fastboot flash bootloader bootloader.img
Followed by the Enter key.
Now that the new bootloader is installed, let's use that one from here out. Type:
- fastboot reboot-bootloader
Then hit Enter to reboot into the new bootloader.
Next, flash the new radio image:
- fastboot flash radio radio.img
Followed by Enter will update your connectivity binaries.
To flash the new boot image, complete with the updated kernel and encryption disabled, type:
- fastboot flash boot boot.img
And hit Enter.
Finally, install the system image to update all core Android files:
- fastboot flash system system.img
With the usual Enter key press following it up.
The system.img file is the largest of the bunch, so it will take longer to install than the rest. Wait until it's finished before moving on to the next step.
These same files can be installed with the Nexus Root Toolkit if you're more comfortable with a mouse than a keyboard. From NRT's main menu, click the "Launch" button under the Advanced Utilities section to begin.
In the middle column of the Advanced Utilities menu, make sure that "Flash - Permanent" is selected. After that, click the "Boot" option to install the new boot.img file.
This will open a file browser window, so select the boot.img file that you downloaded earlier, then click "Open."
After that, repeat this process for the new Bootloader, Radio, and System images, and your phone will be updated to the latest version of Android.
After installing the updated system.img file, the root binaries on your phone have been overwritten. Getting root access back is incredibly easy, though.
Start by downloading CF Auto Root at this link. After that, extract the contents of the archive to any folder on your computer.
With the ZIP extracted, you'll find 2 folders and 3 files—root-linux.sh, root-mac.sh, and root-windows.bat. Double-click the file that corresponds to your computer's operating system to begin.
Since your phone is still in fastboot mode and connected to your computer, all you have to do is press any key on your keyboard to get root access back.
When the script finishes the rooting procedure, your device will automatically reboot. Once you get back up, you'll be running the latest version of Android, encryption will still be disabled, and your phone will still be rooted with its custom recovery in place.
In the future, now that you have ADB and Fastboot installed on your computer and the necessary drivers are configured, updating again will be even easier. Simply put your phone into bootloader mode and connect it to the computer, then pick back up at Step 4 of this tutorial to install the newer factory images.
Want to master Microsoft Excel and take your work-from-home job prospects to the next level? Jump-start your career with our Premium A-to-Z Microsoft Excel Training Bundle from the new Gadget Hacks Shop and get lifetime access to more than 40 hours of Basic to Advanced instruction on functions, formula, tools, and more.