How To: Keep Root, Custom Recovery, & Disabled Encryption When Updating Your Nexus 6
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. Please enable JavaScript to watch this video.
What You'll NeedWindows, 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)
Step 1: Put Your Phone into Bootloader ModeWe'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.
Step 2: Ensure That You Have the Proper Drivers InstalledFor 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.
Step 3: Install ADB & Fastboot on Your ComputerNow 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:bash <(curl https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh) Mac users can find a more detailed guide on installing ADB and Fastboot at this link.
Optional Windows Method: Nexus Root ToolkitFor 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.
Step 4: Download & Extract the Factory ImagesGoogle releases updates for Nexus devices in the form of a compressed archive on its developer website. To download the latest set of Nexus 6-specific image files, click this link.Once the shamu-lrx22c-factory-ff173fc6.tgz file has finished downloading, extract its contents to a folder you can access easily using a program like 7-Zip or WinRAR. 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.
Step 5: Download the Modified 'boot.img' FileThe 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.
Step 6: Flash the Images in FastbootNext, 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.
Nexus Root Toolkit Method (Optional for Windows Users)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.
Step 7: Re-Root Your Nexus 6After 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.For Windows users, did you use the Fastboot commands or do you prefer the Nexus Root Toolkit method? Let us know in the comment section below, or drop us a line on our Facebook or Twitter feeds.
xda-developers Huawei Nexus 6P Nexus 6P General [GUIDE] Unlock/Root/Flash for Nexus 6P by Heisenberg XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.
[HOW-TO] The Nexus 6 All-In-One Beginner's G… | Nexus 6
How To: Disable Forced Encryption on the Nexus 6 for Faster Performance How To: Install a Custom Recovery on Your Nexus Without Using a Computer How to Root Android: Our Always-Updated Rooting Guide for Major Phone Models How To: Root a Nexus 4 or Nexus 5 in Under a Minute
[GUIDE] Unlock/Root/Flash for Nexus 6P | Huawei Nexus 6P
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.
How to Update Your Rooted Phone « Android :: Gadget Hacks
How To: Easily Root Your Nexus 7 Tablet Running Android 4.3 Jelly Bean (Windows Guide) How To: Get Android 5.0 Lollipop on Your Nexus Today How To: Keep Root, Custom Recovery, & Disabled Encryption When Updating Your Nexus 6
[Official support] BREAKING: Samsung Galaxy S10e/S10/S10
flash the encryption disable zip (you find it in the download folder too. note he needs to get flashed every time you reflash a vendor partition) MAKE SURE YOU HAVE IT ON EXTERNAL SD CARD SINCE I CANT ADD MTP SUPPORT TO TWRP OR MTP WILL BE BROKEN WHEN SYSTEM IS BOOTED; press reboot to recovery in twrp for boot rooted with magisk.
How to Root Your Nexus 7 in Less Than Two Minutes—Without a
How To: Keep Root, Custom Recovery, & Disabled Encryption When Updating Your Nexus 6 How To: Unroot Your Galaxy S5 or Other Android Device How To: Add Your Own Custom Screensaver Images to Your Kindle Lock Screen How To: Unroot a Motorola Droid phone and restore it to stock settings
How to Root Your Nexus 5—An Easy Guide for First-Timers
How to Keep Root, Custom Recovery, & Disabled Encryption When
This subreddit is NOT for your own personal gain. If you wish to promote your Blog, Stream, or YouTube channel, please message the moderators. Links or image posts that are not related to Android without the help of the title will be removed. Please keep the cases, skins, and Nexus photography to a minimum. We've seen so many posts already.
How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or
How To: Keep Root, Custom Recovery, & Disabled Encryption When Updating Your Nexus 6 How To: The Definitive Guide to Backing Up Your Nexus 7 Tablet How To: The Definitive Guide on How to Restore Your Nexus 7 Tablet (Even if You've Bricked It)
How do you actually DECRYPT the Nexus 6? : nexus6
If you want to root, flash a custom ROM, or otherwise dig into the innards of your Android phone, a custom recovery like TWRP is a great way to do so. Here's how to flash it on your phone. RELATED: What is a Custom Recovery on Android, and Why Would I Want One? Your phone's "recovery environment" is a piece of software that you rarely see.
xda-developers Nexus 6 Nexus 6 General [HOW-TO] The Nexus 6 All-In-One Beginner's Guide by xBeerdroiDx XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.
How to Flash the TWRP Recovery Environment to Your Android Phone
0 comments:
Post a Comment