[How-To] Disable Forced Encryption

Search This thread

xdatastic

Senior Member
Jan 14, 2012
1,194
749
Sydney
OK. I have encryption disabled. My benchmark on androbench is not as high as others have posted. But can someone let me know if this looks like I am not encrypted? Here are some screen shots. Thanks

Sent from my Nexus 6 using Xparent Blue Tapatalk 2

Looks about the same as mine. Some people may have changed the app default options for benchmark file sizes etc which affect the result output. I wouldn't worry about it.
 
  • Like
Reactions: treIII

808phoneaddict

Senior Member
Dec 26, 2011
950
135
OK. I have encryption disabled. My benchmark on androbench is not as high as others have posted. But can someone let me know if this looks like I am not encrypted? Here are some screen shots. Thanks

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
I'm pretty sure you are decrypted now. Your second picture looks like mine...if you click on encrypt phone, the next page should say how to do re-encrypt, which would mean you currently aren't encrypted
 

wooddale

Senior Member
Nov 5, 2010
3,311
467
New Lisbon
My phone is still stock do to some data problems. I'm guessing the greyed out part on the encryption means the phone is encrypted.
 

mark.m.moran

Senior Member
Mar 2, 2010
1,191
51
Dublin
My phone is still stock do to some data problems. I'm guessing the greyed out part on the encryption means the phone is encrypted.

Yep, I think so!

Apparently there are two different memory configurations\memory types with the Nexus 6 and I guess this could also account for the difference in Androbench as well?

Cheers,
M
 

kajet915

Senior Member
Aug 2, 2010
187
36
OK. I have encryption disabled. My benchmark on androbench is not as high as others have posted. But can someone let me know if this looks like I am not encrypted? Here are some screen shots. Thanks

Sent from my Nexus 6 using Xparent Blue Tapatalk 2

It looks like you're unencrypted. Do you try antutu benchmark. I use that. Then post the results. I think I was around a 51722
 

LordDeath

Senior Member
Nov 30, 2006
1,202
106
Is it technically possible to permanently decrypt a /data partition over for example a modified TWRP? Why did Google not include a way to undo the device encryption?
TWRP is already able to mount my encrypted /data without any password prompts but I don't want to perform a full factory reset right now.
 

Justin Buser

Member
Apr 8, 2009
38
37
fastboot flash boot boot.img would upload boot.img to the phone and flash it to the boot partition so that every time you boot that's what runs. Fastboot boot boot.img would boot the phone using boot.img over usb one time only, most likely it's done on purpose for the rooting process to happen without permanently altering the boot image.
 

jason504

Senior Member
Mar 3, 2013
2,478
541
Do I have to disable encryption to flash roms? I am rooted with twrp and unlocked. I am just confused a little about this encryption.
 

greydelta38

Senior Member
May 9, 2013
160
24
Huntsville
I've seen a HUGE improvement to the lag. The phone can actually keep up with me when I type now. I should have done this a long time ago.
 

Pecata

Senior Member
Dec 31, 2009
1,119
236
Salt Lake City
I am encrypted-complete stock at the moment and I do not experience any lag. I am wondering if decrypting my phone will make a difference in day to day use? I realize the Read/Write speeds are lower with encryption enabled but to me the phone feels fast and I don't experience any lag whatsoever. For those who did it do you see a difference?
 

kajet915

Senior Member
Aug 2, 2010
187
36
I am encrypted-complete stock at the moment and I do not experience any lag. I am wondering if decrypting my phone will make a difference in day to day use? I realize the Read/Write speeds are lower with encryption enabled but to me the phone feels fast and I don't experience any lag whatsoever. For those who did it do you see a difference?

Yeah I'm completely stock, just rooted and unencrypted. And yeah there is a minor difference in speed with the screen transitions and multi app switching. I believe benchmarks are higher. But if you like being encrypted, I'd say keep it. Its just us power users that like to squeeze every bit of power out of our devices. And I believe there is a small difference in battery life. But none to make a casual user go wow.
 

wooddale

Senior Member
Nov 5, 2010
3,311
467
New Lisbon
Yeah I'm completely stock, just rooted and unencrypted. And yeah there is a minor difference in speed with the screen transitions and multi app switching. I believe benchmarks are higher. But if you like being encrypted, I'd say keep it. Its just us power users that like to squeeze every bit of power out of our devices. And I believe there is a small difference in battery life. But none to make a casual user go wow.
Good explanation lol.
 
  • Like
Reactions: kajet915

GreeleyXda

Senior Member
Dec 12, 2014
471
31
hi i used auto root to unlock my boatload/root.

Is there an easier way to disable encryption?
I dont understand/know how to do any of the steps
 

dadsterflip

Senior Member
Aug 31, 2010
1,417
130
I am encrypted-complete stock at the moment and I do not experience any lag. I am wondering if decrypting my phone will make a difference in day to day use? I realize the Read/Write speeds are lower with encryption enabled but to me the phone feels fast and I don't experience any lag whatsoever. For those who did it do you see a difference?
Plain nope. Hardly can tell the difference but that's just my opinion.
 
  • Like
Reactions: PhilipTD and Pecata

cobyman7035

Senior Member
Oct 24, 2012
2,657
171
TORONTO
OK. I have encryption disabled. My benchmark on androbench is not as high as others have posted. But can someone let me know if this looks like I am not encrypted? Here are some screen shots. Thanks

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
Seems about right..I've gotten 180/50 at times… ur browser speed is good… lowest I?got was 65

Via my NeXus™ 7FHD on XDA Premium app
 

droid4lif3

Senior Member
Mar 17, 2013
108
21
Los Angeles
I tried removing decryption while on cm12, is there any way to remove it? I tried using this same method but it hasnt removed the encryption. I have an unlocked bootloader and twrp, I fastboot flash the boot img, I then went into twrp and did a factory reset, nothing, then I did wiped, dalvik and cache, data and system and still nothing. Any suggestion?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 206
    I'm not responsible for anything blah blah

    This is intended to disable forced encryption on the nexus 6. You can still encrypt the device after doing this, but it won't be automatically done.

    After observing how this force encryption stuff works, I got it mostly figured out. (It's entirely a SW layer, as is already widely known). Basically when all the devices from fstab are mounted in android with the forceencrypt option, fs_mgr sets a flag for encryption (something like IF This_Device_Isnt_Encrypted; then This_Device_Needs_Encryption). on devices (looks like android only allows you to encrypt 1 device, which is probably to prevent such cases as over-resource usage ,maybe some other conflict that it doesn't support over 1 device, idk) that have forceencrypt set on them, if it can't unmount the device before doing these encryption checks - in other words if it's usy (like a file is open) - it just skips encryption all together. So if the device had a file preventing it from being unmounted, it just says "oh well, skip encryption." I found this kinda odd behavior anyway :p

    You can still encrypt the device, it just isn't forced. Some people are complaining about the slowness of the encryption SW-layer (why force SW encryption? At least put some HW for it in the device). This makes it the way it probably should be - optional.

    Stock LMY47D/LMY47E/LMY47M/LMY47I (5.1.0) - No force encrypt:
    https://www.androidfilehost.com/?fid=95916177934540533

    Stock LRX22C (5.0.1) - No force encrypt:
    https://www.androidfilehost.com/?fid=95857557620392411

    Stock LRX21O (5.0) - No force encrypt:
    https://www.androidfilehost.com/?fid=95784891001613336

    Prerequisites:
    - You should be running the same build as the kernel you install (E.G. if you are running 5.1.0 LMY47D you should install the LM47D no force encrypt kernel)
    - Your bootloader must be unlocked (fastboot oem unlock)

    How-to install kernel:
    1.) Reboot to boot loader
    2.) Download the appropriate boot.img above
    3.) Install it via fastboot (fastboot flash boot boot_noforceencrypt.img)

    To disable forced encryption after kernel is installed:
    1.) Reboot to boot loader
    2.) Format userdata (fastboot format userdata) - This will erase all of your data (apps, sd card, etc.) - so make appropriate backups
    23
    5.0.1 boot image force encrypt disabled

    Disabled force encrypt in 5.0.1 (lrx22c)
    only change is forceencrypt->encryptable in fstab.shamu
    22
    I assume this boot.img will also work with the LYZ28E build?

    Here's one for LYZ28E

    Doesnt take a genius to mode the boot.img


    1. Extract the Android Image Kitchen zip i uploaded in this post
    2. drag in the boot.img file you wish to modify onto the unpackimg.bat file
    3. you should get a command window pop up, it should say succesfull and you will get a few folders added.
    4. open the ramdisk folder and open the fstab.shamu file using notepad++
    5. search for forceencrypt and replace it with encryptable. there should be only one case where this exists.
    6. save the file, go back to the root of the image kitchen folder, and run the repackimg.bat file.
    7. you should get a new boot.img build called image-new.img, you can use this now to flash on your device
    12
    Here's a link for the No Force Encrypt file I made for the MRA58K Nexus 6 Marshmallow factory image. Going to flash the files on to my phone now.

    PHP:
    http://www13.zippyshare.com/v/1lvgqKcI/file.html
    10
    Thanks! What do we do to upgrade from 5.0.1 to 5.1 exactly and keep the unencrypt?

    Couple of options, but first to note:
    - adb sideload from stock recovery will not work if you are not completely stock. It does a block-level update so it will fail if it finds a mismatch on the device boot.img and what it expects, like if you are already unencrypted.

    First option:
    - Flash the 5.1.0 factory image, and repeat the entire process
    - Will wipe everything

    Second option (ONLY if you are on stock LRX22C
    - You can extract the OTA update
    - Hack the script to not install boot img patch and disable md5 checks.
    - Don't do it this way

    Third option
    - Get the factory image and extract it
    - Flash the bootloader (fastboot flash bootloader bootloader-shamu-blah.zip)
    - Flash the radio (fastboot flash radio radio-shamu-blah.zip)
    - Reboot bootloader (fastboot reboot-bootloader)
    - Extract the: image-shamu-lm47yd.zip
    - Flash recovery (fastboot flash recovery recovery.img) Skip this if you are using a custom recovery and want to keep it
    - Flash modified boot.img in OP (fastboot flash boot bootimg_noforceencrypt_lmy47d.img)
    - Flash system (fastboot flash system system.img)

    The cache/userdata img are only needed if you want to full wipe.

    You will lose root, obviously, but can easily get it back from twrp.