yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] mmattshow:
I think I figured it out. I had to enable the shortcut in system preferences to open a new terminal at folder when right-clicking a folder. (System Preferences -> Keyboard -> Shortcuts -> Services -> check New Terminal At Folder) Also, when in the terminal, I had to include a ./ before anything I type. I think it is working now.
[Nexus 6P General] SlimSnoopOS:
Hey there,

I oversee this same guide for the Nexus 5X forums.

Read over my post if you need any additional help as an OSX user
[Nexus 6P General] fiverings:
I installed TWRP but forgot to flash recovery after, I flashed reboot and now when I go to recovery, it will only go to stock recovery on my Nexus 6p. Can I flashed TWRP over the one that's hiding or is the first one not really installed.
[Nexus 6P General] 5.1:
Hi... Starting with Android 7, you have to install a SuperUser. Otherwise TWRP will be overwritten when you'll reboot into system.

Flash TWRP in bootloader with fastboot. Reboot into recovery and install magisk SU OR SuperSU. After that TWRP will stick. From here you can reboot into system...

Good luck...
[Nexus 6P General] fiverings:
You saying that even though I installed twrp or so I thought, I can install twrp over the one I already installed or so I thought was installed, then reboot into recovery and flash super su from twrp or install super su before I reboot into recovery.
[Nexus 6P General] 5.1:
Yeah... You installed TWRP. But when you rebooted into system, it's like you didn't do it (it got overwritten by the stock recovery).

As for how to proceed to reinstall it, read my previous post once again, I think I couldn't have been clearer... :)

Good luck...
[Nexus 6P General] fiverings:
Ok I understand completely, I was being extremely cautious because I didn't want to mess up the phone

Thanks for your help
[Nexus 6P General] 5.1:
Yeah. Better have a confirmation in this case.

Cheers...
[Nexus 6P General] fiverings:
Ok I screwed up again. I went to install twrp and super su. I installed twrp and the instructions I was following said to install su I should format. I did and now I have everything nothing on my 6p only twrp. I put phone on pc and adb came back with my serial number. How can I fix this, what file or will it take a rom . Need help, don't want a brick.
[Nexus 6P General] 5.1:
Hey... Either flash a custom ROM with twrp or flash a factory image from Google with flash-back or manually...

Good luck...
[Nexus 6P General] jt1998:
as long as your bootloader is unlocked and you can get into recovery, you're fine.

you can connect your phone to PC and in fastboot you can add files to the phone internal storage by dragging/dropping from PC to phone in windows.

Once you have the ROM you want, superSu, gapps, flash away.
[Nexus 6P General] fiverings:
I think my bootloader got wiped or not if I can install a rom from otg will that give me a system or do I need a system installed first..?
[Nexus 6P General] 5.1:
Bootloader​ is unlikely wiped... Select reboot in TWRP > bootloader.

From here, install factory image..

I never worked with otg storage so I I don't know if it will work and how... Did you wipe internal storage? If yes, flash bootloader.img , boot.img and system.img from the factory image of your choice, flash Supersu or Magisk from TWRP... Let it reboot. You'll get your internal storage back.

If you wish to reinstall a custom ROM, go in TWRP and wipe, art/dalvik, system, cache and data in advanced wipe (NOT INTERNAL STORAGE), flash your ROM, Supersu or Magisk and reboot...

Profit...
[Nexus 6P General] Einwod:
Why will you not read and follow the instructions that others have given you? Read what they say and follow their advice. How much more simple can it be?
[Nexus 6P General] fiverings:
I installed bootloader.img and boot. Img and I booted into bootloader I was Fastbooting installing a factory rom when I got to system it stopped. I only have factory recovery. If I do a factory reset will that work. My internal storage is 0 with except for what is left from the 64Gb so I have like 54gb so will a factory reset work.

I sorry your not here to see this, so please cut me some slack I'm trying my best and this is hard for me. I've never had this much problems doing this and I can't afford to brick this phone. I truly appreciate all your help.
[Nexus 6P General] JrSmilez:
What do you mean by it got to system and it stopped? If you got an error you have to update adb and fastboot. Google the error you got. You may have to format your system partition but without knowing what happened I don't want to tell you the wrong thing.
[Nexus 6P General] fiverings:
I was in recovery and about to try a factory reset, but instead I chose bootloader and the phone booted up to the Welcome screen and its working. Close call

Thanks again guys for your patience.
[Nexus 6P General] 5.1:
Just fastboot flash TWRP from bootloader. Boot into recovery and install Supersu 2.79sr3 or last Magisk SU... Go in wipe in TWRP and make a factory reset. Then reboot...

About you being sorry?! All the questions you asked have already answers... Either in guides in general section or answered here in the Q/A. There is a search function which works very well you know. Today you were able to solve your issue, yeah. But some day you may push the bad button or enter the bad command and adios amigos, your phone will be dead for good. Do yourself a favor and read more before doing things... :good:

Good luck...
[Nexus 6P General] fiverings:
Well the phone is fixed, booted into welcome screen.

To answer your question, I was in twrp and accidentally formatted the phone. So I still use Fastboot, so I installed boot. Img and bootloader and rebooted bootloader and when I got to system, it stopped, don't have a enough room.

It fixed now. Thanks
[Nexus 6P General] JrSmilez:
I'm glad you got it but that message means you should update adb and fastboot.
[Nexus 6P General] fiverings:
Understood
[Nexus 6P General] jt1998:
Phew. Glad you got it all working. Those times are never fun!
[Nexus 6P General] fiverings:
You got that right, this was no fun at all!!!
[Nexus 6P General] mobileman88:
Anyone here dirty flashed the beta 2 on top of. 7.1.1 match update and installed Magisk without wipe? Any issues?
[Nexus 6P General] aheeejd:
Was just reading through the op, very nice job. I am currently waiting for my 128 GB 6p to arrive in the mail & will be using this. Thanks for this.

Sent from my LG-ls990 using Xparent Green Tapatalk 2
[Nexus 6P General] 5.1:
Hello... You might read the few last pages of this thread: https://xdaforums.com/nexus-6p/general/android-7-1-2-beta-t3548017/page34

Or maybe try it yourself and report back if it works... :)
[Nexus 6P General] Exodusche:
Noob question I've tried to google but can't find specifically my answer can I restore a stock backup from TWRP or do I need to fresh install with stock recovery?
[Nexus 6P General] mobileman88:
Got it working fine for the past 2 days so far. No issues to report
[Nexus 6P General] effraie:
I'm really glad to read that TWRP prompt for a NIP!

Before I actually encrypt my device back, can somebody confirm that I can do it without losing data?

And instead of a NIP, I can use a password?
[Nexus 6P General] efrant:
It was already answered, but with encryption, your data is secure, assuming someone doesn't have access to your password. This is irrespective of whether your bootloader is unlocked or have TWRP flashed.

No.

The changes made to the modified boot image are not in the kernel -- they are changes to the ramdisk. So custom kernels will all work. However, if they use their own ramdisk, then those ramdisks need to have made the same changes.
[Nexus 6P General] adrman:
I re-encrypted last night, no data lost. As far as a password, I haven't tried it, but it "should" work. If I remember correctly, if you didn't set a pin or password on shamu, the password was "DEFAULT".
[Nexus 6P General] geoff5093:
The Chainfire post with modified boot only has 08K listed, if we are on 08M how would we go about flashing TWRP?
[Nexus 6P General] RojoNinja:
08K modified boot.img works fine with 08M
[Nexus 6P General] Cares:
How do I go about upgrading to 08M when I'm already rooted on 08K? I don't want to wipe my data :x
[Nexus 6P General] adrman:
DL the 08M images and extract. Fastboot flash system.img and vendor.img, reboot to recovery, flash SuperSU 2.52, wipe cache and dalvik, reboot to Android, then flash Busybox On Rails via recovery method if you need it.
[Nexus 6P General] sirxdroid:
Why do you need to reflash SuperSU? I thought it was system-less, i.e. nothing goes in /system
[Nexus 6P General] Cares:
Don't need to flash radio or cache?

I didn't root via systemless. Is there an advantage to doing this? Can I change to systemless by removing SuperSU?
[Nexus 6P General] sirxdroid:
Oh so rooting via the old SuperSU works? I thought it didn't work on M. So much conflicting info during the first days of a new device :)
[Nexus 6P General] efrant:
There are two ways to get root on Android 6.0. Both methods can be found in this thread. Method 1 (modified boot image + regular SuperSU zip) in post 1 and method 2 (modified boot image for system-less root + SuperSU zip for system-less root) in post 2.
[Nexus 6P General] Born<ICs:
Regarding files required from unlock thru recovery and root.

Clairification needed please on what exactly gets downloaded to PC, what gets downloaded to device and what stays zipped or gets unzipped or renamed? What collection of .img files should end up in Platform Tools folder?

Intend to stay encrypted, I think, flash modified boot.img, use TWRP for recovery, SuperSU for root and I don't know where from there.

So far I've simply taken the OTA K and unlocked bootloader via fastboot (SDK Platform Tools fastboot (ver 23).

Thanks.
[Nexus 6P General] sirxdroid:
The modified boot img are different between the 2 methods, correct?
[Nexus 6P General] efrant:
Yes.
[Nexus 6P General] combat goofwing:
Just rebooted my phone for the first time since unlocking the bootloader,on the first boot screen I get a message saying can't do something due to something please lock bootloader and lock symbol at the bottom,then it boots as normal. Is this normal after unlocking BL
[Nexus 6P General] nageshv24:
Yes. No need to worry.
[Nexus 6P General] adrman:
I rooted the (sort-of) old fashioned way. Plus, I'm using ElX kernel, which doesn't support systemless just yet.

No, BL and radio are the same as 08K

I'm in a wait and see what happens mode with the systemless root.

Yes and yes. Lot's of reading. :D
[Nexus 6P General] sirxdroid:
Not sure I'm sold on the idea of systemless root. We need to modify /system for other reasons too, e.g. build.prop, busybox, adaway, xposed, other apps that need to be installed in /system or they won't be fully functional (Cerberus comes to mind), etc.

Now an overlay fs on top of /system would be cool, if it could still trick Android Pay into thinking /system is not modified.
[Nexus 6P General] aceball:
So I've unlocked the bootloader and wanting to see what my next step should be here...

Im looking to root simply to get use my phone as a hotspot for my unlimited data plan. Not interested in custom ROMs, have done it in past, but not interested in the moment so want stock recovery. Also, would like to receive OTA updates if possible, but if it becomes a matter of getting the latest stock images directly from google and flashing them on my own, Im ok with that too. Im trying to accomplish this in the simplest, shortest (ie least steps) possible. I think there are several people with the same situation, so maybe getting a nice checklist for "bare minimum root" and making sticky would decrease the amount of questions from people like me...

Can some please tell which steps I MUST do?

Unlock Bootloader - Yes

Flash modified boot image --?? not sure if this is needed for a booted TWRP to function or if needed for rooting

FLASH TWP -- ?? Can i just boot TWRP image for setting up SuperUser?

Load SuperUser from booted TWRP -- YES

Wipe Cache and Devlik -- YES

UNroot for OTA - YES

Thanks guys, tremendous work you put into this and sorry about the questions...

Aceball
[Nexus 6P General] lUnorthodoxFoxl:
Hotspot works right out the box, no need to root or unlock.
[Nexus 6P General] 5.1:
Hello... A stock backup made with TWRP?

If yes, it can be restored with TWRP. Either stock or custom ROM doesn't matter... Just don't flash recovery partition if you want to keep TWRP. Also flash the appropriate vendor image corresponding to your backup...

Good luck...
[Nexus 6P General] dwh2o13:
On that note, could you also choose to back up the vendor image in TWRP along with either your stock or custom ROM? Then, when restoring via TWRP you're covered with your vender IMG.
[Nexus 6P General] 5.1:
Of course! Since TWRP has the option, just use it. :good:

Cheers...
[Nexus 6P General] FunkyMcBain:
Hey guys, quick question. I notice that this was originally posted quite a while ago and I'm wondering if the procedure for applying an OTA update on a rooted stock phone is still the same? I'm on 7.1.1, fully stock except root and would just like to apply the latest security OTA
[Nexus 6P General] CharlieCarr:
I can't sideload using adb through TWRP, I get the error '! Failed /system could not be mounted!'

What am I doing wrong?
[Nexus 6P General] Spannaa:
Try mounting /system via TWRP before sideloading.
[Nexus 6P General] CharlieCarr:
I go to the mount option and have system, data and cache checked. Do I mount system as read only?
[Nexus 6P General] Spannaa:
No, leave "Mount system partition read-only" unchecked if you're going to write to system.
[Nexus 6P General] CharlieCarr:
Okay, so I've done this and flashing SuperSu now works.. Thank you!

However, I'm unable to flash my ROM as I get the error;

' terminate called after throwing an instance of 'std::bad_alloc'

what(): std::bad_alloc

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.'

What now?
[Nexus 6P General] Spannaa:
Never seen that before, but a quick Google suggests changing your version of adb may help.

This is the version I use.
[Nexus 6P General] 5.1:
Seen this on the google bug tracker. Someone reported this issue with latest ADB/fastboot package: v25.0.4 and suggested to use a previous version: 25.0.3 for example...

https://code.google.com/p/android/issues/detail?id=258500

Cheers...
[Nexus 6P General] CharlieCarr:
Okay, so I've changed my adb version, and downloaded the official ROM from Google. However, I'm now getting the error 'Invalid zip file format!'
[Nexus 6P General] 5.1:
I'm not used to sideload zip. Anyway, what are you trying to install? Maybe it's a simple fix...

So you tried with the adb [MENTION=2948558]Spannaa[/MENTION] provided?

Maybe try with the one linked in this post: https://xdaforums.com/showpost.php?p=71615070&postcount=13

Good luck...
[Nexus 6P General] CharlieCarr:
I've tried this version, and whilst trying to install PureNexus, it says 'cannot read PureNexus.zip'
[Nexus 6P General] jt1998:
what version of twrp are you on? I use 3.0.3.0 and 3.1.0.0. both with no problems. Make sure you're on one of those 2.

make sure you allow ADB debugging.

verify your PN zip is good download by checking MD5.

Once all done, flash the PN zip in TWRP via the install command.
[Nexus 6P General] 5.1:
Which one? Mine or the one from [MENTION=2948558]Spannaa[/MENTION]?

Have you tried the latest from Google by the way?

https://dl.google.com/android/repository/platform-tools-latest-windows.zip

After that, i don't know what to do... :(
[Nexus 6P General] CharlieCarr:
I have managed to flash SuperSu, Gapps and Pure nexus now, using sideload, and I assume this is comparable as installing from zip back on CWM?

However, PureNexus is stuck in a bootloop...
[Nexus 6P General] Einwod:
Did you flash the vendor image in TWRP? I don't think it's possible to sideload it.
[Nexus 6P General] CharlieCarr:
I didn't quite understand everything related to 'Vendor Images', could you please elaborate for me?
[Nexus 6P General] 5.1:
Hey... You should take a look at the guide in the general section:

https://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928

This part:

7. How To Install A ROM with TWRP Recovery

It covers all aspects t of ROM flashing... :good:

Vendor image is part of factory image starting from Nexus 6P

You can find the appropriate vendor in Pure Nexus thread where you found download links...

Good luck...
[Nexus 6P General] CharlieCarr:
So I tried PureNexus again installing zips from a USB-C memory stick, but to no avail, and have just tried Lineage OS using this (https://devs-lab.com/download-lineage-os-rom-nexus-6p-guide.html) guide, but still get stuck on the boot animation...
[Nexus 6P General] JrSmilez:
Not sure if this is your issue but Some people were reporting bootloops when they were trying to root on several different ROMs. Since I'm not rooted I don't know the version that was working. If I happen to come across it I'll update.
[Nexus 6P General] 5.1:
Why don't you plug your phone to your computer and just copy the ROM zip on your internal storage?

Then tap install in TWRP and select this ROM zip... Done...

If you bootloop, go in TWRP choose wipe > factory reset (without internal storage) should normally take care of it...

Also dude I don't understand why you didn't follow the guide from the link I gave you earlier... :eek:
[Nexus 6P General] CharlieCarr:
I would do this, but I have no way of transferring the files to my Device's internal storage. Also, I have been using this guide from the beginning, but I keep encountering different errors :mad:
[Nexus 6P General] 5.1:
How do you do to transfer files to an USB c stick?

You don't have any USB cord available?

What SuperSU did you use? Which version?
[Nexus 6P General] CharlieCarr:
It's a USB C/USB A stick, like a connection for each. (See Similar - https://www.amazon.co.uk/Kingston-D...coding=UTF8&psc=1&refRID=A03DNRYG6MET9JXXKMW8)

My computer has no way of recognising my device. :(
[Nexus 6P General] 5.1:
What computer? Windows 10 64 bits?

What SuperSU did you use?

Did you flash proper vendor.img?
[Nexus 6P General] mswal2846:
Are you following the directions for the ROM you are trying to install (PureNexus in this case)? It fully explains Vendor.img installation, etc. Also, I'm with others on this thread, why sideload when you can install in TWRP? It seems to me you're trying to do this "easy" instead of "correctly" which is causing you troubles.
[Nexus 6P General] CharlieCarr:
That's correct, but I don't believe there is an OS currently installed on the 6P. I used SuperSU 2.97(latest).

I flashed the vendor.img that was linked along with the PureNexus Build

---------- Post added at 07:35 PM ---------- Previous post was at 07:34 PM ----------

I attempted to sideload initially, as I had no way of getting the files onto my device, until I came across my USB C Stick, that is. I'm following these instructions to the letter, but using this stick rather than the internal memory of my device.
[Nexus 6P General] 5.1:
Did you factory reset from TWRP? Still bootloop?

If your computer is windows 10 x64, try this guide to install USB drivers...

https://xdaforums.com/pixel-xl/how-to/guide-fix-mtp-driver-windows-10-t3570625

If you follow this guide you should be able to copy files on your phone. When you boot in twrp your computer should detect your N6P...

I think this is the last idea I have for you...

Good luck...
[Nexus 6P General] Einwod:
Every time a new version of the Pure Nexus ROM becomes live, It's usually as I wake up, I simply follow the links from my device and download them directly to internal storage. Once I have what I need, ROM, Vendor Magisk latest, I simply flash them thru TWRP. Never have a problem or have to sideload. Try it, you may be surprised just how easy it is.
[Nexus 6P General] CharlieCarr:
My device still isn't recognised by my PC. I've found that TWRP let's me copy files from my stick to my 6P, so I'm going to try that approach.
[Nexus 6P General] mrlad:
adb devices works, fastboot devices doesn't

Running Win10 64bit. Installed the latest platform tools and downloaded the latest Google USB drivers.

When I plugged in my 6P Windows installed default drivers and refuses to load the Google USB drivers. If I try to manually update drivers via the .inf file, Windows complains the folder doesn't contain a compatible driver.

I've tried to uninstall the device but Windows just loads the default drivers the next time its plugged in.

adb devices reports the correct serial number

fastboot devices doesn't detect any devices

I only have one copy of fastboot.exe on my system so its not a matter of the wrong version being loaded.
[Nexus 6P General] 5.1:
Hello dude... Try installing using this guide:

https://xdaforums.com/pixel-xl/how-to/guide-fix-mtp-driver-windows-10-t3570625

If you're unsure ADB/fastboot is up to date, download platform-tools from here: https://dl.google.com/android/repository/platform-tools-latest-windows.zip

Good luck...:good:
[Nexus 6P General] mobileman88:
I am thinking of moving from my old 6P as the buttons are damaged to another set of 6P. Would the following steps suffice to make it work exactly the same?

In Original Phone

==================

- Boot to TWRP

- Make a Nandroid (System, Boot, Vendor, Data)

- Copy all files and folders to PC

In new phone

============

- Boot to bootloader

- Flash Bootloader, Boot, Radio, System, Vendor, Recovery to be the same as the original phone

- Boot to TWRP

- Copy all files and folders of the original phone from PC

- Restore Nandroid

- Delete fingerprint data and locksettings.db

- Reboot
[Nexus 6P General] jt1998:
I'd suggest in original phone before making nandroid, delete fingerprints, all security, etc. Then make your nandroid and do as your steps list. Then you won't have to deal with any of that when you restore your nandroid on your new 6p.
[Nexus 6P General] mrlad:
Thanks for the tips. Figured out the problem. When booting to the bootloader, a different device from Nexus 6P was showing up in the device manager. I loaded the Google USB drivers for this device and fastboot works now. Was able to root this morning.
[Nexus 6P General] mobileman88:
Why didn't I think of that? Thanks for the suggestion. All went well!
[Nexus 6P General] mr_reaper:
noob question, i unlocked bootloader, flashed twrp, rebooted back into bootloader, then rebooted, went to get into recovery it wont go, i mnaged to get into twrp once and make a backup, now i cant get back in twrp
[Nexus 6P General] Badger50:
After you flash TWRP with fast boot, disconnect your USB cable, then use the phone buttons to reboot back into TWRP. Then you need to flash root to make TWRP stick. You should be good to go. If you don't flash root, whenever you try to boot back into TWRP, it will be your stock recovery.
[Nexus 6P General] mr_reaper:
Ahhh, thanks bro
[Nexus 6P General] mobileman88:
Forgot to add. I still had to delete those files even after the fingerprints are deleted. If not I can't unlock the phone. But it's ok now
[Nexus 6P General] hello2ew:
Is it just me or does the latest factory image (April) not come with cache.img?
[Nexus 6P General] SlimSnoopOS:
Confirmed. Same situation for the Nexus 5X 7.1.2 dev previews and official update today.
[Nexus 6P General] mbutandola:
Guys, I updated the phone as usual to android 7.1.2 then flashed superSU. I guess this was a mistake. Now I'm stuck in a bootloop. Can anyone tell me how I can turn off the phone without waiting for the battery to die. Whenever I press the power button it restart the phone. I'm sure I could then get to download mode and flash the factory image. Cheers

Edit : I figured it out. Just pressed power button and the volume up which allowed me to get into download mode. Had to factory reset after reflashing 7.1.2 before I could get the phone back running again.
[Nexus 6P General] jt1998:
long press/hold power doesn't turn it off?? like holding for 5 to 10 seconds and then let go?