yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Heisenberg:
I'm not sure why it wouldn't be working. Your backup might be corrupt.
[Nexus 6P General] leon0602:
Install Android N DP5

Hi,

I just download the DP5 developer preview, can I use the same procedure (point 9 of this wonderful guide) to install it?

I suppose that I have to delete data and system (not internal sd). Isn't it?

And what about twrp recovery and root? Can I use the guide's proceudure to get both?

Thanks a lot
[Nexus 6P General] Heisenberg:
You can follow section 9 to flash the Dev Preview. You need to wipe /data with TWRP first. See these two threads for info on rooting it:

http://xdaforums.com/nexus-6p/general/guide-android-nougat-developer-preview-t3410906

http://xdaforums.com/nexus-6p/general/stock-modified-boot-img-regular-root-t3306684
[Nexus 6P General] Blue.Ember:
maybe this question was asked before many times but it's hard to search in 400 pages, so my problem is I can't relock my bootloader, if I use

fastboot flashing lock

it gives me the command list for the fastboot,

also I tried to use

fastboot oem lock

but it gives me failed

I tired the other command like Huawei phones but no changes

fastboot oem relock

so any suggtion what should I do
[Nexus 6P General] SlimSnoopOS:
Update your fastboot and platform tools.
[Nexus 6P General] Buddy3927:
What is the command to execute flash-all.sh???

"Execute the flash-all script." I've searched extensively for how to execute flash-all.sh on a Mac but find nothing but the quote I started this message with. Is it adb, fastboot, what? Just once I would like to install a factory update without having to fastboot flash each .img. Help would be greatly appreciated.
[Nexus 6P General] Blue.Ember:
Done and locked [emoji1]

Many thanks
[Nexus 6P General] SlimSnoopOS:
I searched for "how to execute flash-all.sh" in Google and found these two links:

http://www.androidcentral.com/android-50-hits-nexus-devices-heres-how-update

and

http://9to5google.com/2015/10/05/ho...nexus-5-nexus-6-nexus-7-nexus-9-nexus-player/

Must be in the bootloader and fastboot before running the flash-all.sh command. Don't forget to edit the flash-all.sh and remove the -w so it does not wipe your phone if that's what you want. Haven't done this myself, I prefer to manually flash each .img on OSX
[Nexus 6P General] Buddy3927:
Thanks for that. Shouldn't have limited my searching to XDA. Won't make that mistake again. I had tried just typing the command in the command line before but it never worked, just gave me a review of all commands. Maybe my terminal commands were old. Just updated fastboot and adb so will try again. I've always flashed each image myself but hate not being able to try something different and it not work.
[Nexus 6P General] ^tyrant^:
Heisenberg,

I am not running N. But i am still encrypted, and have been for a while. now.

I just ended up rolling back to last months release for right now.
[Nexus 6P General] Ghstudent:
A few pages back I posted a guide for Android N, while Heisenberg did an amazing job with this tutorial, it doesn't exactly work with Android N, so i posted the method that I found myself and I'm currently running DP5 fully rooted. :)
[Nexus 6P General] yung40oz84:
OK, I hope I have come to the right place for this. I have searched high and low for an answer on Google, some G+ communities, and so on, but cannot fix the issue, if it even is an issue. There are bits of information on a possible fix, like the google USB drivers, installing them when booted and in boot loader mode, etc..., but nothing solid.

Anyway, previously when I booted to my boot loader on the Angler it would always say when my USB is connected, stating data transfer USB connected. As of late, and I am not sure exactly when it occurred as I just noticed last night, it states this in boot loader:

Console: NULL

Connect USB data device

Now, last night I went to use fastboot in the boot loader and on Windows 10 it kept saying waiting for device.......

I went to my Mac and it stated same things in boot loader, but it flashed what I needed flashed in the boot loader.

I went to Windows 7 and it is the same result as with my mac, same status in boot loader, but fastboot still flashes things.

Where I am confused is that, I don't think it ever stated Console: NULL and I have consulted with some others and they state there device does not say that. Also, I have never had any issue on windows 10, windows 7, or my mac and is ALWAYS stated that USB was connected for data transfer. I am leaning toward a device issue, but fastboot still works, that is why I am confused. It may just be a dumb error or something. I flashed completely stock, recovery and all and it still did the same.

I was wondering if it had anything to do with Encryption as my device is not encrypted and when I flashed stock I used an un-encrypted boot.img.???

Also, I was going to lock my boot loader and the re-lock and see if that fixed the issue, but I read some places that others had problems unlocking because of the boot loader saying what mine is saying now.....UGH! Any help would be greatly appreciated!
[Nexus 6P General] Ghstudent:
I can fix it for you, can you download TeamView?
[Nexus 6P General] mtw4991:
On Nexus 6p,

if you are already unencrypted with root

and want to update to DP5 without losing data or wiping or other hassles, the following worked for me flawlessly.

You will only force encryption if you boot into the OS before completing the steps below. Flashing the vendor image too soon seems to be the cause of the issues people are having getting stuck on the TWRP splash screen, having to FDR to get storage back, etc. Notice that you never leave the bootloader or TWRP until the end when you boot into system at the end. Hope this helps. 1st boot took a little longer and looped once or twice, but boots fine...just let it do it's thing. Flashing the modified boot image and SuperSu will keep it unencrypted

fastboot flash bootloader then reboot bootloader

fastboot flash radio then reboot bootloader

fastboot flash boot then reboot bootloader

fastboot erase cache

fastboot flash cache

fastboot flash system

From bootloader, toggle into twrp and swipe to allow modification(so you don't keep it read only)

From TWRP, reboot to bootloader

fastboot flash modified boot.img from Tigerstowns' thread. Link to thread for anyone who needs it: http://xdaforums.com/nexu...-root-t3306684

From bootloader, toggle into twrp and install or adb sideload SuperSU-v2.76

From TWRP, reboot to bootloader

fastboot flash vendor

reboot system>Profit!

Hope this helps anyone who needs it. Mod, pls feel free to remove post if duplicated somewhere.
[Nexus 6P General] nathanchance:
Just a few notes, you don't have to flash the modified boot.img once you are decrypted; you can just flash SuperSU over the new boot.img since SuperSU disables forced encryption. You can also flash the vendor with right after flashing system.
[Nexus 6P General] mtw4991:
For DP 5, I flashed the included boot image as it also had a new bootloader and radio for 6p, just to be safe, then reflashed the mod boot.img thus requiring the SuperSu reinstall or so I thought. In the June DP4 update, I flashed vendor after system and ended up having to FDR and all kinds of pita, lol. Thanks for the heads up
[Nexus 6P General] Werner95:
Hi I have mtc19x build , and I want to root My phone, will it work?

Sorry for the lack of knowledge
[Nexus 6P General] Badger50:
Before you do anything, please read the heck out of the original post.....several times. Take some notes, and learn about your device and how to use your computer to root your phone. Having good working knowledge will save you a lot of time and headaches. Mr. Heisenberg, and several others have put together a great guide to assist you in your efforts. Welcome to the 6p community [emoji106]
[Nexus 6P General] Werner95:
Thank you ,I asked beacuse the build num I have is the last update ,and I dont know if this tut will work at the same way on it.
[Nexus 6P General] Badger50:
It'll work fine. Just follow the guide [emoji106]
[Nexus 6P General] Werner95:
Ok ,thank you for answer so quickly!

So I need to unlock the bootloader and then to follow the tut of how to root ?
[Nexus 6P General] Badger50:
Yes, and yes. And make sure before you start, go into settings>developer options, and check off OEM unlocking. Then just follow the guide to the "T" [emoji106] [emoji106] [emoji106]

View attachment 3819392
[Nexus 6P General] Werner95:
Thank you very much!!
[Nexus 6P General] GridironTrenches:
great guide. everything is so much easier using a nexus device
[Nexus 6P General] luckyfate:
[MENTION=4153349]Heisenberg[/MENTION]

<MOD EDIT - DON'T QUOTE THE OP.>

Thanks, this is very useful and great instruction from flashing, rooting, back to stock, custom recovery and rom....etc. I've been using NexusRoot Toolkit for all Nexus 6P, does it work the same as your instructional guides here. Please advise..Thanks
[Nexus 6P General] CyberZeus1977:
Remove quote please

Nexus 6P with Chroma rocks!
[Nexus 6P General] nathanchance:
<MOD EDIT - SNIP REMOVE QUOTE..>

Just a word of advice, it is much easier (and cleaner/efficient) to just report the post that has the quote so a moderator can remove it rather than complain openly about it. Yes, some people are not aware quoting the OP is a no-no but there's no point in posting about it.
[Nexus 6P General] Ghstudent:
I use Tapatalk, I can't report.
[Nexus 6P General] Heisenberg:
There's a button in tapatalk that allows you to open the thread in a browser.
[Nexus 6P General] Heisenberg:
It does the same thing.
[Nexus 6P General] dmd3746:
I am running a Custom ROM, I have been told to update my Bootloader and Radio to fix possible connectivity issue, I already updated the radio, my question is: If I flash the latest bootloader will it re-lock the bootloader? Do I have to go back to stock before updating the bootloader?
[Nexus 6P General] Badger50:
No, it will not lock your bootloader.
[Nexus 6P General] trance9:
Can someone verify whether I should or should not be receiving the red "Device is corrupt. It can't be trusted and may not work properly" message on boot after installing TWRP?

I am not talking about the orange "“Your device software can't be checked for corruption... " that you get from unlocking the bootloader.

Thanks!
[Nexus 6P General] mobileman88:
This message is to be expected once you are unlocked. Not to worry about it. Even with this message, you can always recover by flashing TWRP and a stock image if all else fails.
[Nexus 6P General] NPOA556:
I disagree with [MENTION=1306570]mobileman88[/MENTION] on this. I have had my 6P unlocked with TWRP and root since last December, and I have never seen the red warning. Of course, I see the orange warning every time I boot the phone. But never the red "device is corrupt" one.
[Nexus 6P General] Einwod:
I have had the red warning a few times. I ignore it. It has happened to me three times in all. I have no idea why it appears, but it has.
[Nexus 6P General] steviemch:
The "device is corrupt" warning usually appeared as a result of having an incorrect vendor img installed if memory serves. If you do have the correct vendor, try reflashing it and see if the warning remains.

Nexus 6P
[Nexus 6P General] trance9:
If I download the firmware from Google's site and run flash-all, it replaces the images on all of the partitions (including vendor). When I then flash TWRP 3.0.2 and load it, if I launch it as read-only then the red corrupt message will not show up when I reboot (but then the custom recovery is overwritten with stock during the boot process). If I swipe to enable modificiations in TWRP and then reboot, then the red corrupt message shows up.

I have gone through this process several times and it definitely seems to be that this is caused when I enable modifications in TWRP. If I then flash the vendor.img only back on the vendor partition, the message does not go away. Also, if I don't flash TWRP but rather just boot the image using "fastboot boot twrp.img", the red corrupt message still occurs after enabling modifications.

So, I am thinking that TWRP, upon enabling modifications, is modifying the system partition which is causing the message. But, I don't understand why others don't see this.
[Nexus 6P General] seblog:
I guess same procedure mentioned in step n.10 can be used to flash factory images for Android N DP5, right?

Also, if I want to use Android Pay, I should simply skip installing SuperSU ?

Thanks
[Nexus 6P General] Heisenberg:
Correct on both counts.
[Nexus 6P General] Jammol:
Correct. I think it might be more so they didn't realize it? Don't know. I didn't realize the red one until i just read your post. I never pay attention to that message anymore. One time I guess i accidentally pressed the power button and went about my day, couple hours went by and I noticed that I hadn't gotten any messages or anything. Opened wallet case and phone was stuck at the page because boot was paused by power button. Definitely watch out for that.
[Nexus 6P General] kenkiller:
Is there any way to downgrade back to M without wiping data? Or if that's possible, without wiping internal storage?
[Nexus 6P General] Heisenberg:
You don't have to wipe your internal storage but you must wipe data.
[Nexus 6P General] BJoselit01:
Project Fi

[SIZE=+1]Index[/SIZE]

Post #1

1. How To Unlock Your Bootloader

2. How To Install A Custom Recovery On Your Device

3. How To Decrypt Your Data Partition

4. How To Make A Nandroid Backup With TWRP Recovery

5. How To Make An EFS Backup With TWRP Recovery

6. How To Root

Post #2

7. How To Install A ROM with TWRP Recovery

8. How To Install A Custom Kernel With TWRP Recovery

9. How To Update To A New Build Of The Stock ROM

10. How To Flash The Factory Images (Return To Stock)

11. How To Flash The Factory Images (Return To Stock But Leaving Internal Storage Intact)

12. How To ADB Sideload an incremental OTA update package.

13. How To ADB Sideload a full OTA update package.

Would this work if i'm using Google's Project Fi service on Android 6.0 Marshmallow?
[Nexus 6P General] maplestrat:
[MENTION=7626813]BJoselit01[/MENTION]--Yes, I'm on Project Fi with PureNexus ROM. Working well for me
[Nexus 6P General] irropik:
I'm a little unsure, so I currently have the ARISE sound mod installed, TWRP, and I'm rooted. I want to update my radio image to the android N version, because I'm having issues with my GPS. Is it safe to just do

without having to reinstall root and everything else? I'm on MM 6.0.1
[Nexus 6P General] Heisenberg:
Yes it's safe, flashing the radio won't affect any of that.
[Nexus 6P General] irropik:
Awesome. Thank you.
[Nexus 6P General] beartek:
Can't pass go, can't collect $200

I just bought my Nexus 6P on sale for 400ish from Newegg. Thrilled and not thinking, I gave my wife my old Nexus 5 and oops! Nomo wifi hotspot on my 6P.

Settings given by StraightTalk work xcept no hotspot. What a great reason to root! So I download all this stuff to my windoze10 PC, and install it.

Then MS does a developer update on Win10 and destroys my comm with my nexus 6P.

Bottom line I can't even unlock my bootloader.

adb devices gives me a response, but rebooting into bootloader and fastboot devices gives no response.

Sorry - I seem stupid.
[Nexus 6P General] SeaMen.NaCl@U:
Precision for the prerequisites section of the guide

According to Heisenberg's guide, "You must have Java installed and up to date in order to use the SDK Manager" (no specification of which Java, users have to figure it out for themselves).

But according to this article: androidauthority.com/how-to-install-android-sdk-software-development-kit-21137

" ... install the Java Development Kit for the latest version of Java 7, using Java 8 will not work, but you can have both installed without any issues."

However, on Oracle's website: oracle.com/technetwork/java/javase/archive-139210.html & oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

they clearly say that version 7 is no longer supported.

Anybody have anything to say about the accuracy of the guide?‎

Sidenote: I've been trying to get SDK to actually launch by editing/forcing android.bat & find_java.bat to look at the exact folder paths for java.exe on my computer. The issue WAS a known issue. Seecode.google.com/p/android/issues/detail?id=42896, code.google.com/p/android/issues/detail?id=82099, stackoverflow.com/questions/14504325/cant-get-android-sdk-manager-to-open, techathlon.com/fix-android-sdk-manager-failing-open-android-development-tools-bundle

None will resolve my issue. This isn't very fun, & I'm still no closer to rooting my phone.

I've tried both the ASDK's .zip as well as the .exe, but still nothing.
[Nexus 6P General] Heisenberg:
Nobody else has had any issues with this. I can only suggest you completely remove Java, then go to the Java site and install the latest version available.
[Nexus 6P General] leon0602:
Same question here, shall we download repository instead of library? thanks

edit: I choose android support repository and it seems not to be a big problem. Everything works fine :)
[Nexus 6P General] NexussuxeN:
I'm trying to flash back to stock, but unsure on how to do so on a mac. Not familiar with terminal. Can someone help? Thanks
[Nexus 6P General] oldman_58:
It works just like windoze...

Make sure you have ADB and Fastboot loaded in a path set in the profile:

/Users/YOURNAME/Library/android/sdk/platform-tools

connect your phone to a USB port

Then

adb reboot-bootloader

the Daemon will start for ADB

once in bootloader

change directories where you unzipped the Stock Rom, Here is the link to factory images:

https://developers.google.com/android/nexus/images

then run , from the terminal window, ./flash-all.sh

Your phone will then be loaded with stock..

MAKE SURE YOU HAVE BACKED UP YOUR WANTED DATA FROM THE SDCARD BEFORE FLASHING, flashing will wipe

"userdata"
[Nexus 6P General] SlimSnoopOS:
If you prefer to manually type each command, pay attention to what you write. For any terminal command issued using OSX, enter ./ before the command. So, like below:

./adb <command>

or

./fastboot <command>

Also, edit the flash.all.sh script and remove the "-w" line to avoid wiping your internal storage.
[Nexus 6P General] NexussuxeN:
How do I get ADB and Fastboot in a path?

Im still lost. Complete noob to using any of this so sorry if I'm not getting simply instructions.

I tried flashing the flash-all.sh and this is what I get:

Mac-mini:~ APM$ /Users/APM/Downloads/angler-mtc19v/flash-all.sh

< waiting for any device >

error: cannot load 'bootloader-angler-angler-03.51.img'

rebooting into bootloader...

OKAY [ 0.009s]

finished. total time: 0.009s

error: cannot load 'radio-angler-angler-03.61.img'

rebooting into bootloader...

OKAY [ 0.006s]

finished. total time: 0.007s

W/ (18388): Unable to open 'image-angler-mtc19v.zip': No such file or directory

error: failed to open zip file 'image-angler-mtc19v.zip': I/O Error

Mac-mini:~ APM$
[Nexus 6P General] barturblits:
First reboot to the bootloader with:

adb reboot bootloader

And then run:

./flash-all.sh
[Nexus 6P General] CyberZeus1977:
You have to change the current directory to the one in which you have the flash-all file.

Use 'cd' command

Nexus 6P with Chroma rocks!
[Nexus 6P General] barturblits:
You're right, was too fast with my conclusion.
[Nexus 6P General] a1exus:
I'm confused and I was hoping someone can clear this up for me...

Per Android Security Bulletin—August 2016 | Android Open Source Project there should be two patch level 2016-08-01 and 2016-08-05, today is August 2nd, 2016.

Is there another build coming on or after 5th?
[Nexus 6P General] SlimSnoopOS:
Nah. Nexus should get the 8/05 security update, if I'm not mistaken. Sometimes Google releases two patch levels in one month, one that applies to every OEM and one that may address a specific OEM's (i.e. platform) issues.

Edit: just for clarification, there is only the 8/05 security update for supported Nexus devices. This is detailed in the Android Security Bulletin, below "Announcements."
[Nexus 6P General] adrman:
MTC20F (yesterday) is actually dated August 5th.
[Nexus 6P General] tanjiajun_34:
Hi! Sorry if I am asking rubbish because I don't own a Nexus 6P and the last phone I mod is my n5.

Why is it that before I install the SuperSU zip, the phone always ask for pattern lock before fully loading up the OS (I think it is encryption) but after installing SuperSU on the newest twrp, it only ask on the first boot for the pattern lock and no longer ask for it anymore on boot? Is encryption automatically off once I flashed SuperSU?
[Nexus 6P General] MblaZe7run:
I know it's "for beginners" and all, but I can't seem to get the bugger to show my S/N using

fastboot devices

for the life of me. Followed the guide to a t, or as best as I could with some things having changed since it was released (and not being updated here in the guide......), and I can't seem to get the dang thing to work. I've reinstalled Java, disabled security on my device, and tried two different computer (Win7 and Win10) with no success. I've also downloaded what I could only assume was the closest to what [MENTION=4153349]Heisenberg[/MENTION] had posted (RE: which SDK package to download and Android Support Library vs Repository). There's no "It should return your device serial number, if so, fastboot is working. If not, X, Y, Z." So I'm stuck. Didn't feel like perusing 400 pages of forum for a solution..
[Nexus 6P General] Heisenberg:
If you're using Windows the best option is the exe file on the Android Studio / SDK page. I'm not sure what you mean by Android Support Library vs Repository, there's only one option in the SDK Manager (Android Support Library). Have you installed the drivers? Fastboot not being able to detect your device is almost always a case of drivers not working.
[Nexus 6P General] MblaZe7run:
That could be a part of the issue. I used the .zip and extracted it to C:\SDK\. This is what I see;

[IMG="Android Support Repository"]http://puu.sh/qnTA7.png[/IMG]

I have attempted to install the drivers, but when I try to "update" the drivers through Device manager on both my Win7 and Win10 machines, it tells me that the drivers installed are already current. I'm also using USB-C to USB-C on my laptop (Win10), which I originally thought might cause issues, but it appears that wasn't the case.

I'll go ahead and try with the .exe really quickly, but I don't fully expect the greatest of results. Will report back soon.
[Nexus 6P General] Heisenberg:
If you can't get it to play nice you could try finding the Google drivers online. Download them and update manually by directing to them in Device Manager in Windows. If all else fails you could try using the "15 seconds adb installer", I'm not certain but I believe it's been updated to be compatible with these latest Nexuses.

http://xdaforums.com/showthread.php?p=48915118
[Nexus 6P General] MblaZe7run:
Just as I thought, reinstalling using the .exe yielded the same result. "Android Support Repository" versus "Android Support Library." Regardless, I don't think that's the issue here. I'm wondering what I'm doing wrong as far as installing the drivers for my phone. Downloaded them from here, and attempted to install them through Device Manager. As I said before, Windows then told me that I already had the most recent drivers installed. At a loss here.

EDIT: It also seems, with more reading, that the most up-to-date driver can be installed with SDK, which you list to install from "Extras" in the guide. Even more at a loss now.
[Nexus 6P General] Heisenberg:
Yeah, that's why I include the driver as part of the components that you need to install with SDK Manager, because it's the primary way to install it. I had assumed that you did this and still couldn't get it working which is why I suggested trying to grab it online and manually updating it. And no, the support library isn't the issue here, it's definitely the driver. I'm not sure what's going wrong for you and it's very difficult to troubleshoot these things remotely. At this point it's worth removing the SDK and associated driver and trying the 15 seconds installer that I linked you to above.