[UPDATED][2017.11.6][Magisk] Root Pixel 2 (XL)

Search This thread

topjohnwu

Senior Recognized Developer / Inactive RC
Jan 31, 2012
1,849
61,387
Taipei
Pixel 2 (XL) is now officially added on the Magisk support list, please install Magisk v14.5+. These builds here are deprecated
Check out the latest beta from the official beta thread


---------------------------------------------------------------------------------------------------

Root for Pixel 2 XL has been achieved!
There are still some things I'd like to add before I push out an official release, but since people can't wait to ROOT their shiny new Pixel 2s, I figured I'd build one for you!
I do not own either Pixel 2 or Pixel 2 XL, so testing is limited. This build is ONLY tested on Pixel 2 XL Android 8.0 OPD1.170816.010.
For Android 8.1 beta, Pixel 2 etc, it should work IN THEORY.


Magisk Version: v14.4 (code: 1444)
Magisk Manager Version: 5.4.1 (code: 58)

Instructions
Since TWRP cannot decrypt /data yet, the proper way to install Magisk is via Magisk Manager. You will need a stock boot image from official factory images.
Download MagiskManager-v5.4.1.apk from attachments and install it to your device.
This Magisk Manager is specifically built for this release ONLY, both stable and beta channels points to the same custom URL.
Once you've got Magisk Manager installed, I'll just copy and paste the instructions from the Magisk OP here:
  • This method does not need root, and also does not require a custom recovery.
  • Press Install > Install > Patch Boot Image File, and select your stock boot image file
  • Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img
  • Flash the patched boot image to your device and reboot. Voilà!

Please don't share a patched boot image in the forums since it will help no one. Flashing a patched boot image alone is not sufficient to run Magisk properly. The "patch through Magisk Manager" step is actually mandatory if you wonder why.

Special Thanks
@nathanchance for his Pixel 2 XL and speedy tests
@Dees_Troy for TWRP on Pixel 2 XL - thanks to TWRP's root shell, the debugging process is 1000 times faster

Donations
I spent endless hours on Magisk. If you like my work, feel free to donate.
https://www.paypal.me/topjohnwu

P.S. Magisk-v14.4(1444).zip is also hosted here because I do not have my own server :p
 

Attachments

  • MagiskManager-v5.4.1.apk
    2.2 MB · Views: 36,783
  • Magisk-v14.4(1444).zip
    6 MB · Views: 93,944
  • Screenshot_20171106-075812.png
    Screenshot_20171106-075812.png
    179.3 KB · Views: 34,267
  • Screenshot_20171106-075821.png
    Screenshot_20171106-075821.png
    161.8 KB · Views: 33,909
Last edited:

Megaflop666

Senior Member
May 17, 2014
3,500
2,539
Insanity
Google Pixel 6 Pro
Root for Pixel 2 XL has been achieved!
There are still some things I'd like to add before I push out an official release, but since people can't wait to ROOT their shiny new Pixel 2s, I figured I'd build one for you!
I do not own either Pixel 2 or Pixel 2 XL, so testing is limited. This build is ONLY tested on Pixel 2 XL Android 8.0 OPD1.170816.010.
For Android 8.1 beta, Pixel 2 etc, it should work IN THEORY.


Magisk Version: v14.4 (code: 1444)
Magisk Manager Version: 5.4.1 (code: 58)

Instructions
Since TWRP cannot decrypt /data yet, the proper way to install Magisk is via Magisk Manager. You will need a stock boot image from official factory images.
Download MagiskManager-v5.4.1.apk from attachments and install it to your device.
This Magisk Manager is specifically built for this release ONLY, both stable and beta channels points to the same custom URL.
Once you've got Magisk Manager installed, I'll just copy and paste the instructions from the Magisk OP here:


Please don't share a patched boot image in the forums since it will help no one. Flashing a patched boot image alone is not sufficient to run Magisk properly. The "patch through Magisk Manager" step is actually mandatory if you wonder why.

Special Thanks
@nathanchance for his Pixel 2 XL and speedy tests
@Dees_Troy for TWRP on Pixel 2 XL - thanks to TWRP's root shell, the debugging process is 1000 times faster

Donations
I spent endless hours on Magisk. If you like my work, feel free to donate.
https://www.paypal.me/topjohnwu

P.S. Magisk-v14.4(1444).zip is also hosted here because I do not have my own server :p

Can we use a custom kernel like the Snoke kernel from Despair after we root or will it break root?

Also I've seen a few posts about needing to do this before any Google accounts are on the phone, etc. Any truth to any of those; or just flash original boot back on and follow your instructions?

Thanks for all your work!
 
  • Like
Reactions: Wan Oge

nathanchance

Senior Recognized Developer / Contributor
Jul 22, 2015
13,760
50,097
28
Mesa, AZ
nathanchance.dev
Can we use a custom kernel like the Snoke kernel from Despair after we root or will it break root?

Also I've seen a few posts about needing to do this before any Google accounts are on the phone, etc. Any truth to any of those; or just flash original boot back on and follow your instructions?

Thanks for all your work!

I tested it with Google accounts already on my phone.

I don't know if Snoke uses AnyKernel2 or a boot image. If it uses a boot image, just patch that with Magisk Manager and flash it (that's what I did with my kernel). If it uses AnyKernel, flash the Magisk patched boot image then Snoke.

Also, to be clear to everyone, this works with encrypted data and SELinux enforcing.
 

bryantjopplin

Senior Member
Sep 15, 2010
1,637
728
I tested it with Google accounts already on my phone.

I don't know if Snoke uses AnyKernel2 or a boot image. If it uses a boot image, just patch that with Magisk Manager and flash it (that's what I did with my kernel). If it uses AnyKernel, flash the Magisk patched boot image then Snoke.

Also, to be clear to everyone, this works with encrypted data and SELinux enforcing.
The newer ones are anykernel2
 

Megaflop666

Senior Member
May 17, 2014
3,500
2,539
Insanity
Google Pixel 6 Pro
I would flash snokes first, then root with magisk , also I have Google account in my device and am not encrypted in twrp

I already have Snoke kernel on the device. I was going to wipe userdata to unencrypt my phone as well. I'm just going to be happy to get root so I can tibu over my apps and data easily and quit using my opt for my dd.

Thanks
 

phyl0x

Senior Member
Jun 11, 2010
64
28
how do you do the final step: " Flash the patched boot image to your device and reboot. Voilà!"?
 
  • Like
Reactions: Alxoom33

dredq

Senior Member
Jun 6, 2014
461
142
For Pixel Noobs out there including myself... Could someone post a step-by-step description of how to install Magisk, Smoke Kernel, and TWRP maybe on a separate thread?
 
  • Like
Reactions: State.of.mind

Top Liked Posts

  • There are no posts matching your filters.
  • 241
    Pixel 2 (XL) is now officially added on the Magisk support list, please install Magisk v14.5+. These builds here are deprecated
    Check out the latest beta from the official beta thread


    ---------------------------------------------------------------------------------------------------

    Root for Pixel 2 XL has been achieved!
    There are still some things I'd like to add before I push out an official release, but since people can't wait to ROOT their shiny new Pixel 2s, I figured I'd build one for you!
    I do not own either Pixel 2 or Pixel 2 XL, so testing is limited. This build is ONLY tested on Pixel 2 XL Android 8.0 OPD1.170816.010.
    For Android 8.1 beta, Pixel 2 etc, it should work IN THEORY.


    Magisk Version: v14.4 (code: 1444)
    Magisk Manager Version: 5.4.1 (code: 58)

    Instructions
    Since TWRP cannot decrypt /data yet, the proper way to install Magisk is via Magisk Manager. You will need a stock boot image from official factory images.
    Download MagiskManager-v5.4.1.apk from attachments and install it to your device.
    This Magisk Manager is specifically built for this release ONLY, both stable and beta channels points to the same custom URL.
    Once you've got Magisk Manager installed, I'll just copy and paste the instructions from the Magisk OP here:
    • This method does not need root, and also does not require a custom recovery.
    • Press Install > Install > Patch Boot Image File, and select your stock boot image file
    • Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img
    • Flash the patched boot image to your device and reboot. Voilà!

    Please don't share a patched boot image in the forums since it will help no one. Flashing a patched boot image alone is not sufficient to run Magisk properly. The "patch through Magisk Manager" step is actually mandatory if you wonder why.

    Special Thanks
    @nathanchance for his Pixel 2 XL and speedy tests
    @Dees_Troy for TWRP on Pixel 2 XL - thanks to TWRP's root shell, the debugging process is 1000 times faster

    Donations
    I spent endless hours on Magisk. If you like my work, feel free to donate.
    https://www.paypal.me/topjohnwu

    P.S. Magisk-v14.4(1444).zip is also hosted here because I do not have my own server :p
    50
    Step-by-step

    For Pixel Noobs out there including myself... Could someone post a step-by-step description of how to install Magisk, Smoke Kernel, and TWRP maybe on a separate thread?


    Step by step

    1. Download and extract factory image. Mine was taimen-opd1.170816.010-factory-c796ddb4.zip
    2. Once extracted go into the folder and extract image-taimen-opd1.170816.010.zip.
    There you will find the boot.img.

    3. Now install MadiskManager-v5.4.1.apk
    4. Click install and select patch Boot image file.
    5. this is where you will browse to that boot.img we found earlier and select it.

    Magisk will do its thing and tell you where it put the patched_boot.img

    6. Go to PC and hook the phone to it, enable file transfer. I could not see the file in the MagiskManager folder from PC. So I used es file explorer on phone and made a copy in the download directory of my phone. Back to the PC I copied the patched_boot.img to my platform tools folder with adb and fastboot.

    7. Held shift, right clicked, open command prompt here.
    8. Typed "adb devices" (probably not needed, i just like too) MY device was there.
    9. Typed "adb reboot-bootloader"
    10. Typed "fastboot flash boot patched_boot.img
    11. hit the power button on phone to reboot when it was finished.

    Phone rebooted, opened Magisk Manager and I now have root. Thank you everyone. Hope this helps!
    38
    Glad to help be a part of testing and here's to the future of root :)
    21
    Below are the instructions from the OP: (click to show content)

    Where does it say the file is to be flashed via FASTBOOT?

    Yes, it is assumed that people rooting their devices KNOW this, and most do, but SOME do not.

    Where does it say to move the "patched_Boot.img" file to your PC for flashing via FASTBOOT?

    Again, most do know this, some do not.

    This is in no way to throw shade at anyone. Think of it as a perspective reminder :D

    It is possible that even when you read the instructions 20 times, SOMETIMES, there are SOME users who will not understand them; so they ask questions.

    Instructions
    Since TWRP cannot decrypt /data yet, the proper way to install Magisk is via Magisk Manager. You will need a stock boot image from official factory images.
    Download MagiskManager-v5.4.1.apk from attachments and install it to your device.
    This Magisk Manager is specifically built for this release ONLY, both stable and beta channels points to the same custom URL.
    Once you've got Magisk Manager installed, I'll just copy and paste the instructions from the Magisk OP here:
    Quote:
    This method does not need root, and also does not require a custom recovery.
    Press Install > Install > Patch Boot Image File, and select your stock boot image file
    Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img
    Flash the patched boot image to your device and reboot. Voilà!


    Xda IS about development, absolutely. But think about it as also developing new users, and helping others learn so they can become self sufficient.

    The energy spent to make disparaging comments could just as easily be spent helping someone understand the process.

    Yes it sucks to repeat yourself, yes it sucks that everyone here isn't self sufficient, but we all start somewhere, and we ALL have different levels of understanding within the root, development process.

    Let's be the good part of Xda, the helpful part of Xda, and let's mentor a bunch of new users, turning them into knowledgeable Xda users.

    There are 8+ MIllion users on Xda, and some are rude, mean, and grumpy; let's be better than that, and be helpful, and constructive.

    Much respect to each of you!