yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3a Guides, News, & Discussion] weissbierdood:
Removing the -w flag will prevent userdata from being wiped but has no effect on root. To regain root, you will have to extract boot.img from the image-sargo-qq3a.xxxxx zipfile and copy it to your phone. Run Magisk on your phone to patch the boot.img file and copy the resulting magisk_patched.img file back to your PC. Boot phone into fastboot mode and from the PC, run "fastboot flash boot magisk_patched.img". Reboot phone and you're good to go.
[Google Pixel 3a Guides, News, & Discussion] jacopastorius:
i just bought a second hand pixel 3a. The previous howner has installed android 11 beta. What do i have to do in order to unlock the bootloader and root it?
[Google Pixel 3a Guides, News, & Discussion] sic0048:
The easiest method might be to sign up your account for the Android Beta 11 (https://www.google.com/android/beta). Once you are in the program, you can leave the beta program and your phone should be sent a OTA update to go back to Android 10. This way you won't have to unlock or root your phone.
[Google Pixel 3a Guides, News, & Discussion] MrTooPhone:
I am confused, why would you have to go back to Android 9 to get root, I am getting ready to set up a new phone, and everything I read is I can get root from Android 10.
[Google Pixel 3a Guides, News, & Discussion] GrandMstrBud:
I only did it because I had problems getting root on 10 but I have that figured out now.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
I made a group where I'll be posting the pre-patched monthly updates for the 3a https://t.me/joinchat/EC3ivRhc2-t4y1J4REtuqg I typically do these within a week of the update coming out
[Google Pixel 3a Guides, News, & Discussion] blksith0:
:confused:
[Google Pixel 3a Guides, News, & Discussion] pbanj:
aug update is going up now. should be done in 20min +/-.

as always just get into fastboot and run the flash-all.bat/.sh and wait for it to finish. the scripts have been changed to not wipe your device.
[Google Pixel 3a Guides, News, & Discussion] bubbyj:
I've got an issue that I need assistance with.

Im running Android 11 beta 3, and had Magisk root up until yesterday. I tweaked it a bit too much and caused a soft brick.

I pushed the Android 11b3 via fastboot and went through the setup. Put the Magisk canary apk on, flashed the magisk_patched.img, rebooted.. and magisk is showing up as not installed. The magisk manager is. But not magisk itself.

I took a fresh boot.img and patched it again.. flashed it to boot, boot_a and boot_b just to cover my bases. Still nothing.

Everything goes through smoothly with no errors.

What could have happened? It just doesn't make sense. Literally nothing has changed.
[Google Pixel 3a Guides, News, & Discussion] bubbyj:
Just an update:

I corrected the problem. Complete brainfart was the problem!

Root restored!
[Google Pixel 3a Guides, News, & Discussion] Arkan_:
Hey guys,

Speaking of update : Is it ok to update from Android 10 with magisk 20.4 (20400) to Android 11 via that way:

- Uninstall Magisk

- Go to System => Update, and do the OTA update without rebooting (I don't know if it force us to reboot since it's a new Android version)

- Install Magisk again "Install to inactive slot (after OTA)".

- Reboot

Or It may break my phone?

I used to do that for Android 10 updates so I can avoid to go to fastboot, but I don't know if it will works since it's a new Android version.
[Google Pixel 3a Guides, News, & Discussion] bombadier:
All I can add is you need to use magisk canary builds on android 11, can't get viper working so tried downgrading to magisk 20.4 (20400) and the phone bootlooped, I used the fastboot method latest canary version is 20424
[Google Pixel 3a Guides, News, & Discussion] nowster:
Steps that worked for me.

Install Magisk Canary build 20424 plus Manager 297.

Apply the full OTA zip in recovery.

Let it boot and upgrade whilst un-rooted. (This step is important.)

Grab the boot.img out of the factory image.

Upload to phone, patch with Magisk Manager.

Download from phone and flash the patched boot.img in fastboot.
[Google Pixel 3a Guides, News, & Discussion] nick w:
Where are you getting Magisk Canary build 20424 plus Manager 297, i cant find them anywhere

thanks
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Dunno what version of magisk manager you are using but switch to the canary channel which will allow you to download the latest canary build of Magisk which is 20424 and the manager
[Google Pixel 3a Guides, News, & Discussion] smokie75:
Ignore...

Canary manager is available from download link here https://github.com/topjohnwu/Magisk
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Was just going to say, then go into settings and change to the canary channel in the manager app
[Google Pixel 3a Guides, News, & Discussion] smokie75:
Yeah, I had stable channel manager and canary was not an option in the settings. Resolved for me, thanks! Rooted on 11 now!
[Google Pixel 3a Guides, News, & Discussion] nick w:
Hi all

So I was on Android 10

Factory reset device

Updated to Android 11

Installed Canary manager from git.

Downloaded Image from google

Patched boot.img

Flashed to phone

Phone was stuck on the boot screen (G with sliding bar under it)

Sat like that for 30 mins.

To recover, I flashed the device with stock Android 11

Any idea where I went wrong?
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Sure you used the latest build of magisk? Reason for asking is your list does not say you also updated to the canary magisk build of 20424?
[Google Pixel 3a Guides, News, & Discussion] nick w:
Just checked, 20425

do i need to be on 20424?
[Google Pixel 3a Guides, News, & Discussion] bombadier:
20424 worked when I updated, I see the new version now
[Google Pixel 3a Guides, News, & Discussion] nick w:
The boot.img is 64mb

Once patched it's 32mb. Should it be half the size of the original boot. Is that right?

Thats running Magisk manager 20425
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Yeah that's normal for it to be smaller as the stock boot image
[Google Pixel 3a Guides, News, & Discussion] nick w:
Thanks [MENTION=2714876]bombadier[/MENTION]

So tried again.

Complete stock Android 11 flashed to device. Completely fresh

Took boot.img from zip and patched it with Magisk Canary build 20425

Fastboot flashed patched image to my current slot (A)

Phone boots up without issues

Magisk is still showing as not installed.

In Magisk i even went > install > direct install > go. and it patched the boot image, rebooted the device successfully but Magisk is still showing as not rooted.
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Sorry to hear you are having problems, to see what is going wrong you will need to check the magisk logs as obviously something is going wrong somewhere

Have a read here on how to get logs etc

https://www.didgeridoohan.com/magisk/MagiskHide#hn_Logs

best of luck getting things sorted,
[Google Pixel 3a Guides, News, & Discussion] pbanj:
updated the main post to be a bit cleaner/easier to follow(thanks to those who provided feedback). also i have uploaded the September update to the telegram group
[Google Pixel 3a Guides, News, & Discussion] meazz1:
For some reason the Aug 20 and Sept 20 boot_patch.img did not work.

I have rooted it and have been updating the OTA but last 2 failed after sideloading the patched file. It load but does not reboot all the way to phone screen.

The OTA alone works when I sideload it.
[Google Pixel 3a Guides, News, & Discussion] AndDiSa:
easiest way for me is still the following steps:

- fastboot flash unpatched boot.img into the current slot

- reboot and take official ota

- download corresponding factory image, extract boot.img and patch it with MagiskManager

- fastboot flash patched boot.img

I've never had any issues up to now. Yes, you are loosing root for a few moments but who cares ...

Btw.: if you are on Android 11 at the moment you *must* use Magisk canary (both Manager and zip) otherwise the patched boot.img will not work.
[Google Pixel 3a Guides, News, & Discussion] meazz1:
I just realized I'm on android 11.

Can you explain or link me to how magisk canary should work and steps when said manager and zip?

I can't seem to find a working download link for magisk canary manager, any help?
[Google Pixel 3a Guides, News, & Discussion] AndDiSa:
[MENTION=3466432]meazz1[/MENTION] I, by myself, have built it from the sources, but you can also download from here
[Google Pixel 3a Guides, News, & Discussion] meazz1:
Do you know how can I uninstall the old Magisk and install this one?

I already had 17.4 magisk and need to uninstall it.

My ph does not use Twrp, so I can't use the uninstall.zip file.
[Google Pixel 3a Guides, News, & Discussion] AndDiSa:
[MENTION=3466432]meazz1[/MENTION] when I was migrating from Android 10 to Android 11 I just installed the Magisk Manager Canary Version in parallel and then I removed the Magisk Manager Stable. Worked flawlessly for me ... without guarantee :), but I was on 20.4 before, so the gap was not so big.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
This may be a big ask, but is it possible someone could give step-by-step instructions for how to update from Android 10 to 11 on a phone that's already rooted via Magisk? I've been reading all of the relevant threads but they all seem to assume that I know a lot more about this sort of thing than I actually do. Thanks in advance.
[Google Pixel 3a Guides, News, & Discussion] dkryder:
the way i do it is download the ota zip and the full image zip. i extract the boot.img from the full image and transfer it to phone. i use magisk app to patch it. then transfer it back to pc. then using magisk app i restore images. then i reboot to recovery. then do the sideload of the ota. then reboot. i have always rebooted to system to check that it works. then i reboot to fastboot and flash patched image. i'm writing from memory but i think i got all the steps.
[Google Pixel 3a Guides, News, & Discussion] meazz1:
are there more than one canary magisk?

I use the one "app-debug.apk for magisk and patched the boot.img but it's not booting back to ph.

Steps .

1. I extract the boot.img and patched it using magisk canary

2. I sideload the OTA android 11 and reboot

3. reboot to fastboot and flash patched image and reboot\

The G logo appears and phone shuts off. When I reboot it's back to recovery mode. It does not go and reboots all the way.

I never had this when I was on android 10.

What am I missing?

The pixel 3a is rooted and I was on android 10.

Am I'm not using the correct magisk canary? Any link would be appreciated, just to make sure I have the correct magisk installed
[Google Pixel 3a Guides, News, & Discussion] dkryder:
You might want to use this link as a custom channel

https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/debug.json

Should give you 20.425. You are probably in 20.4
[Google Pixel 3a Guides, News, & Discussion] meazz1:
That was it. You got me going.

Really appreciate you taking the time to help out :D !!!
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I've been playing around with Magisk canary, preparing to bite the bullet and do the update. But when I install the canary version, there are no options to look at the su, nor to use magisk hide. Is it related to having the stable version still on the phone? Or am I doing something wrong? Or are those not options with canary?
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
I just updated to stock android 11 using fastboot with an unlocked bootloader on my pixel 3a build number RP1A.200720.009. I'm trying to install Magisk version e66b0bf3 (20425) with Magisk Manager version 2eb00187 (299) with my update channel set to Canary, but I'm having some trouble.

I've extracted boot.img from image-sargo-rpla.200720.009.zip and pushed it to my phone thru adb. Then, I patched it with Magisk Manger and pulled it back to my computer. Once I got to the bootloader, I flashed the new kernel, magisk_patched.img, and rebooted.

When I try to boot my phone with the new patched kernel, it shows Google for a little less than 10 seconds then reboots. I can reboot back into the bootloader and switch back to the stock kernel, but no matter what I try Magisk won't boot. Is this a bug with Magisk? Am I doing something wrong? Does anyone have any suggestions?
[Google Pixel 3a Guides, News, & Discussion] meazz1:
I had the same exact issue.

Look at post by dkryder #734.

I had to copy the URL to a browser and when the file opened there's an apk link in the bottom of the file.

1. Use the link to download the new apk.

2. uninstall the old magisk canary

3. install the new apk

4. once new apk is done installing you will be asked to install the complete version of the apk ( the icon for magisk was defaulted to android icon but it asked me if I wanted a fancy magisk icon shortcut

put in the home screen)

5. in the magisk app set the update channel to "canary"

5. using this new magisk I patched the boot.image and installed it via fastboot

disclaimer - this steps might not be the correct way but worked for me.
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
Yeah I went thru this already, and still no luck. Are there some bootloader versions that don't work?
[Google Pixel 3a Guides, News, & Discussion] pbanj:
seems the newest canary update removes the ota option for pixel devises because it was causing bootloops. seeing as im already posting the prepatched updates to telegram, i guess starting next month I'll start posting the prepatched boot.img files again to this thread. i will probably add them to a google drive folder so they can all be there and found easy. im assuming this has to do with 11

[MENTION=2688390]sic0048[/MENTION] not sure if you are aware of this change or not. once i post the drive link you are free to post it in your thread if you want, you can also post the telegram group link if you want too.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
i decided to post the link now. has stock and patched. i also provided the newest canary manager
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
Thanks for posting the patched image. It works great.

I did the following:

1) fastboot boot boot.img # to test to see if it worked

2) once it worked, I used the direct install method

3) after a reboot I still had root

My question is... How did the patched version I made with Magisk Manager not work, but yours does? After doing a diff of the two images it seems that the magisk_patched.img is different from the patched image you provided. Should I post an issue on the Magisk GitHub? [MENTION=4396787]pbanj[/MENTION]
[Google Pixel 3a Guides, News, & Discussion] meazz1:
I believe it has to do with the right version of magisk to work. You needed a specific canary version of magisk to create the boot.img file.
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
So now I'm facing a similar issue to [MENTION=3466432]meazz1[/MENTION]. I installed a module to enable miracast on Pixel devices and when I boot off the patched boot.img, my phone gets stuck at the G. I can still boot off the stock boot.img tho. Is there a way to disable all Magisk modules at boot or remove all Magisk modules from the /data partition?
[Google Pixel 3a Guides, News, & Discussion] captain sideways:
Make sure you phone is recognised and authorised in adb, then turn it off.

Run this:

adb wait-for-device shell magisk --remove-modules

Then boot your phone and it should disable your modules ?
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
When I run this command, my pixel 3a reboots to bootloader with the error message "no valid slot to boot". And it won't start unless I explicitly flash the boot partition.

Edit: It seems that a process named "[mmc-cmdqd/0]" is waiting for and I/O opteration to finish. Could this be related to my issue?
[Google Pixel 3a Guides, News, & Discussion] captain sideways:
Ah OK, sorry about that, I don't have any other advice - I had a dodgy module a long time ago and that's how I disabled them in order to boot. That was on an S7 which doesn't have the A/B partitioning that a pixel has :(
[Google Pixel 3a Guides, News, & Discussion] captain sideways:
Not sure if this will help but try flashing it:

fastboot flash boot magisk_patched.img

It a clean boot img from 11.0.0 (RP1A.200720.009, Sep 2020), Patched with Magisk 20425 - also included.

I've just tested this on my phone and it booted first time :)

I'll leave it up until Sunday 23:59

http://bit.ly/xdamagiskpatched

---------- Post added at 07:30 PM ---------- Previous post was at 07:28 PM ----------

Boot from stock, remove your magisk modules and manager and see my post to the link with working versions, hope this works for you ?
[Google Pixel 3a Guides, News, & Discussion] Geo52rey:
It seems removing magisk manager was a crutial step to removing the bad modules. Thanks
[Google Pixel 3a Guides, News, & Discussion] Afdabrikman:
Thank you very much
[Google Pixel 3a Guides, News, & Discussion] Drakax:
People having issue, follow this:

https://github.com/topjohnwu/Magisk/issues/3292#issuecomment-706514525
[Google Pixel 3a Guides, News, & Discussion] LightC:
Does anyone know how to disable specific EdXposed modules without removing the EdXposed module from Magisk? It seems like one of the modules I had enabled in Xposed before upgrading to Android 11 is causing a boot issue. I might want to downgrade to Android 10 but I would like to figure out which specific Xposed module is causing the issue first. If I remove all magisk modules and add them back one-by-one, the boot stalling issue happens only after enabling the EdXposed magisk modules (which have a few modules I had enabled in Android 10).

I tried looking in /data/misc/riru/modules/ but didn't see any files to delete there. I think I'm using instaprefs and kmod FWA in Xposed right now. I'd like to be able to disable those to see if it is causing the boot stalling issue or whether it is just EdXposed.
[Google Pixel 3a Guides, News, & Discussion] Brandroid28:
I thought edxposed canary was working when I first flashed it, but then hung on boot after enabling modules. idk. how were you able to boot with root afterwards? I was able to reboot into safe mode to disable magisk modules a couple times, but for some reason I can't get it to work now

edit: you can flash the stock image, reboot to safe mode using the power menu, hold volume down to enter fastboot, flash magisk boot, reboot.

edit: are you sure all your xposed modules are supported in 11? I've got my issue fixed and now have xposed enabled with a few modules. I don't think you can disable one with the edxposed magisk module disabled. should be able to *uninstall* the xposed modules one-by-one, though to troubleshoot
[Google Pixel 3a Guides, News, & Discussion] LightC:
The only way I've been able to get to boot after enabling the edxposed modules is by removing all magisk modules using this adb command:

adb.exe wait-for-device shell magisk --remove-modules

I guess the problem I'm having is that I need to revert back to Android 10 to even be able to disable the modules *within* edXposed as the only way I know how to disable them is in Xposed Manager. I was wondering if there is another way to disable modules within the edxposed framework from adb like you can with the above magisk shell command
[Google Pixel 3a Guides, News, & Discussion] Drakax:
Pixel 3a - Sargo - magisk_patched - boot.img - December 2020

https://gofile.io/d/7CV7Zb
[Google Pixel 3a Guides, News, & Discussion] azadarradaza:
I sideloaded Dec ota on stock Nov factory image and used patched boot. I am losing root on reboots. Any ideas?
[Google Pixel 3a Guides, News, & Discussion] oldbear3:
Hi,

I didn't see it throughout the post but for me, I can take OTA updates only with the alternative method, described here.

So, I'm afraid to flash TWRP, as I won't be able to flash the OTA updates with the "apply update from adb" option.

Is there a post or someone who knows how I can apply the OTA updates with TWRP ?
[Google Pixel 3a Guides, News, & Discussion] paradoxiumwind:
Is the latest version of android 11 (March) not able to be rooted?
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I am trying to do the latest update.

I downloaded the file, patched the boot.img file through magisk, and replaced the original with the renamed patched file.

I removed the -w from the flash-all.bat file.

But I cannot get it to run.

I have tried running the .bat file directly. I have tried dragging it into a cmd folder. I have tried it with the phone turned on. I have tried it in bootloader mode. I have tried it in fastboot mode.

Every time, I get a message that it is waiting for a device. I have the adb files in the same folder with the update files and adb commands work, so I know the phone is connected and recognized.

What am I doing wrong?
[Google Pixel 3a Guides, News, & Discussion] Sinnse:
Go into settings>system>advanced>dev options>oem unlocking, click the toggle.

On android studio there is no "oem unlocking" on pixel 3a, nexus 5 and pixel 2. Those are the only virtual phone available.

I searched everywhere but no one seems to have this issue.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
Update:

I installed new windows android drivers, which allowed helped, but I am now getting this message when I try the reflash:

"C:\Users\joedp\Documents\Phone stuff\Pixel root\Android 11\sargo-rq3a.210905.001-factory-2dd7b68f\sargo-rq3a.210905.001\flash-all.bat"

Sending 'bootloader' (8373 KB) OKAY [ 0.228s]

Writing 'bootloader' FAILED (remote: 'No such file or directory')

fastboot: error: Command failed

Rebooting into bootloader OKAY [ 0.001s]

Finished. Total time: 0.001s

< waiting for any device >

Sending 'radio_a' (73372 KB) OKAY [ 2.069s]

Writing 'radio_a' (bootloader) Flashing Pack version SSD:g670-00116-210406-B-7261833

(bootloader) Flashing partition modem_a

OKAY [ 0.562s]

Finished. Total time: 3.101s

Rebooting into bootloader OKAY [ 0.045s]

Finished. Total time: 0.053s

--------------------------------------------

Bootloader Version...: b4s4-0.3-6863017

Baseband Version.....: g670-00116-210406-B-7261833

Serial Number........: 943AY0JE2C

--------------------------------------------

extracting android-info.txt (0 MB) to RAM...

Checking 'product' OKAY [ 0.055s]

Checking 'version-bootloader' FAILED

Device version-bootloader is 'b4s4-0.3-6863017'.

Update requires 'b4s4-0.3-7357923'.

fastboot: error: requirements not met!

Press any key to exit...

Now what?
[Google Pixel 3a Guides, News, & Discussion] mulperi:
Copy all the files from the zip archive to the directory that contains adb.exe and try again:

flash-all.bat

bootloader-sargo-b4s4-0.3-7357923.img

radio-sargo-g670-00116-210406-b-7261833.img

image-sargo-rq3a.210905.001.zip
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
I think you need to run flash-all.bat with the original, unpatched boot image file, not the patched version. After the update is completely installed (which requires booting into Android with the unpatched boot image), do:

adb reboot bootloader

fastboot flash boot magisk_patched.img
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I just tried flashing with the unpatched image file, but I got the same error message.
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
Do you still get "Writing 'bootloader' FAILED (remote: 'No such file or directory')"?

If so, what is the output of the following commands?

type flash-all.bat

dir