[Guide] Pixel XL Android 7(Nougat) Unlock/Install Stock Images + Kernels/Recovery +

Search This thread

Homeboy76

Senior Member
  • Aug 24, 2012
    2,574
    1,249
    [Guide] Pixel XL Android 7.1.2 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + August 2017 Security Patch

    Intro
    • This thread is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel/Pixel XL'.
    • It also works for Pixel owners: If, they download the correct files for their Pixel.
    • This Guide is not for use with the Second Generation Pixel 2 or Pixel 2 XL devices.

    Update(s):
    • Other - Added 'Other' after 'Prerequisites'

    Disclaimers:
    • I assume no responsibility for the malfunctioning/bricking of your phone.
    • The order of listed items i.e., Custom Kernels, Custom ROMS, etc. Does not indicate my preference for them. It is your responsibility to do the research before selecting an item.

    Prerequisites

    Need help installing Android SDK or SDK Platform Tools


    Other

    Credit/Thanks/Recognitions


    Index
    1. Open Command Prompt/ Boot Bootloader/Boot Recovery

      1. Open Command Prompt on Computer
        • Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
        • Option 2 - Open File Explorer, click platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type 'cmd' and press enter.
        • Note: If your computer only has 'open powershell here' in the context menu and you do not want to change it or add open 'command prompt here' use use option 2.
      2. Boot Bootloader:
        • Power off phone, press and hold the power and volume down buttons until you see Start.
      3. Boot Recovery
        • Power off phone, press and hold the power and volume down buttons until you see Start. Press volume Up/Down button until you see Recovery Mode > Press Power button.
    2. Testing ADB (Android Debug Bridge)/fastboot

      • ADB
        1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
        2. Open a Command Prompt on your computer.
        3. Type this at the prompt and press enter to test ADB.
          Code:
          adb version
          It should return a version number for ADB.
      • fastboot
        1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
        2. Open a Command Prompt on your computer.
        3. Boot bootloader.
        4. Connect your phone to your computer with a USB cable.
        5. Type this at the prompt and press enter to test fastboot.
          Code:
          fastboot devices
          It should return your device serial number.
    3. Unlock Your Bootloader

      • Backup your data and Internal storage
      • Activate Developer Options: Tap Settings > System > About Phone > Build Number. Tap Build Number until you see you're a Developer. Tap back > Developer Options. Enable OEM Unlock and, USB Debugging.
      • Boot Bootloader
      • Connect your phone to your computer via USB cable.
      • Open a Command Prompt on your computer.
      • Type the following at the prompt and press enter:
        Code:
        fastboot flashing unlock
        This will erase all user data from the device!
      • You should see a screen on your phone asking you to confirm this action, use the volume keys to scroll and the power key to make your selection.
      • Allow the process to complete and then issue this command:
        Code:
        fastboot reboot
      • When your phone reboots disconnect your usb cable.

        Note: After unlocking your bootloader, you'll be greeted with a warning that says Your device software can't be checked for corruption. Please lock the bootloader everytime you reboot. It's ok, as long as your bootloader is unlocked it will stay there.

        Important: do not repeat do not relock your bootloader unless your phone is fully stock. You must flash the factory images first in order to remove root and custom recovery (if you have them), if this precaution isn't taken you may end up with a brick. Please see 9 of this guide for instructions on how to return to stock and lock the boot loader.
    4. Install Factory Image and wipe data

      • Backup your data and Internal storage
      • Download the factory image for your phone and carrier.
      • Unzip factory Image
      • Copy the following files to the Platform Tools folder on your Computer
        1. flash-all.bat
        2. bootloader-marlin-9999-999999-9999999999.img
        3. radio-marlin-9999-999999-9999999999.img
        4. image-marlin-aaa99a.zip
      • Boot Bootloader
      • Connect phone to Computer with USB cable
      • Open a Command Prompt on your computer.
      • Type the following at the prompt and press enter.
        Code:
        flash-all
    5. Install Factory Image and keep data

      • Backup your data and Internal storage
      • Download the factory image for your phone and carrier.
      • Unzip factory Image
      • Edit flash-all.bat: Remove -w
      • Copy the following files to the Platform Tools folder on your Computer
        1. flash-all.bat
        2. bootloader-marlin-9999-999999-9999999999.img
        3. radio-marlin-9999-999999-9999999999.img
        4. image-marlin-aaa99a.zip
      • Boot Bootloader
      • Connect phone to Computer with USB cable
      • Open a Command Prompt on your computer.
      • Type the following at the prompt and press enter.
        Code:
        flash-all
    6. Install A Custom Recovery and Root with SuperSU

      • Important: Set Pin before installing TWRP: Setting > Security > Pin.
      • Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
    7. Install A Custom Recovery and Root with Magisk (Clean Install)

      • Important: Set Pin before installing TWRP: Setting > Security > Pin.
      • Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
      • Note:[Substratum] theme Spectrum does not work with Magisk root.
      • Backup your data and Internal storage
      • Download the following files:
        1. ElementalX-P-1.14.zip for Pixel XL
        2. twrp-3.0.2-0-RC1-fastboot-marlin.img
        3. twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
        4. Magisk-v13.3-Pixel-b4.zip
        5. MagiskManager-5_1_1.apk
        6. Magisk-uninstaller-20170720.zip
      • Flash Boot.img - If you have TWRP, SuperSU, or a custom kernel installed.
        1. Extract the contents of your factory image and open the folder it creates. From there, extract the second archive (image-marlin-aaa99a.zip)
          Then open that folder and copy the boot.img file and paste it into the platform-tools folder.
        2. Boot Bootloader
        3. Connect the phone to your computer
        4. Open a Command Prompt on your computer.
        5. Type the following command at the prompt:
          Code:
          fastboot flash boot --slot all boot.img
        6. When it finishes, leave the command prompt window open, your phone in bootloader mode and connected to your computer.
      • Install TWRP
        1. Place twrp-3.0.2-0-RC1-fastboot-marlin.img in your platform-tools folder and Rename it twrp.img
        2. Type the following command at the prompt:
          Code:
          fastboot boot twrp.img
        3. When TWRP boots, tap the Install button and select twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
        4. Swipe the slider to install
        5. Press the back button until you are on TWRP's main menu select Reboot > Recovery.
      • Flash the ZIPs
        1. Disconnect your phone from your Computer.
        2. Tap the Install button, then navigate to the files you downloaded.
        3. Select the Magisk Uninstaller.zip, tap the Add more ZIPs button.
        4. Select the twrp-pixel-installer-marlin-3.0.2-0-RC2.zip.
        5. Swipe to install
        6. Reboot Recovery
        7. Tap the Install button select a Custom Kernel: ElementalX-P-1.1x.zip or Franco's Kernel-r1x.zip.
        8. Tap Add more ZIPs button select Magisk-v13.3-Pixel-b4.zip, tap the Add more ZIPs button and select: twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
        9. Swipe to install
          Note: During the Installation of ElementalX, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and press Install ElementalX when prompted.
        10. When ElementalX AROMA installer finishes, tap Next, and Finish. After, the other ZIPs are installed.
        11. Reboot System
          Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
      • Install MagiskManager
        1. Install Magisk Manager (5.1.1.apk)
        2. Wipe data on Magisk Manager
        3. Enable Magisk Hide
        4. Enable Core Only Mode
        5. Toggle on and off systemless hosts
      • Reboot system
      • Check for Latest Version, Root, and Saftey Net.
    8. Update Magisk Dirty Flash

      1. Download file:Flash the ZIPs
    9. Custom ROMs for Pixel/Pixel XL
    10. Install Custom Kernel

      • Franco's Kernel - SuperSu
        1. Download file:
        2. Boot into TWRP
        3. Press Install button select the file you downloaded
        4. Swipe slider to install
        5. Reboot System
      • ElementalX-PXL-1.xx by flar2 Kernel - SuperSU
        1. Download files:
        2. Flash ElementalX zip in TWRP recovery (do not flash SuperSU-v2.82-201705271822.zip again if you're already rooted).
          • During the Installation, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and tap Install ElementalX when prompted.
          • When ElementalX AROMA installer finishes, tap Next, and then Finish.
            Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
      • Franco's Kernel or ElementalX-PXL-1.xx by flar2 Kernel - Magisk
    11. Install Substratum Theme

    12. Return to Stock and Lock Bootloader

      • Return to Stock
        1. Backup your data and Internal storage
        2. Download the appropriate factory image for your phone and carrier.
        3. Unzip factory Image
        4. Copy the following files to the platform-tools folder on your Computer
          • flash-all.bat
            • Verify -w is present in flash-all.bat. Example: fastboot -w update image-marlin-aaa9.999999.999.zip
          • bootloader-marlin-9999-999999-9999999999.img
          • radio-marlin-9999-999999-9999999999.img
          • image-marlin-aaa99a.zip
        5. Boot Bootloader
        6. Connect phone to Computer with USB cable
        7. Open a Command Prompt on your computer.
        8. Type the following command at the prompt.
          Code:
          flash-all
      • Lock Bootloader

        1. Phone
        2. Boot Bootloader
        3. Connect your phone to your Computer with USB cable.
        4. Computer
        5. Open a Command Prompt on your computer.
        6. Type the following at the prompt:
          Code:
          fastboot flashing lock
        7. When it finishes the bootloader is locked.
        8. The next step won't be needed if your Pixel XL reboots into system after bootloader relock.
        9. You need to boot into system now, either press Power button to reboot OR issue the following command:
          Code:
          fastboot reboot
        10. When your phone reboots disconnect your usb cable.
    13. Audio Mod

     
    Last edited:

    iamjimmy

    Senior Member
    Dec 11, 2013
    349
    73
    Great Job compiling all the information in one place. Appreciate your hard work. This should be helpful to many.

    You could even update this to include flashing of Custom ROMs. And a little bit about the slot change etc. That way the guide would almost be complete.
     

    Homeboy76

    Senior Member
  • Aug 24, 2012
    2,574
    1,249
    Great Job compiling all the information in one place. Appreciate your hard work. This should be helpful to many.

    You could even update this to include flashing of Custom ROMs. And a little bit about the slot change etc. That way the guide would almost be complete.

    Intro
    The purpose of this thread is twofold:
    First, it is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM...

    ¯\_(ツ)_/¯
     
    • Like
    Reactions: godfish

    Homeboy76

    Senior Member
  • Aug 24, 2012
    2,574
    1,249
    About to try this with the -w flag. Is there a reason to not use a -w if I intend on rooting njh47b on a google store pixel xl?

    2. Install Factory Image and wipe Data
    Code:
    fastboot -w update image-marlin-aaa99a.zip
    3. Install Factory Image and keep Data
    Code:
    fastboot update image-marlin-aaa99a.zip
     
    Last edited:
    2. Install Factory Image and wipe Data
    Code:
    update -w image-marlin-aaa99a.zip
    3. Install Factory Image and keep Data
    Code:
    update image-marlin-aaa99a.zip

    I was asking if there was any affect to the rooting ability of the device if you did vs didn't use the -w command. I completed my update of my phone. I never like a dirty update since it only causes problem later on. I tested it without the -w switch and everything worked (kept my data, but as mentioned dirty flashes = no good), so I went back and repeated the steps with the -w switch. Everything works like a charm. Only issue I have noticed is that Netflix is no longer compatible with my device?!? Like not really sure why, but cant install it from the play store. Will contact Netflix about this later today.
     

    Homeboy76

    Senior Member
  • Aug 24, 2012
    2,574
    1,249
    I was asking if there was any affect to the rooting ability of the device if you did vs didn't use the -w command. I completed my update of my phone. I never like a dirty update since it only causes problem later on. I tested it without the -w switch and everything worked (kept my data, but as mentioned dirty flashes = no good), so I went back and repeated the steps with the -w switch. Everything works like a charm. Only issue I have noticed is that Netflix is no longer compatible with my device?!? Like not really sure why, but cant install it from the play store. Will contact Netflix about this later today.

    Gotcha, there are no 'effects to the rooting ability of the device'.
    However, some apps will not work unless you 'hide Root' with Magisk i.e. Android Pay, Netflix's, etc.

    Did you root with Magisk?
     
    Last edited:

    pcriz

    Senior Member
    Aug 23, 2008
    5,009
    2,934
    Gotcha, there are no 'effects to the rooting ability of the device'.
    However, some apps will not work unless you 'hide Root' with Magisk i.e. Android Pay, Netflix's, etc.

    Did you root with Magisk?

    I dunno about you but I have magisk hide on and hid the playstore and a few other processes but if its checking your phone at a point before you can enable magisk hide and storing the results wouldn't it not make much difference? I ask this because magisk hide or not, netflix doesnt show up. Even on a clean boot its not listed as an app I can restore. The simple fix for me is to restore a back up or simply download from apk mirror.
     

    parano666

    Member
    Mar 22, 2011
    19
    17
    I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)

    Will try this one (had to factory reset again yesterday: phone would not boot up).

    One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....

    Tks!
     

    pcriz

    Senior Member
    Aug 23, 2008
    5,009
    2,934
    I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)

    Will try this one (had to factory reset again yesterday: phone would not boot up).

    One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....

    Tks!

    When you flash a factory image, flash it in both slots.

    Flash all once
    Boot into the bootloader again
    Swap slots in bootloader
    Flash all again
     

    parano666

    Member
    Mar 22, 2011
    19
    17
    (tks!)
    (update: needed twrp-pixel-installer-marlin-3.1.0-0RC2 installed and booted to install magisk v12 pixel (was getting error 1 with twrp-pixel-installer-marlin-3.0.2-0-RC1.zip))
    (update2: safety net passed!)
     

    Homeboy76

    Senior Member
  • Aug 24, 2012
    2,574
    1,249
    I dunno about you but I have magisk hide on and hid the playstore and a few other processes but if its checking your phone at a point before you can enable magisk hide and storing the results wouldn't it not make much difference? I ask this because magisk hide or not, netflix doesnt show up. Even on a clean boot its not listed as an app I can restore. The simple fix for me is to restore a back up or simply download from apk mirror.

    Ok.
     

    Homeboy76

    Senior Member
  • Aug 24, 2012
    2,574
    1,249
    I would say a BIG tks: I've been rooting my phones for years and this one is definitely a rollercoaster of information and success for me (boot loop over boot loop, random crash, random bugs... after following many guides..)

    Will try this one (had to factory reset again yesterday: phone would not boot up).

    One (major) thing is missing here: what to do with the slot a/b? I had crashes that automatically switched from one slot to the other slot, confusing the hell out of (the retarded?) me. It's still not clear what I'm suppose to double flash or not....

    Tks!

    Intro
    The purpose of this thread is twofold:
    First, it is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM...

    If you follow the instructions above you should not have to worry about slot a/b. The firmware will put it in the correct slot.

    If you are installing Custom ROM this thread is not for you. You, should follow the installation instructions of the Custom ROM you want to install.
     
    Last edited:

    Top Liked Posts

    • There are no posts matching your filters.
    • 17
      [Guide] Pixel XL Android 7.1.2 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + August 2017 Security Patch

      Intro
      • This thread is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM. However, for those that just can't live without a Custom ROM, take a look at 'Custom ROMs for Pixel/Pixel XL'.
      • It also works for Pixel owners: If, they download the correct files for their Pixel.
      • This Guide is not for use with the Second Generation Pixel 2 or Pixel 2 XL devices.

      Update(s):
      • Other - Added 'Other' after 'Prerequisites'

      Disclaimers:
      • I assume no responsibility for the malfunctioning/bricking of your phone.
      • The order of listed items i.e., Custom Kernels, Custom ROMS, etc. Does not indicate my preference for them. It is your responsibility to do the research before selecting an item.

      Prerequisites

      Need help installing Android SDK or SDK Platform Tools


      Other

      Credit/Thanks/Recognitions


      Index
      1. Open Command Prompt/ Boot Bootloader/Boot Recovery

        1. Open Command Prompt on Computer
          • Option 1 - Open File Explorer, click the platform-tools folder, press shift, right click, and select open command prompt here.
          • Option 2 - Open File Explorer, click platform-tools folder, highlight the directory information in the address bar or click the folder (left side of address bar) to highlight it type 'cmd' and press enter.
          • Note: If your computer only has 'open powershell here' in the context menu and you do not want to change it or add open 'command prompt here' use use option 2.
        2. Boot Bootloader:
          • Power off phone, press and hold the power and volume down buttons until you see Start.
        3. Boot Recovery
          • Power off phone, press and hold the power and volume down buttons until you see Start. Press volume Up/Down button until you see Recovery Mode > Press Power button.
      2. Testing ADB (Android Debug Bridge)/fastboot

        • ADB
          1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
          2. Open a Command Prompt on your computer.
          3. Type this at the prompt and press enter to test ADB.
            Code:
            adb version
            It should return a version number for ADB.
        • fastboot
          1. Enable USB Debugging - Tap Settings > System > About Phone > Developer Options. Enable USB Debugging.
          2. Open a Command Prompt on your computer.
          3. Boot bootloader.
          4. Connect your phone to your computer with a USB cable.
          5. Type this at the prompt and press enter to test fastboot.
            Code:
            fastboot devices
            It should return your device serial number.
      3. Unlock Your Bootloader

        • Backup your data and Internal storage
        • Activate Developer Options: Tap Settings > System > About Phone > Build Number. Tap Build Number until you see you're a Developer. Tap back > Developer Options. Enable OEM Unlock and, USB Debugging.
        • Boot Bootloader
        • Connect your phone to your computer via USB cable.
        • Open a Command Prompt on your computer.
        • Type the following at the prompt and press enter:
          Code:
          fastboot flashing unlock
          This will erase all user data from the device!
        • You should see a screen on your phone asking you to confirm this action, use the volume keys to scroll and the power key to make your selection.
        • Allow the process to complete and then issue this command:
          Code:
          fastboot reboot
        • When your phone reboots disconnect your usb cable.

          Note: After unlocking your bootloader, you'll be greeted with a warning that says Your device software can't be checked for corruption. Please lock the bootloader everytime you reboot. It's ok, as long as your bootloader is unlocked it will stay there.

          Important: do not repeat do not relock your bootloader unless your phone is fully stock. You must flash the factory images first in order to remove root and custom recovery (if you have them), if this precaution isn't taken you may end up with a brick. Please see 9 of this guide for instructions on how to return to stock and lock the boot loader.
      4. Install Factory Image and wipe data

        • Backup your data and Internal storage
        • Download the factory image for your phone and carrier.
        • Unzip factory Image
        • Copy the following files to the Platform Tools folder on your Computer
          1. flash-all.bat
          2. bootloader-marlin-9999-999999-9999999999.img
          3. radio-marlin-9999-999999-9999999999.img
          4. image-marlin-aaa99a.zip
        • Boot Bootloader
        • Connect phone to Computer with USB cable
        • Open a Command Prompt on your computer.
        • Type the following at the prompt and press enter.
          Code:
          flash-all
      5. Install Factory Image and keep data

        • Backup your data and Internal storage
        • Download the factory image for your phone and carrier.
        • Unzip factory Image
        • Edit flash-all.bat: Remove -w
        • Copy the following files to the Platform Tools folder on your Computer
          1. flash-all.bat
          2. bootloader-marlin-9999-999999-9999999999.img
          3. radio-marlin-9999-999999-9999999999.img
          4. image-marlin-aaa99a.zip
        • Boot Bootloader
        • Connect phone to Computer with USB cable
        • Open a Command Prompt on your computer.
        • Type the following at the prompt and press enter.
          Code:
          flash-all
      6. Install A Custom Recovery and Root with SuperSU

        • Important: Set Pin before installing TWRP: Setting > Security > Pin.
        • Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
      7. Install A Custom Recovery and Root with Magisk (Clean Install)

        • Important: Set Pin before installing TWRP: Setting > Security > Pin.
        • Important: Make and restore nandroid backups with TRWP RC1 zip. Some, users have reported problems creating/restoring nandroid backups with TWRP RC2 zip.
        • Note:[Substratum] theme Spectrum does not work with Magisk root.
        • Backup your data and Internal storage
        • Download the following files:
          1. ElementalX-P-1.14.zip for Pixel XL
          2. twrp-3.0.2-0-RC1-fastboot-marlin.img
          3. twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
          4. Magisk-v13.3-Pixel-b4.zip
          5. MagiskManager-5_1_1.apk
          6. Magisk-uninstaller-20170720.zip
        • Flash Boot.img - If you have TWRP, SuperSU, or a custom kernel installed.
          1. Extract the contents of your factory image and open the folder it creates. From there, extract the second archive (image-marlin-aaa99a.zip)
            Then open that folder and copy the boot.img file and paste it into the platform-tools folder.
          2. Boot Bootloader
          3. Connect the phone to your computer
          4. Open a Command Prompt on your computer.
          5. Type the following command at the prompt:
            Code:
            fastboot flash boot --slot all boot.img
          6. When it finishes, leave the command prompt window open, your phone in bootloader mode and connected to your computer.
        • Install TWRP
          1. Place twrp-3.0.2-0-RC1-fastboot-marlin.img in your platform-tools folder and Rename it twrp.img
          2. Type the following command at the prompt:
            Code:
            fastboot boot twrp.img
          3. When TWRP boots, tap the Install button and select twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
          4. Swipe the slider to install
          5. Press the back button until you are on TWRP's main menu select Reboot > Recovery.
        • Flash the ZIPs
          1. Disconnect your phone from your Computer.
          2. Tap the Install button, then navigate to the files you downloaded.
          3. Select the Magisk Uninstaller.zip, tap the Add more ZIPs button.
          4. Select the twrp-pixel-installer-marlin-3.0.2-0-RC2.zip.
          5. Swipe to install
          6. Reboot Recovery
          7. Tap the Install button select a Custom Kernel: ElementalX-P-1.1x.zip or Franco's Kernel-r1x.zip.
          8. Tap Add more ZIPs button select Magisk-v13.3-Pixel-b4.zip, tap the Add more ZIPs button and select: twrp-pixel-installer-marlin-3.0.2-0-RC2.zip
          9. Swipe to install
            Note: During the Installation of ElementalX, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and press Install ElementalX when prompted.
          10. When ElementalX AROMA installer finishes, tap Next, and Finish. After, the other ZIPs are installed.
          11. Reboot System
            Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
        • Install MagiskManager
          1. Install Magisk Manager (5.1.1.apk)
          2. Wipe data on Magisk Manager
          3. Enable Magisk Hide
          4. Enable Core Only Mode
          5. Toggle on and off systemless hosts
        • Reboot system
        • Check for Latest Version, Root, and Saftey Net.
      8. Update Magisk Dirty Flash

        1. Download file:Flash the ZIPs
      9. Custom ROMs for Pixel/Pixel XL
      10. Install Custom Kernel

        • Franco's Kernel - SuperSu
          1. Download file:
          2. Boot into TWRP
          3. Press Install button select the file you downloaded
          4. Swipe slider to install
          5. Reboot System
        • ElementalX-PXL-1.xx by flar2 Kernel - SuperSU
          1. Download files:
          2. Flash ElementalX zip in TWRP recovery (do not flash SuperSU-v2.82-201705271822.zip again if you're already rooted).
            • During the Installation, ElementalX's AROMA installer interface, will require your input: So, tick I agree, then tap Next a few times and tap Install ElementalX when prompted.
            • When ElementalX AROMA installer finishes, tap Next, and then Finish.
              Note: If you're prompted to install the TWRP app at this point, remove check marks from two check boxes and select Do Not Install.
        • Franco's Kernel or ElementalX-PXL-1.xx by flar2 Kernel - Magisk
      11. Install Substratum Theme

      12. Return to Stock and Lock Bootloader

        • Return to Stock
          1. Backup your data and Internal storage
          2. Download the appropriate factory image for your phone and carrier.
          3. Unzip factory Image
          4. Copy the following files to the platform-tools folder on your Computer
            • flash-all.bat
              • Verify -w is present in flash-all.bat. Example: fastboot -w update image-marlin-aaa9.999999.999.zip
            • bootloader-marlin-9999-999999-9999999999.img
            • radio-marlin-9999-999999-9999999999.img
            • image-marlin-aaa99a.zip
          5. Boot Bootloader
          6. Connect phone to Computer with USB cable
          7. Open a Command Prompt on your computer.
          8. Type the following command at the prompt.
            Code:
            flash-all
        • Lock Bootloader

          1. Phone
          2. Boot Bootloader
          3. Connect your phone to your Computer with USB cable.
          4. Computer
          5. Open a Command Prompt on your computer.
          6. Type the following at the prompt:
            Code:
            fastboot flashing lock
          7. When it finishes the bootloader is locked.
          8. The next step won't be needed if your Pixel XL reboots into system after bootloader relock.
          9. You need to boot into system now, either press Power button to reboot OR issue the following command:
            Code:
            fastboot reboot
          10. When your phone reboots disconnect your usb cable.
      13. Audio Mod

      3
      Intro
      The purpose of this thread is twofold:
      First, it is for Pixel XL owners that want to Root their phone, and enjoy the benefits of rooting it without installing a custom ROM...

      If you follow the instructions above you should not have to worry about slot a/b.

      If you are installing Custom ROM this thread is not for you. You, should follow the installation instructions of the Custom ROM you want to install.

      A few things that may make this a bit confusing for users.

      Your steps work fine for users that want to use custom roms. This is because unlocking, flashing, twrp, flashing SU and flashing a rom are independent.

      So basically someone can follow your steps to get their device to a state that flashing roms is possible. The other thing is why do you have them flash radio and boot loader separately? When they download the factory image it has a flash all bat that flashes everything for them.

      Also if any of these users are coming from the O beta your steps will not work because they will have factory flash in both A and B slots.. Or at least flash bootloader and boot.img in both slots.

      Lastly you dont need the huge android sdk for the latest ADB and fastboot..

      Google provides ADB and Fastboot in a 4mb package here: https://developer.android.com/studio/releases/platform-tools.html
      2
      we already have guides though

      can't hurt to have an updated guide for those too lazy to read.. so many posts about "this guide is out of date" or "i dont have time to read 6 pages about other people's experiences"
      2
      SuperSU v2.82 SR2
      2
      I think I asked the wrong question 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. :)

      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.