yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3a Guides, News, & Discussion] joedp2:
New update:

I looked at the updates list and realized that there are new ones every month, but the last time I had updated was January. So I flashed the February update, which seemed to work, but then soft-bricked the phone in a bootloader loop.

I then flashed the April update, which I had not had a chance to patch, and was successful. I left the phone unrooted overnight and patched and flashed the May update this morning.

My first attempt to flash the June update did not work, but I didn't have time to try again, so I will see if I can patch and flash the rest of the updates after work tonight.

I appreciate all the help. we'll see if I need any more help after I try to do more of the sequential updates tonight or tomorrow.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
Yes. I am still getting an error when it tries to flash the new bootloader. I get the same error with the June, July, August, and September updates. I had no trouble with the March, April, or May updates.

type flash-all.bat

@Echo off

:: Copyright 2012 The Android Open Source Project

::

:: Licensed under the Apache License, Version 2.0 (the "License");

:: you may not use this file except in compliance with the License.

:: You may obtain a copy of the License at

::

:: http://www.apache.org/licenses/LICENSE-2.0

::

:: Unless required by applicable law or agreed to in writing, software

:: distributed under the License is distributed on an "AS IS" BASIS,

:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

:: See the License for the specific language governing permissions and

:: limitations under the License.

PATH=%PATH%;"%SYSTEMROOT%\System32"

fastboot flash bootloader bootloader-sargo-b4s4-0.3-7357923.img

fastboot reboot-bootloader

ping -n 5 127.0.0.1 >nul

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

fastboot reboot-bootloader

ping -n 5 127.0.0.1 >nul

fastboot update image-sargo-rq3a.210905.001.zip

echo Press any key to exit...

pause >nul

exit

dir

Volume in drive C has no label.

Volume Serial Number is D827-5684

Directory of C:\Users\joedp\Documents\Phone stuff\Pixel root\Android 11\Update sept 2021\sargo-rq3a.210905.001-factory-2dd7b68f\sargo-rq3a.210905.001

09/24/2021 06:24 AM <DIR> .

09/24/2021 06:24 AM <DIR> ..

09/19/2021 04:30 PM 5,941,760 adb.exe

09/19/2021 04:30 PM 97,792 AdbWinApi.dll

09/19/2021 04:30 PM 62,976 AdbWinUsbApi.dll

09/23/2021 10:03 PM 8,574,632 bootloader-sargo-b4s4-0.3-7357923.img

09/19/2021 04:30 PM 243,200 dmtracedump.exe

09/19/2021 04:30 PM 440,320 etc1tool.exe

09/19/2021 04:30 PM 1,632,768 fastboot.exe

09/23/2021 10:04 PM 984 flash-all.bat

09/23/2021 10:03 PM 1,104 flash-all.sh

09/23/2021 10:03 PM 1,053 flash-base.sh

09/19/2021 04:30 PM 43,520 hprof-conv.exe

09/24/2021 06:26 AM <DIR> image-sargo-rq3a.210905.001

09/23/2021 10:03 PM 1,673,259,778 image-sargo-rq3a.210905.001.zip

09/19/2021 04:30 PM 231,594 libwinpthread-1.dll

09/19/2021 04:30 PM 501,248 make_f2fs.exe

09/19/2021 04:30 PM 501,248 make_f2fs_casefold.exe

09/19/2021 04:30 PM 1,157 mke2fs.conf

09/19/2021 04:30 PM 770,560 mke2fs.exe

09/19/2021 04:30 PM 761,396 NOTICE.txt

09/23/2021 10:03 PM 75,133,068 radio-sargo-g670-00116-210406-b-7261833.img

09/19/2021 04:30 PM 38 source.properties

09/19/2021 04:30 PM 1,217,536 sqlite3.exe

21 File(s) 1,769,417,732 bytes

3 Dir(s) 885,705,371,648 bytes free
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
I don't see anything obviously wrong, but since it stopped working with the June update my guess would be you are using an old version of fastboot. What is the output of "fastboot --version"? It should be 31.0.3.

From your directory structure, it appears you have multiple instances of fastboot on your pc. That can lead to problems if they are not all the same version.

I'm not sure why you are trying to flash the monthly updates sequentially, unless it is for troubleshooting purposes. They are full images, so all you need is the latest update.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I could explain the flawed thinking that led me to try the sequential updates, but I think I'll seem less foolish if we leave it at "troubleshooting purposes".

I'm getting an error when I try "fastboot--version" also. It says it is not a valid command.

As far as the multiple instances/versions, I downloaded it new when I started trying to update last week. I have not gone through all the other folders to get rid of older downloads. Is that something I should do?

Update: I checked the source.properties file and it says the version is 31.0.3.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I went back and deleted multiple copies of older versions of the adb tools. Then I deleted the September update download and redownloaded it. I tried again and got the same error.
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
So you are now on fastboot version 31.0.3?

Your original post said "I have tried it in bootloader mode. I have tried it in fastboot mode.". Bootloader mode is fastboot mode. What command are you executing prior to flash-all.bat to put the phone in fastboot mode. Are you sure you are not in fastbootd mode instead of fastboot mode when you execute flash-all.bat?

Before you execute flash-all.bat, execute "fastboot devices". What is the output?

BTW, if you don't click reply to my message, I do not get notified you have replied.
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
You get the "not a valid command" error because you left out the space between fastboot and --version.
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I really appreciate all your help.

When I first tried, I had tried executing the flash-all.bat file after adb reboot fastboot and adb reboot bootloader. When I figured out that earlier updates would work, it was when I used adb reboot fastboot., so that was what I kept using

After I enter adb reboot fastboot, the screen says fastbootd.

fastboot devices yields:

943AYOJE2C fastboot
[Google Pixel 3a Guides, News, & Discussion] joedp2:
I just retried flashing after adb reboot bootloader. Looks like it worked.

Thank you again for all your help!
[Google Pixel 3a Guides, News, & Discussion] dcarvil:
Yes, the "adb reboot fastboot" was the problem. That puts the phone in fastbootd mode instead of fastboot mode. I have no idea why the earlier updates worked in fastbootd mode.

Glad I could help.
[Google Pixel 3a Guides, News, & Discussion] amarmak:
Will this method work on devices with OEM Unlock greyed.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
no if your bootloader is hard locked you are sol. youd need to wait for an exploit to be able to root it.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
updated the method to pass safetynet and fixed a broken image.
[Google Pixel 3a Guides, News, & Discussion] Emmalfal:
I am literally on the last step of this rooting process and I'm hung up. I use fastboot flash boot_b boot.img and get a "cannot load boot.img" message. I tried just fastboot flash boot_b boot but that returned an error message,too? I feel like I'm missing just one little thing before I get to the glory of root.
[Google Pixel 3a Guides, News, & Discussion] Emmalfal:
I doubt like hell anyone is monitoring this page. Just in case, here's the issue I'm running into. In the final step, I enter fastboot flash boot_b and then I enter the location and the file I want to flash, in this case, the Magisk patched boot.img. I get a long string of commands when I hit enter but that's all. I go back to my phone, check root and nope. Not rooted. I have no idea what I'm supposed to see when I flash the patched boot image, but so far, I'm not getting root. Any advice appreciated.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
Correct, when you unlock the bootloader it does a factory reset.
[Google Pixel 3a Guides, News, & Discussion] SurNubs:
hello sir mind if i send you a pm
[Google Pixel 3a Guides, News, & Discussion] prenedo:
I shouldn't need to wipe anything to flash the boot.img right? I unlocked my bootloader when I first got the phone last week. Wanting to root now.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
Correct. As long as the bootloader is unlocked you're fine.
[Google Pixel 3a Guides, News, & Discussion] wmdunn:
quick question

All ... been a while since I unlocked and rooted an Android phone, need a little help. I've had the 3a for a few days, really like 90% of the build. There are a few things that I think can be tweaked with root ... low volume, yellowish cast to the screen, Adaway host file. So my question is ... if I root and decide to return it to the vendor, is it possible to return to factory specs? Thanks!
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
Yes. You would just sideload factory image and relock bootloader. Then no one is the wiser.
[Google Pixel 3a Guides, News, & Discussion] wmdunn:
Thanks for the quick reply!
[Google Pixel 3a Guides, News, & Discussion] pharpe:
I am on the Q beta and trying to root. I performed the following steps:

Installed Magisk Manager on the 3a

Downloaded the 3a Q Beta img here: https://developer.android.com/preview/download.html

Extracted the boot.img

Copied the boot.img onto the phone

Ran Magisk Manager and patched the boot.img and created the patched magisk_patched.img file

Copied the magisk_patched.img back to PC and flashed the file via fastboot without error

Rebooted phone and checked Magisk manager but it still shows that Magisk is not installed.

Did I miss something?
[Google Pixel 3a Guides, News, & Discussion] pbanj:
i updated the main post with an even easier way to get Gpay working. also updated the root tut post to account for it wanting the current slot.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
that should have done it. maybe try the canary build of magisk insted of the stable. i know there was an issue with the pixel 3 and the q beta, but not sure if it was ever fixed
[Google Pixel 3a Guides, News, & Discussion] spaceman860:
That's just a temporary fix that won't last. For a permanent fix do this with root.

**Google pay fix**

1. Download and open Termux apk, then type `su`

2. Copy and paste

am force-stop /data/data/com.google.android.apps.walletnfcrel && chmod 777 /data/data/com.google.android.gms/databases/dg.db && sqlite3 /data/data/com.google.android.gms/databases/dg.db "update main set c='0' where a like '%attest%';" && chmod 444 /data/data/com.google.android.gms/databases/dg.db

3. Reboot
[Google Pixel 3a Guides, News, & Discussion] pbanj:
Not to sound like an asshole, but did you even bother checking? Because you literally posted what I linked to
[Google Pixel 3a Guides, News, & Discussion] spaceman860:
Looked in the OP and missed the link all I saw was the old way of deleting gms.
[Google Pixel 3a Guides, News, & Discussion] Groteski:
Thanks a lot OP. First with the boot.img to win us some time and now the Gpay updated methode :good:
[Google Pixel 3a Guides, News, & Discussion] oscar1823:
Vid?

Is it possible if someone can make an actual video on youutube or something? like i can understand kinda what to do but id rather see a video explaning the process.
[Google Pixel 3a Guides, News, & Discussion] alphahere:
https://www.thenerdmag.com/tutorial-how-to-root-google-pixel-3-and-pixel-3-xl-using-magisk/
[Google Pixel 3a Guides, News, & Discussion] :
No OTAs with root?
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
You will get ota. But it will remove root.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
I'll be updating the thread with boot images until we get twrp
[Google Pixel 3a Guides, News, & Discussion] Labellecabresse:
hi all, any ideas how to go back stock ?
[Google Pixel 3a Guides, News, & Discussion] Emmalfal:
Aaaand just in case anyone else runs into this, I fixed it by moving my patched Magisk img file onto the C drive where my ADB lives. No idea why, but that fixed it.
[Google Pixel 3a Guides, News, & Discussion] bombadier:
Sounds like there is something going wrong with the command, it should display on the screen if it was succesful, put your patched boot image in the same location as fastboot so you dont need to type the full path

Because there was an error in your path to the patched boot image, got it sorted now

Something went wrong with my post it didnt show up till after you posted the second time
[Google Pixel 3a Guides, News, & Discussion] Emmalfal:
Whoo. Well, I appreciate it. All's well that ends well. Man, it feels good when you get verification of root. I haven't done this stuff for many years now, so I forgot the thrill of it. I've had a bad run trying to root some Samsung phones, so getting this one done was a good feeling. Thanks for the help.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
Just grab the factory image from Google and flash it.
[Google Pixel 3a Guides, News, & Discussion] Labellecabresse:
already tried that with no sucess... after locking the bootloader, error message :

"device can't find valid operating system"
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
If you locked the bootloader you may have bricked your device. You need to flash stock while unlocked. Then boot to make sure your good. Then if you really want to relock you can. Locking bootloader with anything other than stock will make your device into a shiney New paperweight
[Google Pixel 3a Guides, News, & Discussion] pbanj:
I updated the pd2a.190115.032 boot.img to the newest canary build as of today
[Google Pixel 3a Guides, News, & Discussion] caballon:
Share the app if you can need those. Thanks in anticipation:svetius:
[Google Pixel 3a Guides, News, & Discussion] i root SGH i777:
Because I am running the Android Q Beta 3, does that mean I can't root my Pixel 3A yetr?
[Google Pixel 3a Guides, News, & Discussion] MPAI:
Can this used to root latest Q beta?
[Google Pixel 3a Guides, News, & Discussion] pbanj:
these images are for pie not q, so no you cant use these. as for q you would have to patch the images yourself by extracting them from the stuff google has on their site. after they're patched you just flash them in fastboot. make sure you use the newest canary.
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
Is q rootable at this point? Last time I checked (a few weeks ago) it was not. If it is now rootable, I may consider flashing over. If I do, I'll upload a prerooted stock kernel, if it's ok with you. I may just wait for ob4 though since it's right around the corner.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
I'm not entirely sure tbh. I know he said he figured something out. Not sure it made it to canary yet.
[Google Pixel 3a Guides, News, & Discussion] gargleblarg:
If you lock your bootloader and you aren't stock, you could brick your phone.
[Google Pixel 3a Guides, News, & Discussion] gargleblarg:
You can delete them and retain the mod. Feel free to pm if you have any questions that you don't want to make public, we've all been there.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
patched boot.img for the june update has been added to the first post
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
Shoot you beat me. I was just uploading for ya!
[Google Pixel 3a Guides, News, & Discussion] pbanj:
you get prompted for the update yet? i told my phone to check and nothing. also for some reason im able to have magisk restore the image
[Google Pixel 3a Guides, News, & Discussion] syckman:
Newbie question - my 3a is already rooted, if I flash the newest update in magisk, will it keep root & my data?
[Google Pixel 3a Guides, News, & Discussion] :
Any chance you can make a brief guide on how to update and keep root. Im a bit nooby considering the lack of twrp.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
there is one in the how to root post i link to but it may not work as we didnt install using magisk. so may have to uninstall magisk first and then reinstall after the update using the patched boot.img. im able to restore the stock image for some reason so it doesnt hurt to give it a try
[Google Pixel 3a Guides, News, & Discussion] :
So am i right in thinking..

Update via ota and lose root.

Then use the patched boot image again

Would there be any issues?
[Google Pixel 3a Guides, News, & Discussion] pbanj:
you would have to uninstall magisk first to be able to take the update. so try the method i linked to in my root guide and see if it will let you restore the image, it will either work or it wont.
[Google Pixel 3a Guides, News, & Discussion] :
Looks kind of complicated for me. Wish I had waited for twrp lol.

---------- Post added at 10:07 PM ---------- Previous post was at 09:41 PM ----------

I uninstalled magisk to prepare to flash stock boot. Bootloop. Lol :/
[Google Pixel 3a Guides, News, & Discussion] pbanj:
was talking to a friend and they told me of how they do it on their phone. so easiest way grab the ota update from here reboot the phone into recovery(can do "adb reboot recovery") then once in recovery press power and up and you should see options, go down to apply update from adb then do

adb sideload "ota update file"

you can just enter adb sideload and then drag the file onto command prompt to work. after that finishes pick the reboot to bootloader option to boot into fastboot. then just flash the patched image. you will want to flash it to slot b as the ota update changes the active slot.
[Google Pixel 3a Guides, News, & Discussion] :
My fault i forgot about the slot thingy. I already put it in slot a but im back. So now im gonna sideload the ota then flash your patched boot file

All good. First pixel so getting used to this.
[Google Pixel 3a Guides, News, & Discussion] pbanj:
here is the march update(the update the phone shipped with) stock boot image if anyone needs it https://cdn.discordapp.com/attachments/399670410565910529/585216442085933085/boot.zip
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
I didn't wait. I just went to the ota download and adb sideloaded it. If you choose this method be warned if you are on elemental x, you need to fastboot stock kernel otherwise ota won't apply. Ota didn't include a new boot.img as far as I could see, I had to download the entire factory image to grab it.

---------- Post added at 05:34 PM ---------- Previous post was at 05:31 PM ----------

Spot on. I'm up and running. I didn't remove magisk before flash. Once you fastboot new stock boot.img just adb the new update. Then you need to fastboot modded boot.img. Then, like magic you are rooted again!
[Google Pixel 3a Guides, News, & Discussion] :
Anyone unable to hide magisk with this new version?

Everytime I hide it magisk shows as unistalled then when i reboot i have 2 magisk apps the other asking to install the real magisk again
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
What are you trying to do? Are you attempting to hide magisk from magisk?
[Google Pixel 3a Guides, News, & Discussion] :
Was just trying to hide magisk like im normally do for my banking apps.

When i hid magisk in the settings to give it another name, it created the hidden magisk apk but said magisk was not installed.

Upon rebooting the phone the original app would appear alongside the hidden one asking me to install the real magisk, like it did when you boot from the patched boot image.

Uninstalled the hidden one and repeated this until 10 odd trys later it now works as is meant to.

No idea what the issue was or why it fixed randomly.
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
I have never had problems using Google pay and have never hidden magisk from magisk. I just hide pretty much everything Google in the hide tab. And Netflix. That usually does the trick for me. Glad you sorted yourself out anyway
[Google Pixel 3a Guides, News, & Discussion] :
Most apps work without it, theres a couple that wont work at all and a couple where the fingerprint goes out the window. I didnt really want to root this but the music quality is so bad i had to get viper.
[Google Pixel 3a Guides, News, & Discussion] Blindsight51:
"Stock backup does not exist!"

I just got a brand new Pixel 3a (March *.032 version) and the first thing I did was follow pbanj's root guide, and got to the "follow this to do an ota update" step to try to install the June update. I get to the step to uninstall Magisk, and get the error "Stock backup does not exist!", and now I'm stumped with how to proceed.

After some (amateur) Googling, I think I need to have the boot image for my current phone version on my phone. Along these lines, I've downloaded "sargo-pd2a.190115.032-factory-c0068fd4.zip" from Google, but now I'm lost. Do I just load the whole downloaded 1.6GB .zip file to the root directory as shown in "This PC\Pixel 3a\Internal shared storage"? Or do I unzip it and load the .zip file contained in the download ("image-sargo-pd2a.190115.032.zip")? Or do I unzip that (into a 4+GB directory) and load the "boot.img" file within?

Or am I just completely off base with needing to download the factory boot image?

(As an aside, I realize this may be a bit silly, since I could just update and then root, but I'm trying to figure out how to get this to work for future updates, as well.)
[Google Pixel 3a Guides, News, & Discussion] pbanj:
go back a page or two. also reading the last couple pages of a thread is a good habit to get into as a lot of the time you find what you were going to ask about.
[Google Pixel 3a Guides, News, & Discussion] AutomaticFailure27:
---------- Post added at 05:34 PM ---------- Previous post was at 05:31 PM ----------

[/COLOR]Spot on. I'm up and running. I didn't remove magisk before flash. Once you fastboot new stock boot.img just adb the new update. Then you need to fastboot modded boot.img. Then, like magic you are rooted again!

So with this OTA ADB way, if I have EX kernel, do I need to flash the stock kernel as well as the stock boot or just boot? Also, I see you mentioned the new boot.img, with that, could I just take the June boot.img, fastboot flash, then adb the ota, next flash the modded boot.img/use Magisk and be good?
[Google Pixel 3a Guides, News, & Discussion] Fentadroid:
I have a problem.

I've downloaded the latest full factory image with june update

I've edited flash-all.bat removing the -w

Run the script.

Tried to flash the patched image provided by you and didn't worked, even if i normally reboot the phone it won't boot.

If i flash the original boot.img the phone won't start but the only way i can boot the phone is with the command fastboot boot boot.img.

Any idea?
[Google Pixel 3a Guides, News, & Discussion] gargleblarg:
Deleted
[Google Pixel 3a Guides, News, & Discussion] wmdunn:
Would love some help ... I am rooted, with Magisk and Elemental kernel. I would like to return to stock, in order to exchange my 3a for the 3a XL. Problem is, I do not have access to a computer for adb commands. Is there a way to return to stock without a computer? Thanks.
[Google Pixel 3a Guides, News, & Discussion] capitanouncino:
Same here, I repeated the flash of the .bat file to boot again. And I'm absolutely sure I flashed the correct patched boot.img
[Google Pixel 3a Guides, News, & Discussion] jmtjr278:
I know of no other ways to return to stock and relock the bootloader. Good luck

---------- Post added at 07:59 AM ---------- Previous post was at 07:56 AM ----------

So with this OTA ADB way, if I have EX kernel, do I need to flash the stock kernel as well as the stock boot or just boot? Also, I see you mentioned the new boot.img, with that, could I just take the June boot.img, fastboot flash, then adb the ota, next flash the modded boot.img/use Magisk and be good?[/QUOTE]So...I fastboot flashed the modded June boot.img first

Then I sideloaded the OTA

Then I rebooted

Then I fastbooted modded June boot.img

Reboot and all good

---------- Post added at 08:02 AM ---------- Previous post was at 07:59 AM ----------

Did you try letting the phone boot after factory image -w completed? Also, are you replacing the boot.img inside the stock image work the modded one provided here? If so, try just fastbooting the unmodded factory image, let phone boot, reboot to fastboot try flashing modded boot img