Update to 5.1.1 - Custom Recovery - Nexus 4 Q&A, Help & Troubleshooting

Hi! I have my phone rooted and it has TWRP installed. Recently, I received the 5.1.1 OTA update, but when I hit the install button, it boots to the recovery and does nothing. How do I install the update using my current recovery?
Thanks!

__ByTeS__ said:
Hi! I have my phone rooted and it has TWRP installed. Recently, I received the 5.1.1 OTA update, but when I hit the install button, it boots to the recovery and does nothing. How do I install the update using my current recovery?
Thanks!
Click to expand...
Click to collapse
Flash the stock images directly, or flash your phone back to stock/unroot and download the OTA from your phone and it will install.
If you have a custom recovery, the OTA will always fail verification checks I think now on 5.+.

ariesgodofwar said:
Flash the stock images directly, or flash your phone back to stock/unroot and download the OTA from your phone and it will install.
If you have a custom recovery, the OTA will always fail verification checks I think now on 5.+.
Click to expand...
Click to collapse
But if I flash the stock image, I'll have to reinstall the apps, and such. Right?

__ByTeS__ said:
But if I flash the stock image, I'll have to reinstall the apps, and such. Right?
Click to expand...
Click to collapse
Yes, unless you back them up. Otherwise, you will have to redownload and install. You will also lose anything you have stored locally unless you remove the -w from the flashall.bat script (which will prevent the wipe of the partitions).

just download the image from google and extract the system and boot images and flash them in fastboot

Related

Having flashed Lollipop, will I get OTA updates?

I used Google's batch file on windows to flash the stock 5.0, having unlocked the bootloader and also installed the chainfire root. Just wondering whether I'll get any fixes, or whether i'll have to always repeat this process, wiping out everything on the device in the process.
You may get prompted to download and install new updates when they arrive, but they will fail upon installation unless you're 100% stock.
there will be an OTA update notification if you have stock rom wether you have a sotck or a custom recovery. But if you download and install the OTA update having a custom recovery, the installation will fail and will show an installation or update error. You will be stucked in "no command" image. so better restore your stock recovery as well before downloading any OTA updates..
igeigeige said:
there will be an OTA update notification if you have stock rom wether you have a sotck or a custom recovery. But if you download and install the OTA update having a custom recovery, the installation will fail and will show an installation or update error. You will be stucked in "no command" image. so better restore your stock recovery as well before downloading any OTA updates..
Click to expand...
Click to collapse
Does the Google image download page (https://developers.google.com/android/nexus/images) get updated as Lollipop gets updated? Or am I going to have to do OTA updates?
hmm.. im not sure which comes first.. but, if you want to get OTA, you'll have to wait for your device to get its turn for the notification to appear. The effect will still be the same though if you flash that google image to your device.. And flashing that device, will save you time from waiting for your OTA to appear on your device.
Cheers! :good:
igeigeige said:
hmm.. im not sure which comes first.. but, if you want to get OTA, you'll have to wait for your device to get its turn for the notification to appear. The effect will still be the same though if you flash that google image to your device.. And flashing that device, will save you time from waiting for your OTA to appear on your device.
Cheers! :good:
Click to expand...
Click to collapse
Well, I'm a bit confused. I'm on stock, but i need root, so i installed cfar, which I think included super su. when a new version of super su came out (i was alerted via google play), i needed to install the twrp recovery (which I didn't have installed at that point) to update it. So I guess I'm not stock any more, even though I've not actually put a non-stock image on. So even if the OTA update message popped up, I doubt it's safe to install it that way, even if it let me. I'm just not sure whether I need to a factory reset/wipe etc before updating, or if I can do a dirty update (the OTA is effectively a dirty update, isn't it?). And, like i said, i'm not sure whether that page gets updated with new images, or whether you're supposed to just put the initial one down and then do OTA updates (and only then root, change the recovery etc).
You have a stock rom but with a CUSTOM recovery. Yes, ota will prompt you to update, but DON'T. You should convert to stock recovery first. Because if you do, the update will push through, but once it asks you to boot to make the update in effect, you will have a NO COMMAND error - bootloop, and only fastboot and recovery (sort of dysfunctional). Just like most of the people here, including me. So make backup of your files first before doing the update. Cheers :good:
Sent from my Nexus 10 using XDA Premium 4 mobile app
If having a custom recovery is an issue, why could I flash ota zips from custom recoveries ever since buying the tablet?
igeigeige said:
there will be an OTA update notification if you have stock rom wether you have a sotck or a custom recovery. But if you download and install the OTA update having a custom recovery, the installation will fail and will show an installation or update error. You will be stucked in "no command" image. so better restore your stock recovery as well before downloading any OTA updates..
Click to expand...
Click to collapse
Should have read this first. In the bootloop. Tried flashing back to stuck with nexus toolkit. No luck. Suggestions?
Rizz67 said:
Should have read this first. In the bootloop. Tried flashing back to stuck with nexus toolkit. No luck. Suggestions?
Click to expand...
Click to collapse
Hi, what i did was flashing the official factory image from google via fastboot/bootloader... Make a nandroid backup first though.. Because you'll need to clean flash (system partition/cache and data) to avoid future problems.
please educate me
A few weeks ago I rooted my N4 with CFAR (& of course had to wipe out everything). My understanding was that now that my bootloader is unlocked, I can sideload new images, thus sparing me a rewipe -- & in my ignorance, was anticipating that ChainFire would make 5.0.1 images in due course.
So, If I want to root subsequent 5.x.x releases, how would this work in real life??
Can i just restore stock recovery and then install the 5.0.1 ota update without losing everything?

[Q] NEXUS 4 Wont Update to Android 5.0.1

Hi,
I have a rooted Nexus 4 with android 5.0 lollipop build LRX21T.
I have TWRP recovery installed version : v2.8.0.1
The device id rooted via placing the zip file in the device and flashng it via TWRP recovery.
But i am not able to update to android 5.0.1 via google OTA update.
Everytime i try to install the 5.0.1 OTA it goes to TWRP recovery.
I found that the downloaded OTA update file is placed in /cache folder , so i try to update it manually but failed as it shows some update partition error.
"E: error executing updater binary in zip '/cache/e93b********************.signed-occam-LRX22c-from-LRX21T.e93b****.zip"
update partition details.....
I think i am getting this error because the device is rooted.
Can someone guide me how to update my device..and if this because of the rooted device how to unroot without going back to stock.
Thanks in advance....
You can't flash the ota in twrp. You have to be 100% stock recovery, system, kernel, and radio. Flash the stock recovery with fastboot then try the ota.
Sent from my Nexus 9 using XDA Free mobile app
I flashed the stock recovery the OTA update continued in the stock recovery , then it showed a error....and i had to restart the phone ...now the ota update has disappeared with the phone still in android 5.0 ...Can you tell me how to get the OTA update back...?
1)Does the error came because the phone is still rooted ?
2) If so how do i remove the root with returning stock .?
3) also if i root and return to stock will it wipe my phone apps and their data...
Now i got the OTA update downloaded manually on my laptop and and booted into stock recovery to try to sideload the zip it gave me the error
"package expects build fingerprint of google /occam/mako:5.0/LRX21T or google /occam/mako:5.0/LRX22C user release keys; this device has google/occam/mako:4.4/KRT160 user release keys .....
This is weird as i am running android android lollipop 5.0 LRX21T and not android kitkat....
Did you flash mods while rooted?
Sent from my Nexus 4
arkangel72 said:
Did you flash mods while rooted?
Sent from my Nexus 4
Click to expand...
Click to collapse
Tried both...with and without Root....same error....
Try flashing factory image.
The OTA will flash only on the stock recovery it won't work in any modified/custom recovery. So flash stock recovery first then you are good to go.
Edit: You may also try flashing the factory image, u may lose your data while doing that
Head to https://developers.google.com/android/nexus/images and download the latest image, flashing procedure is explained there too.Its not compulsory to lock bootloader afterwards BTW, its personal preference.
sachin.parmar100 said:
The OTA will flash only on the stock recovery it won't work in any modified/custom recovery. So flash stock recovery first then you are good to go.
Edit: You may also try flashing the factory image, u may lose your data while doing that
Head to https://developers.google.com/android/nexus/images and download the latest image, flashing procedure is explained there too.Its not compulsory to lock bootloader afterwards BTW, its personal preference.
Click to expand...
Click to collapse
Actually i dont want to flash stock as i will lose all the data in the process....
Any other way....?
If there is no other way could you please suggest any tool kit which will backup all data including sms ,contact, call logs and all app data and /data/media folder. in one go ...?
use advanced backup from twrp backup menu and select data only to create a nandroid backup of data only
you can also use titanium backup to backup to choose what to backup and restore it afterwards but it will need root again.
sync your contacts with google server
Flah rom in fastboot
Download factory image, flash system, bootloader and recovery manually. You won't lose your data.
You need stock recovery to proceed flashing the OTA, custom recovery won't flash the OTA, i don't think being rooted is the issue Just flash the stock recovery to solve the problem.
sachin.parmar100 said:
You need stock recovery to proceed flashing the OTA, custom recovery won't flash the OTA, i don't think being rooted is the issue Just flash the stock recovery to solve the problem.
Click to expand...
Click to collapse
Rooted IS an issue. You can't be rooted and apply the OTA file, it will fail every time. As a previous poster has said, the phone MUST have stock bootloader, recovery and be not rooted for the stock OTA's to apply. If they see any modification during the process, they abort. It's been discussed many times.
Yaz75 said:
Rooted IS an issue. You can't be rooted and apply the OTA file, it will fail every time. As a previous poster has said, the phone MUST have stock bootloader, recovery and be not rooted for the stock OTA's to apply. If they see any modification during the process, they abort. It's been discussed many times.
Click to expand...
Click to collapse
thanks for pointing out i was so wrong

So the new EU Firmware is out...

Does anyone know how I can update when having TWRP installed and rooted ?
The phone says there is an update but doesnt install.
So I used yotaflasher to download the new firmware and took the recovery.img from the folder
and flashed via fastboot the stock recovery.img.
But the phone always says there is an update and reboots. then the green android is displayed but only for five seconds. then it boots and says again that there is an update and if I want to install it.
And so on...
Do I have another chance to update my 5.0 Firmware.
I donĀ“t want to lose my apps and userDAta.
Can I still flash with yotaflasher and NOT lose all my settings and updates ?
Thanks in advance.
yotaflasher
is what I used. I was rooted, but still with stock recovery.
yotaflasher writes all partitions, and asks for user data. if you answer no all apps and settings are preserved.
maybe there is still the update file in /firmware ? try deleting.
good luck,
Stefan
I'm in the same boat. Rooted, twrp 2.8.5, got the OTA notification. After it downloads, phone shutsdown and boots to twrp and sits there. From twrp, what can I do to help it along?
Thanks
terraformer said:
I'm in the same boat. Rooted, twrp 2.8.5, got the OTA notification. After it downloads, phone shutsdown and boots to twrp and sits there. From twrp, what can I do to help it along?
Thanks
Click to expand...
Click to collapse
The easiest way was to download yotaflasher, let it load the latest firmware and boot your mobile phone into bootloader mode (via quickboot app).
Connect your phone, then let yotaflasher flash the new firmware but say "NO" to overwriting UserData.
Thats it...
After all was setup again (and rooted) I reflashed TWRP and made a backup.
terraformer said:
I'm in the same boat. Rooted, twrp 2.8.5, got the OTA notification. After it downloads, phone shutsdown and boots to twrp and sits there. From twrp, what can I do to help it along?
Thanks
Click to expand...
Click to collapse
You need stock recovery to be flashed for auto-update...

New update to fix voLTE 911 bug...

So this morning I got an update to fix the voLTE bug. I'm unlocked with twrp installed and rooted. Just for the sake of experimenting I tried installing it. Well that didn't work. Just gets stuck in twrp recovery and you have to power the phone off completely to get it to boot. I guess my question (even though it's a little early) is there a way to install the update without reverting back to stock?
EDIT: Link to the zip
https://drive.google.com/open?id=0BxqNotAWlwLUQ1Fzcjc2YXd4QzA
I don't believe so.
In the past you either had to go back to stock or wait on someone to create a compatible update for rooted devices.
Can you post link to zip?
If you are rooted, you can find the zip in cache folder in recovery.
Can you add what variant and build you are using before the update? Also the build afterwards?
KapilFaujdar said:
Can you post link to zip?
If you are rooted, you can find the zip in cache folder in recovery.
Click to expand...
Click to collapse
I got the update, but all I see on my magisk rooted G5+ in /cache/recovery are log files and the fstab files. Anywhere else to look?
gghose said:
I got the update, but all I see on my magisk rooted G5+ in /cache/recovery are log files and the fstab files. Anywhere else to look?
Click to expand...
Click to collapse
Yeah I can't find anything in that folder either.
I received the update and applied it. I am not rooted.
I have the XT1687 model.
My current build number is NPN25.137-35
My device BL unlocked, TWRP installed and rooted with magisck.
I'm getting the update notification and splash screens several times daily.
Anyone rooted try installing the update with Flashfire app?
bvsbutthd101 said:
So this morning I got an update to fix the voLTE bug. I'm unlocked with twrp installed and rooted. Just for the sake of experimenting I tried installing it. Well that didn't work. Just gets stuck in twrp recovery and you have to power the phone off completely to get it to boot. I guess my question (even though it's a little early) is there a way to install the update without reverting back to stock?
Click to expand...
Click to collapse
If you have systemless supersu, you should just be able to apply the update after reverting to stock recovery.
So I found where the zip downloads. I wonder what flashing it in twrp would do?
EDIT: Here's the link to the zip and I've put it in the OP.
https://drive.google.com/open?id=0BxqNotAWlwLUQ1Fzcjc2YXd4QzA
glight0 said:
My device BL unlocked, TWRP installed and rooted with magisck.
I'm getting the update notification and splash screens several times daily.
Anyone rooted try installing the update with Flashfire app?
Click to expand...
Click to collapse
OK, so I tried flashing recovery.img from stock firmware build 33. But the OTA update will not install, instead I get an error after downloading and rebooting (red triangle at recovery mode).
So I tried fully reverting to stock firmware but I decided to skip over erasing userdata. Afterward the OTA downloaded and installed successfully. Keeping userdata does not seem to have caused an issue.
My problem now though is how to get root back without having to wipe userdata after re-flashing TWRP.
Or is this not possible and if I want to root I must first wipe userdata so that TWRP can read internal memory?
bvsbutthd101 said:
So I found where the zip downloads. I wonder what flashing it in twrp would do?
EDIT: Here's the link to the zip and I've put it in the OP.
https://drive.google.com/open?id=0BxqNotAWlwLUQ1Fzcjc2YXd4QzA
Click to expand...
Click to collapse
Just tried flashing it with TWRP and no luck:
Verifying current system....
E3002: Package expects build thumbprint of 7.0/NPN25.137-35/37:user/release-keys or 7.0/NPN25.137-33/35:user/release-keys; this device has .
Updated process ended with ERROR: 7
which doesn't make much sense since I rooted the stock ROM (Build number reads NPN25.137-33).
If your using a custom recovery flash the stock recovery, then go to the stock recovery and using your computer flash using adb sideboard command. I assume you already know how to do this. Hope that helps.
gghose said:
Just tried flashing it with TWRP and no luck:
Verifying current system....
E3002: Package expects build thumbprint of 7.0/NPN25.137-35/37:user/release-keys or 7.0/NPN25.137-33/35:user/release-keys; this device has .
Updated process ended with ERROR: 7
which doesn't make much sense since I rooted the stock ROM (Build number reads NPN25.137-33).
Click to expand...
Click to collapse
I'm stuck in the same boat... no idea how to flash the stock recovery and sideboard, what that even means, or if that would break root. I just followed the step-by-step "how to root" video when I first got the phone
There's a workaround to disable the "advanced LTE" or whatever it was called, so I did that. But in the meantime until a more "user friendly" means of updating is available, is there a way I can get rid of this nag screen? Way back on an earlier device (Samsung Charge?) I remember manually editing a "build.prop" file or something to match the latest version so I wouldn't keep getting the software update nag. Is there something that will do the same here, or is there a system app I can freeze in TiB?
My best guess is freezing "Moto Actions 03.022.1.4-N" because it's showing "(updated)" on the side.
rellim113 said:
I'm stuck in the same boat... no idea how to flash the stock recovery and sideboard, what that even means, or if that would break root. I just followed the step-by-step "how to root" video when I first got the phone .
Click to expand...
Click to collapse
What he means is you need to download the stock rom, unzip it, then boot phone to bootloader mode and connect to PC. Then flash the recovery.IMG from the stock rom folder with command prompt:
Fastboot flash recovery recovery.img
Then you can on the phone tell it to boot to recovery mode. This will be a screen with Android on his back and the words NO Command on the bottom. Then plug to PC and use adb command to sideload the update zip like this:
adb sideload [nameofupdatefile].Zip
glight0 said:
What he means is you need to download the stock rom, unzip it, then boot phone to bootloader mode and connect to PC. Then flash the recovery.IMG from the stock rom folder with command prompt:
Fastboot flash recovery recovery.img
Then you can on the phone tell it to boot to recovery mode. This will be a screen with Android on his back and the words NO Command on the bottom. Then plug to PC and use adb command to sideload the update zip like this:
adb sideload [nameofupdatefile].Zip
Click to expand...
Click to collapse
Strange, reflashed the stock recovery and adb can't see it (adb devices returns nothing). And when trying to install it via the normal OTA way, the stock recovery tries to install but ends with an error.
That's what happened to me when I tried reverting to stock recovery and then trying to install update from phone Settings app.
I ended up having to revert to stock rom to get ota to apply with settings app. But now I am trying to root again but after installing TWRP data is encrypted again. So looks like I will have to wipe data before re-rooting.

How to update firmware if you've already flashed TWRP

I figured out how to update after flashing twrp. Maybe obvious to some but I've seen questions about it.
The zip in the "Convert CA to WW" thread has the stock rom in a zip file. Open it and inside is a recovery.img file in it, extract it to your adb folder on your PC.
Download the firmware update from ASUS official site and save to the root of your sd card or internal storage (it will recognize both.)
Reboot into fastboot on your device.
fastboot flash recovery recovery.img
When that finishes reboot and your phone should find the update and ask if you want to install. Do so. You may need to power cycle first.
When you're done you can reflash TWRP.
Once you have TWRP you can flash Magisk or SuperSU as you see fit.
It's painless.
An old post from you, but thank you. This was really easy. I've spent 2 days trying to figure out how to upgrade without restore stock rom, boot etc. and lose all data. I was about to give up when I saw this post, I didn't expect it to work - to easy. But I could give it a try.
This was painless.
Then it took me 3 hours to figure out how to reinstall twrp again, it wasn't just to flash and reboot I had to boot directly into recovery after flash. But that is another story.
Thanks, you just saved me some time!
Kasdarack said:
I figured out how to update after flashing twrp. Maybe obvious to some but I've seen questions about it.
The zip in the "Convert CA to WW" thread has the stock rom in a zip file. Open it and inside is a recovery.img file in it, extract it to your adb folder on your PC.
Download the firmware update from ASUS official site and save to the root of your sd card or internal storage (it will recognize both.)
Reboot into fastboot on your device.
fastboot flash recovery recovery.img
When that finishes reboot and your phone should find the update and ask if you want to install. Do so. You may need to power cycle first.
When you're done you can reflash TWRP.
Once you have TWRP you can flash Magisk or SuperSU as you see fit.
It's painless.
Click to expand...
Click to collapse
Will this recovery work for upgrading nougat to oreo?
Em Kay said:
Will this recovery work for upgrading nougat to oreo?
Click to expand...
Click to collapse
You need to upgrade to latest N - ...14.2020.1712.85, once you do that you should get Oreo as FOTA after reboot
DanFreed said:
You need to upgrade to latest N - ...14.2020.1712.85, once you do that you should get Oreo as FOTA after reboot
Click to expand...
Click to collapse
Thanks, man.
Can I manually update with the recovery by downloading the rom?
I think, the FOTA won't arrive as I've rooted my phone.
Em Kay said:
Thanks, man.
Can I manually update with the recovery by downloading the rom?
I think, the FOTA won't arrive as I've rooted my phone.
Click to expand...
Click to collapse
When you flash stock recovery and update you unroot, so you will get FOTA. Just update to Oreo and then flash twrp and Magisk (or whatever you use) again.
I am rooted and updated to Oreo then chose updates involving battery improvement and/or system stability (downloaded to external sd), after installed the last update I flashed twrp and rooted again.
You need to flash stock recovery before update. The phone will find the updated with custom recovery but update will fail.
The site I downloaded stock recovery from is down so you have to search for it, or download RAW stock rom and extract the recovery from it
DanFreed said:
You need to flash stock recovery before update. The phone will find the updated with custom recovery but update will fail.
The site I downloaded stock recovery from is down so you have to search for it, or download RAW stock rom and extract the recovery from it
Click to expand...
Click to collapse
Anyone know where I can get stock recovery or how to extract from stock image from the ASUS site?
derbend said:
Anyone know where I can get stock recovery or how to extract from stock image from the ASUS site?
Click to expand...
Click to collapse
Seems like Mega is up again. You should find stock recovery here
https://mega.nz/#F!lw02CLpA!hpetR2-Sec1F__gHPNRE9Q!xhVEhCjB
DanFreed said:
Seems like Mega is up again. You should find stock recovery here
https://mega.nz/#F!lw02CLpA!hpetR2-Sec1F__gHPNRE9Q!xhVEhCjB
Click to expand...
Click to collapse
Thanks! I ended up having to use the 11.41.87.2 recovery in order to flash a Nougat update - it wouldn't work with the older recoveries.

Categories

Resources