Ok, I fixed it.I updated the flash-all.bat to reflect the changes mentioned above but have this error:
error: failed to load image-bluejay.....zip
What is that?
Ok, I fixed it.I updated the flash-all.bat to reflect the changes mentioned above but have this error:
error: failed to load image-bluejay.....zip
What is that?
That's good information to share, and I've seen others share that same information independently, but just FYI everyone, that information definitely isn't true for everyone.Just FYI , those who haven't come across this issue: I was updating to 13 by means of adb sideload because google decided to push Android 12 again (Germany/EU), mistake on their end. Sideload failed at "verify update package", just sat there doing nothing for an hour before i killed it. I found this neat info on this thread that was a straight forward fix. using the only USB 2.0 port on my machine it worked right away. Not even 5 minutes. Thread author might point this out at the start of the thread? pretty general info though. Fastboot and ADB both appear to be working on USB-C to C, just not sideload. Dunno were this info could be posted best to save people hours of searching.
What fixed it? Different USB cable or port?
There is a high probability it is not actually USB-C to C. It might be the active cables many use now (those with integrated chip), it might be the platform, and lastly, you also said "flash" but did you mean sideload or fastboot? Because i verified both ADB and Fastboot on that connection first and most functions returned no errors. Only when i went into recovery and there into sideload mode, that connection was bad.That's good information to share, and I've seen others share that same information independently, but just FYI everyone, that information definitely isn't true for everyone.
I use the USB-C (3.2 Gen 1 and Gen 2) ports on my desktop computer to flash my Pixel 6 Pro and my Samsung Galaxy Tab S8 Ultra 100% fine.
I have even done it through a USB-C port on the desktop, with a long cable going to a USB hub, where I then use a USB-A cable. I have done it all those ways without issue. I did have to change USB-C cables yesterday, but still used a USB-C port.
I forgot to extract the contents of image file (.zip) into the ADB folder, so ADB had trouble locating the needed files. Once I extracted the files into the ADB folder, it all started working.
Eh, the more I read about it the more I think it is just bootloader version relatedLet's just hope that ARB is only tied to downgrading to the A12 bootloader and not other parts of the OS as well.
Google's statement wasn't exactly clearcut in my mind. I think a bad result could potentially lead to a more than undesirable outcome, if you know what I mean. Of course, I could just be overly paranoid
None of my USB-C (or USB-A -> USB-C) cables are active cables. They're just normal, inexpensive but quality basic cables. Or do you mean yours?There is a high probability it is not actually USB-C to C. It might be the active cables many use now (those with integrated chip), it might be the platform, and lastly, you also said "flash" but did you mean sideload or fastboot? Because i verified both ADB and Fastboot on that connection first and most functions returned no errors. Only when i went into recovery and there into sideload mode, that connection was bad.
That's okay. I accept that the same solution isn't necessary for everyone, I just wanted to put it out there that what caused the issue for you and for some people might not necessarily be a problem for others. And absolutely, the particular hardware involved can be the issue. A long time ago, I used to run into more finicky flashing issues where using particular ports mattered. My latest self-built desktop from a year and three-quarters ago has had much better luck flashing no matter what USB port I use.I could do some more digging like I used to back in my HTC days, grab my top tier notebook and run the sideloading again there to see if it still applies, swap cables from active to passive, etc, but on the one hand i really dont have the nerves for that anymore and on the other hand it should suffice for readers to know they should consider the connection when things fail.
Awesome! Glad it was something simple. Happens to all of us from time to time.I forgot to extract the contents of image file (.zip) into the ADB folder, so ADB had trouble locating the needed files. Once I extracted the files into the ADB folder, it all started working.
Ah, good point. I forgot about that, but that does seem familiar now. My answer is: probably.@Lughnasadh @roirraW "edor" ehT
What if you edited the flash-all.bat file this way (see bold information below). Would it flash the new factory image to boot slots?
If yes, that would eliminate the need to add --skip-reboot or the need to switch slots.
- @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-bramble-b5-0.5-8633619.img --slot-all
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-bramble-g7250-00208-220623-b-8759277.img --slot-all
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot update image-bramble-tp1a.220624.014.zip --slot-all
echo Press any key to exit...
pause >nul
exit
I know that works for flashing boot images to both slots, but I couldn't say definitively it would work with flashing the whole factory image. I look forward to you trying and telling us how it went@Lughnasadh @roirraW "edor" ehT
What if you edited the flash-all.bat file this way (see bold information below). Would it flash the new factory image to boot slots?
If yes, that would eliminate the need to add --skip-reboot or the need to switch slots.
- @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-bramble-b5-0.5-8633619.img --slot-all
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-bramble-g7250-00208-220623-b-8759277.img --slot-all
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot update image-bramble-tp1a.220624.014.zip --slot-all
echo Press any key to exit...
pause >nul
exit
@Lughnasadh @roirraW "edor" ehTI know that works for flashing boot images to both slots, but I couldn't say definitively it would work with flashing the whole factory image. I look forward to you trying and telling us how it went
fastboot--skip-reboot
fastboot --set-active=a (If you're on slot b)
fastboot --set-active=b (If you're on slot a)
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
flash-all
to flash the factory image to the other slot.fastboot adb reboot bootloader
fastboot --set-active=a (If you're on slot b)
fastboot --set-active=b (If you're on slot a)
flash-all
at the command prompt.I thought you may be feeling lucky today
But seriously, I'm not sure it's even a good idea to do that. What if something goes wrong during flashing and you have both slots end up being corrupted? May be harder to get out of. Not impossible of course since there may be other methods to recover. For me, it's always nice that you know what of your slots is still good (e.g. when you get into a bootloop and it eventually switches to the other slot to boot). It's really just a time and effort saver to do both slots at once but not sure the rewards would outweigh the possible pitfalls, at least for me.
I don't think there is a definitive situation, as no one has expressed wanting to go back.so what's the definitive situation re going back to 12 after you've updated to 13?
fair enough. what is the technical reason you can't flash a 12 bootloader after a 13 bootloader? is it not just flashing data into a certain area of the phones memory? overwriting any existing data? outside my knowledge zone that one.I don't think there is a definitive situation, as no one has expressed wanting to go back.
The only thing I know for sure is that if you're still on Android 12, you can definitely flash the Android 13 Stable bootloader ONLY, and I was still able to boot Android 12. Doesn't mean squat, really.
Downgrading without wiping is always a very risky thing: After upgrading to a newer version (even a regular monthly update), system app data may have been updated as well (it's very likely at least some system apps have). Downgrading to an earlier version of Android won't downgrade the app data, so suddenly you're running an older version of Android with app data meant for a newer version. At best, you'll have weird issues. At worst, your phone won't boot. I don't have the time to set my phone up from scratch if I can help it, so I won't be testing downgrading (with or without Android 12's bootloader) any time.
If you have the time and test this process, please let us know how it works out. It's "possible" that you can flash everything from Android 12 but the bootloader itself, and it might still work. Even if so, this doesn't mean that a further bootloader change in Android 13 after more updates will remain compatible with Android 12.
I haven't liked doing mix or match partition images on my device in the last six years, however.
This warning at this page:fair enough. what is the technical reason you can't flash a 12 bootloader after a 13 bootloader? is it not just flashing data into a certain area of the phones memory? overwriting any existing data? outside my knowledge zone that one.
Warning: The Android 13 update for Pixel 6, Pixel 6 Pro, and the Pixel 6a contains a bootloader update that increments the anti-roll back version. After flashing an Android 13 build on these devices you will not be able to flash older Android 12 builds.
August 15, 2022 2:10pm Adam Conway
PSA: You can’t downgrade from Android 13 on Google’s latest Pixel phones
Android 13 was just released for Google’s Pixel smartphones, and you can install it right away by going to your phone’s settings and checking for an update. However, if you have a Google Pixel 6, Google Pixel 6 Pro, or a Google Pixel 6a, then be warned: trying to roll back to Android 12 after updating will trip your phone’s anti-rollback protection. This means that the update to Android 13 is essentially permanent.
We spotted the warning on the Android 13 factory images page, where it says the following:
This anti-rollback protection is not unlike mechanisms that some companies, such as Xiaomi, have employed in the past. For context, Xiaomi implemented anti-rollback protection by surprise on the Redmi Note 5 through a software update. When users went to downgrade they then bricked their smartphones, as they did not know they needed to be careful.“The Android 13 update for Pixel 6, Pixel 6 Pro, and the Pixel 6a contains a bootloader update that increments the anti-roll back version. After flashing an Android 13 build on these devices you will not be able to flash older Android 12 builds.”
If you use your phone normally and don’t flash between different system images, then you have nothing to worry about. However, if you’re the kind of person that likes to jump between different versions, maybe hold off for a little bit. It’s not clear if you’ll actually brick your phone by downgrading after updating to Android 13, but it’s better to be safe than sorry and to wait and see what happens. You also don’t need to worry about it if you’re using an older Google Pixel phone.
As for why this only affects the latest Pixel phones, it’s not clear. However, all three of these devices are powered by Google Tensor, meaning that it might be something unique to Tensor, and might be why Google is implementing it. Anti-rollback protection is implemented through Verified Boot, and will ensure that a security vulnerability cannot be used by a malicious actor to install an older version of the Android system.
Source: Android factory images page
thanks for the info. I don't understand why google is doing this tho. they are very liberal when it comes to flashing and rooting. why implement an anti roll back boot loader? what's wrong with going back to 12 if you have some random issue on 13?This warning at this page:
and:
PSA: You can't downgrade from Android 13 on Google's latest Pixel phones
You can't downgrade from Android 13 on Google's latest Pixel phones, so keep that in mind if you hop between builds a lot.www.xda-developers.com
I don't know anything technical about it beyond the information given in those two places.
I gather you're all good now?I did go through and successfully flashed my PX6 pro to AP1A.240405.002 with KSU using PixelFlasher 6.8.3.0
I did go through and successfully flashed my PX6 pro to AP1A.240405.002 with KSU using PixelFlasher 6.8.3.0
Note that this is mainly for the officially listed "Unlocked" Pixel 6 Pro, available directly from the Google Store. All of this will also apply to any other (carrier-specific) variant of the Pixel 6 Pro which you can achieve an unlocked bootloader on. This includes T-Mobile and AT&T variants. It's likely Verizon variants will never be able to unlock their bootloader, or if so it will require paying the right person to do so.
Feel free to ask about general questions, but for anything that's specific to your variant, you should use one of the other already existing threads. You'll find Verizon, AT&T, and T-Mobile-related threads in those respective search results.
Unlocking or locking the bootloader will wipe the device every single time, so be sure to have your data backed up before doing so, or better yet, just unlock it as soon as you get the device.
Keep in mind that unlocking the bootloader or rooting might affect your phone's capability to use banking apps such as Google Pay, your local bank's app, or even the ability to install some apps like NetFlix. See @Pekempy's thread Working SafetyNet with Pixel 6 Pro Android 12
If you're going to re-lock the bootloader, make sure the ROM you have on your phone is completely stock (by flashing the latest official firmware) BEFORE re-locking it.
There are no negative consequences if you unlock or re-lock the bootloader other than it will wipe your phone, and while unlocked you get a brief screen when you boot the phone telling you (and anyone who sees your phone at the time) that the bootloader is unlocked. You will also continue to receive updates (if you've merely unlocked the bootloader, you can take updates as normal) unlike Samsung, Sony, et cetera, which have permanent major consequences with reduced functionality even if you un-root and re-lock your bootloader. If you're actually rooted (not just bootloader unlocked), you'll have to perform extra steps to manually update each month, and to keep root/re-root.
All posts about Google Pay or banking will be reported to be deleted. Please keep this thread on-topic. There are at least one or two other How To Guide threads in this section in which folks discuss how to get around banking app restrictions when you're rooted or just have an unlocked bootloader. See @Pekempy's thread Working SafetyNet with Pixel 6 Pro Android 12
If users persist in discussing banking apps in this thread, I will have this thread locked and only update this first post when there is new and updated information regarding the subjects of the title of the thread: Unlocking the Pixel 6 Pro bootloader, rooting, and TWRP. See @Pekempy's thread Working SafetyNet with Pixel 6 Pro Android 12
Honorable mention to @Jawomo's aodNotify - Notification Light / LED for Pixel 6 Pro! (XDA link) / Notification light / LED for Pixel - aodNotify (Play Store link), which in my opinion restores useful functionality missing in most phones these days. It also solves some subjective issues some folks have with AOD (Always On Display), and/or solves/works around the problem where AOD is required for the optical fingerprint reader to work without the screen being on.
OEM unlocking in developer options needs to be toggled on. I don't "believe" you have to actually do the "fastboot flashing unlock" command.
- You'll need this if you're going to unlock the bootloader on your Pixel 6 Pro: SDK Platform Tools (download links for Windows, Mac, and Linux). Note that you can find links to download the tools elsewhere, but I wouldn't trust them - you never know if they've been modified. Even if the person providing the link didn't do anything intentionally, the tools could be modified without them being aware. Why take a chance of putting your phone security further at risk?
- You can alternately use the tools from the SDK Manager, but most of us will want to stick to the basic tools-only without the complications of the full development manager.
- For Windows, get Google's drivers here Get the Google USB Driver (ADB will likely work while the phone is fully booted, but if you're like me, you'll need these drivers for after you "adb reboot-bootloader", to be able to use ADB and Fastboot.
- Thanks to @96carboard for posting the details of unlocking the bootloader, be sure to thank him in his post. Unlocking or locking the bootloader will wipe the device every single time, so be sure to have your data backed up before doing so, or better yet, just unlock it as soon as you get the device. Keep in mind that unlocking the bootloader or rooting might affect your phone's capability to use banking apps such as Google Pay, or your local bank's app. If you're going to re-lock the bootloader, make sure the ROM you have on your phone is completely stock (by flashing the latest official firmware) BEFORE re-locking it. My experience on my Pixel 1 was that there were no negative consequences if you unlock or re-lock the bootloader other than it will wipe your phone, and while unlocked you get a brief screen when you boot the phone telling you (and anyone who sees your phone at the time) that the bootloader is unlocked. All of this should still be the case. You will also continue to receive updates. Unlike Samsung, Sony, et cetera, which have major consequences with reduced functionality even if you un-root and re-lock your bootloader. If you're actually rooted (not just bootloader unlocked), you'll have to perform extra steps to keep root/re-root.:
The unlock process works like this:
1) Take brand new fresh phone out of box. Do NOT put sim card in it, just power it on (you can put a SIM card if you want, you just don't have to).
2) When it starts harassing you to join Google, hit "skip" and "remind me tomorrow" as applicable until you reach home screen. YOU DO NOT need to plug in a google account.
3) Settings --> About --> Build number. Repeatedly tap it until it says you're a developer.
4) Back --> Network --> WiFi and connect it.
5) Back --> System --> Developer --> OEM unlocking (check), USB debugging (check), plug in USB, authorize on the phone when requested.
Using the Platform Tools previously mentioned in command line/terminal:
6) #7) #Code:adb reboot-bootloader
Code:fastboot flashing unlock
Now that you've unlocked it, it has been wiped, so repeat 1-4, then disable all the google spyware, and go ahead and start using it while waiting for aosp and root.
Official Instructions for Locking/Unlocking the Bootloader
Personally, I would always use the official drivers Google provides unless they just don't work for whatever reason: Get the Google USB Driver (this is for Windows). They work for me. They are rarely updated, but they are every once in a great while, sometimes years in-between.
I agree with this. be careful using drivers or adb/fastboot tools. Some are fine, but there's no need for it really anymore. Google has made it very easy to install drivers and Platform-Tools (adb/fastboot tool).
Google provides the Fastboot/ADB tool (Platform-Tools) and Google USB Drivers (adb/fastboot interface). This will allow any Pixel to interface with Windows using the fastboot/adb protocol. Official Google USB Driver includes support for both the Fastboot and ADB driver interface. There are 3 main drivers (Fastboot, ADB and MTP/Portable File Transfer). The MTP/Portable File Transfer driver is built-in to Windows 7-11.
Fastboot/ADB Driver Interface - Official Download Link:
When flashing a full image or unlocking your bootloader, the fastboot interface is being used.
First Download official Google USB Drivers (it's a zip file). Extract the zip (important!). Right-click on the android_winusb.inf file and hit install. You can then restart your phone to the Bootloader Screen (hold vol-down while it restarts or turns on). When you plug in your phone, Windows Device Manager will show a new device at the top: Android Device: Android Bootloader Interface.
Using the ADB interface: It's the same driver. Enable USB Debugging on your phone, then plug it in to your computer. A prompt will appear on your phone (to allow USB Debugging). The driver in Device Manager will appear as Android Device: Android Composite ADB interface.
Now you can download and use Platform-Tools to flash an Android Image, OTA or run adb/fastboot commands.
Official Download Page
"Android SDK Platform-Tools is a component for the Android SDK. It includes tools that interface with the Android platform, such as adb, fastboot, and systrace"
It's best to make Platform-Tools available system-wide. Download Platform-Tools from the above link and extract it to your C:\ drive - that way you will have a folder to add to the PATH Environment under Window System Properties Menu, Advanced, Environment Variables, System Variables, PATH (google how to do this, very easy). What this does is allow adb/fastboot commands to be run from anywhere in the system, so you don't have to be in the platform-tools folder to run adb/fastboot commands and flash an Android Image (Official or Android Fork such as ProtonAOSP).
@V0latyle posted a new thread with some very important and fascinating information about the increased difficulty to root Android 12: Read this before rooting. Be sure to thank him there.
I would guess that this should be the appropriate URL for official TWRP custom recovery for the Pixel 6 Pro, but who knows when/if that will actually be made available, and it may become available unofficially in these forum sections before being made official. I'll adjust this URL as needed. https://twrp.me/google/googlepixel6pro.html.
@Freak07's Kirisakura-Kernel for the Pixel 6 Pro (and possibly the Pixel 6)
@DespairFactor's Despair Kernel (I believe also for both the P6P and P6)
@tbalden's CleanSlate Kernel
@acuicultor's Radioactive Kernel
It's also handy to have to the full official firmware available, whether it's to recovery from accidents or for actual development. Note the official link to the general Factory Images for Nexus and Pixel Devices page. The following link goes directly to the Pixel 6 Pro (Raven) section: Pixel 6 Pro Factory Images. I prefer to actually bookmark a link to the device listed immediately below the device I want the firmware for, because Google dumbly (in my opinion) puts the latest firmware at the bottom of the list for each particular device, and that ends up making you scroll a lot after a year or two of monthly updates.
Note: You can still get the December 2021 Factory Images and OTA from this thread, if you need them for any reason: Alternate links to December - all full factory images and OTAs available
Back to modding!
- Use the latest Magisk Stable (in my case, I keep the app "hidden" / renamed)
- Used the full firmware zip, extracted to the same folder as the latest Platform Tools (S:\platform-tools)
- Extracted the new boot.img
- Copied new boot.img to the phone
- Patched the new boot.img with Magisk Stable
- Renamed Magisk'd boot.img so I know what version of firmware it's for
- Copied the Magisk'd boot.img back to the computer
- Disabled all my Magisk Modules
- Removed the "-w " from the flash-all.bat
- Re-edited the flash-all.bat to verify I saved it with the "-w " taken out
- Open a Command Prompt, navigated to S:\platform-tools
- adb reboot bootloader
- flash-all.bat
- Let phone boot, unlock it, check that it's working, allow the update process to finish (gave it five minutes or so)
- adb reboot bootloader
- fastboot flash boot kernel.img (renamed Magisk'd boot.img)
- fastboot reboot
- Unlock, check everything's working
- Re-enabled the most basic Magisk Modules which I was sure wouldn't cause a critical issue
- Reboot, unlock, made sure everything's working
I may append these first four posts with further useful information or links as needed.
Used a factory image and booted into Android 13. Auto OTA and a sideload of the full OTA will end in the same result as both useI'm less concerned about the steps/commands as I am with how you updated (auto OTA, sideload, factory image), whether you booted to Android 13, and what happened when you rolled back (I assume using the factory image)
update_engine
. I did boot into Android 13 so the ARB counter did get incremented.33.0.1 (March 2022)
- adb
- Fixes Windows mdns crashes.
- Fixes enable-verity/disable-verity on old devices.
- Fixes "install multiple" on old devices
- Improves the help output to include all supported compression methods.