yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] jubey97:
I'm quite a bit lost on the step of flashing a custom ROM. I was able to install the latest twrp, SU, and make a recovery file. The step on flashing a rom is where i'm stuck. I flashed a custom ROM and i get stuck in a bootloop. Was able to recover to the rooted, unlocked bootloader stock ROM. My build# is MDA89d. I see that flashing to a vendor image is necessary but I can't find vendor image with a build#MDA89D. Could someone tell me what I'm doing wrong? Thanks!
[Nexus 6P General] nathanchance:
What ROM are you trying to flash? You will need to flash the vendor image to match the build number of the ROM you are flashing. Almost every single one has been updated to the MHC19I vendor image at this point. Basically flash that vendor, do your wipes, then flash the ROM and GApps, it should boot up no problem.
[Nexus 6P General] Einwod:
Why are you flashing such an old version? Why not flash the up to date version? The latest version is MHC19I. You'll find it available in the first post here.
[Nexus 6P General] jubey97:
I downloaded the latest vendor image. I transfered to the root folder of the nexus 6p, but it doesn't show in recovery twrp. I'm basically stuck on step 7. Thanks for the help!
[Nexus 6P General] nathanchance:
Did you select the images button?
[Nexus 6P General] erstein:
Does this work on rooted phone?
[Nexus 6P General] nathanchance:
No, you should read the pre-requisites. Only modification you are allowed to have is an unlocked bootloader. Everything else must be completely stock and unmodified.
[Nexus 6P General] Heisenberg:
There are prerequisites listed, right at the beginning of the section.
[Nexus 6P General] erstein:
Was a bit to quick there. Discovered it just after i posted. For a little while i had a hope...
[Nexus 6P General] babuja:
Sorry guys, coming from a rooted HTC M8 and need some help.

I see that along with Rom is necessary to flash proper vendor image.

About what is this vendor image i already have a clue

https://plus.google.com/+JeanBaptisteQueru/posts/akHWypRNEn3

...but wich vendor image should be flashed with the Rom? How to identify the correct image?
[Nexus 6P General] Heisenberg:
You need to find out what build the ROM you want to flash is based on, and then get the correct vendor image for that build.
[Nexus 6P General] enkrypt3d:
I'm on TWRP 3.0.1-0 and it still asks for a password to decrypt the phone even though there is no password set on the OS... what am I missing? I've unlocked the bootloader and can't do anything in TWRP....
[Nexus 6P General] nathanchance:
If your phone is still encrypted (in Settings > Security), you still have a password regardless of your lockscreen security; it's just "default_password". That changes when you choose the setting to require your security before starting the phone. People have reported that TWRP is having problems with decrypting, flashing back to 3.0.0-1 should fix it up.
[Nexus 6P General] enkrypt3d:
That password doesn't work...

and

I still get the warnings about the system not able to decrypt the phone before TWRP loads...

:(
[Nexus 6P General] nathanchance:
Even after flashing back to 3.0.0-1? What's your build number?
[Nexus 6P General] enkrypt3d:
yep I'm on the latest MHC19I

---------- Post added at 05:16 AM ---------- Previous post was at 05:06 AM ----------

Where can I find the boot image to disable the on boot encryption?

---------- Post added at 05:25 AM ---------- Previous post was at 05:16 AM ----------

http://xdaforums.com/nexus-6p/gener...ables-data-t3333117/post65761293#post65761293

I see this but where do I get all of these files for MHC19I?
[Nexus 6P General] Heisenberg:
http://xdaforums.com/nexus-6p/general/stock-modified-boot-img-regular-root-t3306684
[Nexus 6P General] enkrypt3d:
yep that's the one that i used for MHC...... the top link for the bootloader. Does it disable decryption? Maybe I missed something.
[Nexus 6P General] Heisenberg:
The top link for the bootloader? There is no bootloader listed in the link I provided. It's a boot.img (kernel), it doesn't disable encryption itself, it disables the forcing of encryption at a kernel kernel. To fully decrypt you'd need to format userdata (which would wipe everything) and also have that boot.img flashed before booting.

The files listed in the post you linked to are just the factory images. I have links to them all in my index (see my signature).

Anyway, to clear things up, are you now back on TWRP 3.0.0-1 as opposed to 3.0.1-0? And what exactly are you trying to achieve?
[Nexus 6P General] jesssiii:
Kernels don't disable encryption. They can only not force encryption. You must format userdata to unencrypt - this wipes your SD card so backup.

---------- Post added at 22:01 ---------- Previous post was at 21:59 ----------

Oops, you said disable DECRYPTION. I misread.
[Nexus 6P General] Heisenberg:
Oops, I made the same mistake.
[Nexus 6P General] enkrypt3d:
Sorry not bootloader I meant the boot image and disable encryption not disable decryption *DERP*

Just trying to root and put on a custom rom...

Most of the guides I've seen have you flash the boot.img, then twrp, then boot into recovery and flash superSU within recovery but with no system installed where does this SuperSU get flashed to? This is a bit different than I'm used to..

Once the SuperSU is flashed (after wiping the system?) which system files do you use? Or can you flash directly to any ROM you want? This process is a bit different than what I've done on samsung phones of course. Thanks for your help!
[Nexus 6P General] Heisenberg:
Ok, you don't need root to install a custom ROM, so there's no need to flash SuperSU before flashing your ROM. The guides you're talking about seem to be describing how to root the stock ROM, but even that information is outdated as flashing a modified boot.img isn't necessary anymore. If you want to flash a ROM you only need to follow the instructions in section 7 of this guide. Do you have access to TWRP again now? And can you please answer my question about which version of TWRP is currently installed on your device?
[Nexus 6P General] enkrypt3d:
I had the latest version of TWRP (tried both 3.0.1-0 and 3.0.0-1... both asked me for the password to decrypt the phone.

I've reverted to stock for now so I can get on with my work week since it's my primary phone... Once I have the process down I'll try again.

I'll try section 7 tomorrow thanks guys!
[Nexus 6P General] Heisenberg:
No worries. Have you actually set a password/PIN in Android? And have you set the phone to rewrite a password before it boots up?
[Nexus 6P General] DJBhardwaj:
Okay. If your device doesn't have a Password/PIN/Pattern set, the below is what you will need to do. Keep in mind that the process to disable forced-encryption, and decrypting the storage, will wipe your complete internal storage. So back it up first.

Disable automatic encryption by flashing a kernel (boot.img) that has dm-verity disabled. If you're running on the latest stock (MHC19I), you get it from this thread: http://xdaforums.com/nexus-6p/general/stock-modified-boot-img-regular-root-t3306684

Decryption could be done by following section #3 of this thread.

Once that is done, flash the TWRP recovery, and you will not be greeted by any password prompts.
[Nexus 6P General] spuri78:
Quick question - If I'm already on a rom and decide to install another rom, part of the advanced wipe is Internal cache. If I select it, will it get rid of root/recovery? I have everything backed and all.
[Nexus 6P General] Heisenberg:
There is no internal cache option in advanced wipe, there's an internal storage option, which is your virtual sd card (or userdata partition). So, if what you meant was internal storage, no, wiping it will not:

A) Remove your recovery because your recovery is not stored on the userdata portion of the storage.

B) Remove root because root is not stored there either. But, you lose root anyway because you must wipe properly (system, data, cache, dalvik cache) before flashing a new ROM. Root is stored in /system, so every time you change ROMs you lose root access temporarily until you flash the new ROM which has SuperSU built in.

Is there any reason in particular you want to wipe the internal storage? It's completely unnecessary.
[Nexus 6P General] spuri78:
Sorry, I meant internal storage. Again, thanks for your prompt response.
[Nexus 6P General] Heisenberg:
Any time.
[Nexus 6P General] queengab:
Install ota on rooted 6p with wugfresh after MMB29P

Hi,

i tried to read all this thread but it'svery long. I buyed a nexus 6p one week ago and i rooted it after 3 days with wugresh NRT software (twrp). I forgot to update to the latest release and now i have the MMB29P.

I'm trying to understand which guides can i follow to only updates ota or if there is a way to have again the ota updates automatically also with rooted device.

i understand i have to do manual passeges from one zip to another:

MMB29P --> MMB29Q

MMB29Q --> MHC19I

But how? I wouldn't flash all the images to do this. Can i do this with adbsideload? Can you suggest me off the record: keep my installtion or install a custom rom? I love google updates and i'm curious to try Android N on my device, so which could be the best solution?

Bye

Gabriele
[Nexus 6P General] force70:
So you didn't read section 9 in the OP? Have a look:thumbup:

Also check FAQ in post 3

Once your rooted there is no way to receive OTAs but using fastboot once set up is quite simple s d very quick.

The toolkits can be attractive for ease of use but I recommend using the info in this thread and stay away from the kits.

sent from my Nexus 6P, Note 5, Nexus 6 or Note 4
[Nexus 6P General] jesssiii:
[MENTION=5916605]queengab[/MENTION], you should not mess with the N preview at this time, you don't know the basics yet. The first three posts in this thread are very clear and extensive, I'd study them. Once you get adb/fastboot set up on your computer and follow the steps, it becomes quite clear and simple.
[Nexus 6P General] ohlin5:
EDITED....nevermind, think I found my answer in the boot.img thread :) Thanks!
[Nexus 6P General] queengab:
Thanks, Force70 and Jessiiii... Yes i had a google nexus before the 6p and i just used NRT beacuse i was lazy :)

So now can you suggest to me? I 'll read the 3 steps of the guide and the point 9. But in the meantime i have to reurn to stock and unroot device with wugfresh???

Thanks to all!
[Nexus 6P General] force70:
No need to use nrt to go back to stock, just fastboot as directed in section 9 and all good!

You will need to flash twrp and root again once you have finished.

I would backup your internal storage also just in case.

Please read and re read everything before you start, better safe than sorry.

sent from my Nexus 6P, Note 5, Nexus 6 or Note 4
[Nexus 6P General] enkrypt3d:
At first I did and ran into this issue. So I reflashed the factory rom and then left it with no pin or security pattern and still had the same issue...
[Nexus 6P General] AchillesTheGod:
This is off topic but I can't find a answer anywhere

My does my Nexus 5 screen feel nicer than my Nexus 6P

And the Nexus 5 screen the screen gets darker when screen is off

The Nexus 5 screen looks more premium

The Nexus 5 it's hard to tell that the bezels even exist

---------- Post added at 05:23 PM ---------- Previous post was at 05:23 PM ----------

This is off topic but I can't find a answer anywhere

My does my Nexus 5 screen feel nicer than my Nexus 6P

And the Nexus 5 screen the screen gets darker when screen is off

The Nexus 5 screen looks more premium

The Nexus 5 it's hard to tell that the bezels even exist
[Nexus 6P General] DJBhardwaj:
It's because of the display type. The N5 has a true HD IPS LCD display, contrary to that of the 6P, with the AMOLED. I have always felt the LCD display to be better apt for colors and saturations. However, you can always make color display modification to enhance your experience.

EDIT: AndroidAuthority has a nice write-up, diffrentiating between the two screen technologies: http://www.androidauthority.com/amoled-vs-lcd-differences-572859/
[Nexus 6P General] AchillesTheGod:
Can you you please provide a guide on changing the color display. I would use Kernal audiutor for this correct?
[Nexus 6P General] DJBhardwaj:
You can use Kernel Adiutor for most custom kernels, or you can use their native companion apps too. Like the EX Kernel Manager for ElementalX, and franco.kernel updater for franco's kernel.

Most custom kernels do have color profile options. In Kernel Adiutor, you will have to navigate to the 'Screen' tab, and tweak the values.

---------- Post added at 10:36 PM ---------- Previous post was at 10:35 PM ----------

Here is good thread compiling several color profiles from other users: http://xdaforums.com/nexus-6p/themes-apps/color-control-profiles-t3251964
[Nexus 6P General] srqrob:
Presently running PureNexus 01/09 build and bootloader 2.45 and radio 2.50 and EX 1.05. Looking to dirty update PN when Beanstown issues a new build in a day or two but I'd like to flash new radio and bootloader, both of which are already out. Are radio and bootloader backward compatible, i.e., is is OK to do those updates now? Will I lose any data with bootloader update, guessing no. I guess both bootloader and radio can now be updated with my TWRP 3.0.0-1. Do you still recommend fastboot over TWRP?
[Nexus 6P General] nathanchance:
Yes, bootloader and radio are backwards compatible. No data will be lost but do make sure you have an EFS backup as it is possible (though extremely unlikely) your IMEI number gets corrupted. No, radio and bootloader cannot be flashed via TWRP, they must be done via fastboot.
[Nexus 6P General] srqrob:
Thanks [MENTION=6842057]nathanchance[/MENTION]. My EFS backup is from 11/22 when I first got my 6p. Does that need to be updated or are they good forever for this phone?
[Nexus 6P General] nathanchance:
It should be forever good as far as I am aware but it never hurts to run another one.
[Nexus 6P General] Heisenberg:
This is right, no need to update.
[Nexus 6P General] mobileman88:
New build MHC19Q has dropped.

https://developers.google.com/android/nexus/images#angler
[Nexus 6P General] zer0se7en:
Yep. Almost done downloading.
[Nexus 6P General] mobileman88:
Updated to it. Reflashed supersu and xposed81. All working fine so far.
[Nexus 6P General] Prattham:
Can anyone tell what's the size for the latest img files?

Thank you
[Nexus 6P General] spuri78:
Another question. I have flashed the latest build MHC19Q. UB and rooted. Now, if I want to flash PN (which is based on the previous build), will I experience any issues? or should I just wait until PN is updated to the latest build? thanks
[Nexus 6P General] Heisenberg:
You shouldn't have any issues, you'll just need to make sure you flash the previous vendor to suit the ROM.
[Nexus 6P General] Heisenberg:
From memory they're about 1.1gb I think.
[Nexus 6P General] sid.parmar:
I'm using a mac to root my 6p but i can't get past even just installing the adb, when i try 'adb version' command line i get 'adb: command not found'

any advice on whats going wrong?
[Nexus 6P General] Az Biker:
I think for Mac, you need to add an extra character in the adb commands...

Like a "/" or something... Sorry I can't be more specific, I'm not a Mac user :D

...from my NexsixP
[Nexus 6P General] Namyep:
I have a month to try my Nexus 6P, if not satisfied I can return. As soon as I got it I got a custom ROM with a kernel on the phone.

Of course when I send it back it should be fully stock with no traces ever left that I messed with the phone, will section 10 get me all of that?
[Nexus 6P General] M_Shaaban:
How do I flash all files -not one by one? I have a 32 GB device, so I'm not worried about the faulty available space. What's the command to flash all? And do I have to extract image-angler-mhc19q.zip or not -after extracting the tgz? The other files after extracting the tgz beside image-angler-mhc19q.zip- are; bootloader-angler-angler-03.51.img flash-all.bat flash-base.sh radio-angler-angler-03.61.img. Could someone explain the flash all command briefly and if I need to to extract everything or not. Thanks in advance!
[Nexus 6P General] Prattham:
I have a mac too and it was way way difficult for me just like you

But i rooted mine way back so don't really remember but what i remember is this

http://nexus6proot.com/nexus-6p-root/how-to-root-nexus-6p-winmaclinux/2/

Follow this that's what i did and boom rooted it in minutes

If you have any questions feel free to ask

Cheers
[Nexus 6P General] Einwod:
I have the 64GB version and have used the flash-all.bat without any problems whatsoever. Extract all the files into one folder, open command prompt within that folder and run the flash-all.bat It will flash the device and it will be as new. It will wipe everything, so make a backup first.
[Nexus 6P General] Prattham:
Quick question I'm on custom rom

I want to go back to stock

I will follow the 11 post i guess it was

Because i dont want to wipe my internal storage

Is there any chance my storage will get wiped like by change until i command erase user data?

Also i want twrp and root as well after that so do i first boot up the system or i just flash the recovery and su right after flashing these files?

Thank you
[Nexus 6P General] M_Shaaban:
Thank you! Is the command flash-all.bat? Extract all the *.img files to one folder?
[Nexus 6P General] Heisenberg:
Your storage won't be affected unless you deliberately issue the format command. If you skip flashing the recovery.img TWRP will remain on your device, then just flash SuperSU.
[Nexus 6P General] Prattham:
But you say in the post recovery maybe patched

So i just wanna make sure that

After i flash those files including the recovery should i first reboot to the system or continue flashing the twrp recovery and boot into recovery and flash super su
[Nexus 6P General] SimorghDroid:
Your adb and fastboot executable files are probably located in this folder:

/Users/YOUR_USER_NAME/Library/Android/sdk/platform-tools/

Of course you have to had installed the Android Studio on your Mac first.

so you should navigate to that folder and run adb or fastboot .

Hope this helps.

Regards
[Nexus 6P General] DJBhardwaj:
Android Studio is not needed at all for ADB or fastboot access.
[MENTION=4476936]sid.parmar[/MENTION] You can either 'cd' your Terminal to the location where ADB and fastboot binaries are located. Or, add the binaries location to .bashrc path.

Here is an old tutorial, that I have also used. The procedure is same even with latest OS X versions.
[Nexus 6P General] jesssiii:
Boot directly into twrp after flashing stock files, before rebooting into system, and flash SuperSU. Also, if you formatted userdata in order to unencrypt, be sure to flash a kernel with dm verity not enforced.
[Nexus 6P General] Einwod:
Just extract the download and run the flash-all.bat from a command prompt. The instructions are on the page where you found the updated file.
[Nexus 6P General] NPOA556:
[MENTION=3912288]M_Shaaban[/MENTION] If you do not want the flash-all script to wipe your device, edit the flash-all.bat file to remove the '-w ' that precedes the 'update <image_name>.zip' command near the end of the file. This will skip the wipe and will leave your data intact. To edit the batch file, right-click on it and select 'Edit'. It will open in a text editor. Delete the '-w ' (including the space either before or after it) and save the file. To flash, just double-click the flash-all.bat file.
[Nexus 6P General] AchillesTheGod:
someone help me unbrick? i have twrp working.

my issue is i have nothing on my phone to restore it. normally i just put a clean rom on a sd card and flash call it good... but this one doesnt have one. how can i get a clean rom onto it? ianyone know a way to flash a rom though fastboot on linux?
[Nexus 6P General] nathanchance:
If TWRP is working, either use MTP or adb push to move the zip file over to your /sdcard partition.
[Nexus 6P General] DJBhardwaj:
Read section 10 & 11 of this thread.

The instructions remains the same. You will just need the Android SDK setup on your Linux machine. You will need to include the SDK path in your .bashrc

To do so, open a terminal and enter the following command:

nano ~/.bashrc

This will open the .bashrc in a text editor. You will need to add the following lines into the file:

export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools

Note: Edit the SDK directory path if its different on your PC.

Once that is done, save the file and exit. Reboot your PC once, and you will be able to use fastboot, to flash the factory image.
[Nexus 6P General] AchillesTheGod:
mtp

does mtp work in fastboot?? and whats the code for adb pushing again?
[Nexus 6P General] DJBhardwaj:
As Nathan mentioned, if you can enable MTP mode in TWRP , which I guess you will be able to do. Just transfer the ROM and GApps zip files, and flash them.

---------- Post added at 11:11 AM ---------- Previous post was at 11:10 AM ----------

Not fastboot. But it works in TWRP, under the 'Mount' section. Just connect your device and hit 'Enable MTP'.
[Nexus 6P General] AchillesTheGod:
blank
[Nexus 6P General] DJBhardwaj:
First of all, try the MTP mode to transfer ROM and GApps. If that doesn't work, for some reason, you will always have a chance to flash the factory image.
[Nexus 6P General] nathanchance:
The command for adb push is:

adb push [I]file_location_on_computer[/I] /sdcard
[Nexus 6P General] thloe:
Hello and sorry for noob question. Can i update TWRP from 3.0.0-1 to 3.0.2.0 via TWRP itself in .img or is flashifiy or PC better?

thanks for answer!!
[Nexus 6P General] Badger50:
Fastboot is time tested and proven!
[Nexus 6P General] Heisenberg:
It really doesn't matter, however you choose is fine. Using the image install function in the install menu of TWRP would probably be the easiest way to get it done.
[Nexus 6P General] usefulidiot127:
This guide is excellent. Quick question as this is my first experience with Nexus - meaning there are actually regular OTA updates to apply :)

If I'm stock, rooted, xposed, etc - it looks like the right/only way to update without losing apps/data is via step 9, correct? Should I plan on needing to flash root and xposed again immediately after?

Thanks!
[Nexus 6P General] Prattham:
Yes and yes
[Nexus 6P General] MrKaon:
Just for info:

TWRP 3.0.2.0 is crashing on boot while asking for pin code at encrypted Nexus 6P (stock MHC19Q) while 3.0.0.1 not.

so avoid flashing it.
[Nexus 6P General] Xenotrumpet:
Don't you need a modified boot image for that?
[Nexus 6P General] Einwod:
No problem with TWRP 3.0.2-0 here, I just made a backup without problems.
[Nexus 6P General] MrKaon:
But I didn't flash boot image also it should have been modified with systemless SuperSU before.
[Nexus 6P General] ultyrunner:
I'm on stock, systemless root, V4A, Xposed. Just updated to the April security update, flashed TWRP update from the app. No issues at all, including a new backup of my system.
[Nexus 6P General] MrKaon:
Your encrypted, I mean after every reboot is it asking for pin code?

This one is crashing on me :

Edit :

Problem solved, [emoji106]
[Nexus 6P General] ultyrunner:
Glad you solved your problem, but my device is encrypted AND I don't require my PIN to start my device on boot. They're different.
[Nexus 6P General] 14Hellraiser:
thanks a lot for this guide!!!
[Nexus 6P General] AreOh:
If you're not supposed to lose any apps/data, then how does that not include exposed and the already installed modules?
[Nexus 6P General] nathanchance:
Because Xposed is installed into the system partition, which gets wiped and replaced with the new system image that you just flashed.
[Nexus 6P General] AreOh:
Oh, okay. Must be a pain for those with a lot of modules installed.
[Nexus 6P General] drothenberger:
The modules aren't lost and they don't need to be reinstalled. Only the Xposed framework has to be flashed after flashing system or vendor.
[Nexus 6P General] AreOh:
Good to know. If you can't tell, I'm a novice to all of this. Just barely rooted and installed xposed less than a week ago.