yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Badger50:
If you can't get fastboot working, then more than likely the OEM unlocking feature isn't enabled in developer options would be my guess. Don't think there's a work around for that one though [emoji17]

Sent from me :)
[Nexus 6P General] ekambs:
I got to the fastboot and use the terminal command, but it just said fail everytime. And when I am in the fastboot mode and select the recovery it send me again to google logo, then the bootloop again.

when I tape " fastboot flashing unlock" I got :

...

failed <remonte:oem unlock is not allowed>

finished. total time : 0,026s

Any suggestion? thanks.
[Nexus 6P General] ekambs:
You can see in this picture that I attached, what I got when I use the fastboot .
[Nexus 6P General] jt1998:
Can you ADB sideload a stock firmware image, like number 13 in the OP of this thread?
[Nexus 6P General] ekambs:
Can I sideload stock firmware without being able to enter into the recovery system ? That will be great in this stage I am facing now. Thanks for advice.
[Nexus 6P General] jt1998:
Crud. Forgot about that. Since you can get into bootloader... No stock or custom recovery huh??
[Nexus 6P General] ekambs:
I hope that somebod can help me to flash at least a recovery ...:( :( :(
[Nexus 6P General] srqrob:
From a command prompt do you get your phone serial number as the response to both adb devices and fastboot devices? Your problem may be basic connectivity.
[Nexus 6P General] jt1998:
Have you tried fastboot flash recovery command as in the OP?
[Nexus 6P General] ekambs:
Yes I do get serial number as response to both. I hope also it is just a connectivity. But as I said I can't get to the recovery and my 6p is bootloop every time. Thanks for your answer, and futures advices :)

---------- Post added at 06:53 PM ---------- Previous post was at 06:50 PM ----------

I didn't get you, what do you mean by OP? Thanks
[Nexus 6P General] jt1998:
OP means original post. 1st post in this thread.
[Nexus 6P General] Einwod:
You should only have the serial number from fastboot devices in bootloader. ADB devices should not work in fastboot mode. ADB devices will work in custom recovery or from within the OS when the phone is booted up and working normally. So, which do you have?
[Nexus 6P General] ekambs:
I attached The picture of what I get when I am in fastboot, what do you thing? Thanks.
[Nexus 6P General] ekambs:
Yes I ahve done the same thing but nothing happen, except fails. Any suggestions? Thanks.

---------- Post added at 06:56 PM ---------- Previous post was at 06:55 PM ----------

Yes, exactly. Sorry.
[Nexus 6P General] jt1998:
What happens when you try fastboot recovery when your device is connected? Take a pic when you do it and post..
[Nexus 6P General] CyberZeus1977:
No one tried this?

Sent from my interstellar 6P
[Nexus 6P General] SlimSnoopOS:
Yes, it's no different then any other month.
[Nexus 6P General] CyberZeus1977:
Thank you!

Sent from my interstellar 6P
[Nexus 6P General] ekambs:
Here you can see what happened when I write "fatboot recovery"
[Nexus 6P General] jt1998:
What happens if you try this from the 1st page?

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

Prerequisites:*Completely stock setup (the only modification allowed on the phone is the unlocked bootloader).

Download the OTA zip that you want to upgrade to from my*index. You don't need to be on any specific build prior to flashing a full OTA package. You can only move to a higher build though. The filename will be quite long so to make things easier you can rename it to something easier. For the purposes of this guide let's say we'll rename it to "fullota.zip". Place the file in your fastboot folder on your PC.

Boot into the bootloader, use the volume buttons to scroll the options and use the power button to select recovery mode.

Once the phone has booted into the stock recovery (you should see Andy Android with an exclamation mark) hold power and tap volume up to get into the recovery menu. Use the volume buttons to scroll and use the power button (you might need to hold it) to select "apply update from adb".

On your PC navigate to your fastboot folder, hold shift and right-click your mouse, select "open command prompt here". Issue the following command:

Code:

adb sideload fullota.zip

Wait for the operation to complete (it'll tell you once it's finished) and once it's all done you can reboot your phone, the first boot might take a while.
[Nexus 6P General] Einwod:
It's not fatboot, but fastboot. You need to update your version of fastboot.exe. Search and you'll find it. New versions were mentioned in the news section of XDA only a few days ago.
[Nexus 6P General] jhs39:
The bootloader is locked so that isn't going to work.
[Nexus 6P General] rchtk:
Doesn't matter. It needs USB debugging enabled and ability to go into recovery mode.

https://developers.google.com/android/ota
[Nexus 6P General] ekambs:
I have tried to search but I can find it, I just saw same old dicussion from lost year in october. can you help me for a link so i can try it. Thanks.

---------- Post added at 10:50 AM ---------- Previous post was at 10:49 AM ----------

Thanks, It is possible to enable usb debugging when you can go to the OS?

---------- Post added at 10:59 AM ---------- Previous post was at 10:50 AM ----------

When I try it from the first, the process failed because the bootloader it is lock. That the answer I can read in the prompt terminal command.

Is there any command or way I can do to open the bootloader, when I can't enable debugging in the OS? Thanks.
[Nexus 6P General] rchtk:
Actually I don't see how and why USB debugging should be required. The Google doc seems slightly misleading.

What error do you get?

My posts are based on the documentation, I cannot confirm in practice, never had a locked phone...
[Nexus 6P General] ekambs:
The problem I am facing, it is my 6p has a bootloop and I can't go to the OS. I can't go into the recovery also, so I need to flash fatory image to get the system back, but the bootloader is lock so everything i try to flash i got the message said that failed ( remonte: device is locked. can not flash images)
[Nexus 6P General] SlimSnoopOS:
ADB will not recognize the device without ADB Debugging enabled. You can test adb from within Android and see for yourself with and without ADB Debugging enabled.
[Nexus 6P General] CyberZeus1977:
Updated to latest N4F26J with guide step #9.

All ok, thanks [MENTION=7514361]heisenberg![/MENTION]

Sent from my interstellar 6P
[Nexus 6P General] ekambs:
Thanks I will get back when I return home. See you soon :)
[Nexus 6P General] That_Guy0505:
You da man! [MENTION=4153349]Heisenberg[/MENTION]
[Nexus 6P General] ekambs:
Again failed, I don't know what to do, is anyone know about what to do if it is hardware issues. I think I have to open and do somethings? Thanks for your advices.
[Nexus 6P General] Einwod:
You need to send it for repair/warranty.
[Nexus 6P General] rchtk:
I was questioning the requirement to have debugging enabled to sideload an OTA (so in the recovery). In the OS the effect is obvious..

I can't be bothered to try but I'll say it's not required so the doc is misleading while OP is correct.
[Nexus 6P General] ekambs:
I don't know what they will take it in warranty for repair, because the screen is cracked a bit and the phone is from November 24th 2015. Can they take in warranty for repair? Thanks.
[Nexus 6P General] Einwod:
European warranty is two years. In the states, it's only a year, I think. There can be no harm in trying.
[Nexus 6P General] ekambs:
So I will be in the week, thanks .
[Nexus 6P General] atlas2015:
What does the red button do?

I've learned so much from this thread and refer to Heisenberg's posts constantly when, well, doing anything of substance to my phone.

Among the things I've learned is the clear wisdom of keeping your bootloader unlocked, and I know that locking it requires the specific fastboot command, but I can't help but notice how easily one could toggle the OEM Unlocking in Developer Settings back to Off, inadvertently or otherwise.

Heeding Heisenberg's warning that relocking the bootloader with a custom rom could result in a brick, I haven't had the courage to experiment, but I still wonder what would happen if the OEM Unlocking was toggled back off and the fastboot command wasn't entered. What does it do?

I've tried to find the answer before posting, but all the available info is about unlocking it to root, relocking with fastboot, or possibly unlocking it after a bootloop. Nothing about untoggling the OEM Unlocking.

Thanks for any insight.
[Nexus 6P General] mbutandola01:
I'm not sure how you can do that. As far as I know, the toggle should be greyed out and the only way to lock the bootloader is by running the command via fastboot

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] kyzn:
No. The toggle for OEM unlock isn't greyed out. It's always selectable in Developer settings. Before and after you unlock your bootloader.

It's a new option I believe that was introduced in 5.0.
[Nexus 6P General] mbutandola01:
Mine greyed out and has always been. It's not when your bootloader is still locked. But once you unlock it, you can't toggle it back off

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] jt1998:
My bootloader is unlocked, and in developer options, it is not greyed out and I can toggle the switch.
[Nexus 6P General] atlas2015:
Yes, that's how mine has always looked after I unlocked with fastboot, with stock, Dirty Unicorns, and Pure Nexus. Completely toggle-able.
[Nexus 6P General] kyzn:
Bootloader unlocked running Pure Nexus. This is what scares me. I could accidentally tap the toggle, not notice , do a reboot and realize I ****ed myself.
[Nexus 6P General] atlas2015:
Ah good, I'm not the only one. Yes, that's my concern and my question in a nutshell.
[Nexus 6P General] BigBxcks:
What happens if you toggle it off ?
[Nexus 6P General] Badger50:
Nothing at the time. You can toggle right back on after you input your pin. Just don't go into bootloader mode and try to run adb or fastboot with it off. That might not end well [emoji50]

Sent from me :)
[Nexus 6P General] atlas2015:
I did do that.

Nothing caught fire, or blew up.

And then I hurriedly toggled it back on.

I'm not brave enough to reboot with it toggled off. I can accept, and have accepted, losing all my data to errant experimentation, but hard bricking with an inadvertently locked bootloader is way outside my comfort zone.

Hence my question for anyone wise enough to know what it actually does without the fastboot command being implemented.
[Nexus 6P General] mbutandola01:
You guys aren't running stock, are you?

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] kyzn:
Not right now. But IIRC the toggle was still switchable even on stock. You could post a screenshot of how the option looks for you.
[Nexus 6P General] mbutandola01:
View attachment 4000576

As you can see, mine is greyed out and has always been like this. There's no way to toggle it back off.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] BigBxcks:
So if you reboot it results in Hard Brick to point of no revival?

---------- Post added at 02:19 PM ---------- Previous post was at 02:17 PM ----------

No way to fix it via ADB or Fastboot

No flashing back stock?
[Nexus 6P General] clanderson:
I just received an OTA update notice for a security patch and I'd like to apply it - unfortunately I flashed TWRP as I wasn't able to simply boot into it to root. How can I install this OTA update? Simply flash stock recovery? I don't mind going back, I just don't want to lose my data/root.

Nevermind. Gave up reading too soon.; section 9&10 of this guide.
[Nexus 6P General] Einwod:
You cannot be rooted to take OTA. You must unroot and flash the stock recovery for the OTA to install. After that, you may flash TWRP again and whatever version of SuperSU you want to regain root.
[Nexus 6P General] ipmanwck:
It's been a long time since I rooted any device.... Like Galaxy S2!, I am following the instructions on the very first post and am not sure what it means by boot into android?

"You can test adb by connecting your device to your PC while booted into? Android? (making sure that adb/usb debugging is enabled in Settings>Developer Options) with the screen unlocked and issuing this command"
[Nexus 6P General] atlas2015:
What Heisenberg said in his guide was:

And we know that a locked bootloader means you're pretty much out of luck for recovering the phone if its "bricked". I believe its pretty established that there's no way to unlock the bootloader from inside the bootloader. Reference the folks that have had their phones bricked by the latest OTA upgrade who now find that their only remedy is persuade Google to take the phone back under warranty.

Which is why I, and it looks like others, wonder how much, if any, this easily activated toggle "locks" the bootloader.

If it just fubar's the ROM and/or recovery but the bootloader remains unlocked without the fastboot command, that's one thing, since that would be relatively easy to fix. But if, on the other hand, the toggle actually relocks the bootloader, that's scary enough to make me want to re-hide Developer Options as a precaution.
[Nexus 6P General] mobile-freak:
Hello,

i have a short question.

Which Toolkit is the latest?
[Nexus 6P General] atlas2015:
It just means the phone is all the way started. Icons, etc. How your phone is when you use it.

This would be as opposed to when its in the bootloader, or recovery.
[Nexus 6P General] Heisenberg:
Yes, it just means to boot the phone into the operating system.
[Nexus 6P General] Heisenberg:
If you read this guide you don't need one.
[Nexus 6P General] Ketawa:
I just received a refurbished 6P due to the battery issue RMA and was interested in potentially enabling file based encryption (FBE) due to, for example, the benefits of Direct Boot in case of an unexpected restart in my sleep. In my research so far, I haven't found out definitively whether root is possible using FBE on the 6P. Is there any means of doing this? I'm trying to figure this out before I spend a ton of time migrating everything over to the new phone.

Edit: never mind, it seems like it's impossible. Converting to FBE wipes the device, which means you will lose root. Then you have to root again via TWRP and it currently does not support FBE. Everything on the phone is a jumble of letters.
[Nexus 6P General] jhs39:
You can flash an OTA update on a rooted phone using Flashfire but I think you need to be rooted with SuperSu. It unroots your phone, restores stock recovery, flashes the OTA then reflashes your custom recovery and restores root. But you shouldn't download the file automatically because FlashFire won't detect it and the file is pretty hard to find. Download from Google instead so you can find where it is.
[Nexus 6P General] dratsablive:
Agreed, toolkits can lead to danger.
[Nexus 6P General] azsl1326:
I am attempting to return my device to stock to return to Google. I followed the guide at the beginning and I thought everything went well. However, upon rebooting, I getting the splash screen error about my device being corrupt and can't be trusted. It does boot into Stock 7.1.1, however, ideally, I would prefer to send it back without the error. Any ideas as to why I would be getting this and how to resolve it?

Thanks, in advance.
[Nexus 6P General] Badger50:
You'll get that warning until you lock the bootloader. This will wipe your device when you lock or unlock the bootloader.

Sent from me :)
[Nexus 6P General] azsl1326:
Thanks. However, I did lock it. Followed the guide exactly. Still got the error message.
[Nexus 6P General] sirxdroid:
Does the old SuperSU method (i.e. install in /system without a custom boot.img) still work?
[Nexus 6P General] jkc120:
Has anyone tried leaving boot intact (mdb08k) on the Nexus 6P, but flashing the rest of mdb08m? I'm just curious to check if the black levels during video playback are still washed out (wrong color space) or not. I'm guessing they are if mdb08l/m are just security updates but it's worth a shot. Alternatively, does the mdb08k boot work with mda89d? I want video that doesn't look like ****.
[Nexus 6P General] Cares:
Now that the new TWRP supports encrypted data...can I flash the new TWRP and re-encrypt my device? Or do I have to wipe my data to get re-encrypted properly?
[Nexus 6P General] trama09:
Well I am stuck at trying to root. It's been a couple years since I've done this stuff. Thanks Verizon.

Anyways, when I run

adb devices

, it returns "List of devices attached", two line break, then nothing. I've made the necessary installation with the Android SDK, I've made sure "USB Debugging" is enabled in Developer Options, and I went through all the options in "Use USB for". I've also tried killing and starting ADB, still nothing.

Please help! Thanks!

EDIT: I am trying this on Windows 10.
[Nexus 6P General] Heisenberg:
Custom recovery prevents OTA updates, and so does root so you'd need to remove root before taking any update.

No, you must flash the modified boot.img, is there a reason why you don't want to?

The modified K boot.img does not work on D, hence the directions in the OP to update. The modified K boot.img does work with the M build though. No idea about the video though.

Yes, you can just encrypt.

You don't actually need adb to carry out any of this guide, the check is in the guide purely for testing. As long as fastboot works you're good to go.
[Nexus 6P General] vikceo:
can u do it via mac?
[Nexus 6P General] Heisenberg:
Yes you can, read up on how to use fastboot on a Mac and adjust the commands appropriately.
[Nexus 6P General] sirxdroid:
If you already use Homebrew on your Mac, it's easiest to install adb and fastboot via brew:

brew install android-platform-tools

---------- Post added at 10:58 PM ---------- Previous post was at 10:56 PM ----------

One reason would be custom kernels, you'd need to make sure that they all support SuperSU.
[Nexus 6P General] Heisenberg:
I'll pretty much guarantee that every kernel released for this device will support root. But that isn't any reason not to flash the modified boot.img now anyway. Or did you mean in future specifically when using a custom kernel? It seemed like you're wanting to have root without using the modified kernel right now.
[Nexus 6P General] sirxdroid:
Just trying to understand how things work and what our choices are, pros and cons. That's all.
[Nexus 6P General] murdoch1:
Google Factory Image Latest

Hi.

Just want to thank the forum for how to unlock the bootloader. Google on their website instructs people to use the command "fastboot oem unlock".

It was after checking your guide you used "fastboot flashing unlock".

You would think Google would update their website to reflect the specific way to do this on the latest Nexus......

Cheers again.
[Nexus 6P General] pahardie:
I've just re-encrypted my device and installed the latest twrp and I'm all set. TWRP asks for your pin / password as it loads and then loads as normal.

Excellent I feel all encrypted and safe again :)
[Nexus 6P General] combat goofwing:
so ive unlocked my boot loader , boot it rebooted itself before i got chance to enter "fastboot reboot" does it matter,

idont want root or custom recovery so how do i go about applying latest updates
[Nexus 6P General] pahardie:
just download the latest factory image and extract it, boot into fastboot connect to your computer and run the flash-all.bat, it'll wipe everything but it sounds like you've done that anyway when you unlocked the bootloader. that'll flash the full latest software. (in future you can edit the flash-all.bat and remove the -w which doesn't wipe your phone.
[Nexus 6P General] combat goofwing:
im in the UK and on Build MDA89D, so which would be the lastes, also where do i extract it too?, once i have done that i want to alter the build.prop to remove the black bar controls, again which is the best method for a non rooted device

thanks for the help
[Nexus 6P General] pahardie:
The latest is 6.0.0 (MDB08M)

You just need to extract the downloaded firmware file with 7zip or whatever you use to extract compressed files to your pc - ideally into the same folder where you have adb.exe and fastboot.exe and their associated files. then flash-all.bat will work as long as you have the phone connected to the pc in the bootloader and drivers installed etc.

I have no idea about editing buildprop without root though. I am sure there are clever people on here who can do it!
[Nexus 6P General] combat goofwing:
ok and how to i edit to flash with out wiping , google reinstalling all apps and back ups so dont want to have to do it again

thanks
[Nexus 6P General] Aria.A97:
Can someone upload latest "Android SDK Platform-tools" for me please?

Seems like it's blocked in my country :(
[Nexus 6P General] Heisenberg:
You need to oem the flash-all.bat file and remove the "-w" from the update line at the end of the script, then save it.

Use the search feature to search for platform tools, someone already has uploaded it here.
[Nexus 6P General] combat goofwing:
thanks for the help, bootloader unlocked and MDB08M flashed and working, now to read up on the build .prop edits
[Nexus 6P General] aashish.bharti:
hey. i updated my nexus 6p a week before. it worked fine for like 2 days, but after that it turned off. and when i try to turn it on, it entered into bootloop. now all i can access is fastboot mode. i cannot turn on the phone, i cannot enter recovery mode. i tried flashing the phone with google fastboot images, but all i have is "FAILED: the device is locked". i am not even able to unlokc the bootloader bcoz it requires developer option to be enabled and adb to be enabled, whic i never turned on. so is there anything i can do, to flash the custom recovery, or any fastboot rom in a locked boot loader. is there any way to do that?
[Nexus 6P General] Michael833:
Sounds like it has the bootloop problem. Call Google if you bought it from them. Otherwise call Huawei. Hopefully they will replace it for you.
[Nexus 6P General] Badger50:
Have you tried the flash-all.bat file out of curiosity?

Sent from me :)
[Nexus 6P General] mbutandola01:
His bootloader is locked. That won't work.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] pitflyer:
Updated to the latest January patch following step #9 without any issues today. I use this shortcut to keep TWRP and root -- I do not flash the recovery included from Google at all, instead I flash TWRP again, and in the bootloader I reboot directly to recovery (by scrolling to that option on my phone and then clicking the power button). In recovery, I then copy over the latest SuperSU and install it, and then reboot into my newly updated OS, with TWRP and SuperSU intact. As always, thanks to Heisenberg for keeping this guide up to date.
[Nexus 6P General] SlimSnoopOS:
Aloha [MENTION=4153349]Heisenberg[/MENTION],

Just giving you a heads up that Google now has a landing page for the minimal SDK Platform-tools which includes version release notes. Maybe you can add this into your guide as well?

https://developer.android.com/studio/releases/platform-tools.html#download.
[Nexus 6P General] Heisenberg:
Done, thanks!
[Nexus 6P General] Danny 0311:
If i try this method on my Mac, do i need to enter the "./" before each command? Thanks.
[Nexus 6P General] raincoat-sama:
This whole guide is for windows

I am having difficulty following how to return to stock from a mac,please help someone...romming was just not worth it and i just want to get back to stock.
[Nexus 6P General] Einwod:
Download the factory images and extract them. There is a flashall script for Mac inside. Simply run it. Bingo, back to stock.