Question on boot.img - Google Pixel XL Questions & Answers

I have installed TWRP RC1 on my Verizon XL with unlocked bootloader.
When I re-flash back to stock using flash-all.bat, the stock recovery is not present anymore. I can put TWRP back on there if I choose, but if I re-flash boot.img (which I assume puts the stock recovery back), will that re-lock my bootloader, and then locking me out from root from then on?
Is there a way to put the stock recovery back without locking the bootloader? Thanks.

@Drashnar,
It's highly unusual for stock recovery not to be installed after flashing the flash-all. Stock recovery is included in the boot image. When you are in bootloader, if you select "Recovery" do you see Andy on his back? If so, at this screen hold the power button and briefly touch +volume. Voila, you're in stock recovery.
Your bootloader will not be relocked unless you specifically issue the fastboot command to relock it.

Once the bootloader is unlocked only you can relock it. Flashing ota's wont do it so your good going forward.
Sent from my Pixel XL using Tapatalk

cam30era said:
@Drashnar,
It's highly unusual for stock recovery not to be installed after flashing the flash-all. Stock recovery is included in the boot image. When you are in bootloader, if you select "Recovery" do you see Andy on his back? If so, at this screen hold the power button and briefly touch +volume. Voila, you're in stock recovery.
Your bootloader will not be relocked unless you specifically issue the fastboot command to relock it.
Click to expand...
Click to collapse
Oh. That's like no recovery I've ever seen then. I do get a small Andy on his back with "No command" below. I assumed (wrongly, it seems) that meant there was an issue getting stock recovery back. Thanks for the info.

Related

[Q] Can't boot into recovery?

First of all, I'm running the RUU GPE edition rom for my HTC one M8, I love it. However I want xposed framework, and all of it's goodies too, otherwise imo I should have stuck with Sense version. There is one problem though. I can't seem to boot into recovery, at all. When I attempt to boot into recovery via ADB, or from the bootloader it just shows me the google logo for a while, and restarts back to android homescreen.
Could this be because I may have flashed the wrong recovery? Initially I flashed the "hammerhead" recovery from TWRP, whatever the hell that is(thought I was getting it specific for my HTC one), later once I noticed I did that I simply reflashed the correct recovery. Could this be why, if so, how can I fix that? Can I remove the recovery and reflash it?
Spewed said:
Can I remove the recovery and reflash it?
Click to expand...
Click to collapse
No, flashing a recovery removes the old one, but you should do:
fastboot erase cache
BenPope said:
No, flashing a recovery removes the old one, but you should do:
fastboot erase cache
Click to expand...
Click to collapse
I assumed flashing another recovery merely erased the old one. so I tried "fastboot erase cache", then "fastboot flash recovery openrecovery-twrp-2.7.0.1-m8.img", to no avail, still unable to boot into my recovery by "adb reboot recovery", or any other method. I'm S-off, bootloader unlocked. When I was running sense I had s-off, custom recovery, root and twrp.
Any other ideas?
Spewed said:
I assumed flashing another recovery merely erased the old one. so I tried "fastboot erase cache", then "fastboot flash recovery openrecovery-twrp-2.7.0.1-m8.img", to no avail, still unable to boot into my recovery by "adb reboot recovery", or any other method. I'm S-off, bootloader unlocked. When I was running sense I had s-off, custom recovery, root and twrp.
Any other ideas?
Click to expand...
Click to collapse
Hmm, I assume you don't have a Sprint or Verizon M8?
BenPope said:
Hmm, I assume you don't have a Sprint or Verizon M8?
Click to expand...
Click to collapse
I have the ATT version.
All of this was fine, until I made the switch to GPE, which I was under the impression I actually downloaded the rooted version, seeing as how that is the one I selected. Sadly, no root, so I began the rooting method over, to no avail.
Well, apparently I got twrp on there.
I went ahead and got the HTC One all in one toolkit to see if somehow that might flash the recovery. Of course, the actual transfer of the recovery seemed to hang, and never finish. So I unplugged the phone, it said it failed. I attempted to manually boot into recovery using power and volume down. Of course, it didn't work. Attempted to flash the recovery again using the all in one toolkit. Same scenario, it hangs and fails. Once again, I manually tried to boot into recovery. This time, miraculously it works. What the hell? haha

Unable to flash custom recovery

Hi,
I have the Find 7 with the new display panel.
I wanted to flash the latest version of TWRP but failed. I do not know what I did wrong.
I can use adb and fastboot without any problem. When trying to flash recovery, it says there that the flash was successful but when I reboot to recovery, TWRP was not installed and the original Oppo recovery is still there.
The bootloader is unlocked. And I tried relocking and unlocking again but to no avail. Whenever I use the command "fastboot oem unlock", nothing happens to the phone.
I am currently on spectrum. I want to try other roms such as the lite COS 2.15 and also maxwen roms since that only those supports the new panel.
I am also trying to get root for my phone and it is impossible without custom recovery.
Thanks for any help.
I had poop loads of issues with getting custom recovery on my Find 7a. Eventually I used these instructions:
http://community.oppo.com/my/forum.php?mod=viewthread&tid=996
They work. Don't know if it's the versions of ADB or Fastboot or something.
Give it a go
limbot said:
I had poop loads of issues with getting custom recovery on my Find 7a. Eventually I used these instructions:
http://community.oppo.com/my/forum.php?mod=viewthread&tid=996
They work. Don't know if it's the versions of ADB or Fastboot or something.
Give it a go
Click to expand...
Click to collapse
I will give it a go when I get back. Thanks!
This is what a forumer from the official forum said and it works:
After you had successfully flash recovery via fastboot, you MUST NOT reboot the device. AFAIK, if you reboot the device it will restore the recovery back to stock oppo recovery.
So instead, you need to immediately press vol down & power button on the fastboot screen. Keep holding the button until you see the TWRP recovery screen. Hope that helps. Cheers!""
faidz85 said:
Hi,
I have the Find 7 with the new display panel.
I wanted to flash the latest version of TWRP but failed. I do not know what I did wrong.
I can use adb and fastboot without any problem. When trying to flash recovery, it says there that the flash was successful but when I reboot to recovery, TWRP was not installed and the original Oppo recovery is still there.
The bootloader is unlocked. And I tried relocking and unlocking again but to no avail. Whenever I use the command "fastboot oem unlock", nothing happens to the phone.
I am currently on spectrum. I want to try other roms such as the lite COS 2.15 and also maxwen roms since that only those supports the new panel.
I am also trying to get root for my phone and it is impossible without custom recovery.
Thanks for any help.
Click to expand...
Click to collapse
Can u teach me how to unlock bootloader.. because when I flash twrp recovery img my fon stuck at fastboot menu, cannot enter the recovery menu.
Some say I get this problem becos I not unlock my bootloader..
Im trying to flash miui os..huhuhu
cikgutan said:
Can u teach me how to unlock bootloader.. because when I flash twrp recovery img my fon stuck at fastboot menu, cannot enter the recovery menu.
Some say I get this problem becos I not unlock my bootloader..
Im trying to flash miui os..huhuhu
Click to expand...
Click to collapse
fastboot oem unlock in bootloader mode.
azeem40 said:
fastboot oem unlock in bootloader mode.
Click to expand...
Click to collapse
Unlocking bootloader erases data?
Mine wouldn't flash recovery. It said successful but I still had oppo recovery 1.2 and it only worked when I found the latest official twrp over version 3. after flashing, I disconnected usb and then held down power button to shut the phone down. It then was able to boot to twrp ok.
I used the latest one.
https://dl.twrp.me/find7/

Only fastboot works on my zenfone.

Hi. I'm terribly lost.
I bought a ze500kl (z00ed) and played around with root, twrp and marshmallow. The last thing I did was installing marshmallow and then I wanted to flash twrp.
What I ended up with is a phone which you can't boot, you can't get into recovery and I'm not even able to flash any other recovery than the stock one. And even if I flash it 'successsuccessfully' I'm still not able to boot into it.
Code:
fastboot reboot-bootloader
yields the phone starting back into fastboot mode.
As far as I understood my bootloader seems to be locked.
How can I get my phone working again?
The command fastboot reboot-bootloader only boots you into the bootloader, meaning to the fastboot. If you want to boot to recovery, you need to select this option in the fastboot menu. I don't remember if you can use a fastboot command for that, and I can't turn off my phone to check.
On the ze500kl, when phone off, press vol- and power to enter recovery.
some progress
Thanks for the info. I did already try to wrok with the vol- button but it just keeps showing the ASUS and android logos and doesn't start twrp. I've succeeded to install the system thanks to the following site: (I c'an't post it cuz I'm not here long enough) however now I'm again not getting into twrp.
vanderguru said:
Thanks for the info. I did already try to wrok with the vol- button but it just keeps showing the ASUS and android logos and doesn't start twrp. I've succeeded to install the system thanks to the following site: (I c'an't post it cuz I'm not here long enough) however now I'm again not getting into twrp.
Click to expand...
Click to collapse
If you haven't unlocked your bootloader then you can't flash TWRP. You need to unlock bootloader. I have the 551ML so can't help here. Try the search function and read...
Try to erase your cache partition in fastboot with the command "fastboot erase cache", this might get you booting back into Android but since you've been playing around without doing the necessary reading, no guarantees...
To get to recovery, stock or custom, you must go through fastboot or bootloader mode. You need to use the volume key until it says recovery then hit power key. It will reboot the phone and most probably show you a droid on its back with "Error" above it (if it's still stock). Hold down power and press volume up to enter recovery.
ultramag69 said:
If you haven't unlocked your bootloader then you can't flash TWRP. You need to unlock bootloader. I have the 551ML so can't help here. Try the search function and read...
Try to erase your cache partition in fastboot with the command "fastboot erase cache", this might get you booting back into Android but since you've been playing around without doing the necessary reading, no guarantees...
To get to recovery, stock or custom, you must go through fastboot or bootloader mode. You need to use the volume key until it says recovery then hit power key. It will reboot the phone and most probably show you a droid on its back with "Error" above it (if it's still stock). Hold down power and press volume up to enter recovery.
Click to expand...
Click to collapse
I did qutite some experimenting today. What I'm currently ended up with is:
1) I can boot into the system.
2) I can't boot into the recovery of the Phone
3) I can boot the StockRecovery via fastboot however I can't boot TWRP by any procedure (Although I was able to do so during my experimenting. I don't understand why it sometimes works and sometimes doesn't)
4) My Phone is Rooted (at least it says so)
5) I have run the Unlock.Zip via TWRP when I had TWRP flashed however now I'm again at a point where I can't start TWRP at all.
I find this very confusing and I can't see any pattern to it. For now I'm OK with having a more or less functional phone but I'd like it to be more reliable and predictable in behaviour.
First of all you can't boot directly to recovery the way you are thinking. Booting into fastboot (actually called the bootloader) then selecting recovery is the normal way. You can't have 2 recoveries on your phone. So you probably did the tethered version of TWRP the first time. I don't have the link handy but you need to get the official TWRP and use fastboot to install.
Sent from my ASUS_Z00A using Tapatalk
You HAVEN'T UNLOCKED YOUR BOOTLOADER...
No recovery or custom rom will flash successfully... It will say it will, but you will either go into bootloop or just get stuck at ASUS logo...
Nothing will stick until the bootloader is unlocked, if you use tethered TWRP and flash a custom rom you will softbrick your phone until you flash a stock rom back on.
If you go ahead and flash TWRP onto your phone using fastboot then you will have NO recovery on your phone.
You have been warned...
ultramag69 said:
You HAVEN'T UNLOCKED YOUR BOOTLOADER...
No recovery or custom rom will flash successfully... It will say it will, but you will either go into bootloop or just get stuck at ASUS logo...
Nothing will stick until the bootloader is unlocked, if you use tethered TWRP and flash a custom rom you will softbrick your phone until you flash a stock rom back on.
If you go ahead and flash TWRP onto your phone using fastboot then you will have NO recovery on your phone.
You have been warned...
Click to expand...
Click to collapse
Well I disagree and I think you are wrong . I strongly assume that I have TWRP installed as I'm able to boot into it without having the phone connected to the computer.
Consequently I HAVE unlocked my bootloader and I DO HAVE a recovery on my phone. And of course I'm not able to install a custom rom seing that there aren't any for my model yet.
I think however that I've (for now) [SOLVED] my problem and we're drifting away from the original topic. Thanks for your quick help :highfive:

[HELP GUIDE] - Can't flash TWRP on Oxygen OS 3.2.1

Today I have faced a strange situation, I installed TWRP (after unlocking the bootloader) on my OP3 as soon as I received the device then I flashed custom ROM by @Grarak http://forum.xda-developers.com/oneplus-3/development/rom-unofficial-cyanogenmod-13-t3399089.
After using for some days I decided to give Oxygen OS another try, so I wiped the cache,data,system and Flashed full OTA provided by @namanbhalla https://forums.oneplus.net/threads/...ficial-oxygen-os-roms-and-ota-updates.450783/
Every thing went smooth but after starting up I wasn't able to goto twrp, for some strange reason twrp was automatically replaced with stock recovery. OK, I decided to reflash twrp, but bang! after so many flashing I wasn't able to boot into twrp, still there was stock recovery.
Solution:
1) fastboot oem unlock (re run even if it says already unlocked)
2) fastboot flash recovery twrp-3.0.2-0-oneplus3.img
now TWRP is installed.
I not Android Developer and cant guarantee above will work and wont harm your device. Try at your own risk.
that is all not needed, i have had this happen to me multiple times reflashing Stock and Stock recovery replaces TWRP, all u have to do is boot up to fastboot mode and flash TWRP, do not reboot, use Power + Vol + and when the Unlocked bootloader screen comes up press the VOL key and click recovery and TWRP is back. no need to do the unlock bootloader again, unless u unchecked it, just make sure it is checked when flashing the Stock rom again or u can just use flashify if u rooted stock before the recovery got replaced somehow, i have even had this happen on FreedomOS 3.2.1

can anyone help me? phone is stuck!

okay so i tried to flash a cypher OS rom on my sultanxda CM13 and my phone is currently not going into recovery so basically i am stuck in fastbood mode . my device state is unlocked and when i restart or try to go into recovery the phone just turns off and does nothing. the only way i can actually turn the phone on is by holding volume up + power + home (hard reset tactic)
can anyone help me?
so where do i go from here? i tried the toolkit unlocked and re-locked the bootloader, tried to flash stock recovery img, tried to flashing twrp, nothing works guys.
flash Original Rom
Make sure you're using latest modified recovery (28) by eng.stk.
From your description the phone most probably doesn't actually turn off, it just displays black screen (common issue caused by TWRP incompatibility).
Sent from my OnePlus 3 using Tapatalk
flexforall1 said:
i tried the toolkit unlocked and re-locked the bootloader, tried to flash stock recovery img, tried to flashing twrp, nothing works guys.
Click to expand...
Click to collapse
You re-locked the bootloader while you were still on a custom ROM and/or recovery?

Categories

Resources