yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Badger50:
Backup all your files onto your pc. Fastboot Oreo factory image. I would completely wipe the phone using the flash-all.bat script.

Do a minimal setup on stock Oreo and add all your files back onto your internal storage. If want just stock rooted Oreo, then go back into bootloader mode and fastboot TWRP 3.1.1.

Go into TWRP using the phone buttons.

Flash your favorite root method.

If you want a custom rom, then do all the steps above, then go into TWRP and flash your Rom, Gapps, root, and custom kernel and mods you want.

And there ya go :good:
[Nexus 6P General] sunandoghosh:
No I am technically challenged and have taken so much time to reach to level of rooting ...thats ok for me...cannot go further...

thanks for your reply.
[Nexus 6P General] mobileman88:
You should be good if you follow all the steps here in the OP
[Nexus 6P General] shark jungle:
Root Nexus 6P Running Android Oreo

[YOUTUBE]I655Il9ABcY[/YOUTUBE]
[Nexus 6P General] dwh2o13:
Quick question. When using the flash-all.bat script, is it just a double click to run? I've never used it as I usually fastboot flash individual extracted parts from the factory image.
[Nexus 6P General] Badger50:
Correct. Just double click it and let it roll. It will wipe your phone completely though. Which is why I like it when upgrading to a new OS. But that's just me.
[Nexus 6P General] thloe:
[*]Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash cache C:\angler\images\cache.img
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img

On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache.

If you wish to you can also relock the bootloader with this command:

fastboot flashing lock

Hello Heisenberg,

big thanks for the guide!!! I´ve one question about chapter 10. "How To Flash The Factory Images (Return To Stock)". You wrote "On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache." (BOLD) But if I do the steps before that (fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img, fastboot reboot-bootloader....), I can't get to TWRP anymore because I flash (original) recovery. Have i do this before flashing via fastboot??

Thanks for a helpful answer and sorry for my english!!

cheers thloe
[Nexus 6P General] Einwod:
The bootloader is not the recovery. There's no reason why you can't boot into TWRP.
[Nexus 6P General] thloe:
I don't know what you mean. Heisenberg wrote in the guide also flash recovery but then I can't reboot into TWRP.
[Nexus 6P General] Einwod:
My understanding is to do that before you begin to flash the other images. Personally I just use the flashall.bat file which does everything anyway, wiping the device and returning it to stock.
[Nexus 6P General] thloe:
Hello Einwood, can you explain how to do with flashall.bat or is there a guide?

thanks!!

Update: I think i got it: https://xdaforums.com/nexus-6p/general/tutorial-how-to-flash-factory-image-t3252931

But is this method save?
[Nexus 6P General] Einwod:
It's perfectly safe. You have absolutely nothing to worry about apart from the fact it will delete everything on your device and return it to complete stock. The only thing is the bootloader will remain unlocked and it's best to leave it that way..
[Nexus 6P General] Arcide:
Hey, I have an issue and hope someone can help me with it.

I did a clean install of the latest Android O version, and wiped everything including the internal storage.

So before starting the system for the first time, I restored my internal storage, and then loaded the OS.

I noticed there were no files showing up either in the system with any of the file explorers, or when connected to pc.

However, I also noticed that the space was filled up, so I checked /data/media with a root file explorer and all the files were there.

Did anyone have the same issue, and how to sort this out?

I couldn't find anything recent since on this, since it's pretty hard to search not knowing what to search for.

Edit: I also found out that now even in twrp when selecting internal storage no files show up (except new empty folders), but when going to data/media they are there.

Edit 2: pretty stupid of me not to notice that the location is data/media/0 now instead of data/media
[Nexus 6P General] Einwod:
Why would you restore your old files from an old operating system before booting a new system for the first time? Makes absolutely no sense. Start again and reboot the new system before trying to restore anything. At least make sure it works.
[Nexus 6P General] Arcide:
It's music, photos and some other files.

Didn't really think it matters.

Well, it's just a different path after all, so all I needed to do was to move the files.
[Nexus 6P General] grimloktt:
I did a search for bootloops but don't think I found anything that can help me out.

I clean flashed this ROM, drove it for 2ish days then started getting boot loops. I tried to flash into TWRP to clear cache but it won't boot into TWRP. I fastbooted flash recovery TWRP which finished successfully but it still boot loops and won't boot into recovery/TWRP.

Thoughts? Thnx!
[Nexus 6P General] grimloktt:
I followed this guide, minus installing EX zip, and it now started. I guess my phone's hardware can't handle using all 8 cores...? https://xdaforums.com/nexus-6p/general/guide-fix-nexus-6p-bootloop-death-blod-t3640279
[Nexus 6P General] mobileman88:
October OPR5 update has dropped.
[Nexus 6P General] sirxdroid:
What's wrong with this naming scheme? Makes no sense.

8.0.0 (OPR6.170623.019, Sep 2017)

8.0.0 (OPR5.170623.007, Oct 2017)
[Nexus 6P General] mobileman88:
Back to the Future
[Nexus 6P General] foony:
I have nexus 6P android 7.1.1 and can not flash it, not possible to unlock flash mode or bootloader. Can not get in to the developer menu to OEM unock enable too. any advice please? thanks
[Nexus 6P General] Badger50:
Do you have developer options enabled?
[Nexus 6P General] foony:
Phone is FRP locked too. Need to unlock boot, downgrade to 6.0.1 and FRP unlock.
[Nexus 6P General] Badger50:
In your phone settings, do you see a menu that says developer options? If not, go to the "about phone" menu, and look for the build number. Then tap that thing 7 times to enable developer options. Once your in developer options, you can enable OEM unlocking and then unlock your bootloader using fastboot.
[Nexus 6P General] foony:
Not possible open dev menu when google account FRP is active. Any other working solution to unlock boot or flash mode? Thanks.
[Nexus 6P General] dwh2o13:
Look up rootjunky on YouTube and research his videos on FRP bypass for the Nexus 6p
[Nexus 6P General] foony:
yes, but for 6.0.1 ver only. or 7.0.1 security patched max october 2016 or before. December 2016 and later no success videos.
[Nexus 6P General] Jockson:
I'm currently on an older build of Nougat Pure Nexus. I want to flash latest Android O and lock the bootloader while deleting all data. Am I good to go just following the method #10 or is there anything else I should watch out for? Thanks.
[Nexus 6P General] Einwod:
Good to go but DO NOT relock the bootloader until you are sure the device boots up properly on Oreo. Then you can relock when you see all is working OK.
[Nexus 6P General] alojo:
Thanks for the guide. It works wonderfully.
[Nexus 6P General] sunandoghosh:
Hello All,

Through help of this thread and guidance of helpful folks i was able to update and root to OPR6.170623.019 basically Oreo.

Now again there is an update of 42.3 MB.

Could you please help as to how to install this update without factory reset and on being root already?

Kindly guide. Thx in advance.
[Nexus 6P General] mobileman88:
What did you root with? All you need is to download the opr5 latest image and flash over your current system and boot. You should not lose anything. Always do a twrp backup just in case. Then root again. That's all
[Nexus 6P General] KiseMaD:
Guys since Oreo came out the only way I'm able to flash any new release is by the flash-all script.

I've always flashed stock/custom ROMs without any problem, just following the guides but with Oreo every time I flash and reboot I got stucked on the loading screen (the one with the animation).

When I upgrade from custom ROM to Oreo I thought it was because it was a new version.

Today i update from Sept to Oct release but had the same issue.

I followed the #9 guide (that, for what i see it basically identical to #10) but after few try had to run the flash-all script.

I've tried to boot without flash TWRP and I had an encryption fail.

Tried to flash everything, flash TWRP and clean Chace/Dalvik but had fail.

Oreo is driving me crazy.

That's something missing in those guides or there's something I keep failing?

I've tried to search on here and google but can't find any answer to my problem.
[Nexus 6P General] sunandoghosh:
I have used Magicsk for first time instead of supersu?

Also what u had said totally went over my head?

Could you kindly elaborate step by step?
[Nexus 6P General] ^tyrant^:
Just updated to 7.1.2 and i keep loosing twrp after i reboot.. any ideas?
[Nexus 6P General] Badger50:
Did you root?
[Nexus 6P General] ^tyrant^:
At the time, no i didnt.. But what i tried was flashing the recovery then going into it.. and then flashing magisk and that seems to have fixed the issue.
[Nexus 6P General] Badger50:
There ya go. You always have to root after you install TWRP so it sticks on reboot.
[Nexus 6P General] W@r10ck:
Quick question. Is it the factory image or full OTA?

Edit: It's all good. I just use flashfire.
[Nexus 6P General] sunandoghosh:
Any inputs in laymans language pls?
[Nexus 6P General] SlimSnoopOS:
Follow section 9 of this guide. Download the October 8.0 factory image and use fastboot to install vendor, boot, and system images. Then reinstall your mods (Magisk, etc) in TWRP.

Vendor, boot, and system must be flashed each month. You can compare the file name for the radio and bootloader images of the new month factory image against the month prior to see if you need to update these two images. The file names will change when they are updated by Google so update at that time.
[Nexus 6P General] badabing2003:
Currently on 6.0.1 (MTC20L) and trying to return the phone to stock settings and lock the bootloader before RMA-ing

1- Followed the steps in #10 using factory images of 6.0.1 (MTC20L)

2- Before locking the bootloader I wanted to make sure the stock recovery was good. (huge warning from [MENTION=4153349]Heisenberg[/MENTION] : Important: do not lock the bootloader unless you have first flashed the stock images. Locking the bootloader while you have a custom recovery installed can result in a brick.)

3- Rebooted to system and skipped the wizards.

4- Rebooted to recovery and got the red triangle.

Repeated the whole process with flash-all just to be certain (yes flash-all has the -w flag)

same story, red triangle when booting to stock recovery.

What's going on?

I'm afraid to lock the bootloader and end up bricking the device.
[Nexus 6P General] badabing2003:
To answer my own question, after trying endless permutations, I realized that the stock recovery behaves that way, even doing

fastboot boot recovery.img

came up with the red triangle.

So I proceeded to flash-all and then locking the bootloader, and everything is now back to stock.
[MENTION=4153349]Heisenberg[/MENTION] It might help others if this was mentioned in the OP.

Thanks for great guide.
[Nexus 6P General] gorman42:
Contrary to what the guide, on point #9, states, there's no userdata.img file in the factory download. I have angler-opr5.170623.007-factory-b4c75d12.zip and the included image-angler-opr5.170623.007.zip file does not contain userdata.img.

I know you don't want to flash userdata.img unless you want to restore your phone to factory conditions but... where's the userdata.img file supposed to be? Is it something not needed with Oreo anymore? I followed the guide and I'm correctly at Oreo October Security level, with root, magisk, everything working as it should. But I just wanted to understand what I'm missing regarding userdata.img.

Thanks.
[Nexus 6P General] SlimSnoopOS:
Google stopped included userdata and cache images at some point during 7.1.2.
[Nexus 6P General] gorman42:
I imagined something like this. Maybe the guide could be updated to avoid confusion for newbies (like me :) ).
[Nexus 6P General] ffejy462:
The device is two years old. I agree with you, but rarely do threads stay updated throughout their usable lifespan. Fortunately (other than the example you pointed out) unlocking and flashing factory firmware generally doesn't change much among nexus (and probably pixel) devices.
[Nexus 6P General] SlimSnoopOS:
True.

Thanks for pointing this out. I should probably edit the guide I maintain in the 5X forums to indicate this.
[Nexus 6P General] pjbeee:
Nexus 6p + Oreo

Nexus 6p with Oreo, rooting from stock ROM, Build #OPR5.170623.007:

This proved to be very simple. YMMV but I hope it's as easy for you.

Connected to Windows pc, copied Magisk v14 zip to download folder on phone. Also copied the TWRP img file to same folder (see next para).

Booted into TWRP (v3.1.1-0) with Fastboot command

Flashed Magisk v14 Zip

Rebooted phone. So far so good.

Then, in order to get TWRP to "stick", I installed the "Official TWRP" app from the Play Store, and re-flashed it from within the app. Can now reboot into recovery, no problem.

Note that Magisk V14 includes SuperSU and Busybox features, but those are NOT recognized by JoeyKrim's Root Checker, for example, although Root Checker does verify root - I have the Pro version of Root Checker. To show those are working, Titanium Backup seems just fine; I believe it requires both SuperSU and Busybox.

BTW "Reboot Manager" from "Ju" on the Play Store seems quite effective for quick reboot functions.

Thanks for a great guide!

The 6p is still a kick-butt device, with a great camera as well - I use 2 of them every day. Feels as if I'll get at least another two years out of mine.
[Nexus 6P General] sunandoghosh:
Hello Thank You. I see that boot system and vendor are different. But boot loader also seems different

8.0.0 (OPR6.170623.019, Sep 2017) has bootloader-angler-angler-03.74.img whereas

8.0.0 (OPR5.170623.007, Oct 2017) has nootloader as bootloader-angler-angler-03.75.img

So I am also supposed to flash bootloader apart from boot image?

Kindly confirm?
[Nexus 6P General] SlimSnoopOS:
Yes. Just follow the guide and what I wrote to you.
[Nexus 6P General] Badger50:
Yes. Boot image is the kernel.
[Nexus 6P General] Vref:
I'm getting ready to do the exact same thing and was wondering what the line is to use the flash all? Is it just "fastboot flash flash-all.sh"?

Also, to make sure I getting this correct, you reflashed using the flash all, then rebooted into the stock ROM, then rebooted to what should be the stock recovery, got the red triangle, relocked bootloader and all is well?
[Nexus 6P General] badabing2003:
No, flash-all is not a fastboot command.

After downloading the angler-*.zip and unzipping it, you'd find a flash-all.bat and flash-all.sh file in the directory

Depending on your OS, you just issue the command from your os (from the unzipped directory), no fastboot or anything.

First make sure you have established proper connection by doing

fastboot devices

You should see the device id

then

on windows do:

flash-all.bat

on linux just do

flash-all.sh

typically you can just do

flash-all

and the os will pick up the correct file

[QUOTEAlso, to make sure I getting this correct, you reflashed using the flash all, then rebooted into the stock ROM, then rebooted to what should be the stock recovery, got the red triangle, relocked bootloader and all is well?[/QUOTE]

Exactly

Good luck
[Nexus 6P General] Vref:
Exactly

Good luck[/QUOTE]

Thanks for the tip. I'll give it a try Friday after my Pixel 2 shows up.
[Nexus 6P General] Vref:
Well, I tried the flash-all commands and can't seem to get them to work. I'm using a Macbook to issue commands and I've never had a problem before. Should I unzip the files and just flash them one by one? I didn't see the stock recovery in there.
[Nexus 6P General] badabing2003:
So what happened?, did you get any errors in the console when you ran flash-all?

How did you verify that you did not get stock recovery?

Unzipping the files and flashing them one by one should work, but so should flash-all

You were in bootloader mode when you ran the flash-all right? and you verified that the macbook could see and communicate with the phone by running fastboot devices.
[Nexus 6P General] Vref:
Guess I wasn't very specific in my earlier post. Yeah, I was in bootloader, terminal recognized the phone but when I issued the commands it only gave me a menu of "options" and when I try to issue commands to flash those options it gave me an error (I forget the exact verbage.)

So I put it aside for the night and as I was falling asleep I seemed to remember that I could just flash the system.img, boot.img, in TWRP then do a fastboot flash recovery, then relock. Whacha think?

Please excuse the newb-lke questions, honestly I was a flashaholic at one point in my life but I've been on PureNexus pretty much ever since I opened the box on my 6P and prior to that I had a Verizon HTC 1 and there was no way to unlock or ROM it so it's been a while since I've had to do any of this.
[Nexus 6P General] SlimSnoopOS:
You could do that. It's really simple to get terminal commands working though. We have to add "./" to each ADB and fastboot command in terminal. See below for fastboot and ADB commands on OSX:

https://xdaforums.com/showpost.php?p=68758793&postcount=3

Edit: This link is from the Nexus 5X forums so do not continue reading the rest of that thread.
[Nexus 6P General] Vref:
Yep, I add the ./ before every command. Here's my process:

Phone booted to PureNexus and screen unlocked, plugged into laptop, open terminal and do the ./adb device,

I get the device back.

./adb reboot bootloader and it does go into bootloader.

Then I tried to issue the bootloader flash-all.sh and just flashall. Both times I get a lengthy menu of options.

The factory file I downloaded is unzipped and sitting in the file with adb and the fastboot executables (I guess that's what they're called?)

I'll give it another try this evening when I'm not tied up and if I'm not successful I'll take screen caps of what it's giving me.

Thanks for the help guys/girls!
[Nexus 6P General] SlimSnoopOS:
I don't use the script but I believe it needs to be edited to include ./ for each command too. Let us know what happens, either way.
[Nexus 6P General] Vref:
Yep, I did the ./ before every command...just got lazy typing the response. I've never used a flash all script either....and this is probably why :)
[Nexus 6P General] badabing2003:
You probably checked, but just to be sure,

After the phone boots to boothloader

do this

fastboot devices

Seeing your device in adb mode does not necessarily mean that you see your device in fastboot mode, just be sure.

Then do this, just so the files in current directory can be picked up without having to specify ./

PATH=.:$PATH:$(pwd)

Also, just in case, let's make sure flash-all.sh is executable (it should be, but just in case)

chmod 755 flash-all.sh

Now do

flash-all.sh

and paste the output.

Good luck
[Nexus 6P General] Vref:
Ok, so tried again after I extracted the necessary files...now I'm stuck at eternal boot screen. It's been in boot for at least 20+ minutes

Suggestions?

---------- Post added at 10:16 PM ---------- Previous post was at 10:06 PM ----------

ARGH!!! I wish I'd seen your post sooner. I extracted the files and flashed through terminal and fastboot. Been stuck at boot mode for 30 mins now.

Update: Mangaged to get it back into bootloader and ran the commands you gave me [MENTION=448323]badabing[/MENTION] thanks for the help, I really appreciate it. Between you and [MENTION=3576831]SlimSnoopOS[/MENTION] I have a working device. THANK YOU!! Now.......on to the Pixel 2 :D
[Nexus 6P General] badabing2003:
Happy to hear that it all worked out for you. :)
[Nexus 6P General] erpsindhu:
Hi Anyone have any suggestions for my issue above?
[Nexus 6P General] Einwod:
Have you tried going back a few versions? Maybe the older bootloaders or radio images will put you back to a system you can use. Just a suggestion.
[Nexus 6P General] erpsindhu:
Yes I tried a few boot loaders and radio images as suggested by some members. But no luck :(.

Hoping if any new releases will help me out or someone has developed a new ROM which will help us update the radio bands.
[Nexus 6P General] cyberdionisio:
Hi, I'm on 6.0.1 and going to upgrade straight to Oreo. I'm planning on leaving the system stock, so , in the last paragrap, just after the fastboot commands, there is the need to wipe cache in TWRP.

May I wipe before the flashing (I'm going to replace my current TWRP with stock recovery), can I boot only to TWRP and wipe after flashing, you tell me?

Thanks.
[Nexus 6P General] SlimSnoopOS:
You can erase cache using fastboot or TWRP. Doesn't matter which way you go about it.
[Nexus 6P General] mobileman88:
Anyone here have an idea what might be wrong with my phone? This evening while in the car, the phone simply started bootlooping. I am on 8.1 with Magisk 14.0 and Pixel Mod V2.

What I have tried so far :

- Reflash stock OPP5 boot+system+vendor - Still bootloops within 5 seconds of the phone showing the lock screen

- Boot to TWRP 3.1.1 - Able to view all of the phone. Seems that everything is intact

- Reflash OPP5 again - Install MAgisk - Still bootloops within 5 seconds of the lock screen

- I have an old Nandroid but am reluctant to flash it or I'd be losing a lot of data

Hope someone else has an idea. TWRP works without bootlooping
[Nexus 6P General] SlimSnoopOS:
You have the endless bootloop issue that affects everyone on both 2015 Nexus devices. See if you can get it to boot using extreme heat or cold as detailed below:

https://xdaforums.com/showthread.php?t=3640279
[Nexus 6P General] mobileman88:
Seems that a restore of nandroid to my latest 8.0 backup fixed it. Somehow there was a system corruption which even a reflash of images did not help
[Nexus 6P General] SlimSnoopOS:
That's a far better resolution than I was thinking. Glad you're all set!
[Nexus 6P General] mobileman88:
Lost about 1 day of SMS and Whatsapp but I guess that's what we have to accept for using beta software.
[Nexus 6P General] t1mman:
Anyone was able to install the 2017-11 patch with rooted / TWRP?

When I try to install it, it reboots in TWRP, so it doesn't install automatically!

How do I proceed?
[Nexus 6P General] SlimSnoopOS:
Follow section 9 every month.
[Nexus 6P General] Eddie93:
Nexus 6P stock rom

Hi guys, I have problem with my Nexus 6P,

I install stoc rom 8.0 from this instructions:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img

fastboot reboot-bootloader

fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img

fastboot reboot-bootloader

fastboot flash boot C:\angler\images\boot.img

fastboot flash recovery C:\angler\images\recovery.img

fastboot flash system C:\angler\images\system.img

fastboot flash vendor C:\angler\images\vendor.img

fastboot flashing lock

Mobile restart and erase data after mobile restart and restart...and does not start

Where can be a problem?

Thanks

Eddie
[Nexus 6P General] Dualz:
Is your bootloader unlocked?
[Nexus 6P General] Eddie93:
Yes, i have unlocked bootloader. :(