How to Root Pixel 4A without TWRP Recovery (via Magisk)

In this tutorial, we will show you how to root Google Pixel 4A. The entire steps will be carried out via Magisk, without using the TWRP Recovery. Android is an open-source platform. This opens the gate to try out tons of customizations, modifications, and even tweaking the system modifications. In some cases, you could also make changes to the system level files in a systemless manner, thanks to Magisk. Well in order to carry out all these things, the first requirement is you need to have an unlocked bootloader. This is quite an easy process, as far as Google devices. Once you do so you could then easily root your device via Magisk, or could you?

Well, the thing is up until now, you musty have rooted the device via TWRP. In that, we only have to flash the Magisk ZIP file, and in some cases Disable DM Verity. But apart from that, nothing else. However, with Pixel devices launched with Android 10 out of the box, things have got a little sour, and hence you cannot root your device via TWRP. So in this guide will show you how to root your device via Magisk itself, without the TWRP Recovery.

Why Choose the Non-TWRP Root Method For Pixel 4A

A question might arise as to why one should go for this method. Well, the point is that with Android 10, things have gone south with custom recoveries like TWRP. There has been quite a few ups and downs (more downs than ups to be frank) and it has resulted in quite a patchy relationship. With some massive changes to the ramdisk, developing TWRP is now an extremely tough job. So all the devices that comes with Android 10 out of the box suffers from this ‘limitation’. Here is what the TWRP Team has to say in this regard:

A lot of components in AOSP recovery were moved into subfolders, which makes merging the latest changes into TWRP more time consuming. The ramdisk that we use for recovery is now handling part of normal boot in addition to recovery, so we’re not sure what the best way will be to go about replacing recovery without affecting the ability to boot up normally.

In the past, the executable binaries in the ramdisk were built as static binaries with no linked libraries. TWRP has almost always been built with separate linked libraries. The new dynamically linked stock ramdisk will make it harder for us to slip TWRP into the ramdisk.  Normally TWRP leaves /system alone so that we can mount the system partition to its usual location of /system. If we leave things the way they are, mounting the system partition gets tricky.|

As a result, it becomes pretty obvious that in the absence of the TWRP Recovery, you are only left with one method to root your Pixel 4A: using Magisk. And in this guide, we will be doing just that. So without further ado, let’s check out the steps.


  1. Download and install the latest Magisk Manager APK file on your device: Magisk Manager
  2. The bootloader of your device should be unlocked. Have a look at our guide on how to do so.
  3. Although rooting is going to wipe your data, still, it is recommended to make a complete backup of all your data.
  4. Keep your device appropriately charged, at least to a minimum recommended level of 50%
  5. Install ADB and Fastboot Tool for entering Fastboot commands.
  6. Also, download and install the USB Drivers for your device. This helps in successfully connecting your device to the PC.
  7. Enable the ‘USB Debugging’ option. Go to ‘Settings’ -> ‘About Phone -> Tap on Build Number 7 times -> Go back to Settings -> Developer Options -> Toggle on the USB Debugging’ switch.

STEP 1: Get a Stock Boot.Img File

The first step in this regard requires you to have a stock boot.img file from your current ROM/firmware. For that, you could head over to your respective firmware download page and download the firmware file which is currently installed on your device. Then extract the firmware and copy the boot.img file from there. If you can’t find the stock boot.img file, let us know your device name and the firmware version in the comments, we will share the same on Google Drive.

STEP 2: Patch the Stock Boot.Img File

Now that you have the stock boot.img file, transfer it to your device. Then follow the below steps. Or if you are new to all this, we would highly recommend going through our article on the said topic: Patch Stock Boot Image via Magisk and Flash it using Fastboot (just the first half).

patch boot img magisk

  1. Open the Magisk Manager app on your device.
  2. Tap on Install > Install > ‘Patch Boot Image File‘.
  3. Navigate to the folder where the stock boot.img file is present and then select it.
  4. Magisk will now begin patching the file. Once that is done, the file will be saved most probably in Internal Storage > Downloads folder.

STEP 3: Temporary Boot the Patched Boot Image File

Now we will temporarily boot this patched boot.img file. Follow the below steps in the same manner as mentioned:

  1. Connect your device to PC via USB Cable.
  2. Make sure you have installed the ADB and Fastboot Tool on your PC.
  3. Transfer this boot image file to the folder where ADB and Fastboot tools are installed, i.e inside the platform-tools folder.
  4. Inside the same folder, while pressing the ‘Shift’ key, right-click in an empty area.
  5. Select ‘OpenPowerShell window here’.
    Root Android Device without TWRP- Open PowerShell window here
  6. Or you could also type in cmd in the platform-tools folder’s address bar and hit Enter. This will open the Command Prompt.
  7. Type in the below code to check whether your device is successfully connected to PC:
    adb devices

    If you get an alpha-numeric code with ‘device’ written next to it, then you are good to go. Otherwise, check whether the correct USB drivers are installed or not. Also, make sure USB Debugging is enabled.

  8. Next, type in the below code to boot your device to fastboot mode:
    adb reboot bootloader
  9. Now, type the following command to temporary boot your device with the patched boot image file:
    fastboot boot patched-boot-filename.img

    Replace the ‘patched-boot-filename’ with the actual name of the patched boot image.

After executing the above command, your device will reboot to Android System. Now you need to permanently install this patched boot file. Head over to the below section.

STEP 4: Permanently Install the Patched Boot Image File

  1. Open the Magisk Manager app on your Android device.
  2. Tap on the first ‘INSTALL‘ button (which is just next to the ‘Magisk’ status).
  3. In the ‘Install Magisk’ dialog box that appears, tap on ‘INSTALL‘.
  4. Under ‘Select Method’, select the ‘Direct Install (Recommended)‘ option.
    Root Android Device without TWRP- Patch boot image via Magisk
  5. Now Magisk will begin flashing the patched boot image on your device.
  6. Once complete, tap on the ‘Reboot‘ button situated at the bottom right corner. Once your device reboots, it will be successfully rooted.


So with this, we conclude the guide on how to root your Pixel 4A without TWRP Recovery. If you are stuck at any of the above steps, do drop in your queries in the comments below. Rounding off, here are some other rooting guides that you should check out:

The credit for the Pixel 4A image in this aritcle’s Feature Image goes to @OnLeaks x A91Mobiles