
Finally, when everything is done, you can reboot your Nexus 5X, that has now been decrypted. Now it’s time to decrypt the device, by formatting the complete data partition. Once you have your device detected successfully, enter the command below to flash the modified kernel (boot.img):. If it doesn’t, make sure that your 5X is connected to the PC while in bootloader mode, and that you have properly setup fastboot. The command should return a device ID along with the current mode – ‘ fastboot‘. Type in the following command to confirm whether your device has been detected successfully. A new command-prompt/CMD window should open, which will already be pointing to the current folder. Then, select ‘ Open command window here‘ from the pop-up menu. Inside that folder, press SHIFT key and right-click on an empty space.
On your computer, open the folder (directory), where the “boot.img” file was downloaded. While your 5X is in bootloader mode, connect it to the PC using a USB Type-C cable. Now, press and hold the Volume Down and Power keys, until you see the bootloader screen on your 5X (Below is the image of bootloader mode on Nexus 6P, which is pretty much similar to that of the 5X). To begin, boot your Nexus 5X into bootloader mode - Power down your 5X completely. Once you have downloaded the modified kernel (boot.img), you are ready to go. So make sure that you download and use the correct one. Flashing a wrong boot.img, may lead to a bootloop. Download the kernel (boot.img) corresponding to your Android version and build number. Alternatively, you can also use Minimal ADB Installer. This tutorial will make use of fastboot commands, so make sure to have Android SDK installed. Charge your 5X to a sufficient battery level, so that it doesn’t shut down during the process. This includes the internal storage, messages, contacts, and everything else that you feel necessary. Make sure that you have backed up your Nexus 5X completely.
The modified boot images work on both, latest Marshmallow and Android N Developer Preview (If you need it for a previous build or DP1, let us know via comments).
Disable forced-encryption and decrypt Nexus 5XĪppreciations to XDA Recognized Contributor – Tigerstown, who has brought us the modified boot image files for the Nexus 5X, with dm-verity disabled.