yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] smartpreet:
after using the volume rocker to get to recovery the phone will be go to twrp recovery mode
[Nexus 6P General] Badger50:
And that is/was the case after you fastbooted the factory image? Or did you install twrp after the factory image install?
[Nexus 6P General] smartpreet:
i tried to install factory image via fastboot but it didn't work. so i thought at least i will try to flash custom rom, to do that i flashed latest twrp again but it didn't solve the issue?
[Nexus 6P General] Badger50:
Well, at least your fastboot appears to be working if you were able to fastboot twrp. Maybe we should try starting over with the factory image because it's bothering me that it appears it didn't flash. So, go into your SDK/platform-tools folder and delete your factory image files, which should include....

Bootloader

Radio

The secondary zip that has several files within it

And the 3 other scripts that include the flash-all.bat, flash-all.sh and one other.

Then, download the angler factory image for July.

Extract that zip using 7-zip or Winzip, and then move the files I mentioned back into the the platform-tools folder, then enter bootloader/fastboot mode, go into your platform-tools folder and double click the flash-all.bat file and see what happens.

BTW what type of pc are you using to do all of this?
[Nexus 6P General] smartpreet:
as you told i have transfered files to platform-tools folder

then clicked twice to flash-all.bat

the process started and finish without any issue but still i am on google logo.it keeps booting to log. nothing else is happening

what i am doing wrong?

i don't get it.

please help
[Nexus 6P General] Badger50:
Where are your bootloader and radio files?
[Nexus 6P General] Badger50:
Here is a pic of my platform-tools folder for my P2XL which is pretty much the same as my 6p. You'll notice that I have bootloader and radio, and a image-taimen-opm2 folder that is still zipped. This is why I think your not getting a proper install. That angler image file shouldn't be in there. The content of that file should be.
[Nexus 6P General] deborah_schaff:
Thank you

Thanks a lot, I will update it
[Nexus 6P General] smartpreet:
now my folder contains files same as you

after that, I had connected the phone and double-click the flashall

the process shows as below

i don't know why the command shows it archive does not contain....

i think i am proving to be big fool.
[Nexus 6P General] Badger50:
On your C drive, do you have a file named SDK?
[Nexus 6P General] smartpreet:
no. should i?
[Nexus 6P General] Badger50:
Not necessarily, was just curious since I do, but then again I use the full SDK/adb suite. Something is just not flashing correctly for whatever reason, and I can't figure out why. And when your in fastboot mode and type in fastboot devices, your phone ID is displayed, and when you type fastboot --version, you get the 28.0 version displayed?
[Nexus 6P General] smartpreet:
i don't get your question.

whose version i should be 28? where it shows?
[Nexus 6P General] Badger50:
The latest fastboot version that you likely downloaded from here.

https://developer.android.com/studio/releases/platform-tools
[Nexus 6P General] smartpreet:
oh that one.

brother i m already using it from the beginning.
[Nexus 6P General] Badger50:
Ok, that's what I thought, was just checking. This is starting to tick me off a little. You seem to have everything as it should be, and twrp is still your recovery. So, lets try this. Delete all of the 8.1 factory image files from your platform-tools. Download the angler 7.1.2 factory image from August of 2017, extract the files and put them in your platform-tools folder like you did with the 8.1 files, then run the flash-all.bat again.

I believe you mentioned you were on a 7.1.2 build of DU. So I'm just trying to get the phone to boot up with the coinciding factory image.

BTW, have you tried rebooting your pc and then tried fastbooting 8.1 again?
[Nexus 6P General] smartpreet:
i just tried this too. but still same result.

Brother I M GIVING UP now.

many many thanks for your help.
[Nexus 6P General] Badger50:
I just don't like giving up my friend! So here's another suggestion. I'd like you to manually flash the bootloader, radio, and recovery images. The recovery can be found in the secondary zip. The commands are.....

fastboot flash bootloader bootloaderxxxxx.img

fastboot reboot bootloader

fastboot flash radio radioxxxxx.img

fastboot reboot bootloader

fastboot flash recovery recovery.img

fastboot reboot bootloader

It probably still won't boot up, but now you can get to stock recovery and do a factory reset. Then maybe try flashing the factory image again.
[Nexus 6P General] Gallion:
I am unable to get TWRP to stick without root on Oreo. I don't really want to root because it causes various apps to constantly crash even on a fresh install.
[Nexus 6P General] Badger50:
Does flashing a custom kernel help?
[Nexus 6P General] Gallion:
I have not tried that. I wanted to keep the system as vanilla as possible besides TWRP.
[Nexus 6P General] Badger50:
Now that I've thought about it, I believe you have to flash root to make twrp stick. At least I had to on my 6p. Been a while since I used mine, but my memory finally came through. You'll just have to fastboot into twrp when you want to use it if you don't want to root. :good:
[Nexus 6P General] smartpreet:
did as you instructed but still red triangle,android logo and No Command screen

:(

i am able to flash twrp as many times i want, but what the hell is wrong with stock recovery? i just can't get it

is there anyway, that i can use twrp to flash stock rom or root and flash custom rom?

it doesn't matter if the phone is rooted or not.

i just want to see it working again
[Nexus 6P General] Badger50:
Download the OTA zip from here that coincides from your most recent build you were on and flash it in twrp and see what happens. What the heck, got nothing to lose :good:

https://developers.google.com/android/ota
[Nexus 6P General] scrin378:
Yes, you are right...if he want TWRP to stick, root method must be flashed before first boot, if not then he must use fastboot every time when trying to enter custom recovery!

And [MENTION=3730810]Badger50[/MENTION] you have my respect for trying to help that guy with his problem...;)
[Nexus 6P General] Badger50:
And BTW...the red triangle and android logo is stock recovery. You have to hold power and volume up simultaneously then release volume up to get into the interface.
[Nexus 6P General] smartpreet:
i tried this too, but nothing happens again
[Nexus 6P General] Badger50:
Did you try flashing the OTA in twrp as well?
[Nexus 6P General] smartpreet:
no. that i didn't try.

i thought, there is nothing my phone no system no stock recovery only trwp,

how can flashing OTA will help me?
[Nexus 6P General] Badger50:
Because that will essentially flash all the system files you need. It's just about like fastbooting the factory image. Go to the link I gave you, download the OTA that coincides to what build you were on before this all started :good:
[Nexus 6P General] smartpreet:
i don't remember the eaxct version 7.0 or 7.1 or 7.1.2. i that case what should i do?
[Nexus 6P General] Badger50:
Then just flash the August 2017 7.1.2 version :good:
[Nexus 6P General] Einwod:
Sorry, but really, I think this is some kinda troll. Enough is enough. How much farther does this have to go?
[Nexus 6P General] smartpreet:
i tried this just now.

flashing start and suddenly the phone wen back to google logo.

FYI,

when i connected the phone to my pc somehow there i found lot of folders in it, inlcuding earlier TWRP folder.

but all of them were empty.

i don't get it
[Nexus 6P General] matthewlswanson:
root didn't work on oreo

I flashed superSU stable 2.82 from TWRP and my phone won't boot. Wiped the cache and dalvik and waited 30 minutes. Any ideas?
[Nexus 6P General] Arcide:
Yeah, just use Magisk
[Nexus 6P General] dgeht69:
hi all! so i'm a total noob when it comes to this. the last time I rooted a phone, I used some apk called 'Poot' on my PCD Venture (JukeB). now i'm on a nexus 6p on 8.1. my sole purpose for rooting this is to finally install Resurrection Remix OS. i'm using Linux Mint (Serena) and i've tried a lot. i've did the fastboot thing... like i'm not sure what i'm doing wrong. but its clearly something, because whenever I goto the adb command, and tell Serena to list devices, she (the Linux Mint Serena) does it. so I goto fastboot my nexus 6p (stock 8.1) with the usual, adb reboot bootloader, and it works... I goto fastboot flashing unlock, and she gives me the fastboot help readout. now I goto adb devices, and she does the same thing. i'm not too familiar with cli (command line interface--i'm not sure if we use that term) so I wouldn't know how to uninstall it and reinstall it. also, I bought my nexus 6p on eBay so I doubt our overlord (google) is going to give me a replacement.

all I want to do is have Resurrection Remix. please help!

thanks
[Nexus 6P General] Einwod:
You're using the wrong command. In fastboot screen the command is: fastboot devices.

ADB is used when in the actual OS itself or in TWRP. Fastboot commands in the fastboot screen.
[Nexus 6P General] dgeht69:
I used ADB devices when the actual OS (stock 8.1) is on. After ADB devices, I'd see my Nexus 6p. Then I'd goto ADB reboot bootloader. Then fastboot devices. At first it shows up with my Nexus, then I goto fastboot flashing unlock. That's when Serena outputted the help text. Sorry, I should've been more clear.
[Nexus 6P General] henke002:
Hi!

My friends phone got the bootloop of death after july OTA.

He has not enabled USB Debug ond/or OEM Unlocking and rebooting to recovery doesn't work.

Now, we have been trying to unlocking the phone but it says oem unlock is not allowed because of what I mentioned above. I'm wondering if there are any other way to save my friends phone in an DIY way or is the only answer to contact Google/Huawei for assistance?

Thanks!
[Nexus 6P General] Badger50:
Bout the only thing you can do is replace the motherboard and/or battery.
[Nexus 6P General] kilasat:
I need help. I just went back to stock following the post #10 and now the phone is booting up for 10 minutes and nothing. I also tried to enter the recovery but I cant do this with holding power and volume up. Bootloader is still unlocked. Any ideas?
[Nexus 6P General] Az Biker:
I just followed the same instructions 2 weeks ago without any problems.

Did you follow the directions exactly?

And did you use the correct files?

Not trying to be insulting, just making sure.
[Nexus 6P General] atentaxogstineup:
Great write up.

I did an "adb backup" of my entire phone. I want to root and unlock the bootloader which looks like it will erase all my data. Once that's done, I should then be able to install TWRP and then install LineageOS, is that right? and then can I restore my apps and data from my backup? Thank you.
[Nexus 6P General] Spannaa:
No, if the backup was taken on one rom and you install another, you need to wipe data to avoid issues.

Restoring data from a different rom is the same as not wiping data.

Just backup what you want to keep from your internal storage before unlocking your bootloader.
[Nexus 6P General] atentaxogstineup:
Ah I see. So if I was to use Google's Backup to backup all my apps, then could I restore my apps on to the custom rom? or would I need to use something like TitaniumBackup?
[Nexus 6P General] Badger50:
You could actually do both. Let google restore your apps, then use TiBu to restore your data for those user apps. Don't restore system app data....sometimes that doesn't work out so well :(
[Nexus 6P General] Spannaa:
Yes, you could use Google's backup for your user apps but you can't use Titanium Backup unless you're rooted.

Make sure you backup your photos/music/videos etc. from your internal storage before you unlock your bootloader though ?
[Nexus 6P General] atentaxogstineup:
Those are excellent points. I moved all my photos and personal stuff to my SD card and uploaded them to my computer. Before installing a custom rom, to use the full feature set of TiBu, should I root my phone first and then backup everything with TiBu. If so, would I go with a soft root? cause the hard root in the guide seems to require wiping my data.
[Nexus 6P General] Spannaa:
Soft root?
[Nexus 6P General] mongomunken:
Hello,

Thanks for the great guide, I have had my 6P rooted for a long time thanks to it. But now I don't know what to do.

I am now getting a notification to update to 17.1, and the Magisk Manager says Magisk is not installed. I'm confused, has it been uninstalled somehow?

In any case, I don't understand how to follow through with the update. I'm assuming I should do "Patch Boot Image File"? Is there a guide on how to do this? Or do I need to follow the OP step-by-step again to update?

Sorry for being completely oblivious, but it was a long time ago I had to interact with Magisk at all.
[Nexus 6P General] Einwod:
If you have Magisk manager installed, just download and flash the Magisk17.1 zip file with TWRP. That should be enough to root the device. When you start up again, check in Magisk manager to see if you have root access and safetycheck status. It should be alright. If not, download and flash the Magisk through the manager.
[Nexus 6P General] Empty Hand:
Is there some sort of wipe/formatting done when a factory image is flashed even when removing the "-w" from the script? Again, I'm thinking of when a larger update is released like 6.1. Thank you!

---------- Post added at 11:32 AM ---------- Previous post was at 11:31 AM ----------

Is there some sort of wipe/formatting done when a factory image is flashed even when removing the "-w" from the script? Again, I'm thinking of when a larger update is released like 6.1. Thank you!
[Nexus 6P General] vaindil:
Searched the thread, found nothing--fastboot flashing unlock returns "FAILED (remote: oem unlock is not allowed)". Any ideas?
[Nexus 6P General] midas69:
Here's the version I have:

Android Debug Bridge version 1.0.32

Revision eac51f2bb6a8-android

I ran the SDK manager and did all the updates and ADB did not get updated. So I'm stumped.

No big deal since I got it working eventually. But I'm always curious.
[Nexus 6P General] jayrad37:
Did you enable OEM unlock in developer settings?
[Nexus 6P General] Heisenberg:
Have you actually followed the instructions and enabled OEM unlocking?

That's definitely the latest version. I have no idea, sorry.
[Nexus 6P General] vaindil:
I'm apparently completely blind, I'm very sorry. Thank you!
[Nexus 6P General] Bhushan Bhavsar:
Excuse me but how to root xolo era smartphone i don't found the forums for it so give me suggestions
[Nexus 6P General] efrant:
No. If you remove the -w, there is nothing that is wiped.
[Nexus 6P General] Docnoq:
If I unlock my bootloader and leave everything else stock (stock recovery, stock rom, not rooted), will I still be able to receive OTA updates?

Just in case you are wondering why I would even want to unlock the bootloader in that case, my plan is to just prep my phone in the off chance that Google eventually allows Android Pay to work with root access, and I'd rather wipe my phone now while I do not have many settings to lose rather than later once I really start breaking the phone in.
[Nexus 6P General] belloni:
So root went well, only issue and this may be the wrong forum so excuse me if so, but Gsam battery monitor isn't working right. I have root companion also and some of the digits are weird symbols etc.
[Nexus 6P General] Badger50:
Probably the app isn't quite ready for 6.0 yet. Just a guess of course :)
[Nexus 6P General] Empty Hand:
I'll try to make this my last post on this topic. I have always "clean flashed" when updating a ROM that involves a new Android version (which is easy with custom recovery options that do not wipe internal storage). If on stock recovery, when you say wiping is not necessary when updating a factory image, is that because it's just updating the stock Android ROM to a new version? Or, should some type of fastboot wipe command that doesn't wipe internal storage be used to avoid problems? Thank you for your answers and patience!
[Nexus 6P General] byproxy:
EDIT: nevermind... you have to issue a command via adb first before it asks you for the authorization. my bad.

so i'm having a driver issue i think on windows 10. i can't get the usb debugging auth window to pop up. i see someone else posted the same problem and then resolved it but did not explain how they resolved it.
[Nexus 6P General] efrant:
Let's look at the case when you are fully stock and receive an OTA update notification.Your device will download the update, reboot into the stock recovery, and proceed to update your device. It will update the boot partition, system partition and the recovery partition (and sometimes the radio and bootloader and I guess vendor on newer devices), and then it will reboot and you have an upgraded device. The update does not touch the userdata partition (where all of your data, apps, settings, etc. are stored) at all, i.e., nothing is written there, nothing is wiped, etc. So, by extension, if you want to use the factory image to update your device, you only need to flash the boot, system and recovery (and sometimes the bootloader and radio and vendor) image files. You do not need to do anything with the userdata image file.

Yes, the script included with the factory images has the "-w" flag to wipe your device, but it is not a requirement to use it.

Now, having said all of that, there could be some older apps that are not compatible with newer versions of Android, and thus, could cause a bootloop if you don't wipe -- but you should be able to boot into safe mode, uninstall the app, and reboot fine.
[Nexus 6P General] kchao1213:
can i update to the latest factory image without wiping and losing root? i'm currently rooted on MDB08K and want to update to MDB08M but don't want to go through the hassle of backing up, re-rooting, and restoring. i remember being able to dirty flash in the past and i'm wondering if i can do the same here. thanks!
[Nexus 6P General] adrman:
Yeah, Gsam is borked for a number of us. I think it has to do with permissions.

---------- Post added at 10:13 PM ---------- Previous post was at 10:09 PM ----------

Yes. Just flash system and vendor from the M factory images via fastboot, reboot to recovery and flash SuperSU.
[Nexus 6P General] kchao1213:
thanks, much appreciated. out of curiosity, is there any reason i should only flash those two img files and not the rest? recovery.img is obvious, but how about the others?
[Nexus 6P General] Lightshield:
Ok, somehow I borked this whole process.... I am now successfully rooted, with TWRP, however my build is still showing MDA89D and my Security Level is still October 1st. :-/

Can I now apply the newest Build / OTA without having to completely redo the Root process or wipe Userdata?
[Nexus 6P General] mongomunken:
I never needed to use TWRP for an update before, but it was that simple! Thanks.
[Nexus 6P General] Ye_Jin:
Nexus 6P android 8.1.0 root follow post 1 OK?

Sorry i'm noob english, thank!
[Nexus 6P General] atentaxogstineup:
I believe those refer to a software root exploit. The more I read about it, the less I wanted to do it.

I was able to get root on my device and restoring from my backup.ab file did not work very well. I didn't know `adb restore` does not restore apps, just app data. It would be better to get a list of the apps you downloaded, backup to google, or use titaniumbackup to backup everything. Couldn't find any open source apps that didn't require root that could do the same as titaniumbackup. But at least my pics, texts, and other stuff was backed up manually using usb otg.

Thanks everyone for the help. I'm now trying to install a custom and having issues. I created a separate thread for it in the general chat since this post doesn't mention custom roms.
[Nexus 6P General] MeZmeriZe_:
Hi Folks, I followed this thread to root/twrp my 6p and it "seemed" to work. TWRP is working fine.. flashed magesk and supersu and rebooted, twrp asked me if I want to install the TWRP app and make it a system file.. I thought sure.. why not.. and my phone has been stuck at the boot animation ever since. (2 hours but it has 195 apps installed from the google restore so I don' t know if it's secretly rerunning them behind that boot logo as I wiped the dalvik/art cache too. Was I not supposed to install the TWRP app?
[Nexus 6P General] Badger50:
The short answer is no. And, why are you flashing magisk and supersu?? One is all you need. So, to get back to where you were, either restore your backup you hopefully made before you started, or fastboot the factory image you were on with the -w removed from the flash-all.bat file so as not to wipe your data :good:
[Nexus 6P General] Ye_Jin:
My phone: Nexus 6P, android 8.1.0, I unlock bootloader, then install TWRP Recovery and Magisk 17.1 and done, root success, thanks. Skynet work, i can change system font by iFont :)
[Nexus 6P General] MeZmeriZe_:
LOL, I thougth it was odd too.. i obviously read it wrong, was 3am too so I wasn't entirely with it.

Anyway, since TWRP worked, I flashed unSU from here: https://xdaforums.com/showpost.php?p=63615067&postcount=2459

It removed both superSU and Magisk, and I reflashed just Magisk and all is well in the world... one less totoal flash thankfully.

Thankyou for your assistance sir.
[Nexus 6P General] Ye_Jin:
my devices rooted, can i lock bootloader?
[Nexus 6P General] Badger50:
Yes. Just make sure you return to full stock before you lock it. This procedure WILL wipe your phone as well.
[Nexus 6P General] Spannaa:
Yep, return to full stock first, including stock recovery.

Locking your bootloader when you have a custom recovery can brick your device.
[Nexus 6P General] mobileman88:
Do a full BTS with wipe then relock critical and bootloader. You should be good.
[Nexus 6P General] LifeAsADroid:
Started working through the guide steps, everything was going well. Bootloader unlocked, TWRP installed, flashed SuperSU, wiped dalvik and cache, rebooted and... Now stuck at the "Google" startup screen. Phone doesn't reboot, just hangs at the "Google" startup screen.

Bootloader was unlocked and all OTA updates were taken up to present Sept security update. TWRP 3.2.3-0 was the recovery flashed. SuperSU 2.82 was the root flashed in TWRP.

Any ideas? Did I not do something right?

I am able to get into TWRP through booting to the bootloader then to recovery. Phone just won't boot up.
[Nexus 6P General] Badger50:
Have you tried flashing the unsu and see if it boots up. If it does, then go back to twrp and flash SU again, but don't wipe cache/dalvik. If that doesn't work, then you may want to look into magisk for root since SU compatibility may be an issue.
[Nexus 6P General] busteray:
I'm having problems with the first step. I can't install the google usb driver to my windows.

I enabled USB debugging and connected the phone to my pc.

It showed up in the device manager after choosing "File Transfer" from the "USB connected" notification in the phone. (doesn't show up in device manager otherwise)

Right Click>Update Driver>Choose folder with driver files>"Windows has determined that the best drivers for this device is already installed".

I tried disabling driver signature check from advance startup since I am using windows 10.

edit : "adb version" returns version value and "adb devices" returns the serial number without problems should I continue?

edit 2 : "fastboot devices" doesn't return anything. (phone is in bootloader mode, cable is connected)

edit: 3 : Phone showed up as "Android" when I unplugged from PC > went into bootloader > replugged. My problem is solved now. Leaving this here in case someone else has the same problem.

Also in win10 you need to type cmd on the adress bar of file explorer from platform-tools folder instead of shift-right clicking. PowerShell doesn't work.
[Nexus 6P General] peter9811:
I going to try use on Mi Moto G5...
[Nexus 6P General] jc1266:
Hi all

Recently got a 6p from my sister. I root it and install twrp 3.2.2.0 . When I try to backup efs I noticed twrp no efs partition(no efs check box) to backup .. pls help