[Guide]How to Root Your Pixel 3a and Install Magisk - Android 9, 10 or 11

captain sideways

Senior Member
Jul 27, 2019
102
21
0
Set up adb properly

I did it for both boot slots using flash-all.bat factory image...

It gets to this picture saying failed to write to partition etc....
I'm manually flashing them and it won't let me flash system,vendor, and many more. Platform tools is the latest version as well. Bootloader is unlocked. Debugging is enabled.

I don't know what I'm doing wrong, I never had trouble flashing anything to any phone besides this.
Right, I've had a look a the above adb/fastboot session again.

Are you _sure_ you've setup your adb properly

create folder called adb in C:/ so you have C:/adb

Extract the adb/fastboot drivers from Google into this folder. Then extract the factory image into the same folder. Edit flash-all.bat to remove -w flag to preserve data.

Find command prompt on start menu, right click and run as administrator. If done correctly, your prompt will be at

C:/Windows/System32/

Now navigate to the folder where the adb and the factory image are:

At C:/Windows/System32/ type each of these commands and press return after each one

cd..
cd..
cd adb

Now your prompt will be C:/adb

Type

adb devices

When you see your device, type:

adb reboot bootloader

When your phone is in bootloader, at your C:/adb prompt, type:

flash-all.bat

This will flash the factory image to all of the necessary partitions and preserve your data.

Now install Magisk Canary, do all of the manager install, set update channel to Canary, check for updates and install them.

Now, go back to your C:/adb folder in explorer and in there, there is an archive that's part of the factory image - open that and extract the boot.img to your C:/adb then copy it over to your phone's download folder.

In magisk manager, click Magisk (install) >select image and patch. Navigate to boot.img you copied to download folder, select it and "let's go".

In explorer, find the resulting magisk_patched.img and copy it to C:/adb

Open another Administrator adb session and navigate to C:/adb again.

adb roboot bootloader

When phone is in bootloader, at your Admin C:/adb prompt, type:

fastboot flash boot magisk_patched.img

When this is complete, unplug the usb cable from your phone and let it boot.

I have totally unrooted my phone tonight to go through this process and it works, first time, no errors.
I really and completely can't offer any more help that that :)

Have a look at the attached image to see the different between a Limited and Administrator adb session. Yours looks like Windows 7? so might be different - it is crucial that your adb is the latest version, extracted to and ran from the right place: C:/adb - the factory image files must also be in there and adb/fastboot *must* be ran with elevated permissions.

If this doesn't work, your phone is a dud and should be thrown out of a window ?
 

Attachments

Last edited:

mulperi

Senior Member
Apr 25, 2010
126
27
58
I used Magisk canary, patched the boot.img and reflashed it, but booting brings me again to the bootloader screen.
Is your Android 11 October 2020 magisk_patched.img about 64 Mbytes big?
If it is much smaller, you have not managed to update Magisk or your channel is NOT beta. Been there :)
 

an0ym0us

Member
Oct 28, 2017
31
0
0
Saddle Brook
When I get to step 9 via the booth patch method, nothing happens and it just says <waiting for any device> What am I doing wrong?

---------- Post added at 10:46 AM ---------- Previous post was at 10:40 AM ----------

Never mind-I downloaded the wrong image for my phone.
 

Drakax

Senior Member
Dec 2, 2010
150
13
18
Hi,
Due to the lockdown, I've deviced to flee far far away from downtown and went straight into the wetlands.
The problem is I don't really have a good network coverage right now.
So I was wondering if somebody could give me a link to download a magisk_patched version of the boot.img from the November update?
Thank you in advance.
Best regards.
Stay safe!
 

Vinotas

Senior Member
Jan 5, 2012
101
19
38
Hi All, noob question: I received an OTA update to Magisk, so now I'm on Magisk 20.4 (20400) and Manager 8.0.2 (307) (11). I keep getting notifications to update to Android 11, but I just want to make sure I go about doing this correctly. Should I uninstall Magisk (as in the OP), take the OTA Android 11 update, reinstall Magisk, and reboot within Magisk?
Thanks in advance.
 

sic0048

Senior Member
Jun 25, 2010
910
465
83
Hi All, noob question: I received an OTA update to Magisk, so now I'm on Magisk 20.4 (20400) and Manager 8.0.2 (307) (11). I keep getting notifications to update to Android 11, but I just want to make sure I go about doing this correctly. Should I uninstall Magisk (as in the OP), take the OTA Android 11 update, reinstall Magisk, and reboot within Magisk?
Thanks in advance.
In theory that should work just fine.

The reality (at least what I have been experiencing) is that the phone won't even start flashing the update process unless I remove Magisk and reboot. Sometimes the phone won't find the update, or won't download it.
Other times the phone finds the update and downloads it, but won't actually install it. Out of the last 6-9 months, I think the normal "update" process only worked once. All the other months I ended up having to sideload the update which causes root to be lost. Then have to reroot my phone using the original "root your phone" directions.

There is no harm in trying the normal update process however. Just don't be surprised if it doesn't work.
 

Vinotas

Senior Member
Jan 5, 2012
101
19
38
In theory that should work just fine.

The reality (at least what I have been experiencing) is that the phone won't even start flashing the update process unless I remove Magisk and reboot. Sometimes the phone won't find the update, or won't download it.
Other times the phone finds the update and downloads it, but won't actually install it. Out of the last 6-9 months, I think the normal "update" process only worked once. All the other months I ended up having to sideload the update which causes root to be lost. Then have to reroot my phone using the original "root your phone" directions.

There is no harm in trying the normal update process however. Just don't be surprised if it doesn't work.
Interesting, I did it to get to Android 10 and had no issues. But I was reading through the thread and saw people having issues so I was a little confused. Currently I'm on Magisk 21.1 (21100) and Manager 8.0.3 (314) so I want to make sure I can re-root Android 11 once I install it using the OTA instructions in the OP (assuming it flashes). I get the impression from reading everything that I need the Canary build to root Android 11? Or am I getting mixed up?
 

Uzephi

Recognized Contributor
Apr 20, 2012
3,386
1,862
253
Phoenix
Interesting, I did it to get to Android 10 and had no issues. But I was reading through the thread and saw people having issues so I was a little confused. Currently I'm on Magisk 21.1 (21100) and Manager 8.0.3 (314) so I want to make sure I can re-root Android 11 once I install it using the OTA instructions in the OP (assuming it flashes). I get the impression from reading everything that I need the Canary build to root Android 11? Or am I getting mixed up?
Magisk 21 and 21.1 work with Android 11. I am currently rooted with Magisk 21 on November update.
 
  • Like
Reactions: Vinotas

Vinotas

Senior Member
Jan 5, 2012
101
19
38
Magisk 21 and 21.1 work with Android 11. I am currently rooted with Magisk 21 on November update.
So I tried following the uninstall/Restore Images instructions in the OP and got a "Stock backup does not exist" message. I looked in the thread but did not see any reference to this, any idea what I did wrong?
 

Drakax

Senior Member
Dec 2, 2010
150
13
18
Hi all,
Could somebody link us a magisk_patched boot.img from the December update?
Thank you in advance!
Best regards.


[EDIT]: https://gofile.io/d/7CV7Zb
Pixel 3a - Sargo - magisk_patched - boot.img - December 2020

[EDIT2]: I can upload it somewhere else if you want. Just tell me where.
 
Last edited:

delboy79

Member
May 30, 2012
28
1
3
i have got system update available and is telling me to restart phone. magisk manager is latest 8.0.3 (314) magisk is 20.3 need to update. so would i uninstall magsik and restart phone for update or should i get boot.img and uodate magsik 1st