yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] kajet915:
Yes for me it is. this is the only way I tried with the nexus 5, but compared to the dozens of other android phones I've owned, and rooted. Using tool kits are the smoothed and most seamless way. Props to the devs
[Nexus 6 Android Development] treIII:
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
[Nexus 6 Android Development] xdatastic:
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.
[Nexus 6 Android Development] 808phoneaddict:
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
[Nexus 6 Android Development] wooddale:
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.
[Nexus 6 Android Development] mark.m.moran:
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
[Nexus 6 Android Development] kajet915:
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
[Nexus 6 Android Development] treIII:
Yeah I got 53000 or so

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] kajet915:
Lol. Thats higher than mine Lol
[Nexus 6 Android Development] LordDeath:
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.
[Nexus 6 Android Development] Justin Buser:
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.
[Nexus 6 Android Development] jason504:
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.
[Nexus 6 Android Development] greydelta38:
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.
[Nexus 6 Android Development] crowbarman:
Shouldn't really make a difference typing. Only storage activities are affected.
[Nexus 6 Android Development] Pecata:
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?
[Nexus 6 Android Development] JasonJoel:
It boots faster and backups were faster unencrypted, other than that I didn't see any real difference.
[Nexus 6 Android Development] kajet915:
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.
[Nexus 6 Android Development] wooddale:
Good explanation lol.
[Nexus 6 Android Development] GreeleyXda:
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
[Nexus 6 Android Development] dadsterflip:
Plain nope. Hardly can tell the difference but that's just my opinion.
[Nexus 6 Android Development] cobyman7035:
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
[Nexus 6 Android Development] droid4lif3:
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?
[Nexus 6 Android Development] kergefarkas:
CM12 should by default encrypt your phone.

There is an ption to encrypt your phone in Security settings as well.
[Nexus 6 Android Development] Pecata:
Yeah, I finally removed the encryption myself and I gotta say that I don't see much of a difference in day to day use...the phone seems to be a tad faster transferring files and booting up but that's about it...

Thanks so much for the info guys.
[Nexus 6 Android Development] droid4lif3:
Hey I'm such an idiot I meant to write "remove encryption", but I've been reading that it's not much of a difference.
[Nexus 6 Android Development] Radeon1337:
Good evening fellas, tried searching but couldn't find an answer so dont shoot me if this is asked a lot. :)

I'm rooted and running "Pure Shamu b3.92" encrypted, is there anyway to decrypt without losing my data now?

Thanks.
[Nexus 6 Android Development] Pecata:
As far as I know-no. Decrypting the device requires a factory reset in order to work.

Please correct me if I am wrong.
[Nexus 6 Android Development] Radeon1337:
OK, Maybe i'll wipe later on then.

Thanks anyways :good:
[Nexus 6 Android Development] treIII:
Back up your data to a computer. Reset. Put data back on. Just dump the SD card to the computer. That's how I would do it. Then send it right back. Not hard. 10 minutes maybe?

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] treIII:
OK. If I flash a new ROM can I just pull the boot. IMG from the rom and flash the ROM without it and remain decrypted? I'd like to flash a ROM but don't want to lose decryption. Also I'm having a problem finding how while in twrp after flashing this using flashify I had to erase user data or something like that. Thanks

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] gamewarden234:
If your already decrypted flash any custom rom and flash any kernel like Franco or sensei and you will remain decrypted. All the custom kernels have removed the flag that triggers encryption if your already decrypted that is. Just don't ever flash the stock boot image again. Most custom roms are using lean kernel or other custom kernels already like liquid. Just flash rom gapps custom kernel and your golden. I hope that was what you were asking.
[Nexus 6 Android Development] treIII:
Yes that was what I was asking. I'm going to flash clean ROM. I was just going to pull the boot.IMG and then flash the boot. IMG from my nandroid of what I have now v which is decrypted. Seems like that would work.

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] gamewarden234:
Just curious why you wouldn't want to flash Franco. Increased my battery life a lot. Do you just like the stock decrypted kernel or want to stay as close to stock as possible.
[Nexus 6 Android Development] treIII:
Interesting. Do I have to use an app to set the parameters of Franco kernel? I used to really like to fiddle a lot but not so much any more. I purchased his app though around a year ago. Also, do I have to format user data when flashing a custom kernel if they are running decrypted? Thanks for replying

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] gamewarden234:
If all your doing is flashing a kernel the answer is no. Just flash the kernel but I would make back up in TWRP first. A new custom rom factory reset is the norm unless you already are running the rom, an then you can dirty flash but I would make a backup first in TWRP just in case . If your decrypted stock rooted with TWRP installed you can download his app and it will download and flash his kernel auto magically if you are on a custom recovery like TWRP. I would back up first again just to make sure. When I came from the factory rom when I got the phone I unlocked rooted decrypted and put on TWRP. Then factory reset in TWRP and flashed liquid rom gapps and lean kernel and have now switch to Franco and dirty flash ever night as liquid updates
[Nexus 6 Android Development] abhishekchhabra:
Ok so heres my story I disabled encryption on stock fine and living with it, yesterday i flashed the CM12 daily nightly which was build LRX22G so again I tried to disable the encryption by flashing the LRX22C kernel from the thread as LRX22G wasn't there. The phone went badass after boot too much lag and still encrypted plus from the three softkeys below home and overview were gone. Then I flashed fresh Rom again from recovery. Now I am still encrypted. Which kernel should be flashed for CM12 5.0.2 builds .
[Nexus 6 Android Development] gamewarden234:
Elemental x or Franco or lean or sensei. I like the first two..but I'm sure you know flash rom gapps and one of those kernels after you have decrypted again. If any encrypted data is on your phone it will remain encrypted regardless of the kernel or rom.
[Nexus 6 Android Development] Radeon1337:
So what you are saying is that if i make a nandroid then decrypt i could use that nandroid to return to the same setup without encryption?
[Nexus 6 Android Development] treIII:
Im not sure. Give it a try. Once you decrypt you can stay decrypted rather easily. I was saying to do this though so you could keep your pictures etc.... Without losing anything. Then put whatever you want back on the phone once you are decrypted.

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] Radeon1337:
I don't have anything important on my phone so there is nothing to back up, i just dont wanna install all apps and set up everything all over again :p

But maybe i'll just have to do it.
[Nexus 6 Android Development] treIII:
Just dump to PC and reinstall apps without data then you won't have to download all of them again. May be quicker that way.

Sent from my Nexus 6 using Xparent Blue Tapatalk 2
[Nexus 6 Android Development] markwebb:
Conversely. I accidentally installed a ROM which then encrypted me. I then reinstalled my prior ROM which was decrypted but my phone still remains encrypted. ;( So if everything is backed up still worth trying. I am going to decrypt again over the weekend and experiment and see what happens since I have everything backed up to usb stick.
[Nexus 6 Android Development] b.huss2:
Fyi, you absolutely can restore a backup from when you were encrypted, after decrypting.
[Nexus 6 Android Development] LordDeath:
Do you mean a nandroid backup with for example TWRP or do you mean backups over adb?
[Nexus 6 Android Development] Z-Man™:
Nandroid with twrp
[Nexus 6 Android Development] b.huss2:
Sorry i replied quickly cause i was in a hurry. Yes, make a backup in twrp, copy it off to your pc, decrypt, copy your backup back to your phone, restore, enjoy unencryption exactly where you left off.
[Nexus 6 Android Development] LordDeath:
It seems like TWRP's backup ignores /data/media and I can't find a way to include it. :(
[Nexus 6 Android Development] dodgebizkit:
If only it could be done without root, without disqualifying my phone from OTA updates.

-----------------------<SiG>-------------------

My house phone is better than your iPhone.
[Nexus 6 Android Development] b.huss2:
Why would you want to do that? Just drag and drop whatever you want to keep to your pc, then put it back when your done.
[Nexus 6 Android Development] efrant:
/data/media is your internal storage, i.e., it is where TWRP stores the backup. What do you think would happen if TWRP would allow you to backup the location where it is storing the backup? ?

As was mentioned, once you complete your TWRP backup, just copy the entire /data/media to your computer.
[Nexus 6 Android Development] :
I think if twrp could back up it's backups while making it backups would cause a dimensional rift to open,

from which an abyssal devourer would emerge, playing celine dion's best songs on a kazoo.

[i am sooo bored...]
[Nexus 6 Android Development] konaman:
I cannot get fastboot or adb to work with my Mac. I type in the command in the op and it says it cannot find command or something. What am I doing wrong?
[Nexus 6 Android Development] xdatastic:
Change the current working directory to where adb is installed.
[Nexus 6 Android Development] konaman:
How do I do that? I am extremely new to osx. This is my first Mac ever.

BTW I have adb and fastboot installed on my macbook. It is the phone that I can't get to connect I guess.
[Nexus 6 Android Development] xdatastic:
Its a bit irrelevant for this thread, but post the exact error message.
[Nexus 6 Android Development] cmh714:
open a Terminal window and change directories to where you have adb and fastboot. then run the command(s)

if you dont know where it is you can use the which command, so which adb and that should tell you where it is.

GL
[Nexus 6 Android Development] ManHands:
You'll probably find your answer in this thread.
[Nexus 6 Android Development] fegone:
When I received my shamu, I directly unlocked the bootloader, flashed twrp and rom gapps... etc But I did know that we need to flash the boot-img before. Do this as soon as your Nexus 6 arrives, it will save from some hassle
[Nexus 6 Android Development] mclisme:
Is it possible to de-crypt without losing anything if you:

1) Take a nandroid backup

2) Decrypt

3) Restore backup

?

Will this get you to the exact same point as you were when you started the process, only this time decrypted? Also, what needs to be included in the backup for this to work? I guess system, data, boot and what about EFS partition? Recovery? Do they need to be included too?
[Nexus 6 Android Development] addcancercat:
After disabling forced encryption nexus 6 wants a password
[Nexus 6 Android Development] BRKotucs:
Boot into recovery and format data.
[Nexus 6 Android Development] Headhuntr:
Thank you for this great guide.

One question? Is it required to root the device or can I skip this step? I want my Nexus 6 as close to stock as possible but without the forced encryption.
[Nexus 6 Android Development] ManHands:
Root not required. Just need to be unlocked.
[Nexus 6 Android Development] ertw96:
yes, I just did it yesterday, using the following steps in the first post.

http://xdaforums.com/nexus-6/help/disable-encryption-losing-installed-t3003054
[Nexus 6 Android Development] @home:
Is it possible to to disable encryption with stock recovery. If I want to run stock recovery but just rooted can I do so?

If so how to do so?

Ta
[Nexus 6 Android Development] ManHands:
Yes, just flash boot.img in OP and follow other instructions. No need to ever touch recovery.
[Nexus 6 Android Development] AnthonyAldrete:
Go into your system preference and go to services. Select the terminal option, then go to where you have fastboot and right click anywhere and go down to services and click open terminal in tab and that will open terminal in that folder and there you can do your .\adb reboot boot loader and .\fastboot commands . hope that helps
[Nexus 6 Android Development] Cincybearcatfan:
I'm in desperate need of help. I tried to flash the unencrypted img but now I'm stuck on the Google screen. Nothing happens. Just Google. I've rebooted. It goes to Google. Now what? How do I get it back to normal?

---------- Post added at 12:14 AM ---------- Previous post was at 12:07 AM ----------

NVM, I was able to get into Fastboot then into Recovery then I restored from a previous backup.
[Nexus 6 Android Development] the1dynasty:
found this thread after leaving my N6 stock for over a month and a half... my N5 (also stock) never had issues with speed... but oddly my N6 with better specs, seems to struggle with some things... i chalked it up to be the encryption so i came here to disable it...

currently my phone is restoring everything to the way it was... my process for backing up is simpler than most since i leave things mostly stock now... i install sms backup and restore, along with call logs backup and restore... i back those two things up... then reset everything else... when booted and logged in, it restores from a recent backup anyways so i'm back up in under 10mins or so...

thanks for the thread too!!
[Nexus 6 Android Development] inzaghi75:
How can I see if my phone is de-crypt?
[Nexus 6 Android Development] inffy:
Go to Settings -> security

There is a part where it says Encryption and under it is empty (decrypted) or read Encrypted
[Nexus 6 Android Development] Ghisy:
Hi,

I can't seem to make this work. I did the quoted steps (my bootloader is already unlocked and my N6 is already rooted with SuperSU) and phone status still says "encrypted" in the security options. I tried factory reset with both TWRP and within the Settings.

I repeated the process 3 times already and still no luck! :crying:

Can someone help me out please? Thanks!
[Nexus 6 Android Development] inffy:
Factory reset doesn't work. You have to reset your user data (you will lose your internal sdcard so take backups)
[Nexus 6 Android Development] Ghisy:
Indeed, I must have missed this step! Just wiped user data in TWRP and phone is decrypted now! Thanks!
[Nexus 6 Android Development] razorloves:
Performing a factory reset with the stock recovery DOES remove encryption because it formats the entire /data partition. But a factory reset with custom recoveries, like twrp and cwm, does NOT remove encryption because it does not format the data partition. They only wipe data, leaving /data/media (internal storage). That's why yours stayed encrypted. So you need to boot into bootloader mode and do "fastboot format userdata", or chose the format data option in twrp or cwm.
[Nexus 6 Android Development] Radeon1337:
Why does this happen? (380dpi)

Possible to fix or is it a dpi bug?

http://i.imgur.com/GYwJKBv.png
[Nexus 6 Android Development] doitright:
Are you referring to the off-centeredness? It looks like you have something weird installed that is doing that. Not sure what. Either way, totally off topic for this thread since it is DEFINITELY not related to encryption.
[Nexus 6 Android Development] Radeon1337:
Yeah, im sorry. Posted in the wrong sub and couldn't find a way to delete it :o

Anyways, found the problem.
[Nexus 6 Android Development] sam008:
Folks

Is it best to turn off decryption on the phone immediately when you get it (just got mine) or can it be done anytime in the future? Just want to see if the encryption actually hurts my performance or not

Thx
[Nexus 6 Android Development] xdatastic:
You can do it later, but will require a factory reset to wipe all the data.
[Nexus 6 Android Development] noraef:
I plan on soon buying the phone (probably next week), but wonder about a few things. I intend to root it, but would rather keep it to stock Google ROMs at least for the time being. I'm not sure wether I'll run encrypted or not, but let's say I update to 5.0.1 when receiving it, then unencrypt it with flashing OP's proper boot image.

When factory AOSP 5.0.2 is out, for instance, and when I flash that one, will I have to flash another special 5.0.2 boot image (after having waited for it), so to say unencrypted, or will it stay unencrypted by default, until I go in the settings and manually choose to encrypt it again?

I have no idea wether hardware crypto will end up activated by Google in a future ROM (in that case, I guess I wouldn't bother running unencrypted), but if every factory AOSP upgrade encrypts my data, and I then have to unencrypt, wipe said data, and copy it back to the phone, it will quickly wear on my nerves (plan on buying the 64GB, and not without reasons).
[Nexus 6 Android Development] doitright:
Yes, if you want to install a factory update, you WILL have to modify the boot.img BEFORE booting on it, or it will cause your /data partition to become encrypted. Alternatively, don't install the new boot.img with the update, and just hope that it boots -- it would probably be ok, but sometimes boot.img may require changes to match system.
[Nexus 6 Android Development] piercecn:
It I am on LRX22G what boot image do I use to unencrypt?
[Nexus 6 Android Development] doitright:
One that matches and is modified so that its fstab doesn't force encryption.
[Nexus 6 Android Development] noraef:
Thanks, doitright. I am not used to factory images yet: until now, I was flashing CM on a non Nexus device with TWRP, without thinking it through much, but I'm getting tired of it, and yearn on trying a closer to source experience for this next phone.

I started playing with factory images, for now loopmounting and exploring those on my PC. Being quite used to Linux administration on PC, it doesn't look too hard to grasp.

I know there are image files ready to be flashed on the forum, but I may even try to build my own custom tailored ones, instead of waiting for those to be served on a golden platter: it's the way I learn best. And if I choose to deactivate encryption, well, I guess it'd be best if I knew how to make it myself.
[Nexus 6 Android Development] Fauert:
Hi, i have N6 with 64GB storage, and no matter i use this (Disable Forced Encryption) thread or Wug`s NRT 2.0.2 , i only have ca. 25 GB left when finished and decrypted ... ? Any else tried this ? For now back on rooted stock ... :crying: New N6 user :)
[Nexus 6 Android Development] SilkyJohnson:
Factory reset.
[Nexus 6 Android Development] Fauert:
I did . ;) Did not change anything .
[Nexus 6 Android Development] doitright:
Ok, if you know Linux, then you can handle this. Force encryption is enabled by a simple flag set in the device's fstab, which is part of the initrd, which is merged with the kernel in the "boot.img". Changing that flag as part of a build is trivial, since the fstab is in the device repository needed for building.

I.e., https://android.googlesource.com/device/moto/shamu/+/android-5.0.2_r1/fstab.shamu

Compare it against hammerhead (nexus5):

https://android.googlesource.com/device/lge/hammerhead/+/android-5.0.2_r1/fstab.hammerhead

Notice forceencrypt vs encryptable.

---------- Post added at 04:57 PM ---------- Previous post was at 04:46 PM ----------

Format userdata. Not wipe, not factory reset, FORMAT.

The issue here is that a "filesystem" and a "partition" are distinct. By default, formatting a partition applies a new filesystem overlay on it that matches the capacity of the partition. Sometimes a filesystem can be applied to a partition by way of writing a pre-formatted IMAGE to it. If that image was of a filesystem for a 32 GB, then the remaining storage space will give you roughly 25 GB free.

Technically, you could also use resize2fs to do this while preserving all your data, if you can find or build it for the device.

Hint: Its part of e2fsprogs

The problem with factory wipe / erase userdata / etc., is that most custom recoveries are rigged up to just DELETE the contents of the userdata partition, rather than actually reformatting it. The reason is that they selectively *DON'T* delete the /media tree within it. /media is the "fake sdcard" used for legacy data storage, and recovery-based system backups.
[Nexus 6 Android Development] tatinek2:
Flash via zip?
[Nexus 6 Android Development] doitright:
If you REALLY feel like doing this through recovery, then you're on your own to make a zip with an appropriate update script.

But frankly, it is a lot easier and a LOT less overhead to just "fastboot flash boot boot.img". If you absolutely MUST do it from the phone itself,

su

dd if=boot.img of=/dev/whatever/the/heck/the/path/to/the/boot/partition.is
[Nexus 6 Android Development] AkumaZeto:
thanks!!! will try this ASAP!!