InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Android user guides

  • Android - enable system ui tuner
  • Android - install android 8, 9 from OTA images on pixel 2
  • Android screenshots
  • Chrome - site bookmark on home
  • Clear default app
  • Disable android auto update
  • Disable dropbox photo auto upload
  • Install google camera on Asus m1 max pro
  • Lollipop - add clock widget to home
  • Lollipop - enable Chrome tabs
  • Root Pixel 2 with Android Pie using TWRP and Magisk
 
  • Home
  • > Tutorials
  • > Android

Root Pixel 2 with Android Pie using TWRP and Magisk

on Aug 12, 2018

The below steps are assuming you have a Mac machine with adb and fastboot tools and developer option and usb debugging is enabled on your Pixel 2.

The below steps can also be used to revert to Android Oreo.

  1. Download TWRP .img file (Pixel 2: https://dl.twrp.me/walleye/ ) (Pixl2 XL https://dl.twrp.me/taimen/). E.g. for Pixel2 download twrp-3.2.3-0-walleye.img. It is specific to mobile model.
  2. Download Magisk app zip from site magiskmanager site. It is platform independent file.
  3. Ensure adb is able to connect to device. It should list the device name when we run thefollowing:
    $ adb devices
    List of devices attached
    HT7AD1A0XXXX	device
    
  4. Copy Magisk to mobile /sdcard/ directory
    $ adb push Magisk-v16.7-1674-.zip /sdcard/
    
  5. Run
    $ adb reboot bootloader
  6. Ensure fastboot can list the device name
    fastboot devices
  7. boot using twrp-3.2.3-0-walleye.img
    $ fastboot boot twrp-3.2.3-0-walleye.img
  8. Select keep readonly => Install => Select Magisk file => Swipe to confirm Flash => Reboot system if everything is fine.
  9. Phone should be rooted now. Install Rootchecker on you mobile to check root status.

Suggested posts:

  1. How to extract number from a string – google sheets
  2. Linux – number of cpus (lscpu)
  3. Find top processes by memory/cpu on Android using Adb
  4. Mac terminal – how to close shell on exit
  5. curl – some handy commands
  6. Android – install android 8, 9 from OTA images on pixel 2
  7. How to disable dropbox photo auto upload on mobile and desktop
  8. How to download apk from mobile using AirDroid
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android, Pixel-2, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress