What have you found for these years?

2018-03-15

Rooting Pixel 2 with MacBook

# Install tools on the computer
$ brew cask install android-sdk
# Install platform-tools in order to have adb
$ sdkmanager platform-tools

# Download official Android image:
# https://developers.google.com/android/images
# Extract everything and find "boot.img"

# Download Magisk (the only 3rd party stuff)
# https://www.apkmirror.com/apk/topjohnwu/magisk-manager/

# Enable Developer options on the phone
# Enable OEM unlocking
# Enable USB debugging

# Connect the phone with the computer

# Check if connected
$ /usr/local/share/android-sdk/platform-tools/adb devices

# Boot to bootloader
$ /usr/local/share/android-sdk/platform-tools/adb reboot bootloader

# Check if fastboot is available
$ /usr/local/share/android-sdk/platform-tools/fastboot devices

# Unlock the bootloader (NOTE: This would WIPE all the data)
# Run it only after backing up
$ /usr/local/share/android-sdk/platform-tools/fastboot flashing unlock

# UNLOCK THE BOOTLOADER

# Reboot the phone
$ /usr/local/share/android-sdk/platform-tools/fastboot reboot

# Setup the phone again
# Enable Developer options on the phone again

# Upload Magisk and "boot.img" to the phone
$ /usr/local/share/android-sdk/platform-tools/adb push 'magisk_5.6.2.apk' /sdcard/Download
$ /usr/local/share/android-sdk/platform-tools/adb push 'boot.img' /sdcard/Download

# Install Magisk from Downloads
# Click "Install", "Patch Boot Image File" and pick "boot.img" from Downloads

# Download the patched_boot.img from the phone to the computer
$ /usr/local/share/android-sdk/platform-tools/adb pull /sdcard/MagiskManager/patched_boot.img

# Reboot to bootloader again
$ /usr/local/share/android-sdk/platform-tools/adb reboot bootloader

# Flash the patched image
$ /usr/local/share/android-sdk/platform-tools/fastboot flash boot patched_boot.img

# Reboot
$ /usr/local/share/android-sdk/platform-tools/fastboot reboot

# All done!

References:

* How to root the Google Pixel 2
* [GUIDE] Unlock/Flash/Root for the Pixel 2 (walleye)

0 retries:

Post a Comment

All texts are licensed under CC Attribution 3.0