• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Guide] How to Root & install a custom recovery by disabling Encryption!

Search This thread

TheDj408

Senior Member
Oct 24, 2013
303
265
Mumbai
This method successfully worked for me & @lysm bre (Thanks to him for the guiding)!

Your phone will be unencrypted after folllowing this guide and successfully rooted too if I didn't mention that :D
To flash ROMs in future you have to disable encryption so this method will make you ready for that too :)

Here is my video in which I explained in detailed and I've done all the steps from beginning! So you can follow this guide too here- https://youtu.be/mUq1xdJ-7-E


To Boot into Bootloader mode use command adb reboot bootloader or hold power and volume down button once its switched off!

I'll modify & beutify the guide in future so stay tuned for that! :confused:

1] Unlock bootloader- fastboot oem unlock [select yes by pressing volume up and then power button to confirm] :cowboy:
2] Reboot & skip everything in setup as we data will be wiped again!
3] Reboot into bootloader & flash the modified boot image- fastboot flash boot boot.img
4] Reboot into system to make sure it's booting properly! [May not be necessary!]
5] Reboot into bootloader again & flash twrp- fastboot flash recovery "recovery name".img
6] Boot into TWRP & select allow modifications ! :cool:
7] Goto Wipe & select format data !
8] After that is done, reboot into system without rooting& skip through setup again!
9] Now if you check the encryption status of your phone (Settings -> Security - Encrypt phone), it won't be encrypted anymore as it'll give you the option of encrypting it, which means it currently isn't encrypted.
10] Now transfer the SuperSU zip file in the internal storage of the phone, reboot into TWRP, and flash SuperSU! :cool:

BOOM! You have successfully rooted with encryption disabled.! Congratulations! ;)
Just a reminder that for video explanation watch this- https://youtu.be/mUq1xdJ-7-E :D
Downloads-
Modified boot.img- http://bit.ly/1MVtrNr Thanks to @Chainfire ONLY FOR build no mdb08i as of now! Do not flash on any other build!
TWRP recovery image- https://dl.twrp.me/bullhead Thanks to @Dees_Troy
SuperSU zip- https://download.chainfire.eu/743/SuperSU Thanks to @Chainfire

Modified boot images for all nexus devices- http://bit.ly/modifiedbootimages Thanks to @Chainfire
 
Last edited:

keynoto

Senior Member
May 23, 2010
85
20
Thank you OP and @lysm bre, great job. Might I suggest that you include the build number in your instructions as you have clearly stated in your video. I watched it and it was very helpful to learn that your boot image was from a specific build number. Thanks again
 
Last edited:

Hayth

Senior Member
Feb 15, 2012
388
141
Leicester
Might be worth mentioning it's build specific (only for mdb08i currently) and will save someone the time I wasted figuring that out [emoji14]

Sent from my Nexus 5X using Tapatalk
 

hawkins95

Member
May 7, 2013
5
0
I was thinking of doing that but wasn't sure if the builds are region specific and could affect something I wasn't aware of?

Sent from my Nexus 5X using Tapatalk

Im in the uk and it is working great for me, im rooted and my data is working, just make sure to flash normal version from google first because when i did it with the modified version is came up with some weird bootloop image. and im pretty sure MDBO8I is an update everyone is getting saw a few articals saying it was.
 

Hayth

Senior Member
Feb 15, 2012
388
141
Leicester
Im in the uk and it is working great for me, im rooted and my data is working, just make sure to flash normal version from google first because when i did it with the modified version is came up with some weird bootloop image. and im pretty sure MDBO8I is an update everyone is getting saw a few articals saying it was.
Cool, that's good to know :) I saw those articles too but as they made reference to enabling band 12 in the US I wasn't sure. I've wiped and restored my phone that many times today I'm going to give it a few days to see if the OTA comes through [emoji14]

Sent from my Nexus 5X using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    This method successfully worked for me & @lysm bre (Thanks to him for the guiding)!

    Your phone will be unencrypted after folllowing this guide and successfully rooted too if I didn't mention that :D
    To flash ROMs in future you have to disable encryption so this method will make you ready for that too :)

    Here is my video in which I explained in detailed and I've done all the steps from beginning! So you can follow this guide too here- https://youtu.be/mUq1xdJ-7-E


    To Boot into Bootloader mode use command adb reboot bootloader or hold power and volume down button once its switched off!

    I'll modify & beutify the guide in future so stay tuned for that! :confused:

    1] Unlock bootloader- fastboot oem unlock [select yes by pressing volume up and then power button to confirm] :cowboy:
    2] Reboot & skip everything in setup as we data will be wiped again!
    3] Reboot into bootloader & flash the modified boot image- fastboot flash boot boot.img
    4] Reboot into system to make sure it's booting properly! [May not be necessary!]
    5] Reboot into bootloader again & flash twrp- fastboot flash recovery "recovery name".img
    6] Boot into TWRP & select allow modifications ! :cool:
    7] Goto Wipe & select format data !
    8] After that is done, reboot into system without rooting& skip through setup again!
    9] Now if you check the encryption status of your phone (Settings -> Security - Encrypt phone), it won't be encrypted anymore as it'll give you the option of encrypting it, which means it currently isn't encrypted.
    10] Now transfer the SuperSU zip file in the internal storage of the phone, reboot into TWRP, and flash SuperSU! :cool:

    BOOM! You have successfully rooted with encryption disabled.! Congratulations! ;)
    Just a reminder that for video explanation watch this- https://youtu.be/mUq1xdJ-7-E :D
    Downloads-
    Modified boot.img- http://bit.ly/1MVtrNr Thanks to @Chainfire ONLY FOR build no mdb08i as of now! Do not flash on any other build!
    TWRP recovery image- https://dl.twrp.me/bullhead Thanks to @Dees_Troy
    SuperSU zip- https://download.chainfire.eu/743/SuperSU Thanks to @Chainfire

    Modified boot images for all nexus devices- http://bit.ly/modifiedbootimages Thanks to @Chainfire
    7
    Ok guys,

    I unlocked and decrypted my 5X.

    Speed increase is very noticeable. Apps open instantly on the first launch from a reboot. Once they are in memory it's just blistering. It wasn't this noticeable when I decrypted my Nexus 6.

    I did not root so Android pay still works. I just wanted decrypted without root.

    Update: Interestingly though, benchmarks are scoring lower now than what I am seeing on a bunch of benchmark videos on the 5X. Google may have optimizations for encryption?
    Real world use seems quicker but if you are about to do this to your own 5X run a few benchmarks before and after for the hell of it. Might be interesting.

    Update 2: My bad. The benchmark decrease was caused by Google syncing 40 metric ass-tons of my data in the background. I only mentioned Benchmarks at all because it was such a drastic difference. Everything looks ok now.
    2
    guys, i just got a Android System Update for November's security patches, i have modified boot and custom kernel, also Selinux permissible and encription disable, since its security patches its ok to restart/install? thanks in advanced.

    You probably shouldn't attempt to install OTAs if you are running a custom kernel and modified boot.img. If you have TWRP recovery installed, it simply won't install. If you have stock recovery, there is the possibility that it will install and render the device unbootable.

    The process for me for updating to build MDB08M was to download the zip file, and then flash:
    radio-bullhead-xxxxxxx.img
    bootloader-bullhead-xxxxx.img
    boot.img (might be unnecessary, since we will flash a modified version later on.)
    cache.img
    system.img
    vendor.img

    While ignoring these:
    recovery.img (would overwrite TWRP)
    userdata.img (would erase your data)

    I used this guide for the syntax and order for flashing, especially part 8. "How To Flash The Factory Images (And Return To Stock)". We're not going back to stock 100% but the process for flashing is very similar.

    Before you reboot, flash the modified boot.img for your build (this allows your data to remain unencrypted and allows you to install SuperSU afterwards):
    http://forum.xda-developers.com/nex...-beginners-t3206930/post63781454#post63781454

    At this point I would do a regular boot just to make sure everything is working correctly.

    Then you would flash your custom kernel again if you wanted to (I believe flashing system.img will bring you back to the stock kernel). Also this is the point where you would install the SuperSU zip in TWRP if you wanted to root.
    2
    hello, what about current 6.0.1 ? if i do understand everything correctly, we need a new boot.img, right?

    Here is the modified boot.img for the first 6.0.1 release