Google Pixel Recovery Mode Lost - after flashing TWRP booting into recovery freezes - Google Pixel Questions & Answers

it freezes the phone then it boots back into the OS.
I noticed that it takes a bit of a long time (0.6 minutes) to patch the boot image but it ends up successful.
Before this, I unlocked the bootloader on my phone which was on Android 8.0.0 October 2017, then I OTA updated it to Android 8.0.0 November 2017 using the recovery mode.
Also, right after I unlocked the bootloader, I tried to flash the November full system image but it didn't work and returned the error "could not create userdata" or similar, and it threw a lot of missing .sig errors.
The OS all works fine and it still boots into it, just I have no recovery mode now.
I used https://www.youtube.com/watch?v=FcgCrmL8xfE to flash the latest TWRP.
I verified the hashes of all the files too, no luck.
What can I do to fix the issue?
UPDATE: I was trying TWRP 3.2.3-1, I also tried 3.2.3-0 which failed then I tried 3.1.1-1 which didn't change the recovery mode at all, it just returned errors when I was in the temporary TWRP boot.

I'm curious why you want a one year old version of the ROM, and not the most recent version. In any case, you should be able to download the full factory image, then extract the boot.img file. Use fastboot to flash the boot.img to your phone using
Code:
fastboot flash boot boot.img
After that, you should be able to boot to system fine, and you should also be able to boot from the TWRP.img file fine. Always use the latest version of TWRP. Specifically for the Pixel phones, version 3.2.3-1 of TWRP is the first version which successfully unlocks phones with a pattern unlock.

Related

Magisk/TWRP 9.5.4 Won't Work

So I used msm tool to go back to 9.5.3 to unbrick my OP7 Pro and then updated the firmware to 9.5.4 because apparently TWRP fails on adb unless you go to firmware 9.5.4 or above I believe. So I did adb commands and did the TWRP I'm file and booted into TWRP just fine. Then adb sideloaded and flashed TWRP zip file and TWRP sticks fine until I go back into recovery and flashed the magisk beta 20 version and 19 does the same thing. After I flashed magisk zip hell breaks loose. Literally TWRP won't stick unless I go back to adb and do fast boot then twrp.img file and force it to show up even then if I were to adb sideloaded it again and flash the TWRP zip again and see if it sticks without flashing magisk it still will not hold. I don't understand what is happening. I just want to get my OnePlus 7 pro with magisk and working g TWRP without any troubles at all. Should I update it to a different firmware or is the magisk or TWRP files I downloaded wrong what is the deal???? TWRP is the 3.3.4 or whatever and so is the img file and magisk is 20 version please let me know the solution it makes no sense to me. I have to keep msm unbricking back to 9.5.3 and it's pissing me off.
You got two ways:
- flash TWRP
- Boot to TWRP
- flash Magisk (DO NOT REBOOT)
- flash TWRP again (use the TWRP installer zip always)
Or...
- Flash TWRP
- Flash Magisk
- Boot device
- Flash TWRP installer as a module in Magisk
Didn't work
I tried all methods stated above and none of them are confirmed working on 9.5.4 Could you confirm it working on that firmware please? I just flashed twrp zip 3.3.4 file through magisk no luck and magisk is no longer rooted now with twrp... I'd have to run adb command and fastboot boot twrp.img to get twrp to come back and reflash magisk now... However that means twrp will still not stick at all. Which doesn't make sense. If you get it working on this firmware please let me know because I've been trying to get both to stick for awhile now. I did get it to work on another firmware but I couldn't remember which one... But technically it should work on firmware 9.5.4 because that is the firmware that supports adb commands where as 9.5.3 does not. This is gm-1917 model global/US 9.5.3 is the first firmware it comes with.
Want to chime in here and add I have the GM1915 and I have the same issue even after following the above steps. I've updated and used the MSM tool multiple times but TWRP never stays on the recovery, in fact, I usually find the OEM recovery to be gone completely after flashing so if I attempt to boot to recovery it just sends me to my bootloader.
Bump

[Stock/Rooted Boot Images] Pixel 4a [NOV 02]

We have stock factory boot images, I'm only posting the latest builds.
The rooted android 10 images are rooted with latest Magisk 20.4
The rooted 11 images are rooted with latest Magisk Canary 4e0a3f5e
You will still need to install the Magisk Manager to use root. Root will not work without it.
You HAVE to be bootloader unlocked in order to flash a boot image, meaning these Verizon images are likely useless but google does say it covers extra carriers too. The 11 images seem to be unified in terms of Verizon and other carriers, but do NOT cover
Make sure to match the boot image build number to your own build number. (Settings/about/android version/build number)
-
Android 11 - RP1A - NOV - Stock Factory Boot
Stock Boot Image - Global - rp1a.201105.002 - All carriers except EMEA, SG, and IN
AFH
Old Stock Boot Versions
Android 11 - RP1A - Oct - Stock Factory Boot
Stock Boot Image - Global - rp1a.201005.006 - All carriers except EMEA, SG, and IN
AFH
Android 11 - RP1A - Sept - Stock Factory Boot
Stock Boot Image - Global - rp1a.200720.011 - All carriers except EMEA, SG, and IN
AFH
Android 11 Beta R3 - RPB3 - Stock Factory Boot
Stock Boot Image - Global - rpb3.200720.005
AFH
Android 10 - QD4A - Aug - Stock Factory Boot
Stock Boot Image - Global - QD4A.200805.003
AFH
Stock Boot Image - VZW/JP - QD4A.200805.001
AFH
--
Android 11 - RP1A - Nov - Rooted Factory Boot
Rooted Boot Image - Global - rp1a.201105.002 - All carriers except EMEA, SG, and IN
AFH
Old Rooted Boot Versions
Android 11 - RP1A - Oct - Rooted Factory Boot
Rooted Boot Image - Global - rp1a.201005.006 - All carriers except EMEA, SG, and IN
AFH
Android 11 - RP1A - Sept - Rooted Factory Boot
Rooted Boot Image - Global - rp1a.200720.011 - All carriers except EMEA, SG, and IN
AFH
Android 11 Beta R3 - RPB3 - Rooted Factory Boot - Thanks to @Xenanthropy !
Rooted Boot Image - Global - rpb3.200720.005
AFH
Android 10 - QD4A - Aug - Rooted Factory Boot
Rooted Boot Image - Global - QD4A.200805.003
AFH
Rooted Boot Image - VZW/JP - QD4A.200805.001
AFH
--
For root on Android 11, you need the latest Magisk Canary that can be found here
Steps to proceed:​Unlock Bootloader
Ensure you are on latest android version
Ensure you have the latest versions of adb/fastboot tools
Download the desired boot image and place where adb tools have access
Connect phone to pc and open terminal/cmd prompt to where you put that desired boot image
On the phone:
Go to Settings/About and scroll to the bottom
tap 'Build Number' 7 times
type password/pincode if you have it otherwise don't worry
Go to Settings/System/Developer Options
Enable OEM Unlocking
Enable USB Debugging
Accept USB Debugging prompt on phone - If this doesn't pop-up by itself, unplug phone and plug back in to pc and then it should pop-up, HAVE to allow access..
On pc type:
adb reboot bootloader
fastboot flashing unlock
On phone:
Volume up/down to YES and press power button to proceed with bootloader unlock and wiping data partition
fastboot reboot
--
Flash Boot Image on Bootloader Unlocked Device
Ensure you are on an android version matching the boot image you want to download(Check Settings/About - Click on Android Version - Look at 'Build Number')
Download desired boot image on pc and place it where somewhere you have adb/fastboot access
Connect phone to pc and open terminal/cmd prompt to where you put that desired boot image
Reboot phone to bootloader
on pc type:
fastboot flash boot desired-bootimage-name.img
fastboot reboot
--
To Pass CTS w/root- Courtesy of @quangtran1
After flashing rooted kernel:
In Magisk Manager, install the MagiskHide Props Config module;
Execute command 'su -c props' using a terminal app on the phone;
Choose 'Force BASIC key attestation' option from menu;
Choose from fingerprints list, it should default to Pixel 4a, just Confirm
Reboot
?????
Profit
--
If you want or need to make your own rooted boot image
You need the latest Magisk Manager installed.
Stable Magisk for Android 10, maybe 11 | Canary Magisk for Android 11 for sure.
Download the desired Stock Boot Image from here or extract it yourself from Google's Factory Image zip.
Copy to sdcard of your device.
Open Magisk Manager, click the first 'Install' button next to 'Magisk is up to date'.
Click 'Install'.
Click 'Select and Patch a File'
Find and select the desired Stock Boot Image.
You will find the magisk patched, Rooted Boot Image in the sdcard/Download folder titled 'magisk_patched.img'
Copy that to your pc and flash your pixel 4a from fastboot or copy to the phone and flash with exkm/fkm/etc.
Reboot
Install Magisk Manager
Enjoy being rooted.
XDA:DevDB Information
[Stock/Rooted Boot Images] Pixel 4a [NOV 02], Tool/Utility for the Google Pixel 4a
Contributors
HolyAngel
Source Code: https://developers.google.com/android/images#sunfish
Version Information
Status: Snapshot
Created 2020-08-24
Last Updated 2020-11-02
thank you very much good man. if you can do that also for the beta version it would be great.
https://developer.android.com/preview/download#
@dark8899
Ah I had forgotten about the beta, thanks! And added!
Before I mess up my phone, Do I just run "adb reboot bootloader" then "fastboot flashing unlock" then "fastboot flash boot [Android11RootPatch].img" then "fastboot reboot", set up the phone, install magisk?
I haven't rooted in a while and I'm also just a user not a developer.
@DJesri13
Yep that would pretty much do it exactly.
Hmm, not seeming to work on mine... I tried both flashing my own acquired (and patched with magisk) boot.img as well as your patched boot, and neither seem to want to boot when I reboot, it just boots back into fastboot and says "reason: no valid slots to boot" (or something to that effect, i've already patched the original boot.img back) Tried flashing the patched img to both slot A and B, nothing seemed to work. Got the furthest with my own patched image, the google logo would turn to the G and act like it was loading but it continued to "load" for a good 10 minutes so I just gave up.
Xenanthropy said:
Hmm, not seeming to work on mine... I tried both flashing my own acquired (and patched with magisk) boot.img as well as your patched boot, and neither seem to want to boot when I reboot, it just boots back into fastboot and says "reason: no valid slots to boot" (or something to that effect, i've already patched the original boot.img back) Tried flashing the patched img to both slot A and B, nothing seemed to work. Got the furthest with my own patched image, the google logo would turn to the G and act like it was loading but it continued to "load" for a good 10 minutes so I just gave up.
Click to expand...
Click to collapse
It also isn't working for me. It won't let me flash the boot image. I also tried my own image patched with magisk.
Edit: I all my attempts to flash the boot partition failed so I can still boot the OS
@DJesri13
 @Xenanthropy
Sounds like possibly not flashing correctly or you weren't already on the latest firmware. You need to be on the firmware matching the boot.img. This is pulled directly from the factory image. Try flashing that first and then this image and see what happens.
For flashing this after flashing same firmware on android 10 for instance:
fastboot flash boot root.boot.sunfish-qd4a.200805.003.img
make sure you're flashing to 'boot', the 3rd word in the command. if you don't put that it won't flash or if you put something other than 'boot' you could have other issues.. Should still be fixable by flashing the factory images.
HolyAngel said:
@DJesri13
@Xenanthropy
Sounds like possibly not flashing correctly or you weren't already on the latest firmware. You need to be on the firmware matching the boot.img. This is pulled directly from the factory image. Try flashing that first and then this image and see what happens.
For flashing this after flashing same firmware on android 10 for instance:
fastboot flash boot root.boot.sunfish-qd4a.200805.003.img
make sure you're flashing to 'boot', the 3rd word in the command. if you don't put that it won't flash or if you put something other than 'boot' you could have other issues.. Should still be fixable by flashing the factory images.
Click to expand...
Click to collapse
I just checked my build version (i'd upgraded to android 11 beta via the ota update by signing up for the beta) and it matches the boot img, RPB3.200720.005.
When I run "fastboot flash boot root.boot.sunfish-rpb3.200720.005.img" it flashes it properly, but upon rebooting it just reboots back into fastboot stating that there was an error. It wouldn't boot on my custom patched boot.img either so i'm not sure what the issue is here.
My current steps were:
1. get phone, immediately unlock bootloader
2. opt-in to android 11 beta, check for updates and upgrade to the beta (rpb3.200720.005)
3. extracted boot.img from the Android 11 beta OTA update, patch it with magisk and attempt to flash (doesn't work, google logo just loads indefinitely)
4. Try flashing your patched boot.img, which results in the phone immediately rebooting and stating an error with the boot slot
If i'm doing something wrong, i'm not sure what it is. I can provide more details if necessary
Xenanthropy said:
I just checked my build version (i'd upgraded to android 11 beta via the ota update by signing up for the beta) and it matches the boot img, RPB3.200720.005.
When I run "fastboot flash boot root.boot.sunfish-rpb3.200720.005.img" it flashes it properly, but upon rebooting it just reboots back into fastboot stating that there was an error. It wouldn't boot on my custom patched boot.img either so i'm not sure what the issue is here.
My current steps were:
1. get phone, immediately unlock bootloader
2. opt-in to android 11 beta, check for updates and upgrade to the beta (rpb3.200720.005)
3. extracted boot.img from the Android 11 beta OTA update, patch it with magisk and attempt to flash (doesn't work, google logo just loads indefinitely)
4. Try flashing your patched boot.img, which results in the phone immediately rebooting and stating an error with the boot slot
If i'm doing something wrong, i'm not sure what it is. I can provide more details if necessary
Click to expand...
Click to collapse
Ah ok gotcha. it sounds like you did everything right too. Might need a magisk update or something else for that then. May remove the beta root image then..
Are you currently running the Android 11 beta? It would be nice to know if someone was able to get the beta rooted properly so we could see what steps they took.
When I try to flash the boot img I get
FAILED (remote: Failed to write to partition Not Found)
Should I try to flash to the boot slot?
EDIT: I flashed and it went through but now it just boots to the bootloader, flashing the stock boot img doesn't fix it. Ill reflash the factory image and again later maybe
DJesri13 said:
When I try to flash the boot img I get
FAILED (remote: Failed to write to partition Not Found)
Should I try to flash to the boot slot?
EDIT: I flashed and it went through but now it just boots to the bootloader, flashing the stock boot img doesn't fix it. Ill reflash the factory image and again later maybe
Click to expand...
Click to collapse
i am also in the same boat here. unlocked and then fastboot flash boot root.boot.sunfish-qd4a.200805.003.img (to slot a)
it booted to Google logo then restarted into bootloader fastboot mode.
it says no valid slot to boot. see attached image
xxTECRAxx said:
i am also in the same boat here. unlocked and then fastboot flash boot root.boot.sunfish-qd4a.200805.003.img (to slot a)
it booted to Google logo then restarted into bootloader fastboot mode.
it says no valid slot to boot. see attached image
Click to expand...
Click to collapse
Yep, I was getting the same results using the beta firmware and boot img provided and my own as well as the Augusta firmware with the provided images and my own that I pulled from the factory image and ones I patched.
Anyone know if it is possible to sideload magisk as a zip?
i relfashed the factory image, then dropped magisk into phone with windows explorer. installed magisk then redid the fastboot flash boot root.boot.sunfish-qd4a.200805.003.img and she just booted up. unsure if i have root though
EDIT: i have root!
---------- Post added at 11:23 PM ---------- Previous post was at 11:03 PM ----------
DJesri13 said:
Yep, I was getting the same results using the beta firmware and boot img provided and my own as well as the Augusta firmware with the provided images and my own that I pulled from the factory image and ones I patched.
Anyone know if it is possible to sideload magisk as a zip?
Click to expand...
Click to collapse
if you're stuck inside fastboot, then reflash the factory image from this file sunfish-qd4a.200805.003-factory-fac7c08d.zip using the included "flash-all.bat". once that completes, boot phone back up and go to settings to enable developer options. then enable USB debugging and finally transfer the magisk.apk into the phone using windows explorer. once all this is done, start over at the top:
adb reboot bootloader
fastboot flash boot root.boot.sunfish-qd4a.200805.003.img
fastboot reboot
get paid
xxTECRAxx said:
i relfashed the factory image, then ....
.....
fastboot flash boot root.boot.sunfish-qd4a.200805.003.img
fastboot reboot
get paid
Click to expand...
Click to collapse
This is for android 10 or 11 beta?
Zlatty said:
This is for android 10 or 11 beta?
Click to expand...
Click to collapse
10
Can anyone confirm if Rooted 10 + Magisk passes SafetyNet on the 4a?
You need to patch boot-s by latest canary magisk, especially if it`s BETA 11.
https://github.com/topjohnwu/magisk_files/raw/canary/app-debug.apk
Can someone help me out, I don't understand why I can't boot up after flashing the stock or the batched boot image. My bootloader says slot a and that's the one I flashed to. I tried the beta but right now I'm back on Android 10 and neither will let me boot up.

Oneplus 6 and magisk (stuck in fastboot )

hi guys,
my op6 is running stock oos with magisk as root. My phone worked fine for several months. Today I tried switching magisk from the stable version to canary by first upgrading the manager app and then hitting the direct install option. This failed several times and I got an error saying:
! Unable to unpack boot image
I thought this could be fixed by a reboot, but well... it wasn't. Now the phone only boots into the bootloader. I booted into twrp and tried to uninstall magisk via the uninstall.zip. This fails with error
-Unpacking boot image
! Unsupported/Unknown image format
- Unmounting partitions
cd /tmp/repackorig/ && /sbin/magiskboot unpack -h '/tmp/repackorig/boot.img' process ended with ERROR: 1
Error unpacking image
I don't really know what this means. I'm guessing my boot.img is corrupted?
Is there any way I can solve this problem without a factory reset? Can I just flash the stock boot.img via fastboot?
Do you have any idea what went wrong here, so that I can avoid the error next time?
Yesterday I broke op5 during the magisk update. The repair was simple, flash stock boot.img as boot partition.
I flashed it from TWRP.
Try dirty flashing your ROM without flashing magisk.
I'm also facing the same issues. Tried updating from the Magisk App. Didn't receive any error messages. After reboot I'm stuck in fastboot mode and I cannot access recovery. I do not have a backup of the data on this phone.
Is there any way I can still (temporarily) access the data? I'm panicking a little bit. My OOS is stock and rooted and hasn't been updated in about a year. I'm not sure if I can still figure out the specific OOS version that is installed.
EDIT:
Have been trying to flash the stock boot.img with fastboot. I've tried both 10.0.1 and 10.3.0 so far. Both resulted in the "BOOTLOADER UNLOCKED" warning and got stuck there. 10.3.1 is my last option, because I don't think I've updated this device since. Would it make a difference if I tried to do it from twrp?
EDIT2:
I do however have access to the recovery mode now. If I'm not mistaken this means I might be able to extract the data.
EDIT3:
The recovery mode is not asking me for my unlock pattern (which I think it should be doing) and is not showing up under 'adb devices'. I've tried flashing the boot.img of all OOS versions I can think of with fastboot, nothing will let me boot back in or let me access adb through the recovery. Am I ****ed?
MoresM said:
I'm also facing the same issues. Tried updating from the Magisk App. Didn't receive any error messages. After reboot I'm stuck in fastboot mode and I cannot access recovery. I do not have a backup of the data on this phone.
Is there any way I can still (temporarily) access the data? I'm panicking a little bit. My OOS is stock and rooted and hasn't been updated in about a year. I'm not sure if I can still figure out the specific OOS version that is installed.
EDIT:
Have been trying to flash the stock boot.img with fastboot. I've tried both 10.0.1 and 10.3.0 so far. Both resulted in the "BOOTLOADER UNLOCKED" warning and got stuck there. 10.3.1 is my last option, because I don't think I've updated this device since. Would it make a difference if I tried to do it from twrp?
EDIT2:
I do however have access to the recovery mode now. If I'm not mistaken this means I might be able to extract the data.
EDIT3:
The recovery mode is not asking me for my unlock pattern (which I think it should be doing) and is not showing up under 'adb devices'. I've tried flashing the boot.img of all OOS versions I can think of with fastboot, nothing will let me boot back in or let me access adb through the recovery. Am I ****ed?
Click to expand...
Click to collapse
Maybe it's worth trying change the slot and see if it will start? Of course from the fastboot level.
MoresM said:
I'm also facing the same issues. Tried updating from the Magisk App. Didn't receive any error messages. After reboot I'm stuck in fastboot mode and I cannot access recovery. I do not have a backup of the data on this phone.
Click to expand...
Click to collapse
I managed to fix it as well by flashing the stock boot.img for my software version to both slot_a and slot_b using fastboot. I left the active slot setting alone otherwise.
Afterwards I booted into twrp through fastboot and installed blu spark twrp and magisk 21.4 from there as a user suggested on the Magisk github: https://github.com/topjohnwu/Magisk/issues/3924
Note that github link also has a solution to flawlessly upgrade to latest Magisk without data loss but I haven't had the time to look at it.

Need help needed with fastboot(loop)

I've decided to upgrade to OOS11 stable and patch the boot before going into the rom. What I did was:
1. Flash latest TWRP (3.5.2_9-0)
2. Reboot to recovery
3. Flash ONLY OOS11 boot.img
4. Flash TWRP again
5. Install Magisk and Kirisakura-R 1.1.1 kernal (for f2fs support)
6. Reboot to recovery
Here I was going to do the same on other partition but TWRP failed to boot and screen kept flashing but I noticed that ADB was connected so I rebooted to fastboot and flash stock boot I've previously extracted from stock ROM. Now I face another problem, phone doesn't boot anywhere else but fastboot.
I've tried a few stuff to get it back.
# There were some cases where the phone won't boot with bootloader unlocked and stock boot so I managed to patch boot.img with Magisk using an emulator and then flash it.
# Tried booting into TWRP but phone phone would get stuck in "Fastboot mode" screen with fastboot still connected (And taking commands from PC).
# Tried flashing TWRP to boot partition which worked previously but this time the problem stayed and kept booting into fastboot.
A few more points that I should mention,
# I've backed up my entire phone using TWRP so I can unbrick it if I somehow manage to get into TWRP
# I don't have the backup on my computer. It's on the phone.
I absolutely can't lose those data. Yeah, mistake on my side for not backing up on my computer but to my defense, this never happened before so I let my guard down this time.
What options do I have left? Any hint would be appreciated. Thanks for reading

Help recover bricked OnePlus6

Hello, i'm panicating since I made a HUGE MISTAKE.
Some timee ago I unlocked my boot loader, installed twrp and susseffuly root with and old magisk version.
Now With my OOS 11.1.2.2 I tried to restore Magisk root.
I successfully installed TWRP, I still can enter in its recovery mode.
I followed this guide to install magisk again, but I'm so fool I used twrp .img as boot image as magisk_patched_img.
I used fastboot flash boot with that files and now my phone is locked in bootloader
I downloaded oos 11.1.1.1 image from here and used again fastboot flash boot... but still my phone is locked...
Now I can't enter TWRP anymore
There is a way to restore its boot?
Seems I found a way to use again my phone. In the oos 11.1.1.1 thread at post #23 there is a patched 11.1.2.2 image.
Since I was able to go in fastboot I flashed again the boot with 11.1.2.2 patched image.
Now I can power up my phone again, but the startup process is really SLOW than before. Is this an issue since I used OP6T patched image instead of OP6?

Categories

Resources