Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Last active October 11, 2024 00:49
Show Gist options
  • Save pich4ya/c3565c97cb6a845c8e543301e665b40e to your computer and use it in GitHub Desktop.
Save pich4ya/c3565c97cb6a845c8e543301e665b40e to your computer and use it in GitHub Desktop.
Unlock bootloader / install TWRP / *root* with Magisk / install Magisk Manager on Google Pixel 1 using MacOS
@author LongCat (Pichaya Morimoto)
-- Unlock bootloader
Note: this will unlock bootloader & perform factory reset.
1. Prepare the device
Remove all screen unlock methods.
Enable Developer Mode: Settings > About phone > tap seven times on "Build number"
Enable USB Debgging: Settings > Developer options > Select "USB debugging"
Enable OEM Unlock: Settings > Developer options > Select "OEM unlocking"
2. Install Android Studio
(For tools, alternatively use $ brew install android-platform-tools)
https://developer.android.com/studio/
$ ln -s /Users/[user]/Library/Android/sdk/platform-tools/adb /usr/local/bin
$ ln -s /Users/[user]/Library/Android/sdk/platform-tools/fastboot /usr/local/bin
$ ln -s /Users/[user]/Library/Android/sdk/platform-tools/make_f2fs /usr/local/bin
$ ln -s /Users/[user]/Library/Android/sdk/platform-tools/mke2fs /usr/local/bin
3.
$ adb reboot bootloader
$ fastboot flashing unlock
4.
press Volume Up button to highlight "Yes" and press "Power" button to select it
.. reboot .. press "Power" button to enter normal boot process.
-- Downgrade Android version (Optional)
1.
$ adb reboot bootloader
$ fastboot flashing unlock
2. Download ROM you wants
https://developers.google.com/android/images#sailfish
in my case, to 7.1.2, sailfish-njh47f-factory-6fd9b2c4.zip.
Extract it, and run ...
$ ./flash-all.sh
-- Install TWRP
1. Download TWRP files
https://twrp.me/google/googlepixel.html > https://dl.twrp.me/sailfish/
- twrp-pixel-installer-sailfish-3.2.3-1.zip
- twrp-3.2.3-1-sailfish.img
$ adb push twrp-pixel-installer-sailfish-3.2.3-1.zip /sdcard/Download/
$ adb reboot bootloader
$ fastboot boot twrp-3.2.3-1-sailfish.img
Swipe > Install > select Downloads/twrp-pixel-installer-sailfish-3.2.3-1.zip
> Swipe > install TWRP app > Swipe to reboot
-- Root with Magisk
1. Download Magisk
https://github.com/topjohnwu/Magisk/releases
At the time of writing this, the latest version was "Magisk-v17.3.zip".
1. Go to TWRP Recovery Mode
$ adb reboot bootloader
press "Volume Down" 2 times to "Recovery mode" > press "Power" button.
2. Flash Magisk (root the device)
Swipe to go to "Install" menu.
$ adb push Magisk-v17.3.zip /tmp/
Select the Magisk file at /tmp/Magisk-v17.3.zip
Flash it .. wait .. reboot ... done.
-- Install Magisk Manager
1. Download Magisk Manager
https://magiskmanager.com/#How_toDownload_Magisk_Manager_Latest_Version_601_For_Android_2018_Method_1
At the time of writing this, the latest version was "MagiskManager-v6.0.1.apk".
2. Just install it
$ adb install MagiskManager-v6.0.1.apk
@SoeMoeSZM
Copy link

flash magisk (root the device)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment