yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] 12MaNy:
Tried flashing modified boot 5 times and I still get prompted for decrypt password in TWRP
[Nexus 6P General] Swamphound:
Did you format data as described by OP just above?
[Nexus 6P General] nextelbuddy:
I dont understand I have copied the new BOOT.IMG form the first post for MHC19l and have flashed it via TWRP, once that was done I then went into WIPE and chose ADVANCED and then chose DATA only. then after that I did a factory reset and then booted into OS. I went through the setup wizard and it says ENCRYPTED still. i have done this 5 times. I dont know what I am doing wrong.

I am on the latest MHC19l Factory image and did a factory reset first.. then installed TWRP then flashed NoForceEncrypt Boot.IMG from first post of this thread and then wiped DATA and then did another factory reset and the booted into OS. still encrypted.

Is there something wrong with that boot.img? like maybe the Force Encrypt is still marked?
[Nexus 6P General] force70:
C'mon man at least try and search for the answer to this instead of just typing out a question that's the lazy way. This has been asked and answered more times than I can count honestly and the info is easily found here.

your doing it wrong... nothing wrong with the kernel only the user.

In short you have to format data in twrp, which will wipe your device (def back up first!) and decrypt if your on the latest twrp. The kernel only doesn't force encryption, once your decrypted it will not decrypt on its own.

sent from my Nexus 6P, Note 5, Nexus 6 or Note 4
[Nexus 6P General] nextelbuddy:
first of all i did search. i read through the first 3 pages and then the final 6 or 7 pages of this thread. Dont get an attitude wit me because you are annoyed that someone asked a question that caused you to have to type something.

if you are annoyed then pass and dont answer simple. done.

my issue is fixed and this is what the confusion was about..

in TWRP when you go to WIPE I did NOT see the button that says WIPE DATA...instead I was choosing ADVANCED> and marking the DATA box and then swiping the wipe action at the bottom.

so you have 2 wipe options it seems, one is a wipe DATA button and then another Wipe data option with in advanced.

are they the same? are they different? I dont know, maybe you do? when I searched and read, the final few pages DID discuss choosing wiping data but no one said WHICH one so how was I supposed to know? thus why I asked and I got an answer albeit a condescending one.

thanks?
[Nexus 6P General] jesssiii:
Under advanced, you're wiping data. The other option is to format your data partition, which erases your SD partition. Not something you want to do by accident, lol. Probably that's why it's not so easy to do and comes with the warning. Glad you figured it out.
[Nexus 6P General] nextelbuddy:
thank you for taking the time to explain that, i wont make the same mistake in the future.
[Nexus 6P General] Tigerstown:
Nothing is wrong with my boot.img. why would I post something saying it's decrypted but not decrypt it? I test and test again before posting anything.
[Nexus 6P General] nextelbuddy:
not pointing fingers saying you did it on purpose. When i read the last 6 or 7 so pages.. it was mostly people trying to use the N decrypted image and I had not seen anyone saying positive or negative things about the MHC19l decrypted image.

it was just a question to ask so that I didn't feel like I was going insane because I thought I was doing things correct. As you can see from the prior conversation I was doing something wrong so thats that. business as usual now and sorry for the confusion.

I work with 2 Senior dev engineers and you know how many times they tell me "i tested all of this so you dont have to worry about it" and then later its still broken because something didnt sync with their GIT sever or they didnt check in some code or just forgot.. all normal harmless mistakes.

that is why I asked a question of the img itself.
[Nexus 6P General] Tigerstown:
No worries all good. :good:
[Nexus 6P General] razrlover:
Group hug,;)
[Nexus 6P General] gOOglEy03:
I just updated using V. Worked like a charm! Thank you! :good::D
[Nexus 6P General] Tigerstown:
new Android N build npc56w boot.img decrypted Dm checks removed as been posted to OP
[Nexus 6P General] Tigerstown:
this new N build so far i'm 10 mins it just smooth as all
[Nexus 6P General] toknitup420:
Running smooth as hell.
[Nexus 6P General] holla420:
Oh yea bruh smooth all over for me as well
[Nexus 6P General] sameerm02:
I have used 56w boot.img while flashing, then flashed twrp3.0.0.0, allow modification, and flashed SuperSU-v2.68-Android-N.zip through twrp and done my N is now rooted, adaway is working properly and other root apps also working

Thanks :good:
[Nexus 6P General] DJBhardwaj:
[MENTION=5317224]Tigerstown[/MENTION]

Disable Forced Encryption and Decrypt Nexus 6P

You can link it up in the OP and share it elsewhere, if you want.
[Nexus 6P General] Lafenear:
I don't get it.

After installing the latest N preview(W), TWRP 3.1 won't boot pass the start screen, even though I flashed the modified boot beforehand. What is the procedure here?
[Nexus 6P General] toknitup420:
Are you decrypted?
[Nexus 6P General] Lafenear:
Nope, is that required in order for it to work?

I'd rather not decrypt it tbh.
[Nexus 6P General] toknitup420:
From what I've seen. People that are encrypted haven't been able to get twrp working on N. I'm not sure if there's some workaround. Have you tried a different version of twrp. Maybe try 3.0.0.0
[Nexus 6P General] DJBhardwaj:
TWRP could be flashed, but it won't stick because your filesystem is encrypted, by default. For it to work, you will first need to disable forced encryption, and then decrypt the device. Once you have, you can easily install TWRP, followed by root/other mods.

Here is my own tutorial for this: Disable Forced-Encryption and Decrypt Nexus 6P

Give a thumbs up to Tigerstown for his work.
[Nexus 6P General] chispas117:
OK for me to do this should I be on stock MM and with no root when I do this tutorial ? Just want to be clear thanks man
[Nexus 6P General] toknitup420:
All you need to do is flash the boot image and format data. You can be rooted. Formatting data won't touch system.
[Nexus 6P General] chispas117:
Wow thanks I used your method and now everything is working perfect thanks man
[Nexus 6P General] DJBhardwaj:
Pleasure helping :highfive:
[Nexus 6P General] kydkupa:
So I'm on Android N preview build NPC56P, non-encrypted, and TWRP recovery. When I get the OTA for the build NPC56W, it downloads, reboots to install then I end up in TWRP. I have to reboot system in TWRP then it boots back into the OS. However, the update doesn't install because I get the OTA about 30min later to download again. I'm guessing this is because I'm not using the stock recovery. Do I have to flash stock recovery through fastboot in order to get the OTA to work? If I do, will I loose root that I flashed through TWRP?
[Nexus 6P General] DJBhardwaj:
Natively, you won't be able to install OTA update, if you're rooted or have TWRP. But, if you have the OTA zip, you can may be give a shot to Flashfire app (from the famous Chainfire). If nothing works, go back completely stock and install the OTA. I however prefer flashing the complete factory image.
[Nexus 6P General] kydkupa:
And flashing the image wipes the device right? If I was to flash the stock recovery and remove root, would that wipe the device?
[Nexus 6P General] force70:
You can download the build and extract from it

System.img

Boot.img

Vendor.img

Flash those in twrp after wiping, I went from the P to W N previews without even wiping data and no issues,

If your decrypted and want to stay that way you need to flash this modded boot.img or a custom kernel to stay that way....you have twrp so must be decrypted.

Beware if you encrypt it will wipe your device.

I flashed the above then SU 2.70 for root, twrp will remain intact as you don't flash the recovery.img

sent from my Nexus 6P, Note 5, Nexus 6 or Note 4
[Nexus 6P General] kydkupa:
Awesome thank you. Do I just wipe Cache and Dalvik in TWRP?
[Nexus 6P General] force70:
Cache, dalvik and system.

To do a real "clean" install you would wipe data also.. But since I was going from one N version to another I was lazy and dirty flashed without wiping data lol.

sent from my Nexus 6P, Note 5, Nexus 6 or Note 4
[Nexus 6P General] caifan:
OK, I'm a little confused. So if I'm on MHC19I, encrypted, rooted with TWRP 3.0.0.1, if I flash W (boot, system, and vendor), my device won't boot into TWRP unless I wipe data? Is this correct? I just don't want to wipe userdata if I don't need to.

Edit: And attempt to flash SU2.68 or SU2.70 after flashing images.
[Nexus 6P General] jawonder:
So 52W is the latest N Build ?.
[Nexus 6P General] silvertrain78:
Best practice going from a M build to N would be to wipe userdata. Between N builds it's OK to leave userdata alone (and dirty flash relevant partitions only). Before you proceed, be sure to read and understand the post (a few back) which links to an article detailing how to decrypt N Preview, otherwise you'll hit walls when trying to use TWRP with N
[Nexus 6P General] DJBhardwaj:
Yes, and NPC56W actually. :good:
[Nexus 6P General] imatts:
I'm getting stuck on the TWRP (3.0.0.1) splash screen after flashing boot.img, twrp, and then rebooting normal / then booting recovery. Im on the Android N - NPC56w build, and have tried flashing boot.img before, and after (two separate times).

What am I doing wrong?
[Nexus 6P General] holla420:
Did u use to modified boot.IMG for the w build?
[Nexus 6P General] imatts:
YES. I tried flashing NPC56W's modified boot.img before, and after flashing twrp 3.0.0.1, and both times, twrp is stuck at splash screen.
[Nexus 6P General] holla420:
Hmm...
[Nexus 6P General] imatts:
Lol yea..
[Nexus 6P General] holla420:
This is quoted by the OP give this a shot.. Take the N boot.IMG I have posted and reflash the factory imgs and using my boot.IMG instead of stock you can skip user data and recovery. Once done boot to OS then boot to to twrp. Once in twrp format data using twrp to do so that will decrypt your device as my boot.img will allow this. Once your decrypted boot to OS go thru setup wizard then you can flash SuperSU and you will be all good. Flash SuperSU 2.70 zip .
[Nexus 6P General] imatts:
GOT IT.. I'm not sure if I was supposed to do this, but I figured since all the fuss is about decryption, so I scrolled down in Heisenberg's guide and followed the decryption process.

(this is assuming all .img's are in the same adb folder)

- fastboot flash mboot.img (where mboot is your modified boot img -- not sure if flashing regular boot makes any difference)

- fastboot flash recovery twrp.img (of course, being 3.0.0.1)

- fastboot format userdata userdata.img

Now onto rooting!
[Nexus 6P General] holla420:
Nice glad to hear you got her going now. Enjoy rooting. [emoji41]
[Nexus 6P General] Tigerstown:
Is there a real reason you don't want to decrypt? Just curious is all. Are you still having issues?
[Nexus 6P General] poor2rican1:
hey ive just followed this step you provided and still hanging at recovery. ive tried everything so far and i just cant get twrp recovery to boot. I was already rooted on stock and twrp working just fine. tried flashing thru twrp system and vendor and fastbooted the boot.img and still no dice. Any suggestions?
[Nexus 6P General] poor2rican1:
Edit* I actually got this going by flashing twrp 3.0 and not the latest one. Idk if that helps anyone
[Nexus 6P General] Tigerstown:
I'm on the latest twrp no issues. But glad to hear you got it. Can't hurt to try that twrp tho if anyone else is having problems.
[Nexus 6P General] speedyjay:
Won't let me flash the boot.img for some reason....keep getting permission denied when using fastboot command: fastboot flash image boot.img

Can someone help at all?
[Nexus 6P General] Tigerstown:
Wrong cmd.

Fastboot flash boot boot.img

That will get it done for you
[Nexus 6P General] Tigerstown:
OP has been updated with new build MCH19q

Decrypted, edited for system root
[Nexus 6P General] jaythenut:
Heads up new twrp working fine on n
[Nexus 6P General] microcox:
Hey Guys,

Getting the same problem some people already had, but no common solution was proposed so I'm not sure what to do... Maybe an instruction is missing either here in OP or in Heisenberg's guide that is obvious to experienced flashers but not noobs ?

Anyway, trying to flash twrp (in order to flash a kernel) on my N6P, Android N, NPC56W.

I'm flashing the modified boot.img provided here, rebooting bootloader, flashing twrp 3.0.2.0, rebooting bootloader, booting to twrp --> getting stuck on twrp splash screen.

Tried other recent version of twrp, same deal.

Tried to reflash stock N boot, bootloader and recovery to be safe: can't boot into stock recovery anymore (red triangle).

I feel I'm missing something obvious but can't point it out. Any ideas ?

Thanks a lot, cheers !
[Nexus 6P General] jesssiii:
[MENTION=2620121]microcox[/MENTION], did you try using twrp 3.0.0?
[Nexus 6P General] microcox:
[MENTION=2861395]jesssiii[/MENTION] Yes I did try that but it didn't help. Thanks anyway :)

Turns out it may have something to do with forced encryption, as [MENTION=3998397]DJBhardwaj[/MENTION] pointed out by MP, with ?* solution to try (thanks again).

To others that have the same problem, have a look at androidorigins blog, the post about forced encryption. Maybe it Will help you.
[Nexus 6P General] Techno Peter:
This might seem like a dumb question, but how to do I do this? I flashed the boot image, then SuperSU 1.70. It still says systemless root in the SuperSU app and the other way around doesnt work too for me.
[Nexus 6P General] DJBhardwaj:
What are you trying to do, please elaborate?
[Nexus 6P General] Techno Peter:
Im trying to achieve regular/system root, as the title of this thread says.
[Nexus 6P General] DJBhardwaj:
Why so? Is systemless root causing any issues?
[Nexus 6P General] Techno Peter:
Yeah, I dont know if its the fault of systemless root but Im not able to edit or remove files in some directorys.
[Nexus 6P General] DJBhardwaj:
Not the fault of the root. It must be the file manager app that you are using, and as far as I know most of the Root explorer apps are failing.
[Nexus 6P General] Techno Peter:
Do you know any currently working one? I tried Root Explorer and Solid Explorer, but they both had problems on N.
[Nexus 6P General] DJBhardwaj:
Not that I know of, I have only tried ES File Explorer, and at that particular time, it didn't work.

You might want to have a look at the following thread, may be you can find one. If not, you can ask their itself, other users with experience in this context may answer well.

Thread: Android N: What doesn't work?
[Nexus 6P General] bouchigo:
Root Browser by JRummy works...there are others that also work.
[Nexus 6P General] steviemch:
New factory img available guys.

https://developer.android.com/preview/download.html
[Nexus 6P General] jaythenut:
You beat me to it look
[Nexus 6P General] elreydenj:
Nice, patiently awaiting the decrypted boot.img for new release!
[Nexus 6P General] betovanbuuren:
+1
[Nexus 6P General] DJBhardwaj:
I had a word with Tigerstown, and he would soon be getting onto it. :cool: :highfive:
[Nexus 6P General] furrypotato:
Anyone tried fed patcher ?

http://xdaforums.com/android/software-hacking/fix-fed-patcher-v8-forceencrypt-disable-t3234422

You flash it in twrp after flashing encrypted kernel and it decrypts it (/disables forced encryption flag).

Might be an option ?
[Nexus 6P General] Hogyoku:
I flashed the stock boot image with latest super su and the phone remained unencrypted ! on the latest n preview

\added screenshots
[Nexus 6P General] nadiros:
Nice find bud. I'll try it out....can't wait to get off work and flash this badboy

What! ? That's crazy talk!
[Nexus 6P General] Hogyoku:
Clean flash in twrp hahah was pretty surprised by it as well :good:
[Nexus 6P General] eqbirvin:
you used TWRP to flash the separate img files of the preview 2, right? instead of fastboot?

---------- Post added at 04:02 PM ---------- Previous post was at 04:00 PM ----------

also, did you erase data partition?
[Nexus 6P General] Hogyoku:
Step by step

Full wipe + system wipe in twrp

flashed the boot - system - vendor img

rebooted back to recovery to flash supersu 2.71

reboot to system = profit

( I did make a full sdcard backup to be sure )
[Nexus 6P General] DJBhardwaj:
Didn't work for me. Anyone else gave it a try?
[Nexus 6P General] furrypotato:
I think it worked for me.

Any way to check ?

Edit - as far as I can see, it's the same kernel in this ota as last one. It has same build date of march 30th . so I'd suggest you just use the w update boot.IMG from here
[Nexus 6P General] DJBhardwaj:
Go to Settings > Security, and see if Encrypt phone section shows "Encrypted". If it does, that it didn't work.

NPC56W boot.img works on Preview 2 for you?

EDIT: The build date, kernel version will stay the same even if it is decrypted.
[Nexus 6P General] furrypotato:
It's offering to let me encrypt phone so I'm not encrypted.

I used downloaded the ota zip , extracted boot.IMG .

Used flash fire app to install ota (it restored original kernel and recovery then).

Then in twrp I flashed the new boot.IMG , and then flashed fed patcher Then supersu and rebooted.

All seems fine, works great, whole thing took 10 mins max .

Oh, and very slick now.
[Nexus 6P General] DJBhardwaj:
Your device was decrypted in the previous build?
[Nexus 6P General] furrypotato:
Yes.
[Nexus 6P General] DJBhardwaj:
I did a factory image flash, and it doesn't seem to work for me, unfortunately.

---------- Post added at 03:43 AM ---------- Previous post was at 03:25 AM ----------

Okay guys, the decrypted boot.img from [MENTION=5317224]Tigerstown[/MENTION] is here.

Here is the link: https://drive.google.com/file/d/0B4yuQy7Zn1WSVVJSbWpGaU1sTlU/view

Credits go to him, and him only. Don't bother pressing my Thanks button, only he deserves it. :highfive:
[Nexus 6P General] sn0warmy:
Did he make this decrypted boot off the image for NPC91K? Or is it the same one he has listed in the OP for NPC56W?

I'd like to get official confirmation from him before going through the headache of flashing everything.
[Nexus 6P General] DJBhardwaj:
NPC91K. Don't worry, just flash. I already did, and it's running pretty well.
[Nexus 6P General] sn0warmy:
I mean, I get that it will work with the new build. But Google very likely made some changes tot he NPC91K kernel. So it would be nice to get confirmation that it is the newest kernel. I don't doubt you man. your thanks/posts meter definitely makes you credible. But I'll just wait for official word from Tigerstown.
[Nexus 6P General] DJBhardwaj:
I understand the skepticism. Not to worry my friend. Actually he just got back from work, and the first thing he did was this. Taking rest I assume.

He will be posting the link in the OP soon.
[Nexus 6P General] sn0warmy:
Welp, I believe you. :laugh: :highfive:
[Nexus 6P General] aSquard:
Awesome - fastbooting now!

Edit: I still have the OG folder icons though - Was kinda hoping to see how I liked the new folder icons instead, oh well
[Nexus 6P General] BakedTator:
Anyone have root? And can anyone boot into twrp...I stick at the twrp splash screen...3.0.2.0
[Nexus 6P General] mdias917:
Im getting the same thing
[Nexus 6P General] holla420:
Im rooted but not using 3.0.2. Try using 3.0.1
[Nexus 6P General] BakedTator:
What did you use to get system write permissions?

Adaway won't write to the system for me
[Nexus 6P General] bmg1001:
My TWRP was stuck, so I booted into N, added my pattern lock, then tried again. Now it gets to the decryption part, but it won't decrypt, so I wiped and was finally able to install the boot and root.
[Nexus 6P General] furrypotato:
Are you already decrypted, as usually stuck on splash screen on N preview means you are encrypted .
[Nexus 6P General] Techno Peter:
Seems like the new modified boot image for N preview 2 broke my Camera. Any fix for this yet?
[Nexus 6P General] DJBhardwaj:
Everything is still smooth here. Using the modified boot.img on Preview 2.
[Nexus 6P General] nadiros:
Did you flash a custom kernel over top?
[Nexus 6P General] DJBhardwaj:
No I didn't. And I don't think I would do that either (right now), until a custom kernel is released with sources merged with P2.
[Nexus 6P General] Tigerstown:
You should have new folder on preview 2 I absolutely hate them

I threw Trebuchet launcher on N right away. Lol
[Nexus 6P General] Tigerstown:
It is definitely the latest boot.IMG. I was on the go and just couldn't get to it. I'm adding link to Op now. Sorry for any confusion that was the only way I could get it up for people right away
[Nexus 6P General] Tigerstown:
Op updated with latest N boot.IMG
[Nexus 6P General] Tigerstown:
Cameras working good here. I would try again. Maybe try to do a factory reset in recovery and see if camera works. I have 3 6P in my house. All on N and all our cameras work.
[Nexus 6P General] MPAI:
I booted in TWRP and it is stuck on Trying Decryption ? How long does it take?
[Nexus 6P General] DJBhardwaj:
TWRP released v3.0.2-0 to fix the issues with decrypting in-recovery. Try that, or even if that doesn't work, please opt for v3.0.0-0.
[Nexus 6P General] Tigerstown:
So your in twrp and you hit the format data and your stuck?
[Nexus 6P General] winxuser:
flashed new N preview 2 decrypted boot.img and twrp 3.0.2.0 and i still cant enter recovery, just stays on teamwin logo
[Nexus 6P General] DJBhardwaj:
Try TWRP v3.0.0-0 or v3.0.0-1, and see if it boots into recovery then.
[Nexus 6P General] winxuser:
Got it working, I forgot to format userdata
[Nexus 6P General] DJBhardwaj:
Good to know that you got it worked out.

IMO, userdata formatting should be considered as the last option. It makes a lot of trouble backing up and restoring (not for me or you, but for many others out there).

It seems like the problem is with TWRP relating to encrypted devices. In earlier versions (v3.0.0-0), even if encryption was enabled, TWRP would still boot properly. But if the same happens on 3.0.2, it would just be stuck on TWRP logo, until you decrypt or format userdata. However, if your parition still gets encrypted, after the first boot, TWRP will be stuck, yet again.
[Nexus 6P General] sjandroiddeveloper:
V 3.0.0-0 also had problems decrypting, it was not able to decrypt an encrypted MHC19I build, that's why a revision was made 3.0.0-1 (patch was submitted by romracer I think)
[Nexus 6P General] DJBhardwaj:
Thank you for pointing it out correctly. What do you think, would v3.0.0-1 be more reliable than 3.0.2-0, for now?
[Nexus 6P General] sjandroiddeveloper:
Probably 3.0.2-0 is better than 3.0.0-1 as some people upgrading to latest build (MHC19Q) had problems with twrp as it was asking for a decryption pin even when they didn't set it and upgrading to latest one solved the issue

Not sure when it Comes to N preview 2 though, haven't tried it ( too much bugs plus N6P is my daily driver)
[Nexus 6P General] winxuser:
I never found any issues with preview 2, I found it better than preview 1.. But maybe because I only use it for SMS, facebook, Snapchat and Instagram hahah
[Nexus 6P General] jesssiii:
What trouble does it make backing up and restoring an un-encrypted device? I'm asking because I'm un-encrypted and have been making nandroids, but haven't actually tried to restore one thus far.

I'm on the latest PureNexus, not N.

Sent from my Nexus 6P
[Nexus 6P General] DJBhardwaj:
Backing up and restoring on v3.0.2-0 works perfect for me. I restored my PN backup yesterday night, to use it as the secondary ROM. The security settings stood intact.
[Nexus 6P General] jsminnis:
I am trying to get regular root on android N preview 2, I thought this boot would allow me to do so but the su zip always chooses systmeless mode
[Nexus 6P General] ps000000:
I got Preview 2 work with...:laugh::laugh::laugh:

Kylo kernel

KCal

Viper4Android

(some root require apps)

But no luck for DPi change , disable Navbar.
[Nexus 6P General] Hogyoku:
If i may aks how did you manage to install viper ? everytime i try it gives me a i/o error
[Nexus 6P General] BakedTator:
Does the same thing to me