yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Q&A, Help & Troubleshooting] jj14:
The userdata.img is basically a blank partition. It is used to reset the userdata partition to its factory state. Assuming your userdata partition is uncorrupted, and also assuming that there is no change in the allocation size/method of the userdata partition between the Android versions, it is ok to skip it.

If you don't mind me asking, why don't you want to take a few seconds to flash userdata, when that's the recommended way?
[Nexus 6 Q&A, Help & Troubleshooting] mouse100:
Since the main topic doesn't speaks about userdata. So I asked for this.
[Nexus 6 Q&A, Help & Troubleshooting] rdalcanto:
Well, we removed encryption on my son's phone and kept it on mine. Bench marks are virtually identical. We closed all apps and then hit buttons at the same time. Camera, Photos, YouTube, Chrome, etc. No difference at all between the two phones. I don't think removing encryption does anything to speed it up. Don't think it is worth having to do OTA updates manually and restoring the phone each time.
[Nexus 6 Q&A, Help & Troubleshooting] Chris_Krz:
When i go to flash boot boot_noforceencrpyt.img I get an error

Error: cant load 'boot_noforceencrypt.img'

Why would that be?

Thanks
[Nexus 6 Q&A, Help & Troubleshooting] robbievengence:
you did this from the phone?

I dont have a computer and want to decrypt. Im unlocked and rooted with twrp can i do it from there?
[Nexus 6 Q&A, Help & Troubleshooting] xxfwmxx:
I have a computer, but did it without one. I flashed the boot image via flashify then went into twrp and wipe and format data. Rebooted, set everything up and all good and decrypted.
[Nexus 6 Q&A, Help & Troubleshooting] stevemw:
LMAO!
[Nexus 6 Q&A, Help & Troubleshooting] ogxeman:
If I understand this correctly, once I successfully decrypt, the phone will be permanently decrypted and I won't have to format data next time I'd want to flash a new ROM?
[Nexus 6 Q&A, Help & Troubleshooting] AHewat:
Restore from Backup

My situation:

- I did not root or install TWRP, I simply unlocked my bootloader and flashed the no encrypt image

- Once finished the flash and still in the bootloader I ran the following command: "fastboot format userdata"

- I restarted the phone to get out of the bootloader and went through the OS set-up (location, language, google sign in etc...)

My question is, since Android 5.0 lets you restore from an OS back-up point, I hit OK when prompted to do so and everything restored (amazing!). But, does this affect the encryption though? In other words, since my phone was encrypted when the restore point was created, am I restoring partially encrypted data?

Under settings --> security --> encryption, Lollipop is giving me the option to encrypt my phone, which leads me to believe all is now encrypted. I have however not experienced any less lag, or improved speed. My bench results are lower than others posted:

- Seq RD: 161

- Seq WR: 51

- RND RD: 3200

- RND WR: 745

- All Macro times ~2x longer

What do we think?

Thanks.
[Nexus 6 Q&A, Help & Troubleshooting] cupfulloflol:
If you flash a kernel with forced encryption enabled, then that will re-enable encryption on boot. You will then have to flash a kernel that doesn't force encryption and then wipe to get back out of it.

On that note, be careful, there has been at least one or two custom kernels that had the force encryption flag checked. Same idea goes for custom ROMs since they include the kernel.

As part of the installation process of custom ROMs, you will still likely need to perform a factory reset between different ROMs, but you won't have to format all of /data. You can keep the sdcard contents (/data/media).
[Nexus 6 Q&A, Help & Troubleshooting] MichalKub:
5.0 system update

i just received android 5.0 update notification , if i install it will it force encryption back on?
[Nexus 6 Q&A, Help & Troubleshooting] cupfulloflol:
Yes, as I mentioned in my previous post, if you install a kernel that has forced encryption enabled (which stock does), you will be forced to encrypt on boot.
[Nexus 6 Q&A, Help & Troubleshooting] marc.ientilucci:
Is it possible to flash this without formatting userdata?
[Nexus 6 Q&A, Help & Troubleshooting] joeslide:
Configuring Nexus 6 Out of the Box

I am getting my N6 soon. I want to take it out of the box, charge it, put it in fastboot mode and do the following:

#Unlock bootloader

fastboot oem unlock

#Update Bootloader

fastboot flash bootloader bootloader-shamu-moto-apq8084-71.05.img

fastboot reboot-bootloader

#Update Radio

fastboot flash radio radio-shamu-d4.0-9625-02.55.04.img

fastboot reboot-bootloader

#Flash No Encrypt Boot Image

fastboot flash boot boot-501-noforceencrypt.img

#Factory Reset

fastboot format userdata

#Update System

fastboot flash system system.img

fastboot format userdata

#Add Custom Recovery

fastboot flash recovery openrecovery-twrp-2.8.2.0-shamu.img

#Root

fastboot boot CF-Auto-Root-shamu-shamu-nexus6.img

Does anyone see anything I missed or left out?

UPDATE

I got my phone, cut my micro sim to nano size and got it working on the network first. I then updated to the 5.0.1 OTA. The only commands I ran were:

fastboot oem unlock

fastboot flash boot boot-501-noforceencrypt.img

fastboot format userdata

#Login to the phone and then

fastboot flash recovery openrecovery-twrp-2.8.2.0-shamu.img

#Finally

fastboot boot CF-Auto-Root-shamu-shamu-nexus6.img

Everything worked fine.
[Nexus 6 Q&A, Help & Troubleshooting] housry23:
You should boot into Android before flashing twrp. Also, if your flashing twrp, why not just download the SuperSU zip and flash it instead of cfauto root?

Sent from my Nexus 6
[Nexus 6 Q&A, Help & Troubleshooting] suku_patel_22:
How bad is the performance of Nexus 6 in daily use whole encrypted? I will be receiving my Nexus 6 in a few days and am curious whether I need to decrypt it or use it as it is.
[Nexus 6 Q&A, Help & Troubleshooting] cupfulloflol:
Realistically, most things you probably won't notice. Booting is faster with encryption disabled, but outside of that it is semi-minimal. Some things will perhaps launch a little slower while encrypted, especially larger apps (games). But unless you have two devices sitting side by side you probably won't notice.

Theoretically there is some CPU overhead, so battery life should be better with it disabled. I haven't seen any real tests on this. And in general, people seem to get similar battery life regardless of the encryption. I haven't done tests myself, but I noticed no real difference between the two in my findings.

I have seen people report things like some of the higher def recording options on the camcorder being better with encryption disabled. I can't comment on this though as I am not much of a photographer with my phone.
[Nexus 6 Q&A, Help & Troubleshooting] suku_patel_22:
Seems like I will see how it is for a few days and then decide if I want to decrypt. I had encrypted my HTC One M7 once, and it was really slow after that.

This is the reason, I was confused.
[Nexus 6 Q&A, Help & Troubleshooting] Moussamoa:
Hello,

I will get a Nexus 6 next week or in two weeks and I plan to disable forced encryption. I would like to know if I will have some issues with a 64GB model while disabling forced encryption because a few days ago I saw that someone had issues with a 64GB. Can someone confirm that it is ok with the Nexus 6 64GB model ? Thanks :)

(and sorry for my english!!!)
[Nexus 6 Q&A, Help & Troubleshooting] Tsukasa Buddha:
I've had no problems. IIRC, only problems I've heard were people flashing the userdata when doing the 5.0.1 upgrade.
[Nexus 6 Q&A, Help & Troubleshooting] stumpy352:
Hi, was wondering how this would affect adb backup/restore. I plan to adb backup before unlocking anyway, but if I decrypt & factory reset, will adb restore work? Will it restore the encrypted boot/data from the backup?

Or does adb backup not backup the boot.IMG?
[Nexus 6 Q&A, Help & Troubleshooting] Jsunn:
If I am going to disable force encryption from 5.0.1 can I use the same userdata.img that was posted for going from 5.0 to decrypted?

Is there a separate userdata.img file for 5.0.1??

Thanks!

-J

----------------------------------------

NRT will take care of the decryption with no issues. It has the files embedded.
[Nexus 6 Q&A, Help & Troubleshooting] Tsukasa Buddha:
Just "fastboot format userdata". You shouldn't need to flash userdata, even going from 5.0 to 5.0.1.
[Nexus 6 Q&A, Help & Troubleshooting] nirdef:
OTA update after disabling forced encryption

Hello

This may be a nonsense question,but i just wanna know, wheather it will effect any future ota update for my nexus 6.
[Nexus 6 Q&A, Help & Troubleshooting] crowbarman:
Yes, you cannot take OTAs going forward unless you flash the original boot.img, which will re encrypt your phone. Easy to manually apply with fastboot though.
[Nexus 6 Q&A, Help & Troubleshooting] chadmander64:
Is it possible to flash the unencrypted boot.img without using adb? Currently don't have access to a PC and was wondering if a flashable zip is possible.

EDIT: Found the answer myself! boot.img can be flashed without adb using the app Flashify.
[Nexus 6 Q&A, Help & Troubleshooting] Boldin:
Correct. Try reading as much FAQ materials on this forum as possible - they're very helpful and I've been reading them for years.
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
It can also be done using the "dd" command in a terminal (with root of course) on your phone. And with dd, you can flash any partition, not just the one's Flashify limits you to.

For example, if you have a boot image in /sdcard called custom-boot.img and you want to flash it, you just type:

dd if=/sdcard/custom-boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
[Nexus 6 Q&A, Help & Troubleshooting] Takuapina:
So, in order to disable the encryption I must do the following steps:

fastboot oem unlock --> to unlock the nexus

fastboot flash boot boot_noforceencrypt.img

fastboot format userdata-->it's just a factory reset

But now, if I want to both have root and TWRP can I do this?

ROOT

I just download the proper file and run the root-windows.bat

TWRP

I move the TWRP.img (named as recovery.img) file to the platform tools and then fastboot flash recovery recovery.img
[Nexus 6 Q&A, Help & Troubleshooting] jsbird89:
Hey ha I'm in the same boat. I'm on cm12 and want to decrypt. The only thing I have found is trying to flash Franco kernel ?? You?
[Nexus 6 Q&A, Help & Troubleshooting] cupfulloflol:
The process is still the same, flash a compatible kernel that doesn't force encryption. Then format data. Franco would be fine.
[Nexus 6 Q&A, Help & Troubleshooting] gseror4:
Not Working

I am using Paranoid Android Alpha 1 based on 5.0.2 (LRX22G) and by default its encrypted. I wanted to decrypt so I went to this and I saw there wasn't one for LRX22G. I decided to try the one for 5.0.1 (LRX22C) and it didn't work. Is there a way for me to decrypt?
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
flash any custom kernel, beside what comes with the rom(they all allow decryption), then format data in recovery.
[Nexus 6 Q&A, Help & Troubleshooting] 838Joel:
Okay I tried all the step many times, and always ending into booting in loop!
[Nexus 6 Q&A, Help & Troubleshooting] 838Joel:
Ending by flashing franco kernel...
[Nexus 6 Q&A, Help & Troubleshooting] J.Guido85:
Here's a screenshot of my phones security. It says Encrypt Phone which means its It's NOT encrypted , But under it it says Encrypted..

So is it encrypted or not? lol
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
It IS encrypted. If it were not, it would not say Encrypted under.
[Nexus 6 Q&A, Help & Troubleshooting] J.Guido85:
So if I'm rooted, romd and what not, what's the easiest way to decrypt ? I used wugs net kit last time
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
What ROM you're using and whether or not you have root is irrelevant.

You need to flash a kernel (i.e., a boot image) that does not force encryption, then you have to format your userdata partition, then reboot.
[Nexus 6 Q&A, Help & Troubleshooting] jiv101:
It means it's encrypted
[Nexus 6 Q&A, Help & Troubleshooting] J.Guido85:
I'm using Chroma, But if I'm going to have to whip, then I'll leave it.
[Nexus 6 Q&A, Help & Troubleshooting] gmiterek:
Can I use LRX22C for a phone that has LRX22G

Hi,

I didn't see a proper answer to this in the forum. I'm a newbie at this, so please don't chaste me for being a little ignorant. If I follow the instructions from this post. I can't decrypt my phone as there is no boot image with LRX22G. I want to know what will happen if I use LRX22C and then do a factory reset. I presume it's not going to work. Here are a few questions of how I would do it, if anybody can help, it would be greatly appreciated.

1) Do I have to put a ROM that has LRX22C for me to decrypt it the way it's mentioned in the post? Means installing an older version of Lollipop.

2) After step 1, I would put the latest nightly of the ROM I want and then it should change to image to LRX22G, right?

3) Using LRX22G, What if I put LRX22C from a PC the way mentioned and then reboot into recovery and do a full wipe and then install my ROM, Gapps. Would that work?

Any help in making this easier and not bricking my phone would be greatly appreciated. All I want is to have the choice to decrypt my phone.

Thanks again for any help you guys can provide
[Nexus 6 Q&A, Help & Troubleshooting] Vadgebender:
Play store won't download and install

No idea how to delete this but my issue was fixed nvm.
[Nexus 6 Q&A, Help & Troubleshooting] @home:
How do we get decrypted with 5.1, I have flashed fasboot and I'm still encrypted.
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
Assuming you have already flashed the boot image with forced encryption disabled, boot into the bootloader and in a command window type: "fastboot format userdata" then "fastboot format cache" then "fastboot reboot".

Obviously that will wipe your device.
[Nexus 6 Q&A, Help & Troubleshooting] Xplicit84:
The updated boot image worked great. Now on 5.1 and still un-encrypted. Thank you [MENTION=2632235]bbedward[/MENTION] for all your work!
[Nexus 6 Q&A, Help & Troubleshooting] lamenting:
Hi guys,

So I'm coming from Chroma.

Was planning to do the following:

- 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 modified boot.img in OP (fastboot flash boot bootimg_noforceencrypt_lmy47d.img)

- Flash system (fastboot flash system system.img)

I want to wipe data.. do I flash cache.img and userdata.img, and if so, where in the process above?

Thannks!
[Nexus 6 Q&A, Help & Troubleshooting] cobyman7035:
hi, whats the procedure to upgrade from 5.01 decrypt to 5.1 decrypt WITHOUT losing data/settings/apps , thx

been a while since i've flashed lol other then franco kernels (easy stuff)
[Nexus 6 Q&A, Help & Troubleshooting] drumdrum:
Big thanks to the guys'n'gals here for doing this.

Just as a note, after you do this, you may notice that some of your widgets are not appearing in your widgets tray. (such as Facebook, whatsapp, etc)

Simply restart your phone again and they should re-appear. Just in case you thought that this broke something! :)
[Nexus 6 Q&A, Help & Troubleshooting] drumdrum:
Well this is interesting...

I am on Android 5.1 , unlocked bootloader, rooted, etc.

I used the 5.1 img in the original post on this thread, using the steps in the original post. I even did a factory reset afterwards and re-setup my phone manually.

(I had my phone backed up first prior to doing anything, naturally! :) )

Well, I now to take benchmarks with a grain of salt and all that, but my Antutu score got actually LOWER with encryption OFF!!!

I would have imagined it to get overall a little higher rather than lower.

I had closed all apps before running the Antutu benchmark and I ran the standard test and a HTML5 test.

I even ran the no-ecryption test twice to be sure. Sure enough, it was lower both times, bringing my N6 lower than the OPO ... which is 1/2 its price!! :confused:

Anyways, I took screencaps and have (hopefully) posted them ok here.

Im pretty sure that I didnt do anything wrong, but please feel free to correct me if I'm wrong!

Order of attached images are:

(from left to right)

1,2 - Antutu results WITH Encryption

3,4 - Antutu results with NO Encryption - Take 1

5,6 - Antutu results with NO Encryption - Take 2

7 - Proof of "No Encryption" status (the "encrypt" message is missing)

8 - System Build info
[Nexus 6 Q&A, Help & Troubleshooting] drumdrum:
Please delete / disregard this post. It was caused by a automatic re-direct from the main thread (referenced in this threads OP) as I have <10 posts to my name.

Thanks
[Nexus 6 Q&A, Help & Troubleshooting] in_dmand:
Anyone know how I decrypt a LMY47E build? I see in the other OP that D, C, and O are the only ones listed.
[Nexus 6 Q&A, Help & Troubleshooting] drumdrum:
Well I dug around on the main thread last night and came across this:

http://www.reddit.com/r/nexus6/comments/2zd0u7/google_just_posted_a_new_android_51_factory_image/

There is a link within that reddit group with a download of your 47E build:

http://d-h.st/QOT5

If you download that and do the steps outlined in the main threads OP, you should be fine.

I havent used that reddit group (on 47D) so use at your own risk, etc.

HTH
[Nexus 6 Q&A, Help & Troubleshooting] MITBeta:
Possible to upgrade using the OTA LMY47M file?

I'm running 5.0.1 unlocked, rooted, and unencrypted. Can I upgrade to Lollipop 5.1 using the OTA file for LMY47M and keep encryption off, or do I have to wait for the Factory Image to be made available?
[Nexus 6 Q&A, Help & Troubleshooting] slug-1982:
OTA will fail. The factory image is available here developers.google.com/android/nexus/images
[Nexus 6 Q&A, Help & Troubleshooting] pngwolffman:
If I do this will I loose the ability to get ota updates?
[Nexus 6 Q&A, Help & Troubleshooting] slug-1982:
Only if you root it
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Yes you will loose the ability to install OTA. You will need to encrypt again before being able to install an OTA. You have to be 100% stock (recovery, system(no root), and kernel (encrypted)) to install the OTA.
[Nexus 6 Q&A, Help & Troubleshooting] gmiterek:
Worked as mentioned

Awesome, this worked great. Remember, everything disappears. So you need to sideload or push your ROM, Gapps and other files after. I was afraid to lose my Recovery (TWRP), but it was there. I can't say if it is faster now as people mentioned. I do notice no lag with running apps, but it could be just my imagination. Using the latest Nightly of Euphoria ROM (3/22).
[Nexus 6 Q&A, Help & Troubleshooting] MITBeta:
LMY47M isn't posted yet. I don't want to go through multiple rounds of this.
[Nexus 6 Q&A, Help & Troubleshooting] Ram3NBear:
What if I am running a cyanogenmod and What should I do to turn it off?
[Nexus 6 Q&A, Help & Troubleshooting] gmiterek:
CyanogenMOD Encryption

After removing the encryption and it working really well I was having problems with the Euphoria ROM not being able to dial out. I don't think it was because of the encryption removal as it worked very well for a few days. I've had problems with this ROM in the past. It may have also been Lollipop 5.1. Anyways, I decided to install the latest nightly from CyanogenMOD and guess what? It re-installed the encryption. Pissed me off. And yes, I noticed the difference in speed, not huge, but there was a noticeable difference. As it was installing the ROM it actually indicated that it was installing the encryption. Anyways, will run this way for a while until fed up again (probably not long, LOL). It's the first time I use CyanogenMOD 12 on the Nexus 6 and I'm impressed on how stable it is compared to the other ROM's I tried (Ressurection Remix (my favorite), SlimROM, Liquid Smooth and Euphoria)
[Nexus 6 Q&A, Help & Troubleshooting] George 88:
How to upgrade from LRX22C 5.01 to 5.1

Hi,

Please forgive my total ignorance. I'm super new to this. A few months ago I installed the "Stock LRX22C (5.0.1) - No force encrypt" kernel that the OP supplied using the instructions in his post.

Now, I would like to now install "5.1 - No force encrypt." Do I use the same original instructions and, and install the kernel supplied by the OP: "Stock LMY47D/LMY47E/LMY47M/LMY47I (5.1.0) - No force encrypt"

I ask because one of his stated prerequisites is "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)"..... And my problem is that I am running LRX22C, and the way I read this statement, I cannot install his posted 5.1.0 kernel.

Thank you!
[Nexus 6 Q&A, Help & Troubleshooting] jeffnolan:
disabled encryption on 5.0.1, now have 5.1 OTA update...

I successfully flashed by Nexus 6 (and 9) to disable forced encryption. Thanks for posting this info, I was ready to ditch both devices because performance was so bad.

Now I have the 5.1 update OTA'ed and sitting on my Nexus 6. I have not performed the update because I'm not certain what will happen. What will happen if I update to 5.1?
[Nexus 6 Q&A, Help & Troubleshooting] :
If you're unencrypted, the OTA won't flash.
[Nexus 6 Q&A, Help & Troubleshooting] jeffnolan:
What are my options for getting to 5.1?
[Nexus 6 Q&A, Help & Troubleshooting] ben jhon:
OH!Thanks!I

I use it and it work well on my nexus 6!
[Nexus 6 Q&A, Help & Troubleshooting] brianp007:
Detailed, Eradicate Encryption and upgrade custom ROM

Hi,

There are scattered bits and pieces of how to remove encryption with hacking makefiles, build-specific boot images(none match my Build Number LMY47I), stock image patches, numerous vague references, etc. I am running Euphoria 20150417 to 20150530 and have root/twrp.

I use 200MB+ gigantic images and my gallery crashes constantly. I suspect encryption and want to upgrade the ROM too.

The latest boot image I can find is LMY47D. I am wondering what was added in versions E, F, G, H, and I <<( mine) that I would be missing (like my 2nd 32GB of flash) with an older build number.

Is there an authoritative web page or video on how to nuke encryption while upgrading a ROM for a recent build Number?

Thx,

Brian
[Nexus 6 Q&A, Help & Troubleshooting] danko12321:
OTA from 5.1.0?

I've been using the custom 5.1.0 rom happily, it's the only change i've made to the stock os. Yesterday I got the 5.1.1. system update available notification and i'm wondering if I upgrade will it; all work fine, break everything or wipe the no encrypt part and take it back to vanilla?

Thanks
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
It will fail. You must be 100% stock to get an OTA
[Nexus 6 Q&A, Help & Troubleshooting] danko12321:
Ok thank you. Does anyone know an easy way to disable the OTA notification? I checked a few threads but couldn't find a good solution, disabling / limiting the entire google services framework probably isn't one! (right?). There were also links to a couple android config apps that included disabling OTA as one of their many additional configuration options but neither of those worked out.

At this point I'd be happy to go to stock 5.1.1 if getting the 5.1.0 (non-enc) with ota disabled is too much hassle but I guess i'll see how it plays out.

Thanks
[Nexus 6 Q&A, Help & Troubleshooting] RieCo432:
Source code

It'd be nice if you could give us the exact changes in the source code, so we would be able to modify and compile the boot image ourselves for future Android versions. Would that be possible? Thx in advance.
[Nexus 6 Q&A, Help & Troubleshooting] kingslime78:
What do I do if my build number not on there I'm using nexus root toolkit and I can't take off force encryption cause my build number is that there plz help
[Nexus 6 Q&A, Help & Troubleshooting] perseyhmj:
how about lvy48c?

is there a disable force encryption kernel for lvy48c?
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
You can use this > http://xdaforums.com/nexus-6/development/mod-disable-force-encryption-rom-kernel-t3000788