4 months ago

How to Root the Pixel 2 or Pixel 2 XL & Install Magisk « Android :: Gadget Hacks

Despite concerns with SafetyNet, Google actually cares about root. Every phone they sell has an unlockable bootloader, so you can toggle a setting as well as send a Fastboot command, then start flashing custom firmware right away. The Pixel 2 as well as Pixel 2 XL continue This kind of tradition, as well as currently they have an official root method.

This kind of root method uses Magisk, so you’ll still be able to play Pokémon GO, use Android Pay, as well as enjoy all the little things which some other root methods typically break. the idea’s somewhat involved, nevertheless genuinely, all you have to do is usually download a copy of your phone’s boot image, patch the idea with the Magisk Manager app, then flash the patched edition with Fastboot. The only thing you’ll need to do before you can try This kind of is usually to unlock the bootloader on your Pixel 2 or Pixel 2 XL.


Step 1: Download Your Boot Image

This kind of root method works by patching your phone’s boot image, nevertheless which means you’ll need a copy of the boot image itself. If you’re running the stock firmware which came with your Pixel 2 or Pixel 2 XL, you can download This kind of file coming from Google. Alternatively, you can use a custom kernel, nevertheless only if the kernel is usually formatted for fastboot flashing (i.e., the kernel comes as an IMG file).

Most people will be patching the stock boot image coming from Google, so I’ll outline how to do which.

To start, head to Settings –> About Phone, then take note of your current firmware’s build number. coming from there, head to Google’s firmware download page for Pixel devices as well as select your type coming from the menu on the right. Next, match the build number you found on your phone with one of the firmware downloads on Google’s site, then click the “Link” button to download the firmware.

Make sure the build number listed in Settings –> About Phone matches the build number listed on Google’s firmware download page.

Step 2: Extract the Boot Image coming from the Archive

Next, head to your computer’s download folder as well as find the factory images package you just downloaded coming from Google. The file name should start with the word “walleye” (Pixel 2) or “taimen” (Pixel 2 XL). Open This kind of file with your favorite archive manager (we recommend 7-Zip).

After opening the initial ZIP file, you’ll find another folder nested inside the archive — open This kind of as well. Next, you’ll find several files starting with one which begins with the word “bootloader.” In This kind of folder, look for another archive labeled either “image-walleye” or “image-taimen” as well as double-click the idea.

currently you’re finally to the bottom of the nested archive. In This kind of folder, you’ll see several IMG files, nevertheless you should only be concerned with one: boot.img. Locate This kind of file, then drag the idea out of your archive utility as well as drop the idea onto your desktop.

Drag the boot.img file out of the archive as well as drop the idea onto your desktop.

Step 3: Transfer the Boot Image to Your Phone

Next, you’ll need to transfer which boot.img file coming from your computer to your phone. If you don’t have a Great solution for transferring files between your computer as well as your phone, we recommend uploading to your Google Drive account, then downloading the file on your phone using the Google Drive Android app. If you’d rather not use Google, we found these apps to be useful for transferring files.

Step 4: Install Magisk Manager on Your Phone

Over on your phone currently, the idea’s time to install the Magisk Manager app — This kind of is usually the app which will be managing root access on your phone. So tap the following link coming from your Pixel, then open the APK when the idea’s finished downloading, as well as press “Install” when prompted.

Step 5: Patch the Boot Image File with Magisk Manager

Next, open the Magisk Manager app. You’ll see a prompt on first-run — go ahead as well as tap “Install” here. If you don’t see This kind of message, tap the “Install” button in Magisk Manager’s main menu, then press “Install” on the popup. coming from there, choose “Patch Boot Image File” when prompted to select a method.

Next, use the file picker interface which comes up to select the boot.img file which you transferred over coming from your computer. If you have a Great file explorer app installed, I recommend opening the side navigation menu inside the file picker interface, then selecting your file explorer coming from there, as the default Android file picker may not show the boot.img file. Alternatively, you can pull the boot.img file directly coming from your Google Drive account inside the same side navigation menu.

After selecting the boot.img file, tap “Allow” to give Magisk Manager permission to access the file. coming from there, wait while the tool patches your boot image, then take note of the storage location for the “patched_boot.img” file.

Step 6: Transfer the Patched Boot Image Back to Your PC

currently you’ll have to move the patched boot image back over to your computer. Again, you can use Google Drive or one of these apps to transfer the file, nevertheless make sure to take note of its storage location once you’ve moved the patched_boot.img file over to your desktop or laptop.

Step 7: Boot into Bootloader Mode & Connect to Your PC

With the patched boot image on your computer, the idea’s time to put your phone into bootloader mode. Start by restarting your phone, then when the screen goes black, press as well as hold the volume down button. After a few seconds, you’ll be greeted by Android’s bootloader menu (pictured below), at which point you can let go of the volume down button.

Booting into bootloader mode. Image by Dallas Thomas/Gadget Hacks

coming from there, don’t select anything on the phone — simply leave the idea on the main bootloader screen as shown at the end of the above GIF, then connect your phone to your computer that has a USB data cable.

Step 8: Install ADB & Fastboot on Your Computer

On your computer currently, the idea’s time to install ADB as well as Fastboot. You’ve probably already done This kind of since your bootloader’s already unlocked, nevertheless just in case, you can use This kind of guide for full setup instructions.

Step 9: Open a Command Window inside the Right Directory

This kind of next part is usually where most people struggle with ADB as well as Fastboot: Getting a command window open to the proper directory.

The easiest way I’ve found to do This kind of is usually to locate the platform-tools folder inside of your ADB as well as Fastboot installation directory. For Windows users, This kind of can usually be found at C:Program Files (x86)Androidandroid-sdkplatform-tools. For Linux as well as Mac users, the folder’s location will vary, so use your computer’s search function to find the platform-tools folder.

Once you’ve found the platform-tools folder, copy the location coming from the address bar at the top of your file browser (e.g., Windows Explorer). Then, open a command prompt or terminal window. On Windows, press the Windows button on your keyboard, then type in “cmd” as well as hit enter to do so. On Linux or Mac, open “Terminal” coming from your Applications folder.

Once you’ve got the command window open, you’ll need to change directories to the platform-tools folder before you can send the Fastboot command to unlock your bootloader. To do which, type “cd” (without the quotes) followed by a space, then paste inside the file location for your platform-tools folder:

Changing directories to the platform-tools folder with the “cd” command.

Step 10: Flash the Patched Boot Image

Next, type “fastboot flash boot” (without the quotes) into the command prompt, then add one particular space, nevertheless don’t hit enter just yet.

coming from there, find the patched_boot.img file which you transferred in Step 6. Drag the file as well as drop the idea into the command window — This kind of will populate the file’s location directly after the space you entered, so the full command should be something like “fastboot flash boot C:Downloadspatched_boot.img” (the location will vary depending on where you stored the file).

Dragging the patched boot image into the command window to populate the full file location.

Once you’ve got the full command entered, go ahead as well as press return or enter on your keyboard to flash the modified boot image. This kind of process will take a few seconds, as well as when the idea’s done, you’ll see a message saying the idea’s done.

Next, make sure the “Start” option is usually highlighted on your phone inside the bootloader menu. If the idea isn’t, use the volume keys to select the idea. coming from there, press the power button once as well as your phone will boot back up — when the idea’s finished, you should be fully rooted!

Step 11: Verify Root

When you get back up, open the Magisk Manager app. If everything went off without a hitch, you should see a message stating which Magisk is usually installed, as is usually the latest edition of Magisk SU (your fresh superuser manager). As an added benefit, your phone should also pass SafetyNet, so you get root without any of the drawbacks!

Magisk installed, root verified!

Did you run into any bumps along the way, or was rooting your Pixel 2 as easy as ever? Drop us a line down below with any issues you may have encountered as well as we’ll do our best to point you inside the right direction.

Cover image as well as screenshots by Dallas Thomas/Gadget Hacks

Leave a Comment

Your email address will not be published. Required fields are marked *

four × three =