Category: Android

Upgrading ElementalX, Android and Magisk on Google Pixel 2 on MacOS X

This is almost for sure the wrong way to do things, but this is my current process (as of apr 22, 2018) to upgrade my phone when new android releases are out, and/or new elemental x.


***IMPORTANT: REMOVE ‘-w’ from the ‘fastboot update’ line in the (this will stop it from wiping the device).

  • Make sure you have already downloaded the latest Magisk ZIP (should be under ‘/sdcard/MagiskManager’, ex. ‘’)
  • Power off device
  • unzip the file
    # unzip
  • Boot the device into fastboot (power + down)
  • Run
  • Let phone boot into the OS
  • Power off
  • Boot the device into fastboot (power + down)
  • Then, boot twrp
    # fastboot boot *TWRP.img path*
  • put in your password for twrp encryption and let it load into TWRP
  • now push your files to your pixel 2
    # adb push /sdcard/Download
    # adb push /sdcard/Download
    # adb push /latest/release/boot.img /sdcard/Download
  • now click install, and install your files. install magisk and elementalx
  • wipe dalvik and cache, then reboot to system
  • open magisk check if rooted
  • if not, then install, patch boot file, pick boot.img and then
    # adb pull /sdcard/MagiskManager/patched_boot.img
    # adb reboot bootloader
    # fastboot flash boot patched_boot.img
    # fastboot reboot
  • Reboot the phone


Perform the same steps as above, but just do the elementalX portion.


If anyone knows a better, quicker, way please let me know cause this is kinda annoying 🙂

How to update your Nexus 5x running on stock rom, TWRP with ElementalX, Magisk and PHH Superuser.

This is mainly for my own records so I don’t have to go searching again, but maybe it will help someone else. This assumes you already have ADB installed and working on your computer, and you have some knowledge of how this all works.

Here’s the steps to update your phone with the latest security updates or bootloader or radio if you’re already running magisk and phh.

      1. Grab the latest Magisk from XDA, get the Uninstaller too and transfer to your phone
      2. Grab the latest PHH SuperUser from XDA and transfer to your phone
      3. Grab the latest ElementalX Kernel and transfer it to your phone
      4. Get the factory image for your device:
      5. Open the zip and extract boot.img and system.img.  If there is a vendor.img, extract that too. Same for bootloader and radio if they are new. You can check the version on the bootloader screen.
      6. Reboot to bootloader, I use Reboot Manager.
      7. On your computer go to the folder where you extracted the images and flash them with the fastboot command:
        fastboot flash boot boot.img
        fastboot flash system system.img

        And if your device has a vendor.img:
        fastboot flash vendor vendor.img
        And if your device has a new radio:
        fastboot flash radio radio.img
        And if there’s a new bootloader:
        fastboot flash bootloader bootloader.img
      8. Reboot to recovery (this is very important if your data partition is unencrypted on newer devices)
      9. Flash everything in this order that you copied to the phone earlier
        1. Magisk Uninstaller
        2. Latest Magisk
        3. PHH SuperUser
        4. ElementalX
        5. (optional) custom
      10. Wipe dalvik and cache
      11. Reboot and wait a few moments and then you’re in your newly security-patched Android!
      12. You’ll probably want to install Magisk Manager and PHH SuperUser App [not sure if needed?] now.

That’s it!


Upgrading your Google Nexus 5x to the latest Pure Nexus release

Mainly putting this here for myself, but if anyone else can be helped, then cool!


  1. get for your device from
  2. unzip
  3. copy bootloader and radio to a directory
  4. update it using next instructions


# ./adb devices
# ./adb reboot bootloader
# ./fastboot flash bootloader [bootloader file].img
# ./fastboot reboot-bootloader
# ./fastboot flash radio [radio file].img
# ./fastboot reboot-bootloader




  1. Download the latest Pure Nexus zip, latest GApps (recommended ones linked, use others at your own risk), SuperSU (if you want root), and your custom kernel if you have one onto your phone.
  2. Backup any important data.
  3. Boot into TWRP and make a backup (optional but HIGHLY recommended).
  4. Wipe system, data, cache, and dalvik cache in Wipe > Advanced Wipe.
  5. Flash Pure Nexus zip.
  6. Flash GApps zip.
  7. Flash your custom kernel (optional).
  8. Flash SuperSU (optional).
  9. Flash new boot (optional)
  10. Reboot and profit.