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

Search This thread

Badger50

Senior Moderator
Staff member
Yeah, they all have ups and downs, pros and cons for sure. My work phone is the S8 and my wife just got a S10+, oldest son has the S8 edge or something like that. My daughter has my old pixel xl, and I've got the XL2. Been through a lot of phone's and ever since the Droid X, I was always making sure that the next phont was going to be able to be rooted. I'm tired of making my purchases based on just that factor. Getting to old for all that ?. I certainly have met a ton of people and became a mod in a few forums through the years. Ready to retire and see what it's like again to just let the phone run its course without my influence ?.

Got a feeling i'll still you around from time to time my friend. Oh...and your not old, just busy is all! @Az Biker and I are old, and busy, but it's cool man, my Mrs. loves her N9, and the screen and speakers are so much better than mine, which is definitely a plus. I'll have a look see when the N10 and P4XL comes out, then make a decision. I still like rooting and all that, but trying something new is always fun. :good::laugh:
 

clothednblack

Senior Member
Apr 27, 2011
4,438
5,593
49
Crescent city california
Got a feeling i'll still you around from time to time my friend. Oh...and your not old, just busy is all! @Az Biker and I are old, and busy, but it's cool man, my Mrs. loves her N9, and the screen and speakers are so much better than mine, which is definitely a plus. I'll have a look see when the N10 and P4XL comes out, then make a decision. I still like rooting and all that, but trying something new is always fun. :good::laugh:
Oh yeah, I'll still be around from time to time and who knows, maybe the N10 will have root, I've seen some crazy things in my years ?
 

Rydian

Member
Oct 4, 2012
13
5
Having an issue with the phone unable to finish booting.

Pixel 2
- Unlocked bootloader, let it wipe.
- On the May 2020 update, so I downloaded the original from Google, confirmed the numbers matched, and copied the bootloader image to the phone.
- Installed Magisk Manager 7.5.1 (from the github releases).
- Ran it, patched bootloader-walleye-mw8998-002.0081.00.img, pulled the resulting magisk_patched.img back to the PC.
- Ran "fastboot flash boot magisk_patched.img" and it appeared to succeed and I told the phone to reboot, but it won't finish booting now.

When I try to turn the phone on normally it gets to a Google logo with an unlocked icon underneath it, but displays no changes even if I wait a while.
Turning the phone on while holding volume down gives me a menu with the below options.

Start - Unable to finish booting like usual.
Restart bootloader - Returns to this same menu.
Download mode - Returns to the same menu, but adds a highlighted line at the bottom stating "ERROR: Operation Denied".
Recovery mode - Unable to finish booting like usual.
Barcodes - Displays some information and tells me to press power to go back.
Power off - What it says on the tin.

At no point does adb list the device, but while in the menu fastboot does.
I'm unsure how to proceed from here, any advice?


EDIT: Okay so it wasn't specifically the bootloader I had to re-flash, I ran flash-all.bat from the stock image download to do all of them and that seems to have worked, I'm back to stock and it functions but no root/magisk.

EDIT 2: Just ended up installing TWRP from the official site instructions and then flashing Magisk, worked great, rooted and all I didn't even know Android could boot off a temporary image nowadays.
 
Last edited:
  • Like
Reactions: TheNullZero

deedeedee12

New member
Jun 28, 2020
2
0
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:


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

Good Evening,

I own a Google Pixel 2 XL(32 GB) (Verizon as my service carrier) and I have recently updated to android 10 updates, rooted and bootloader unlocked. I recently tried to reformat the device to its original state because the device was stuck in a boot loop. Using twrp 3.0, I mistook by pressing wipe in the system while in twrp. And due to this I am unable to load into system recovery mode, nor would the system turn on. And I keep getting this error. It says with a red warning sign, "Your device is corrupt. It cannot be trusted and may not work properly. Visit this link on another device: g.co/ABH
Hope you'll help me.

Thank You
 

Badger50

Senior Moderator
Staff member
Good Evening,

I own a Google Pixel 2 XL(32 GB) (Verizon as my service carrier) and I have recently updated to android 10 updates, rooted and bootloader unlocked. I recently tried to reformat the device to its original state because the device was stuck in a boot loop. Using twrp 3.0, I mistook by pressing wipe in the system while in twrp. And due to this I am unable to load into system recovery mode, nor would the system turn on. And I keep getting this error. It says with a red warning sign, "Your device is corrupt. It cannot be trusted and may not work properly. Visit this link on another device: g.co/ABH
Hope you'll help me.

Thank You

Have you tried clean fastbooting the factory image you were on? You'll completely wipe the device, but then again, it sounds like you've already done that.
 
  • Like
Reactions: Az Biker

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
I tried to but the computer unable to detect the device through cmd

Also make sure you have a few diff USB cables handy and the 2 XL can sometimes be finicky and act diff with a diff USB cable.

There's a detailed step by step in my sig if you need any help along the way :good:
 

romanticnutan

Senior Member
Dec 31, 2015
79
8
OnePlus 7T Pro
hello i need some help i had a problem with pixel 2 xl camera. so on pixel 3 thread i saw deleting the persist.img and reflashing android 9 solve the issue. so tried it but after deleting persist.img and reflashing android 9 my phone didnt boot. i flashed all version with all methode. but all process completed but phone wont boot stuck on google logo or goes back to fastboot mode. i can flash twrp and install custom rom but it wont boot. i think problem is with persist.img , so ineed persist image of pixel 2 xl. to extract persist.img u must have twrp . on twrp u must type adbshell on cmd and type dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img then you will have persist.img on your internal storage. please help me
 

Alxoom33

Senior Member
May 18, 2011
5,088
1,815
New York
www.sack-ip.com
hello i need some help i had a problem with pixel 2 xl camera. so on pixel 3 thread i saw deleting the persist.img and reflashing android 9 solve the issue. so tried it but after deleting persist.img and reflashing android 9 my phone didnt boot. i flashed all version with all methode. but all process completed but phone wont boot stuck on google logo or goes back to fastboot mode. i can flash twrp and install custom rom but it wont boot. i think problem is with persist.img , so ineed persist image of pixel 2 xl. to extract persist.img u must have twrp . on twrp u must type adbshell on cmd and type dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img then you will have persist.img on your internal storage. please help me
Why would you follow a suggestion on a Pixel 3 thread, on a Pixel 2 XL??

My suggestion, is to download and flash the full Factory image for the Pixel 2 XL, either the latest Android 10 or RPB1.2 from Google's Android Developer's website. Back up your data, wipe, flash and then restore.
Then you can start clean.

Sent from my Pixel C using Tapatalk
 
  • Like
Reactions: VerticalCobra

romanticnutan

Senior Member
Dec 31, 2015
79
8
OnePlus 7T Pro
Why would you follow a suggestion on a Pixel 3 thread, on a Pixel 2 XL??

My suggestion, is to download and flash the full Factory image for the Pixel 2 XL, either the latest Android 10 or RPB1.2 from Google's Android Developer's website. Back up your data, wipe, flash and then restore.
Then you can start clean.

Sent from my Pixel C using Tapatalk
i already flashed facctory image by both methode by running flashall.bat and flash from website. every process complete succesfully but when i boot system it goes back to fastboot and after some time it stuck on google logo forever.
is there ant other way to clean flashh factry image??
 

Alxoom33

Senior Member
May 18, 2011
5,088
1,815
New York
www.sack-ip.com
i already flashed facctory image by both methode by running flashall.bat and flash from website. every process complete succesfully but when i boot system it goes back to fastboot and after some time it stuck on google logo forever.

is there ant other way to clean flashh factry image??
Yes, dl the full factory image from the Android Developer's website, extract and flash it without removing the -w. Will wipe your device clean and you will start from scratch. Be sure to back-up your internal storage on your computer to restore later.

Sent from my Pixel C using Tapatalk
 

romanticnutan

Senior Member
Dec 31, 2015
79
8
OnePlus 7T Pro
Yes, dl the full factory image from the Android Developer's website, extract and flash it without removing the -w. Will wipe your device clean and you will start from scratch. Be sure to back-up your internal storage on your computer to restore later.

Sent from my Pixel C using Tapatalk
i did that already. download full factory image extract it and run flashall.bat all process completed but when i boot it iether goes back to fastboot mode or stuck at google logo
 

Alxoom33

Senior Member
May 18, 2011
5,088
1,815
New York
www.sack-ip.com
i did that already. download full factory image extract it and run flashall.bat all process completed but when i boot it iether goes back to fastboot mode or stuck at google logo
Which factory image did you use? I recommend that you download the April 2019 Android Factory Image. Then update using OTAs to latest Android 10 or R beta.
You may also want to use stock recovery to wipe or fastboot format user-data. Both worked for me when I needed the nuclear (last resort) option.

If that doesn't work you may want to RMA the device.

Sent from my Pixel C using Tapatalk
 
Last edited:

Lughnasadh

Senior Member
Mar 23, 2015
3,412
3,452
Google Nexus 5
Huawei Nexus 6P
The pixel 2 XL is already on Android 10 and the bootloader is locked, also the phone has never been rooted. If it is still possible to root and possibly unlock bootloader, kindly recommend the right tool to use, preferably a link. Thanks in advance
As long as you don't have a Verizon variant you can unlock the bootloader so you can root with Magisk. I suggest you read these guides thoroughly before doing anything...

https://forum.xda-developers.com/pixel-2-xl/how-to/guide-unlock-flash-root-pixel-2-xl-t3702418
https://github.com/topjohnwu/Magisk
 
  • Like
Reactions: skyliner129

Alxoom33

Senior Member
May 18, 2011
5,088
1,815
New York
www.sack-ip.com
The pixel 2 XL is already on Android 10 and the bootloader is locked, also the phone has never been rooted. If it is still possible to root and possibly unlock bootloader, kindly recommend the right tool to use, preferably a link. Thanks in advance
Go to the Android developers website, download and set up latest Google adb/fastboot files on your computer. Then look at the Android Developers website for rooting instructions using adb. But first go to Settings/Developers Settings and flip the toggle to enable OEM unlocking and enable adb debugging. Then proceed to unlock your bootloader and boot into TWRP using the fastboot boot command.
Also read the above guide by Nathan Chancellor, nickname "the Flash"[emoji16][emoji106]

Sent from my Pixel 2 XL using Tapatalk
 
Last edited:
  • Like
Reactions: skyliner129

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!