yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
After, reading several of your post on several Custom ROM theads and all of your post from Pg. 377 to Pg. 432 on the PureNexus Pixel XL thread. I have concluded, you are one of if not the most knowledgeable individual on Installing/flashing Custom ROMS on the Pixel XL. That being said, Correct me if I'm wrong. When you use the 'flash all.bat' file without the -w it loads the (factory firmware) to both slots.

So, if I were to install a Custom ROM ex., PureNexus:

a) What slot would I flash it to?

b) The 'active/boot slot' where the updated vendor.img is?

c) How would I install it?
[Google Pixel XL Guides, News, & Discussion] pcriz:
Using the factory image in both slots means you have the vendor in both slots so you should be good. If you had only one slot with the vendor and wanted to flash to that slot, you would make the slot with the vendor the inactive one an flash the ROM because the ROM is always flashed to the inactive slot.

So if the vendor you want is in A. Put the device on B and flash away. On the next reboot the device will switch.

---------- Post added at 02:19 AM ---------- Previous post was at 02:10 AM ----------

Also if you are flashing the vendor. Make sure you flash the ROM and reboot once before you flash it
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
I think I asked the wrong question(s) so let's start again.

My phone has the current factory firmware (July) and is rooted.

The boot slot is a.

I want to install a Custom ROM ex., PureNexus:

What are the steps to install the ROM, vendor.img, gapps, root (SuperSu/Magisk), kernel, trwp.zip.

Also, please include instructions on how to set a slot active via adb/twrp. There are a lot of novices when it comes to flashing a Custom ROM, including me. All the thanks, credit, and recognition will go to you. :)
[Google Pixel XL Guides, News, & Discussion] pcriz:
I'm gonna assume your other slot is at least bootable

Boot into recovery

Factory reset

Flash ROM

Flash twrp

Reboot recovery

Flash vendor

Flash super user (if you flash magisk you need to flash twrp after it before you reboot)

Boot ROM

There are no gapps for pure nexus but if you needed to flash them do it after you flash the ROM and have rebooted once.

If want to use your current slot because you know its good. Boot into recovery. Go into reboot and select the opposite slot. Then choose to reboot into recovery and perform the steps I listed above.
[Google Pixel XL Guides, News, & Discussion] sakumaxp:
What if I can't even reach the bootloader on slot A, is there anyway to get into the bootloader so I can at least flash the factory img through adb
[Google Pixel XL Guides, News, & Discussion] pcriz:
Have you tried holding down the power button and volume down until the bootloader appears.
[Google Pixel XL Guides, News, & Discussion] sakumaxp:
Can I just go into boot loader from slot B, then in adb change to slot A and not have to reboot just flash the stock img? Would that work?
[Google Pixel XL Guides, News, & Discussion] pcriz:
You have to use fastboot --set-active=a or b

Then fastboot reboot bootloader

Then flash
[Google Pixel XL Guides, News, & Discussion] sakumaxp:
I can't have my phone try and boot with slot A I have a weird twrp issue where I have a twrp boot loop, the screen will flash the twrp load screen really fast and keep doing that, so I can't even get into boot loader from adb
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Oops!

My apologies pcriz.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Thank you, yes I pressed the thank you button. :)
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
One Question: When you do a factory reset with Pixel XL (twrp). Is TWRP still on the phone for flashing ROM:confused:

I've never done a Pixel XL (twrp) factory reset. :rolleyes:
[Google Pixel XL Guides, News, & Discussion] pcriz:
Factory reset only wipes caches and /data
[Google Pixel XL Guides, News, & Discussion] godfish:
I wish I any of this answered my issue but NO, I followed the very well written instructions but I got a TWRP bootloop, the phone wouldn't even shut off. I used the instructions to re-flash the back factory and it's working again, but I would really like to use Pure? I'm just not getting this A/B slot thing? the instructions don't say anything about it, could this cause my bootloop? or Am I a fruit-Loop? LOL (sorry couldn't help it)
[Google Pixel XL Guides, News, & Discussion] pcriz:
Were you on the Android o beta?
[Google Pixel XL Guides, News, & Discussion] godfish:
Nope, on 7.1.2 NKG47L

---------- Post added at 08:52 AM ---------- Previous post was at 08:50 AM ----------

Nope on 7.1.2 NKG47L :good:
[Google Pixel XL Guides, News, & Discussion] pcriz:
So you never tried used the beta previously? Don't mean to keep asking the same question just needed some clarify on the condition of your device.
[Google Pixel XL Guides, News, & Discussion] godfish:
Nope, the phone was pure stock Fi and I've not flashed anything, When I saw these good instructions I thought I could do it but it didn't work for me? I followed your instructions to the letter, could my phone just now work with this?
[Google Pixel XL Guides, News, & Discussion] pcriz:
Mind doing me a favor and listing your exact steps
[Google Pixel XL Guides, News, & Discussion] godfish:
I wish I could, it took me about 4+ hours to get it ready to start because of all the downloads and getting files in place.

I would be just listing your instructions, I've seen where some have done the same thing and had to renew it many times before something clicked and it worked?

it's strange how the phone wouldn't turn off? and it just would loop back to TWRP

I guess I should try again before crying for help, Thank you for your instructions they are very helpful I'm sure I just need to try again?

It scared me a little that's why I reflashed stock to get back. LOL :silly:
[Google Pixel XL Guides, News, & Discussion] godfish:
Well, it's gotten a little better? I get past the TWRP Bootloop and into the android screen with the leap frogging dots but it never get's out of there for over 20 mins still stuck there? I'm flashing PureNexus if that helps? After flashing the rom I also flashed TWRP again and then SuperSU 2.82
[Google Pixel XL Guides, News, & Discussion] pcriz:
Did you flash the rom, twrp, reboot into recovery and flash supersu? what version of super su?
[Google Pixel XL Guides, News, & Discussion] godfish:
I flashed the rom, twrp and then SuperSU 2.82 all at same time? then rebooted. Should I try a reboot to recovery then flash SuperSU? could it be the lack of the rebooting into recovery?
[Google Pixel XL Guides, News, & Discussion] pcriz:
You cant flash the rom with anything but twrp (because it patches both slots).

Its a waste of time because everything flashes to the active slot except roms. That means if you are on slot b, when you flash the rom it flashes to flash to slot A while super su flashes to slot B. When you boot out of twrp the device will switch slots to where the rom was flashed so it negates your super su flash.

You should clean flash the rom, then twrp and see if you can boot like that. You can come back and flash supersu later.
[Google Pixel XL Guides, News, & Discussion] godfish:
OK I'll Clean flash the room and Twrp, and after that try and reboot to system, and see if that get it.

Thank you for your help, Do you think it could be the ROM?

---------- Post added at 12:31 PM ---------- Previous post was at 12:28 PM ----------

Nope it didn't work, I get the loop back to twrp? without Super su.
[Google Pixel XL Guides, News, & Discussion] pcriz:
Id almost say you might be better off downloading a stock image, pull the boot img and flash it in both slots.

fastboot flash boot --slot all boot.img

Then fastboot BOOT (not flash) twrp, then flash the twrp zip
[Google Pixel XL Guides, News, & Discussion] kalosada:
By far the best guide I have seen on this matter, although I still cannot make it work no matter what I try. attached screenshot may explain, I have to give up! Thanks anyway for the detailed guide.
[Google Pixel XL Guides, News, & Discussion] pcriz:
Did you mean to put the whole op in your post?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
So, you are saying you followed the instructions in #5 and the Installation of Magisk for Pixel/Pixel XL is not working. One of your screen shots shows systemless hosts on but the instructions read Toggle on and off systemless hosts. Was your device rooted when you started trying to root with Magisk?
[Google Pixel XL Guides, News, & Discussion] kalosada:
Yes, I have tried many times. Root works but safetynet does not. When I uninstall magisk, I loose root but safetynet passess as obvious and the screenshot tells that. Of course, in this case I had elemental kernel installed.

But as soon as I install magisk even following the procedure describe in op, the root works again but not the safetynet.

At this stage if I change slot and restart the device, I got magisk not installed but safetynet passess. I even tried to install magisk on both slot, and end up not passing safetynet on both slots then.

My device is Pixel XL and I am with Pure Nexus Rom July update and elemental kernel.

I have toggle systemless host and core only mode seperately and reboot ed couple of times.

Thanks.

Sent from my Pixel-XL
[Google Pixel XL Guides, News, & Discussion] mrlugo88:
Are steps 2 or 3 necessary before flashing TWRP?

Edit: I followed the steps to a T but when getting to fastbooting twrp.img, my prompt tells me it's not there. But it's there and labeled as such. Any suggestions?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
I went to the Pure Nexus thread did a search and found this Post 4598. He got Magisk to work on Pure Nexus.

I hope Post 4598 will help you solve your problem. :)

I do not use Custom ROMs. I list them for people who want them.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Which index number are you following? There are a lot of 2 and 3 in post 1 lol.
[Google Pixel XL Guides, News, & Discussion] mrlugo88:
Haha ok I just unlocked my bootloader. So was trying to find out if I needed to do the factory image thing before installing TWRP or if I could just go straight to TWRP. And I downloaded the necessary files for TWRP but when trying to fastboot it it says file not there or in the directory, something like that.
[Google Pixel XL Guides, News, & Discussion] pelon90005:
I just recently unlocked the bootloader. Then in fastboot mode i ran the twrp from the sdk\fastboot folder. Then installed the twrp image i diwnloaded to my phone. Rebooted then back to twrp, i then installed the latest su pixel fix file. Then rebooted and i had a rooted phone with twrp installed.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
You can go 'straight toTWRP'. When it reads 'file not there or in the directory'. That means the

path to the file is incorrect

or the

file name is wrong

.
[Google Pixel XL Guides, News, & Discussion] mrlugo88:
So how do I fix that?
[Google Pixel XL Guides, News, & Discussion] kalosada:
Tried, did not work either. may need to factory reset I guess. Thanks anyway.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
What is the path to your Platform Tools folder?

When you Open a Command Prompt in platform-tools folder: Click Platform Tools folder, press shift, right click and select Open Command Prompt here.

Does the path at the top of the command prompt window match the path to your platform-tools folder?
[Google Pixel XL Guides, News, & Discussion] mrlugo88:
So when I type the fastboot code without the device plugged in it says waiting for device. I plug in the phone and it says "cannot load twrp.img : no such file or directory". It says the same when I plug in the phone then type it in. The path is the same.

Edit: so I figured out what the problem was and was able to have it read. Now after it creates boot image, downloading boot image, it says "ok" then "booting..." Then I get a "FAILED <status read failed <too many links>>" and the phone just reboots.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Write down what you are trying to accomplish and what steps you did to accomplish it..

Now after it creates boot image, downloading boot image, it says "ok" then "booting...

People want to help you, but we are not mind readers.

Answer questions.

What is the path to your Platform Tools folder?

Does the path at the top of the command prompt window match the path to your platform-tools folder?

Share what you did to fix a problem (so I figured out what the problem was and was able to have it read), so other may benefit.
[Google Pixel XL Guides, News, & Discussion] pcriz:
Your adb is outdated.

If you say it is updated then my suggestion is to fastboot boot the twrp ALPHA then flash rc1/2

I am assuming it's outdated because twrp will attempt to patch the boot.img in each slot but older versions of adb don't recognize slot commands and it causes the too many links failure.
[Google Pixel XL Guides, News, & Discussion] mrlugo88:
I'm trying to get TWRP on my phone using fastboot. It was saying that it wasn't in the directory. And now too many links.

Yes the paths match up.

I realized that when I went to go rename the file it wasn't showing the entire name. So when I renamed it "twrp.img" it was actually being named "twrp.img.img". So I just renamed it to twrp and now it's twrp.img.

---------- Post added at 07:34 AM ---------- Previous post was at 07:00 AM ----------

That worked! I fastboot boot the alpha 2 and that worked. I flashed RC1 then SuperSU. Thank you for the help Did I need to flash RC2 as well?
[Google Pixel XL Guides, News, & Discussion] pcriz:
I think you need rc2 if you want magisk
[Google Pixel XL Guides, News, & Discussion] Kisakuku:
SuperSU v2.82 SR2

Download

Release notes

Contains fixes from v2.82 SR1 PixelFix

Changelog
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
It seems to me SuperSU v2.82 SR2 major function is to support Android O/O Preview. Please correct me if I am wrong.

I know SBIN is supported on ' Nougat and Marshmallow',

but isn't the modded TWRP for Pixel/Pixel XL owners on O Preview.

Further, You posted this information in your Thread (Android O DP4 is available by Kisakuku) which is where it belongs. This thread is not for Pixel/Pixel XL owners with Android O/O Preview on them. I have updated the OP.
[Google Pixel XL Guides, News, & Discussion] Kisakuku:
Incorrect. As the release post indicates, "This update to SuperSU brings ... various fixes to Pixel support. The latter patches have been available as a test version on XDA ('PixelFix') for some time now." SuperSU v2.82 SR2 contains fixes from SuperSU v2.82 SR1 PixelFix. Without these fixes SuperSU v2.82 SR1 was causing issues on Pixels.

Incorrect. SuperSU v2.82 SR2 is fully compatible with 7.1.2 both in standard and SBIN mode and belongs in this thread, just like SuperSU v2.82 SR1 PixelFix did.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Ok!

I am Stock using SuperSu v2.82 w/ the latest ElementalX kernel and I've never had any problems. I never had a need to use SuperSU v2.82 SR1, SuperSU v2.82 SR1 PixelFix or SuperSU v2.82 SR2.

I am currently, researching information on the benefits of using SuperSU v2.82 SR1, SuperSU v2.82 SR1 PixelFix or SuperSU v2.82 SR2 with Stock ROM
[Google Pixel XL Guides, News, & Discussion] Kisakuku:
SR1 / PixelFix was needed for verified boot signing on May firmware / bootloader.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Ok.

So, why is SuperSu 2.82 SR2 needed for the August firmware/bootloader if we (stock Pixel XL users) no longer need 'verified boot signing' ?
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Hi, new PIxel XL owner here, just got my device from Google in the mail today. I have a question about the guide in the OP. Is the custom kernel necessary for this procedure? What benefits do the custom kernels bring? Also, would I be able to simply flash TWRP and Magisk? Is it necessary for me to install a factory image before I do any of this (I don't think so, but I ask because those steps are first in the OP, before TWRP and root)?
[Google Pixel XL Guides, News, & Discussion] Kisakuku:
Changelog:

- ZIP: Detect TWRP UI slot switch (Pixel/XL: 3.1.0-RC2+)
[Google Pixel XL Guides, News, & Discussion] pcriz:
For my own curiosity what exactly does that mean, or a better question is whats the delta in performance between having that and not having it detect a slot switch? Does that mean we can flash su in the same session as the rom and twrp? As opposed to having to reboot once and then flash?
[Google Pixel XL Guides, News, & Discussion] Kisakuku:
No, this is detection of a manual slot switch using the TWRP UI, after TWRP is booted but before SuperSU is flashed.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
If you have the latest Pixel XL firmware August 2017 with current bootloader and radio. You can check the Build Number of your firmware by Clicking Settings > About phone. If the Build number is NGH47Q, NJH47F, NKG47S, or NZH54D depending on your carrier. You have the latest firmware installed, start at #5d. Skip #5e3. If not I would suggest you do #3 and #5. Yes the kernel is necessary to install Magisk. If you want to know the benefits of Custom Kernels click on the kernel links
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Thanks OP! I'll read closer and report back if I have more questions.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Np SM
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
OK I have another question before I get started on this. Does having a different kernel mean that the camera won't function the same way that it does normally? I mean with all the EIS awesomeness and generally Pixel camera goodness. Also, will installing a custom kernel remove all my apps and data?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
I've never heard/read of a kernel affecting camera functions on a stock ROM. So, your 'EIS (Electronic image Stabilization) awesomeness and general camera goodness' should function 'the same way that it does normally'. No, the kernel will not remove all your apps and data. That is why I suggested #3 (Install Factory Image and

keep

data) and #5 if you need to update your firmware.
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Gotcha. Thanks!
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
I just tried to do this, and Magisk would not install after flashing TWRP and Franco kernel. I got an error code 1 :( I couldn't boot to system, so I had to flash back to stock.
[Google Pixel XL Guides, News, & Discussion] pcriz:
Did you try to flash with Rc1 because magisk requires rc2
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Yes, I did use RC1. My mistake!

Side question - it occurs to me that since Android O is dropping this month, it might be prudent to wait to do all this until everything gets updated for O. Do you guys think that's true, or will TWRP and Magisk and the kernels be compatible with O?
[Google Pixel XL Guides, News, & Discussion] saneparadox:
So say if I do get my phone rooted with stock. How would I update it safely? Would I need to go through these steps when the next monthly update comes up?
[Google Pixel XL Guides, News, & Discussion] pcriz:
Yes because if you take a update it will replace the boot.img which means you will lose twrp and root.
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Do you think the TWRP and root processes will be the same for Android O?
[Google Pixel XL Guides, News, & Discussion] pcriz:
As far as Android O, there is a thread for a test build of twrp and apparently the newest SuperSU works with it. Magisk can't be tested because there are no custom kernels.

https://xdaforums.com/pixel/development/mod-twrp-recovery-pixel-android-o-dp4-t3651896
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Thanks. Could you please clear up why we need custom kernels for root on Pixel, where as on Nexus this wasn't the case?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
You do not need a custom kernel to 'root' your phone. You can root your Pixel/Pixel XL with SuperSu 2.82 without installing a custom kernel. You need the custom kernel to root with Magisk. More specifically, the Custom Kernel is needed for Magisk. The Pixel/Pixel XL have dual slots the Nexus did not.
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Ok I understand. Thanks!
[Google Pixel XL Guides, News, & Discussion] lloydsw:
Interesting....So I just got two new in-box Pixel XLs from Google. Today I sat down to unlock the bootloader & root. When I did the first one, on booting into TWRP using fastboot, I get a screen that says 'Mount, Decrypt Data', asking for a password, giving me a chance to cancel, which I did. I thought it was odd that the 'sdcard' directory was garbled when I looked with TWRP's file manager. But I flashed TWRP & SU anyway, and it seems to have worked fine. I guess. Anyway, I did my wife's phone EXACTLY the same way and I'm not getting the same message when booting into TWRP, and looking into the 'sdcard' directory is completely normal. Any ideas?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
You want to see the message 'that is asking for the pin'. TWRP needs the PIN to decrypt data, that is why it's important to set your pin before proceeding with #4 or #5. When you cancelled did you set your pin before proceeding? If not what did you do?
[Google Pixel XL Guides, News, & Discussion] lloydsw:
On both phones I booted up, skipped all the setup I could, enabled developer options, toggled USB debugging & allowed bootloader unlocking, set a security pin. On *my* phone, after fastbooting TWRP, I landed on a screen to enter a PASSWORD to decrypt data. On my *wife's* phone I don't get that screen. After pressing 'cancel', TWRP seems to act normally...but when I use the file manager to look in 'sdcard', it's gobbledegook. That concerns me since I like to do TWRP backups.
[Google Pixel XL Guides, News, & Discussion] TonikJDK:
Common problem. Just have to reboot a few times before TWRP gets it right and decrypts.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Your wife's phone does not have a pin and the sdcard is goobledegook? You need TWRP to ask for the pin. If the Build Number of your firmware is NGH47Q, NJH47F, NKG47S, or NZH54D depending on your carrier. You have the latest firmware installed. On the phone(s) without the pin Boot into bootloader, connect your phone to the computer, open a command prompt in the directory where the fastboot command is type:

fastboot update image-marlin-aaa99a.zip

replace the 'aaa99a' with your Build Number, you will not lose your data. Then # 4 if you want to root with SuperSU or #5 if you want to root with Magisk.
[Google Pixel XL Guides, News, & Discussion] lloydsw:
Ok, I admit I'm an idiot. Because the screen pic I took and posted above asked for a password, I didn't try a PIN. So today I tried the pin and it worked! Sorry for the confusion!
[Google Pixel XL Guides, News, & Discussion] techeligible3322:
Is secure to ROOT

Can someone tell me that is it safe and secure to ROOT any android device ? because in Motorola if you root device, i heard, then you will start facing many issues in your device, and also you cannot claim your device on warranty, because of ROOTING device. ????? :rolleyes:
[Google Pixel XL Guides, News, & Discussion] GroovinChip:
Simply rooting a device shouldn't cause issues with how the phone runs. It's when you start getting into things like tweaks or flashing a custom ROM where you can potentially screw things up if you do them wrong. As for warranty, you can un-root a phone, and as far as I know there is no way to know if a device as been previously rooted.
[Google Pixel XL Guides, News, & Discussion] mrwicked:
Bout to start root on this phone and have a question. I'm on Sprint and have the August security patch with build # NKG47S. So my question is, what's the difference between 7.1.2 (NKG47S, Aug 2017, T-Mobile, Fi carriers, and Rogers) and 7.1.2 (NJH47F, Aug 2017)? I should use NKG47S? Thanks
[Google Pixel XL Guides, News, & Discussion] techeligible3322:
Aha!!!!

Thanks dude :)