yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Badger50:
This is a guide I made for the P2XL. However, it is the same process I use on my backup 6p. When your doing a new OS update, you definitely should do a full wipe, which apparently you've tried to do. One thing about the guide, in your case, please disregard the part about removing the -w from the flash-all.bat script. You'll want to leave it in there so as to wipe the phone clean. When the install process is done, takes about 5-8 minutes, let your phone boot up, then do a minimal setup, then go back to bootloader mode and fastboot twrp. From there you can then flash your custom kernel and root if you choose to do so :good:
[Nexus 6P General] ao6p:
Thanks for the reply Badger.

So plug the 6P back into the Windows machine, run 'Fastboot Devices', exit command prompt and double click the 'flash-all.bat' file? I don't want to install TWRP or Root the device, I just want a standard installation 'out of the box' state, so should I still do your method?

Also, as I've already tried Step 10 from the guide, will that make any difference? Obviously something is wrong at the moment as recovery mode isn't working and the phone boots directly into Recovery Mode with the 'No Command' screen flashing at me. Just want to check as I really don't want to brick the device.

Thanks again.
[Nexus 6P General] Badger50:
Yep. Just double click the flash-all.bat, and let it do it's thing. That'll make your phone full stock without root or custom recovery. You can always go back and do those things latter if you want :good:
[Nexus 6P General] ao6p:
Awesome. One last question if you don't mind:

Inside my 'angler-opr6.170623.013' folder contains:

bootloader-angler-angler-03.73.img

flash-all.bat

flash-all.sh

flash-base.sh

radio-angler-angler-03.84img

image-angler-opr6.170623.013.zip // Do I need to extract this folder before double clicking the flash-all.bat file?

Thanks again Badger, really appreciate the help.
[Nexus 6P General] Badger50:
No need to extract that folder since the script will do it for you. However, for whatever reason, I've had to do just that. So what I do, is put both the zipped and extracted version in my platform-tools folder, then that way you've got all the bases covered :good:
[Nexus 6P General] ao6p:
Thanks man.

Tried running the flash-all.bat file and I'm getting the following error:

'fastboot' is not recognized as an internal or external command,

operable program or batch file.

Location of folder on my machine:

C:\platform-tools\angler-opr6.17......\angler-opr6.... - flash-all.bat file is in here.
[Nexus 6P General] Badger50:
Have you updated your SDK platform-tools recently? The latest version is 27.0.1.
[Nexus 6P General] ao6p:
Sorry. Just had to actually place the contents directly in the platform tools folder.

Everything has finished, the phone has booted straight into Recovery Mode with 'No Command' on the screen. Not sure what now lol.

---------- Post added at 05:56 PM ---------- Previous post was at 05:53 PM ----------

Badger50 thank you so much!! Phone has just rebooted to the setup menu.

Really appreciate the help thanks man!! :)
[Nexus 6P General] Badger50:
Again, I ask the same question?

---------- Post added at 04:58 PM ---------- Previous post was at 04:57 PM ----------

Oh sweet! Nice job man:good::good: Happy to help out ?
[Nexus 6P General] ffejy462:
If you're going to all the trouble, you might as well as flash the newest release.

Feb opm3....... 014
[Nexus 6P General] ao6p:
I'm currently working on a project testing specific Nougat / Oreo versions so I needed the first release. This device is purely a test device, personal phone is fully up to date. :)
[Nexus 6P General] utsavr03:
*Urgent help needed*

hello, i followed all the steps and after installing magisk and superSU i got stuck on bootloop

im on oreo 8.1

i can enter into twrp recovery but cant get the phone started.

i read somewhere that factory reset or flashing stock image can get the phone working.

can anyone tell me how to get it done?

i dont want my phone to work on 4 cores only... :(
[Nexus 6P General] Badger50:
You didn't need to flash magisk and SU. Which is why you probably bootlooped. Here is a guide I made for the P2XL. It's the same process I use on my backup 6p, and will not wipe your data. Once the factory image is done installing, let the phone boot up, then go back into twrp to flash your root choice.

Disregard the part about flashing the twrp.zip once in twrp. That's only for the P2XL.
[Nexus 6P General] utsavr03:
is it necessary to install twrp recovery after stock install??
[Nexus 6P General] Badger50:
Yes. The factory image will overwrite twrp.
[Nexus 6P General] utsavr03:
if it doesn't create any problem then i dont want to go for twrp.. im fine with stock after this shock:confused:
[Nexus 6P General] Badger50:
Nah...it won't cause any problems. You'll just be stock is all, which kinda bites, but each to his own. You just made a mistake bruh. Don't be afraid to root the 6p. It's one of the easiest things to do with this guide. Just don't flash 2 root choices is all :cool:
[Nexus 6P General] utsavr03:
ok. thanks man, got the phone working..

and sure ill root again after gaining some strength :D:D
[Nexus 6P General] Badger50:
There ya go! ??
[Nexus 6P General] paskowitz349:
I'm getting a bootloop when I install SuperSU and have 0 idea how to remedy it. I'm going to skip the background info for now (but can provide if needed). Bootloader is unlocked, installed stock android and TWRP using this guide, successfully booted into Android. Now, when I go into TWRP and try to install SuperSU... it installs, I wipe and then when I boot to android... bootloop. Again, everything is stock. Any advice would be greatly appreciated. TY!
[Nexus 6P General] Az Biker:
When you say SuperSU, do you mean Maigsk or actually SuperSU? If you are trying to use SuperSU, I suggest following these steps and using Magisk for root.
[Nexus 6P General] paskowitz349:
Yeah, just SuperSU. I'll try that and report back. Is this an issue with 8.1 specifically or something else? I've had 0 problems with 8.0 and older.
[Nexus 6P General] ffejy462:
You'll need the last supersu if you're hellbent on using it. 2.82 sr5. After flashing, it did not show up in app drawer. Extract it from the zip and install as a normal apk.

I'd recommend using magisk. Supersu is no longer being developed whereas magisk is (and has added features).

Since supersu was flashed but won't boot, there will be remnants of supersu on device. You'd need to remove those completely before flashing magisk. I believe [MENTION=4544860]osm0sis[/MENTION] has a flashible zip that could do that...

https://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133/page244

If you're still having problems, I'd recommend flashing stock firmware and starting fresh.
[Nexus 6P General] paskowitz349:
Awesome. I'll try this and report back.
[Nexus 6P General] ctexy:
Bootlooping - erase data

Hi guys. Unfortunately one of my two nexus 6P's is now in the throes of the bootloop of death :(

It is COMPLETELY stock, nothing has even been done to it in terms of unlocking, but now it can't get anywhere but the bootloader. The bootloader is locked, and

fastboot flashing unlock

doesn't work - the developer options haven't been enabled so looks like they never will be. Trying to go to recovery mode also results in bootloop.

However, all I really want to do is wipe the personal data plus music,photos etc . from the phone, before sending it back to Google (it's still under warranty). Is there a way to achieve this?

Thanks!
[Nexus 6P General] Badger50:
Sorry, but unless you enabled OEM unlocking and USB debugging in your developer options section, your outa luck my friend :(
[Nexus 6P General] ctexy:
I thought as much, but I thought I'd ask anyway! Do you think at least the data is encrypted?
[Nexus 6P General] Badger50:
Should be since it was stock, and you never decrypted it :good:
[Nexus 6P General] Einwod:
Send it back. Mine died. Motherboard replaced for the second time under warranty. Sh1t happens.
[Nexus 6P General] paskowitz349:
Thanks guys! Using magisk worked like a charm.
[Nexus 6P General] bigwavedave25:
So... magisk is the only way to go for root now? Flashed superSu in TWRP and stuck at Google [unlocked] splash screen. : (

I Followed the guide by the letter and everything was working fine, unlocked bootloader, booted into stock rom and reactivated dev options and usb debugging. Went through basic account setup options and verified network connection (Project Fi). Then booted back into bootloader and adb flashed TWRP. In TWRP I flashed the latest SuperSU v2.82 wiped dalvik/cache and rebooted. Now been stuck on initial splash screen for an hour...
[Nexus 6P General] Badger50:
Have you tried a hard restart with the power button??
[Nexus 6P General] Az Biker:
I still have SuperSU on my 6P, so unless you're flashing >8.0 it should still work.
[Nexus 6P General] bigwavedave25:
Thanks for the quick replies. I must have missed flashing something earlier. I was able to get PureNexus to install and boot fine, but at a "downgrade" to N from my stock O. I'll figure out what went wrong tomorrow, still getting used to the additional vendor image thing. Been about 3 years since I've rooted a device and flashed anything. At least I have a working phone again ?
[Nexus 6P General] Mr. Abraxas:
Hello. I am trying to root my phone with Magisk. I followed the steps in the thread to get a root installed. When I put the .zip file into the phone and go to my downloads(just cause it was easy to place there) and run the zip install, it fails. Anyone have an idea of why this happens?

Also, when I try to open the Magisk Manager, it opens my Nox app, which does not open the manager.

Ok, so I have no clue when I would install the Manager. But it has to go on the device.

I followed all the steps in post 1 and when I get to the Magisk root portion, I have no idea what I should be doing.
[Nexus 6P General] ffejy462:
You're flashing it in twrp recovery, correct?

The most up to date version is 16.2. Once you flash magisk in recovery, you'll have the manager in the app drawer. Magisk questions should be asked in their support threads. Please follow up there if you continue to have issues.
[Nexus 6P General] Mr. Abraxas:
Ok so literally followed the guide. I made my backups. Step six is to download Magisk or SuperSU. I chose to do Magisk. I downloaded the 16.2 zip from his github(stand alone version). I put the device into twrp recovery, tap install, go to downloads, and the zip is there to install. In the middle of the install it tells me it fails after the check for it's signature. So the steps I was making, perhaps I should use the bundle instead.

I got it installed I think. I did the combo package, after I set up the phone. Now to see how much it is working.
[Nexus 6P General] rob420p:
Great guild I had to use it as a reference worked like a charm.8.1.0
[Nexus 6P General] exodroid92:
Does this still work on the latest build of the nexus 6P? I'm having issues flashing twrp, getting this error on command promt= "The system cannot find the file specified"

haven't rooted a phone in 3 yrs :(
[Nexus 6P General] Einwod:
You are probably not issuing the correct commands or you don't have TWRP in the right folder.
[Nexus 6P General] exodroid92:
Got it to flash, thanks!! I was probably miss typing something or it just worked after i updated the phone to the 8.1., thought I was on the latest update already. Now twrp wont stick and have to re flash every time i wanna use it. I'm assuming i have to install one of the roots for it to stick? Going to try it and read up on here. Thanks!
[Nexus 6P General] Einwod:
Use Magisk, it's a far superior root mechanism. It also passes safety net so you can hide your banking apps from it and they will work OK.
[Nexus 6P General] gOOglEy03:
I just switched to Magisk, but when I try to install the manager, it only says "App Not Installed". I've never had this issue before... Do you have any suggestions?

UPDATE: I figured out the issue! I went to the GitHub releases for the manager, and just started attempting to install each older version until I was successful. I finally succeeded with 5.6.0, and then updated to the latest version once I was in the manager itself.
[Nexus 6P General] betahaedar:
I want to flash my Angler back to stock, but I'm a little bit confused which factory image to be used since there are two April 2018 builds.

Any help would be appreciated.
[Nexus 6P General] Spannaa:
Use OPM3 unless your carrier is Softbank.
[Nexus 6P General] creep138:
ok, heres where im at. ive already done the guide, worked fine without a hiccup until i flashed su for stock rom. never got off the google screen.

downloaded last firmware used twrp to adb sideload and flashed. device starts now.

trying to flash twrp now and cannot. bootloader is still unlocked but refuses to flash twrp
[Nexus 6P General] Einwod:
Are developer options on? USB debugging enabled? Just a thought. Have you tried Magisk for root? Much superior to SuperSU IMHO.
[Nexus 6P General] unclejuju:
I'm coming from 6.0.1... What all do I need to install a 8.1 rom? I haven't flashed anything In a good 2 years so I'm rusty lol
[Nexus 6P General] force70:
Well if you haven't already....read the OP, good place to start. Then hit that search button and research, 2 yrs is a long time...lots has changed so best to read up and get up to speed before flashing.
[Nexus 6P General] creep138:
i figured it out, i guess i lost fastboot sideloading with twrp recovery. after another flash with stock recovery it fixed it. i was reading you needed something to flash to get twrp to stick, but since im not running stock nor root i could just flash lineage to have it stick. now off to find a rom ill enjoy
[Nexus 6P General] Michael833:
I'm looking at the Nexus/Pixek factory images page and I see that the 5X and all the Pixels have all been updated to May versions, but not the 6P. Do we have a sense if it will be updated, or has the sunset already occurred?

EDIT: Actually now when I go to the Factory Images website (https://developers.google.com/android/images?hl=en) and click "acknowledge" it just brings me back to that same page again. I can't actually see the images, sadly.
[Nexus 6P General] ffejy462:
Try another browser. I'm having the same issue with Chrome, but Firefox works (and May factory image is finally there).
[Nexus 6P General] scrin378:
Yes...confirmed. same issue here with Chrome..wtf??? but with any other browser is all ok.
[Nexus 6P General] Michael833:
Brilliant, thanks for figuring that out.
[Nexus 6P General] HeroPlane:
In Oreo there is no userdata.img

Please update the thread with instructions to wipe userdata
[Nexus 6P General] Badger50:
fastboot format userdata :cool:
[Nexus 6P General] HeroPlane:
Can I also Wipe Cache and Userdata with TWRP before I flash all the images with fastboot?
[Nexus 6P General] Badger50:
I believe so. My 6p skills are a little rusty, however I do remember that you can format user data with twrp. However, both twrp and fastboot will wipe your internal storage if that's what your wanting to do.
[Nexus 6P General] HeroPlane:
Yeah, I want to completely wipe my phone and go back to stock. Thanks for the help!
[Nexus 6P General] Badger50:
Then just fastboot the factory image with flash-all.bat scrip that'll wipe your phone as Well :good:
[Nexus 6P General] g923851:
For #7 ,custom rom, Can we ignore the radio and bootloader image?
[Nexus 6P General] Badger50:
Radio yes, bootloader no. Always a good idea to keep the bootloader up to date :good:
[Nexus 6P General] swamp2:
Thanks, huge help today. Was totally stuck...
[Nexus 6P General] videotape74:
Going from Lineage 15.1/TWRP back to stock do I follow #10 from the opening post?

I was given a 6P and it had Lineage installed but I would like to go back to stock. Thank you for any/all help!
[Nexus 6P General] Badger50:
Yep, #10 will bring you back to full stock. Just be advised that this will completely wipe your phone. So be sure you backup any data you don't want to lose to your pc :good::good:
[Nexus 6P General] videotape74:
thank you! will this also remove twrp and go back to stock recovery? :)
[Nexus 6P General] Badger50:
Oh yes indeed :cool:
[Nexus 6P General] videotape74:
all done, thanks! :good:
[Nexus 6P General] mojorisin7178:
Hi everyone, for now I just want to install TWRP and magisk for root but I want to keep everything else stock. I understand how to do that. My question is each month when security patches come out can I just flash the vendor .IMG and system.img? Or do I have to flash the radio and bootloader and everything else? And if I do that so I have to reinstall TWRP and magisk?
[Nexus 6P General] Badger50:
The easiest way to flash everything is to remove the -w from the flash-all.bat file. This will NOT wipe your data :good: Then you'll have everything, and all you'll need to do is install twrp and root again. :cool:
[Nexus 6P General] mojorisin7178:
Thank you for your help.
[Nexus 6P General] mojorisin7178:
hi, I just rooted and installed the latest los. build 7-2. the security patch is june 5. Before i updated i was on the latest factory image. My security level was july 5. When i boot up my phone it says that i have the wrong vendor image. So does that mean i need to downgrade back to the june factory image then reinstall los. or can i just wait till los incorperates the latest security updates into the last nightly? I have full backups of the stock before i rooted and after root and after i installed los.
[Nexus 6P General] Badger50:
Just wait until your rom is updated and dirty flash the rom July build and you should be good. If it bothers you a lot, just flash the June vendor :good::cool:
[Nexus 6P General] goister:
Hi guys,

I have a Nexus 6P that was running stock 7.1.2 (N2G47W) firmware. I followed the guide to install TWRP and root with Magisk. Everything was working. Next, I wanted to downgrade to a Mashmallow build, so I selected 6.0.1 (MTC20L). I followed the guide again (step 10), specifically, the following steps:

Boot to TWRP, wipe everything (everything checked)

Boot to bootloader

Run the following commands

fastboot flash bootloader bootloader-angler-angler-03.54.img
fastboot reboot-bootloader
fastboot flash radio radio-angler-angler-03.61.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot erase cache
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot

All commands ran successfully with OKAY statuses (erasing cache did show a "******** Did you mean to fastboot format this ext4 partition?" warning message).

However, this resulted in the device entering a bootloop. The Google screen with the lock icon appears for a few seconds, then the screen goes blank and the orange LED blinks for 7-10x before rebooting again.

I've tried the following to troubleshoot to no avail

1. Redid the entire process

2. Flashed to the original N2G47W firmware

3. Entered stock recovery and factory reset after flashing

Unfortunately I did not perform a Nandroid backup. What can I do to restore the phone to a working condition/downgrade it to 6.0.1?

Thanks.
[Nexus 6P General] Einwod:
Download the stock firmware of your choice from the Google page, extract it and run the flash.all bat command. That will return you to that version that you downloaded, clean and like a new device. Run setup to get started fresh.
[Nexus 6P General] goister:
Thanks, I managed to downgrade to 6.0.1. Turns out the boot loop was caused by the USB cable still connected after rebooting upon flash. Once I disconnected the USB cable, it booted up. No idea why this is the case, I didn't read this in any guide/documentation.
[Nexus 6P General] Gallion:
Oh my god.. OH MY GOD.

"This will erase all user data from the device!"

You need to issue this warning BEFORE, NOT AFTER YOU TELL PEOPLE TO ISSUE THE COMMAND!!!

I know, I'm an idiot, I didn't read the stupid prompt properly.

Oh my god.. My device has started erasing... I'm shaking. I paused the boot process. Anything I can do now to recover my photos and videos?! I have really important photos and videos I've taken of the construction work that's been done on my house last week that I hadn't backed up yet.
[Nexus 6P General] ffejy462:
Doubtful. Did you happen to have Google photos app?
[Nexus 6P General] Gallion:
No... I explicitly did not want to backup my photos and video to google drive in case someone ever gained access to my account... *sigh*

I had unlocked the bootloader from the developers options and that did not wipe the phone... so when I followed the instructions to unlock it through ADB I thought nothing of it and just clicked yes. UGH. The whole point of me installing TWRP was to do a full backup too. Godammit.
[Nexus 6P General] ffejy462:
Bummer. Important lesson learned. Unlocking bootloader wipes device. Decrypting wipes. Formatting wipes. Large industrial magnets.... Well, they probably just screw it up really good.

Has always been this way (AFAIK).
[Nexus 6P General] Gallion:
Unlocking the bootloader through the developer options does not wipe the device. I assumed issuing that command simply did the same thing so I did not think twice about it.
[Nexus 6P General] ffejy462:
Developer options merely enables the ability to unlock. It's not unlocked until you issue the command in fastboot.
[Nexus 6P General] Gallion:
Yeah I guess I know that now.
[Nexus 6P General] mobileman88:
Painful lesson. Learnt it many years back too. Always backup when doing major operations. Locking also wipes.
[Nexus 6P General] deborah_schaff:
latest update

I use twrp 3.0.2-2 and the latest version is 3.0.3-0, shoulod i use the latest twrp or it's not necessary?
[Nexus 6P General] ffejy462:
3.2.2-0 is the latest
[Nexus 6P General] smartpreet:
[MENTION=4153349]Heisenberg[/MENTION]

please help me.

i have completely wiped my device. nothing is there in internal storage. Just the TWRP folder.

it has unlocked bootloader and twrp installed

but it is the unrooted device.

so please tell me what is best for me?

shall i root it or can i directly go to stock Oero?

i have already downloaded stock file '8.1.0 (OPM6.171019.030.E1, Jul 2018)- angler-opm6.171019.030.e1-factory-1abcb2f1.zip'

i am confused, how should i proceed?

please explain me stepwise, so i can save my phone.
[Nexus 6P General] Badger50:
Have you read the OP? It has instructions for everything your wanting to do. Just go to stock Oreo by fastbooting the July factory image. Then if you want to root it you can :good:
[Nexus 6P General] Badger50:
Lets see if we can make this a little easier. If you have the latest SDK/platform-tools, GOOD. Now, all those files you extracted from the factory image should be in the platform-tools folder. If so, just double click the flash-all.bat file which should start the installation. This will wipe your phone!
[Nexus 6P General] smartpreet:
i have tried that earlier, but still i got the red triangle.

since i failed to go to stock today i installed latest twrp-3.2.2-0-angler using latest SDK tool.

then i flashed Magisk-v16.0 and then ResurrectionRemix-M-v5.7.4-20161008-angler and it immediately went to google logo and stuck there.
[Nexus 6P General] Badger50:
Install the rom first, let it boot up, then go back and flash magisk. Sometimes when you get the red triangle, a factory reset might fix it.
[Nexus 6P General] smartpreet:
bro i am not able to install anything in my phone that is the issue.

whatever i do i am going to back to that f...king Google logo.

this is my device's status
[Nexus 6P General] Badger50:
Hmmmm....so when you tried fastbooting the factory image, did you get any errors during the process, or did it appear that it worked fine?
[Nexus 6P General] smartpreet:
I didn't notice anything unusual.

and waited for the phone to boot into the system but it got stuck on google logo again
[Nexus 6P General] Badger50:
And doing a hard restart with the power button from the google logo screen does nothing as well? And, from the bootloader screen, have you tried using the volume rocker to get to recovery? If so, is it the stock recovery, or twrp?