yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] thederekjay:
It has nothing to do with the boot.img and everything to do with flashing the userdata.img. To correct the issue avoid flashing the userdata.img and cache.img or if you already did that you can do the following:

Boot into STOCK RECOVERY (MUST BE STOCK RECOVERY. NO CUSTOM RECOVERY)
Clear cache
Factory reset

or if that did not work, do this..

fastboot erase boot
fastboot erase recovery
fastboot erase system
fastboot format cache
fastboot format userdata

fastboot flash bootloader <bootloader.img>
fastboot reboot-bootloader
fastboot flash radio <radio.img>
fastboot reboot-bootloader
fastboot flash system <system.img>
fastboot flash boot <boot.img>
fastboot flash recovery <recovery.img>
[Nexus 6 Android Development] compuw22c:
Does anyone know a way to backup /data/media (internal storage) in twrp? I can backup to USB otg, so I should be able to backup that partition in theory to a USB stick. I was unencrypted and somehow flashing 5.0.1 (along with a boot.img that doesn't forever encryption) and it re-encrypted. Would be awesome to do a full device backup to USB otg, wipe to disable encryption, then restore from that backup
[Nexus 6 Android Development] SGT:
Worked like a charm. Thank you!
[Nexus 6 Android Development] compuw22c:
Anyone else noticing slower write speeds in benchmarks after 5.0.1, while still being unencrypted?

I'm worried I may have accidentally re-encrypted but it's a bit hard to tell. My benchmarks in AndroBench are 148MB/s Sequential Read and 47MB/s Sequential Write vs my previous 228/98 before updating to 5.0.1. Not sure if it's the update, an app update or what... I do have the option to "encrypt phone" though it's greyed out at the moment (charging to full to see for sure) I'd just like to know what state I'm in and if wiping will and re-unencrypting will improve my speeds any... Thanks!

EDIT: I do see the option to "Encrypt Phone", but I still feel somehow I may still be encrypted given my speeds...
[Nexus 6 Android Development] crowbarman:
228/98 seems like an anomaly, mine are in your range as well. Anandtech measured seq read at 131mb on 5.0.0 unencrypted.
[Nexus 6 Android Development] compuw22c:
I thought it was fast, but I was getting it consistently before as were others if I remember correctly. Now maybe it was either an os bug or an app bug in which case others that did see 200+ to see lower numbers now. That's what I'd like to confirm ;)
[Nexus 6 Android Development] cobyman7035:
is there a decrypted 5.01 boot image yet ? or only 5.0 is avail right now.....im on stock NON rooted 5.01 andro L

---------- Post added at 06:38 PM ---------- Previous post was at 06:05 PM ----------

Ok decrypting 5.01 really improves bench mark speeds using andebench pro app

8363 to 9661… .22756KB/s storage speed to whopping 150827KB/s
[Nexus 6 Android Development] drawde40599:
Couple pages back .
[Nexus 6 Android Development] 12MaNy:
Now getting:

Read: 158.04 MB/s

Write: 53.65 MB/s

Awesome! :D
[Nexus 6 Android Development] mrjaydee82:
Here's the latest decrypted boot.img from android 5.0.1 ...also I added init.d support and made insecure

https://www.dropbox.com/s/p2843worh17f9cy/boot.img?dl=0

Op you may use how ever you like
[Nexus 6 Android Development] cobyman7035:
Using what app to benchmark?

Via my NeXus™ 6 on Tapatalk⁴
[Nexus 6 Android Development] 12MaNy:
AndroBench
[Nexus 6 Android Development] spr0k3t:
This worked a champ. Thank you! Upgraded without having to wipe. Verified Seq Read 161.56MB/s on AndroBench.
[Nexus 6 Android Development] cobyman7035:
Can u benchusing andebench pro app? Thats more true speed I think

Via my NeXus™ 7FHD on XDA Premium app
[Nexus 6 Android Development] exphryl:
I'm still running 5.0 and getting everything set up using Wug's Toolkit initially when I found this thread to disable forced encryption

I followed what was in the first post, format userdata etc. But I had a question, do i have to use chainfire's autoroot? When I rebooted my device and got through the setup process the previous SuperSU was still installed. So with that also, did I miss a step if that was still in after I went through the setup process?

I'm getting a

read: 134.83

Write: 37.18

In Androbench after that process too. Seems lower than others so I was concerned I messed up :)
[Nexus 6 Android Development] bbedward:
Updated for LRX22C, sorry guys it's my finals week and have been real busy!
[Nexus 6 Android Development] drawde40599:
1st thing learn how to use your nexus (ditch the toolkits ;))

2nd when you go into security tab what's it say , encrypted or encript phone ?

3rd what happens when you open SuperSu ?

---------- Post added at 07:31 PM ---------- Previous post was at 07:28 PM ----------

The kernel for 5.0 and 5.01 ( going by build date ) looks to be the same . Did you happen to see what was changed ?
[Nexus 6 Android Development] BeGrateful:
just giving everyone a heads up...

the Nexus Root Tool kit now has the option to flash the no_encryption boot.img. Go to advanced in the bottom left, hit boot(kernel) button at the top of the new window, hit OK then there is a button to flash the no_encryption boot.img.

just letting those who are having problems know
[Nexus 6 Android Development] plasticarmyman:
grr...i just had to go back to stock and reflash everything last night.

I forgot to unencrypt...

can i do this without wiping data on 5.0.1?
[Nexus 6 Android Development] Sultan of Speed:
Mine is an encrypted Nexus 6. It's as stock as stock can be. Just opened the box, installed my apps and using it. Ran into this forum and out of curiosity, ran Androbench.

You people are talking in terms off triple digits for speeds. But I am hardly there.

This is what I got :

Seq read: 27.07 MB/s

Seq write: 17.32 MB/s

See attached image for full test results performed just sometime ago.

Question is: do these look good to you? Are these number appropriate for a stock N6?
[Nexus 6 Android Development] plasticarmyman:
not sure why you replied to me about this...

but unencrypted is noticeably faster for me..
[Nexus 6 Android Development] Sultan of Speed:
Lol

Even I don't know why I replied to you. But by the time I realised, the damage was done. So I just shut the **** up!! Lol

But do these numbers that I posted look good to you for a stock? Else I will return the device. Just been 5 days since I got it.
[Nexus 6 Android Development] plasticarmyman:
that is about average for unecrypted
[Nexus 6 Android Development] Sultan of Speed:
You do mean encrypted, right? . :)
[Nexus 6 Android Development] plasticarmyman:
haha yes! i meant encrypted, sorry, have not had all my coffee yet this morning
[Nexus 6 Android Development] Sultan of Speed:
If I were to follow the steps and decrypt my device, will I continue to get OTA's or will we be treated more like custom romers, what with modified boot image & all.

If we do get the OTA, does any one know if it'll undo our decryption work?

Also, does the new v5.0.1 have any setting to decrypt the device?

Thanks in advance for any help!!!
[Nexus 6 Android Development] compuw22c:
All OTAs will likely come with a kernel which upon reboot after installing it will re-encrypt. If you flash an ota, but also flash an unencrypted kernel BEFORE rebooting (but after the ota) you'll be fine.
[Nexus 6 Android Development] ahmarchi:
question... i flashed the 5.0.1 boot. did a wipe on twrp.... checking security, and still says encrypted. did i miss a step?
[Nexus 6 Android Development] Sleeepy2:
Did you do

fastboot format userdata

or a factory reset in twrp?

I just did mine now and I used fastboot format userdata and it's no longer encrypted :D
[Nexus 6 Android Development] crowbarman:
The OTAs will never install due to the modified boot.img.

The process for updating is really not that hard...I posted all of the exact steps a few pages back. There is no way to decrypt in plain stock, and it doesn't look like they are going to allow that to happen any time soon.
[Nexus 6 Android Development] funcrusher:
Yeah, when I tried doing the factory reset in TWRP, it didn't work - formatting userdata did the trick.
[Nexus 6 Android Development] Sleeepy2:
From what I understand you need to wipe everything to decrypt and factory reset in TWRP doesnt touch the sd card. So that means it doesn't decrypt. Formating userdata does so that is why it works.
[Nexus 6 Android Development] funcrusher:
Yes, that's what I was thinking. I was seeing conflicting reports, though. Saw people saying you had to lose everything, including internal storage, and then people saying that they used TWRP and only did a factory reset - which, like you said, doesn't wipe your internal storage.
[Nexus 6 Android Development] b.huss2:
You can format data from twrp. It's right there in your face when you select wipe.........FORMAT DATA........... The button on the right. You know it's the one when it gives you the warning your going to lose all your data including sdcard. It also says........ REMOVES ENCRYPTION. You guys are getting factory reset confused with format data options in twrp.
[Nexus 6 Android Development] funcrusher:
I don't think I'm getting anything confused, but correct me if I'm wrong. I'm going by the OP and other posts I've seen saying to FACTORY RESET via TWRP.

The OP says:

6.) To disable encryption, a factory reset is needed (Done by fastboot format userdata, once booted in Settings -> Backup & Reset, or in recovery) (only 1 out of the 3 will actually work)

A regular factory reset from TWRP wouldn't work and neither would a factory reset within Android.
[Nexus 6 Android Development] b.huss2:
Yea, the verbiage is whats confusing. I'm describing it as twrp presents the options. I guess technically speaking a true factory reset is format data, but custom recoveries like twrp give you a "factory reset" that doesn't erase your sdcard for obvious reasons. It's not really a full factory reset as your phone would not come with your stuff on it from the factory.
[Nexus 6 Android Development] funcrusher:
Ahh, you got me right before my edit! lol

I understand what you're saying, buddy. This may explain it not working for some.
[Nexus 6 Android Development] wooddale:
Im still stock ran quadrant scores on Quadrant Standard 12,500 should be twice that . Does this have anything to do with Encryption?
[Nexus 6 Android Development] old_fart:
Just had to do a full "format", because some different kernels / roms were corrupting each other . . . . and am back to "stock 5.01" and my quadrant is 13404, but I ALWAYS run greenify to stop background processes.

.

Below are comparison number ( with androbench ) from stock encrypted, and then un-encrypted, and then overclock 2.6 -to- 2.8 . . . .

sr . 26.9 . . 162 . . 173

sw . 19.6 . . 50.9 . . 56.4

rr . 9.02 . . 12.1 . . 13.5

rw . 1.69 . . 2.94 . . 3.24

ins . 221 . . 279 . . 333

( etcetera )

( sequential gets a big boost, and then random . . . not so much )

click thanks if this helps.
[Nexus 6 Android Development] wooddale:
I checked again and got about same as you do guess thsts what it is.
[Nexus 6 Android Development] dodgebizkit:
Any way we can partition them to allow unencrypting in stock? If a large enough number of people reached out to them, shouldn't Google cave?

They added aren't apple after all.

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

Custom ROM for my house phone? why not?
[Nexus 6 Android Development] drivel2787:
Does this greatly improve battery life?
[Nexus 6 Android Development] old_fart:
since you put the word "greatly" in your question, i'm going to have to say "nope".

go here : http://xdaforums.com/google-nexus-5/help/battery-life-help-troubleshoot-battery-t2785128

( if this helps, click thanks )
[Nexus 6 Android Development] cobyman7035:
Here's my androbench

182 read 38write

Hynix memory

Sandisk hd

1.95ghz elementalx 5.01decrypted
[Nexus 6 Android Development] cobyman7035:
Is there a 5.0.2 decrypt boot img?

Via my NeXus™ 6 on Tapatalk⁴
[Nexus 6 Android Development] BRKotucs:
There will be one when Google makes the 5.0.2 images available for the Nexus 6.
[Nexus 6 Android Development] djj624:
Anyone do this on a Mac yet? Unfortunately that's all I have.

Nexus Project X
[Nexus 6 Android Development] BRKotucs:
Try this method... Works like a charm.
[Nexus 6 Android Development] garymaurizi:
Encrypt files on this device (uncheck checkbox?)

Anyone know what the "encrypt files on this device" checkbox in the google drive settings does?

Weird right?

If I use this to decrypt do I need to uncheck this setting for drive uploads?
[Nexus 6 Android Development] drawde40599:
No , i actually get less battery in comparison to stock , not alot less but less

Googles trying to get Android into corporate businesses , get some of that apple and blackberry $$$ and by doing things like Full encription ... remember also the amount of users that know or care outside of "xda" is so small googles dont care .... Encription is here to stay IMO
[Nexus 6 Android Development] wooddale:
I see your point most people don't know or care it still should be an option though. We must have some say though why do they make dev editions and or unlockable bootloaders? I guess that's all got to do with $$$ to lol.
[Nexus 6 Android Development] jonwilliams84:
I seem to get noticeably better battery 'stamina' now unencrypted. Previously, was averaging from full to about 20% in a day. Now, averaging full to 55+%, with about the same usage. I have taken these averages over a week of use both encrypted and unencrypted.

Other than that, performance wise it seems the same, maybe knocked a second of the launching of certain apps, but this might be a perceived improvement as opposed to fact.

Either way, this phone is a beast and I am incredibly happy with it compared to my old LG G3 (horrendous) and even my HTC One M8 (a great phone, but boring)

Anyway, there's my 10p worth :)
[Nexus 6 Android Development] Sultan of Speed:
Thanks +jonwilliams84

Exactly what I was looking for. So, real life, no visible extraordinary performance benefits. Battery review was helpful. Hmmm...

Still wishing Google could do 3 things:

1. Tweak the kernel like someone had done earlier to get better performance encrypted.

2. Have an option to decrypt the phone.

3. Making the first 2 options a reality.
[Nexus 6 Android Development] drawde40599:
Quoted wrong guy ;)

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

Your saying your battery got 35% better . Your tests are majorly flawed somewhere

Besides me there are many that have run controlled tests on G+ . Battery went down some or stayed about the same . No one got even close to that much of increase .
[Nexus 6 Android Development] xdatastic:
The modified boot.img worked a treat for me. Big thanks to the OP for this.
[Nexus 6 Android Development] jonwilliams84:
That is your opinion. All I can say in my experience is that battery life has dramatically improved. I was charging everyday, I now do not need to and it easily sustains 2 days of average use.
[Nexus 6 Android Development] drawde40599:
Actually its based off of fact tests and the word of many people , But Hey, if you believe you Got 35% better battery from just decrypting your Device and battery lasts that much longer . Good for you .
[Nexus 6 Android Development] dodgebizkit:
In the settings, there is a feedback option. Let's just send lots of messages saying that we want them to make encryption optional in an update.

Hopefully a couple of thousand emails like that will make them consider it... It could still be enabled by default but disabled in developer options that way only people who know what they are doing will unencrypt, but us who don't want to root and flash (especially

after bricking my old phone beyond recovery booting!) will have the option too.

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

Custom ROM for my house phone? why not?
[Nexus 6 Android Development] Sultan of Speed:
I second that...
[Nexus 6 Android Development] suku_patel_22:
Can you enable double tap to wake in the kernel as well?
[Nexus 6 Android Development] crowbarman:
It's a bit hard to believe that battery performance would go DOWN with encryption disabled. What reason could exist where that would the case? Very strange.
[Nexus 6 Android Development] drawde40599:
Don't no . on or off battery wasn't effect enough to look into . You could actually say it stays the same .

Edit : haven't seen any in quite awhile now but I'll see if I can't find old test results on G+ . Most people go strait to unencrypting without trying stock, so comparisons are rare .
[Nexus 6 Android Development] sledge3n8:
From what I've read it's about phone speed, not battery life. I unencrypted to speed up the overall experience of the phone.
[Nexus 6 Android Development] fethi2:
I know you wrote you dont own the device but,

I am wondering if I fastboot flash the boot img of yours then flash twrp and restore my nandroid backup from usb-otg will it be still encrypted or will it be no force encrypted ? Thank you in-advance.
[Nexus 6 Android Development] GrandMstrBud:
So if I want to do this I have to wipe my data? How much faster is this on booting up? Only thing I noticed on this is slow boot and bad camera. Quadrant score is amazing though
[Nexus 6 Android Development] kajet915:
This is my unencrypted benchmark.
[Nexus 6 Android Development] crowbarman:
Yep, that makes sense. In theory, battery should be slightly improved due to a decrease in required CPU cycles..it may be so small to be measurable. If the Nexus utilized hardware decryption then this thread would be moot. Maybe one day they will enable the Qlogic driver to make it happen.
[Nexus 6 Android Development] GrandMstrBud:
My encrypted benchmark
[Nexus 6 Android Development] ryanallaire:
So i attempted to flash this through flashify, now i can't boot into TWRP and my home and recent apps buttons are gone. Any suggestions??
[Nexus 6 Android Development] drawde40599:
Relfash recovery in Fastboot then follow directions in OP if that don't work pull out factory IMG flash system , recovery and boot . nothing else

---------- Post added at 03:33 PM ---------- Previous post was at 03:32 PM ----------

This looks OC ;)
[Nexus 6 Android Development] ryanallaire:
I was able to reflash the ROM i was using and everything seem ok, my question is how do you flash images with fastboot? I checked around but couldn't find anything...
[Nexus 6 Android Development] drawde40599:
This is the first link that came up with google search . looks pretty complete http://xdaforums.com/showthread.php?t=2277112

---------- Post added at 04:33 PM ---------- Previous post was at 03:52 PM ----------

Yes you have to wipe data . no increase in boot time . I don't know what bad Camera means , this camera is Beautiful , best camera I've ever had on a phone . Better than my old M7-8 , G2&3, S5, and N5 . And of course every device before those . love this Camera !
[Nexus 6 Android Development] GrandMstrBud:
If it doens't in crease boot time I'm satisfied with stock ROM. No idea on the camera just took a couple of pictures and kind of blurry. Stock ROM here also. Just an example here is a picture I took of my Moto X that I have listed on swappa. Is the main reason for unencrypted device to flash custom ROMs?
[Nexus 6 Android Development] drawde40599:
Every picture you take is like that ? If so, something is definitely wrong .

Stock camera app ?

Edit: if you head over to one of the N6 communities on G+ in there pictures section you can see examples of how nice this camera really is .
[Nexus 6 Android Development] GrandMstrBud:
I've only taken a few and yes they are pretty much a lot like that and darker also just not good quality. I haven't done any outdoor pictures yet. Took a few Christmas ones and deleted over half of them and switched over to the iPhone. Yes stock camera app also. Tomorrow I'll see if I can get some outside ones if I think of it. In looking at a lot that I've taken with the Nexus 5 posted on my FB it seems like that one was much better. But back to the main topic and if I take some outside and they look blurry I'll head over the forum you suggested. Here's another random one that I noticed
[Nexus 6 Android Development] kregstrong:
Is there an easier way to decrypt without flashing in fastboot? Haven't done that stuff in a while, might give me trouble
[Nexus 6 Android Development] BRKotucs:
You can use Flashify... Search the thread for more info.
[Nexus 6 Android Development] SS2006:
hi guys. does this actually significantly speed up the phone or increase battery life? I'm considering it but want to know if its worth it
[Nexus 6 Android Development] oak:
I've gone back and forth on this. I've had the phone about 5 weeks and spent half the time encrypted and half not. I've decided I cannot tell the difference. I am now encrypted and will remain that way. Others will likely disagree.
[Nexus 6 Android Development] drawde40599:
Doesn't really do anything to battery , There is a small speed increase you will notice on some apps maybe the launcher . With how easy it is to backup these devices nowadays is it worth trying ? , ya its worth trying .
[Nexus 6 Android Development] SoCmodder:
Jesus, I get like 31k...
[Nexus 6 Android Development] HiGhDRo3o5:
Thats very low. Encrypted stock rom and sensei kernel i was getting 54k
[Nexus 6 Android Development] SoCmodder:
I tried again and got 48k. Stock everything.
[Nexus 6 Android Development] 808phoneaddict:
When I was stock everything, just Rooted and froze/uninstalled some of the google apps, I was getting 51-52k roughly (off of memory and don't totally remember), now that I'm decrypted, and on a custom rom I'm still getting 52k...But it feels much more snappier and smooth...not sure what you got running or why you're so low with 31k
[Nexus 6 Android Development] crowbarman:
If you don't run any storage intensive operations, then you probably won't notice. I bet a Tibu backup takes twice as long encrypted, though.

http://www.anandtech.com/show/8725/encryption-and-storage-performance-in-android-50-lollipop
[Nexus 6 Android Development] AnthonyAldrete:
After about an hour of recovering from my bricked nexus 6 I was able to successfully boot the phone back up and be non encrypted while being non rooted. I ran the same benchmarks as everyone described and was not getting no where near as high scores as people are claiming. My scores were averaging between 130-150. Not sure if I notice a performance increase, to me it seems like just a placebo but I could be wrong. However, I didn't encounter a crash while using the HBO Go app, I was watching game of thrones and the whole phone froze completely about half way through the show. Not sure if that's app related or what , that was the first time that happened to me while owning the nexus 6
[Nexus 6 Android Development] Geko-x:
I have tried this proces using wuug fresh nexut toolkit and has not worked i have a brand new nexus 6 hat was updated to 5.1 .. Can someone tell me if this proces works without problems using the nexus toolkit. if yes how did you do it
[Nexus 6 Android Development] matmar:
Fastboot flash boot xxxx.img.Fastboot format userdata...works for me...
[Nexus 6 Android Development] drawde40599:
This is a Nexus don't use ToolKits ....

---------- Post added at 06:23 PM ---------- Previous post was at 06:19 PM ----------

Those issues were not caused by decrypting . Bricked means your device is a paperweight there is no return from bricked .
[Nexus 6 Android Development] knightsh:
I updated to LRX22C, then unlocked bootloader. But can't flash the file I downloaded. Keeps saying it can't open the file. Tried renaming the file to boot_noforceencrypt.img which didn't work. Next I placed the file inside the platform-tools folder and got the same result. What am I overlooking here? I'm typing fastboot flash boot boot_noforceencrypt.img after I renamed it.
[Nexus 6 Android Development] highwaybandit:
If you renamed it take the IMG off the end or type .IMG.IMG twice
[Nexus 6 Android Development] kajet915:
I can conform that this works. The toolkit works like a charm. Just follow it to the tee. That's what I did and my bench marks are what I posted earlier.
[Nexus 6 Android Development] mark.m.moran:
Is this the easiest way to do it mate?