Ok,
I almost always flash factory images through fastboot and I am very comfortable with that method. Flashing OTAs on a less than perfect factory image (Magisk, root, TWRP etc.) I am not so familiar with.
When my phone gets the "there is a update available" message how can I go about flashing the new 7.1.2? Flashify? Is there a step by step because I almost did this and it gave me a pretty scary warning message before I started that made me back out.
I would love to flash the factory images, but apparently Google doesn't like uploading the 6p images.
Flashfire??
Sent from my Nexus+6P using Tapatalk
GatorsUF said:
Ok,
I almost always flash factory images through fastboot and I am very comfortable with that method. Flashing OTAs on a less than perfect factory image (Magisk, root, TWRP etc.) I am not so familiar with.
When my phone gets the "there is a update available" message how can I go about flashing the new 7.1.2? Flashify? Is there a step by step because I almost did this and it gave me a pretty scary warning message before I started that made me back out.
I would love to flash the factory images, but apparently Google doesn't like uploading the 6p images.
Click to expand...
Click to collapse
Actually it's probably good that you stopped. I read that Flashify wasn't successful at flashing 7.1.2 and that it would get stuck during the process. Your best bet would be to flash a stock image to go back to complete stock, update the OTA normally (you will get the notification that the update is available very quickly) then reroot and do what you want after.
GatorsUF said:
Ok,
I almost always flash factory images through fastboot and I am very comfortable with that method. Flashing OTAs on a less than perfect factory image (Magisk, root, TWRP etc.) I am not so familiar with. When my phone gets the "there is a update available" message how can I go about flashing the new 7.1.2? Flashify? Is there a step by step because I almost did this and it gave me a pretty scary warning message before I started that made me back out. I would love to flash the factory images, but apparently Google doesn't like uploading the 6p images.
Click to expand...
Click to collapse
I used FF to update using the full beta image. Select boot, system, vendor partitions and leave Recovery and Modem Firmware unticked. Next, default options "Inject SuperSU" and "Preserve Recovery". Flash. When you get done, the phone will fully boot up into 7.1.2. but you will still be on the previous bootloader and radio. The bootloader and radio .img files are included in the full beta image, so I just copied those two into my ADB folder and fastboot flashed them. I opened flash-all.bat with Notepad and copy/pasted the lines below to the command line. Note, I am running stock rom rooted TWRP and custom kernel, but not Magisk... but it should work the same. Hope this helps.
fastboot flash bootloader bootloader-angler-angler-03.67.img
fastboot reboot-bootloader
flash radio radio-angler-angler-03.81.img
Related
All,
Thanks in advance for any help you can provide. I have a Nexus 4 that I rooted and installed CWM recovery on, but I never installed any new kernels, ROMs, or radios. I'm currently on 4.4.4 and I want to upgrade to Lollipop. The OTA upgrade failed. So I tried returning to stock recovery and doing both the OTA and adb sideloading the OTA zip. Both fail.
The error message is "Package expects build fingerprint of google/occam/mako:4.4.4/KTU84P/1227136:user/release-keys or google/occam/mako:5.0/LRX21T/1576899:user/release-keys; this device has google/occam/mako:4.4/KRT160/907817:user/release-keys." (But I definitely have 4.4.4 on my phone, not 4.4.0.)
The extra difficulty is that I really, really do not want to wipe my phone. I have a lot of apps with a lot of configuration and other user data. So is there anything I can do? I guess I should try unrooting somehow? Or is there some other zip I can download that, through some type of recovery, will install the OTA without doing this check and also without wiping me?
Thanks again!
moriarty00 said:
All,
Thanks in advance for any help you can provide. I have a Nexus 4 that I rooted and installed CWM recovery on, but I never installed any new kernels, ROMs, or radios. I'm currently on 4.4.4 and I want to upgrade to Lollipop. The OTA upgrade failed. So I tried returning to stock recovery and doing both the OTA and adb sideloading the OTA zip. Both fail.
The error message is "Package expects build fingerprint of google/occam/mako:4.4.4/KTU84P/1227136:user/release-keys or google/occam/mako:5.0/LRX21T/1576899:user/release-keys; this device has google/occam/mako:4.4/KRT160/907817:user/release-keys." (But I definitely have 4.4.4 on my phone, not 4.4.0.)
The extra difficulty is that I really, really do not want to wipe my phone. I have a lot of apps with a lot of configuration and other user data. So is there anything I can do? I guess I should try unrooting somehow? Or is there some other zip I can download that, through some type of recovery, will install the OTA without doing this check and also without wiping me?
Thanks again!
Click to expand...
Click to collapse
OTA wants complete stock and obviously it doesn't think so about your phone. One option could be to back up to the cloud or some place outside the phone with TiBu (or whatever backup app you trust), then flash lollipop and try restore from TiBu. Another option would be to unroot (Supersu has an option to completely unroot), then retry.
Actually, I figured out what works! This was on a stock rooted device with stock recovery, but I bet it would work with custom recovery too. Instructions modified from https://pay.reddit.com/r/nexus4/comments/1qny3f/howto_update_your_stock_w_lte_nexus_4_without/ .
1. Download the image you want from https://developers.google.com/android/nexus/images . Extract it, extract the .zip file inside it too, and collect all of the .img files into one folder.
2. adb reboot bootloader (and wait until the bootloader comes up)
3. fastboot flash bootloader bootloader-mako-makoz30f.img (or whatever file has a similar name, if you got a different image than I did)
4. fastboot reboot-bootloader (and wait until the bootloader comes back up)
5. fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1701.04.img (or whatever file has a similar name, if you got a different image than I did)
6. fastboot reboot-bootloader (and wait until the bootloader comes back up)
7. fastboot flash boot boot.img
8. fastboot flash recovery recovery.img
9. fastboot flash system system.img
10. fastboot format cache
11. fastboot reboot
12. Don't panic unless you've seen the startup animation for at least 15 minutes without anything else happening.
I lost root, but I imagine re-custom-recoverying and re-rooting won't be any harder than the first time around.
Hi moriarty00,
I'm going to try the same procedure, thank you for posting this.
Can you confirm that your data and app are safe after the upgrade?
moriarty00 said:
Actually, I figured out what works! This was on a stock rooted device with stock recovery, but I bet it would work with custom recovery too. Instructions modified from https://pay.reddit.com/r/nexus4/comments/1qny3f/howto_update_your_stock_w_lte_nexus_4_without/ .
1. Download the image you want from https://developers.google.com/android/nexus/images . Extract it, extract the .zip file inside it too, and collect all of the .img files into one folder.
2. adb reboot bootloader (and wait until the bootloader comes up)
3. fastboot flash bootloader bootloader-mako-makoz30f.img (or whatever file has a similar name, if you got a different image than I did)
4. fastboot reboot-bootloader (and wait until the bootloader comes back up)
5. fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1701.04.img (or whatever file has a similar name, if you got a different image than I did)
6. fastboot reboot-bootloader (and wait until the bootloader comes back up)
7. fastboot flash boot boot.img
8. fastboot flash recovery recovery.img
9. fastboot flash system system.img
10. fastboot format cache
11. fastboot reboot
12. Don't panic unless you've seen the startup animation for at least 15 minutes without anything else happening.
I lost root, but I imagine re-custom-recoverying and re-rooting won't be any harder than the first time around.
Click to expand...
Click to collapse
Wow, a 12-step program
I simply rolled back my changes, and applying the OTA was as simple as pressing the "restart and install" button Here are some steps:
I used the app Flashify from Play Store to flash stock 4.4.4 recovery. I downloaded the stock factory image from google's own site (this one), used 7zip to extract the archives (tgz and tar), found "recovery.img" and transfered that to my phone. Then chose that file in Flashify.
Uninstalled all apps that made system changes, like Xposed framework and mods, BetterBatteryStats etc.
Removed Root with SuperSU cleanup function
Rebooted for good measure and apply OTA from notification - wait an hour or two for it to complete
Profit (do we still say that on the internet? Getting old here...)
I don't know if certain ways to get root will break the OTA. I used towel-root, and apparently SuperSU was able to undo that completely.
DrDruge said:
Hi moriarty00,
I'm going to try the same procedure, thank you for posting this.
Can you confirm that your data and app are safe after the upgrade?
Click to expand...
Click to collapse
Yup, perfectly safe! Just make sure not to flash other images, like userdata.img.
venu123 said:
OTA wants complete stock and obviously it doesn't think so about your phone. One option could be to back up to the cloud or some place outside the phone with TiBu (or whatever backup app you trust), then flash lollipop and try restore from TiBu. Another option would be to unroot (Supersu has an option to completely unroot), then retry.
Click to expand...
Click to collapse
If I unroot with Supersu how do I get root back?
moriarty00 said:
Yup, perfectly safe! Just make sure not to flash other images, like userdata.img.
Click to expand...
Click to collapse
Thank you!
Unfortunately the steps did not work for me, maybe I had some irreversible modifications or I had followed a different rooting procedure.
Or maybe I made a mistake in the upgrading steps.
Anyway, I had to flash the whole ROM and now everything is working fine.
Hey!
Basically I have similar problem with upgrading from 4.4.4 to 5.0 using OTA. Log from TWRP says:
Package expects build fingerprint of google/occam/mako:4.4.4/KTU84P/1227136:user/release-keys or google/occam/mako:5.0/LRX21T/1576899:user/release-keys; this device has google/occam/mako:4.3/JWR66V/737497:user/release-keys.
Click to expand...
Click to collapse
Phone has been rooted using Nexus Root Toolkit. And as long as there wouldn't be a problem with flashing using adb and wiping all data, there is one setback... My nexus is somehow broken. Communication via USB does not work, at all. Neither phone nor PC sees other device. Certified LG service centre nearby said that it is problem with main board, so generally repair is unprofitable.
So question is: How do I update to 5.0 and then root, without USB connection to my PC?
I'm trying to apply the 5.0.2 OTA on my wife's Nexus 7. When I try and sideload the OTA, I get this message:
Code:
"/system/bin/install-recovery.sh" has unexpected content
It was rooted previously so inside Super SU, I used the 'full unroot' option then tried to apply the OTA again. Same results. I also made sure to reflash the stock recovery in case that had anything to do with it (I was using WUG toolkit which was booting into stock recovery, but just in case...). Same results.
I've seen other reports of applying just the system.img file from inside the factory image. (Here and Here)
Is that a solution that would work for me? Is anyone else having this same issue and has a solution for it?
I could do a factory reset, but thats sortof a pain in the butt I'd like to avoid if I can...
Thanks,
Zeustopher
I've always used fastboot to flash boot, recovery and system then adb sideloaded the update zip and never had an issue nor have I ever lost data.
Looks like you definitely need to flash system since that's the error you're getting. It takes seconds so why not do it.
Mr_JMM said:
I've always used fastboot to flash boot, recovery and system then adb sideloaded the update zip and never had an issue nor have I ever lost data.
Looks like you definitely need to flash system since that's the error you're getting. It takes seconds so why not do it.
Click to expand...
Click to collapse
Same issue. Worked for me.
Pretty sure it is because 5.0 checks the entire system partition rather than pieces, so simply being rooted will cause to fail because there will be a mismatch. Pretty sure if you go the OTA root, you have to flash back to stock and unroot before you can update without failing. I would just flash the images directly in NRT or using ADB, and you should be fine.
I followed this method and it worked like a charm for me.
http://www.reddit.com/r/Nexus5/comments/2psomc/
Manual option
I flashed the boot.img and system.img matching the current version on our tablets (extracted from the factory image) and after that the OTA update works.
Made a backup just in case, but did not need it as all settings and data were preserved.
I'm guessing the return to stock does something similar (maybe a couple of things extra)
Here is a dedicated thread for Q&A and general info on OTA's for the Motorola Nexus 6. Please feel free to discuss all things OTA related and ask any questions you may have.
*Bootloader lock status has no effect on OTA pass or fail.*
To summarize, an OTA (Over The Air) is a software update pushed to nexus devices directly from Google. You will receive a notification when one is available for your device. The files are generally large in size and downloading via WiFi is recommended.
With Android 5.0 and up, OTA updating has changed significantly from previous versions. In the past, you could be stock, rooted, with stock recovery and OTA's would flash successfully. This is no longer possible in lollipop. Absolutely no system or kernel modifications can be present in order for the OTA to flash. This means that if you have unencrypted the stock kernel, the OTA will fail. The phone must be in a "out of box" state.
As always, you are not required to take the OTA as there are other options available. If you are already rooted, unlocked and using a custom recovery, you can use an updated custom ROM provided by the amazing development community here at XDA. Factory images are released by Google prior to OTA's being pushed out so most, if not all, of the custom ROMs are updated before you'll even see an OTA notification. Also, there are stock, rooted ROMs available as well.
*Factory images*
You can always update or return to stock via factory images direct from Google. Link to this guide provided in post #2
*Sideloading*
Another feature available to use is the sideload option. With the use of a few simple ADB commands, you can apply the OTA via sideload. Sideloading will require connecting to your PC and a working ADB/fastboot connection. Directions for sideloading are in post #3.
*Updating while rooted, unlocked, and having a custom recovery via fastboot*
This is quite simple with basic knowledge of fastboot/ADB. Download the factory image, extract the system image and flash with fastboot. Then flash TWRP and SuperSU again. You can also flash the boot image if desired. However if you are unencrypted, this will encrypt the device.
Many, MANY thanks to the development community, themers, modders and other talented people here at XDA.
Thanks @El Daddy for guidance and advice.
Helpful links:
*Please hit the thanks button for the OP's of the XDA threads below if the threads were helpful in any way.*
Beginners guide:
Thanks @xBeerdroiDx
http://forum.xda-developers.com/showthread.php?t=2948481
Setting up and using ADB and fastboot:
Thanks @rootSU
http://forum.xda-developers.com/showthread.php?t=3006500
Factory images installation instructions:
(Including the fastboot flash method for flashing individual images):
Thanks @Mr hOaX
http://forum.xda-developers.com/showthread.php?t=2954008
OTA files:
Thanks @oldblue910
http://forum.xda-developers.com/showthread.php?t=2906493
*For rooted/unlocked users only*
OTA zip files and radio files (TWRP flashable):
Thanks @Q9Nap
http://forum.xda-developers.com/showthread.php?t=3066052
Radio thread (fastboot flashable):
Thanks @zephiK
http://forum.xda-developers.com/showthread.php?t=2969380
Directions for sideloading
*These directions are based on Android SDK, Windows OS and a 100% stock Nexus 6*
This is just a simple, well known, user guide to using sideload.
Make sure your SDK is updated!
Download the OTA file to your PC, rename it to update.zip and transfer into the platform-tools folder of your SDK.
Connect your Nexus to your PC with your OEM USB cable.
Hold shift and right click on platform-tools folder and select open command prompt here.
Type: adb devices
If your serial number comes up, you are good to go. If not, check out your drivers in device manager. You may need to manually point your PC to their location. Also, you may need to uninstall any other Android drivers that are not associated with your Nexus.
Type: adb reboot bootloader
Select recovery mode from your phone using the volume down key. Once you've highlighted recovery mode, press power to select it.
It looks like a restart but the the dead android appears with red exclamation point. When that happens, hold power button and press volume up once.
Once in recovery, use the volume down key to select apply update from adb and push power to select it.
When your phone says now send file,
type: adb sideload update.zip
If all goes well, you'll see things progress and your Nexus will restart when complete. If you encounter the device not found error after beginning, unplug your USB and reconnect. I had to do it twice, but it works.
How do we install ota zip
if you are running stock you should be able to use wug toolkit and have it flash this zip file
What about stock-ish? I'm assuming since I'm rooted with my device unencrypted, that I can't flash this, right?
Flashing now. Will post back when done.
EDIT: Flash went perfect ^.^ 5.1 is all set.
knitler said:
Flashing now. Will post back when done.
EDIT: Flash went perfect ^.^ 5.1 is all set.
Click to expand...
Click to collapse
Were you completely stock?
Sent from my Nexus 6 using XDA Premium 4 mobile app
instructions for mac
http://www.androidcentral.com/how-manually-upgrade-your-nexus#slide5
I have a modded boot image and it failed to install. Guess ill have to nuke and start over to get this OTA in place.
http://www.androidpolice.com/2015/0...gs-android-5-1-ota-roundup-for-nexus-devices/ I just want to flash the radio but it looks line it's 20 MB bigger than the last
Is anyone creating a flashable zip that works with TWRP?
@oldblue910,
Thank you very much. ADB sideload went flawlessly (completely stock 5.0.1 of course).
I probably already know the answer but here is my situation... I am on the stock image but unlocked boot loader, rooted, and twrp recovery. The only way I can remain stock and not lose my current state other than root and a few apps that rely on root is to... Unroot, relock boot loader and put back stock recovery... Then OTA or side load? Theres no other option right?
I think I'm on the same situation as edif30
Stock image
rooted
unlocked bootloader
TWRP recovery
How can i sideload w/o losing root?
edif30 said:
I probably already know the answer but here is my situation... I am on the stock image but unlocked boot loader, rooted, and twrp recovery. The only way I can remain stock and not lose my current state other than root and a few apps that rely on root is to... Unroot, relock boot loader and put back stock recovery... Then OTA or side load? Theres no other option right?
Click to expand...
Click to collapse
You could flash the 5.0.1 factory image except for the userdata.img and radio.img and side load the OTA. Or you can wait for the 5.1 factory image and remove the "-w" from the flash-all script.
You will lose root and TWRP. but your data will remain intact.
So I'm all stock, unrooted, with a still-locked bootloader. I can flash the OTA without unlocking and without losing my data, right?
stevexyz0 said:
So I'm all stock, unrooted, with a still-locked bootloader. I can flash the OTA without unlocking and without losing my data, right?
Click to expand...
Click to collapse
Yep, just use ADB sideload.
So I had stock 5.0.1 with a custom kernel. I flashed the stock boot.img from the factory image using TWRP and I unrooted from in the SuperSU app, so I should be stock all around except for recovery. When I try to flash the OTA in TWRP it gives the following error message:
Package expects build fingerprint of google/shamu/shamu:5.0.1/LRX22C/1602158:user/release-keys or google/shamu/shamu:5.1/LMY47D/1743759:user/release-keys; this device has google/omni_shamu/shamu:5.0.2/LRX22G/dees_troy01130854:eng/test-keys.
Any idea why TWRP would think I was running 5.0.2?
cam30era said:
@oldblue910,
Thank you very much. ADB sideload went flawlessly (completely stock 5.0.1 of course).
Click to expand...
Click to collapse
Mine too but how long did it stay on the GOOGLE screen before booting?
I received the May OTA update earlier today, and since I'm rooted I decided to flash it with Flashfire. As soon as I opened Flashfire I was prompted to click a button to install the OTA. However, I then recieved a warning message "warning: it has been detected that you may be trying to flash a block-level ota, but your /system, /vendor, or /oem partition has been modified. This will likely cause the flash to fail!"
However, I clicked "ignore" and continued anyways, since I interpreted "flash to fail" to mean "will either not update (abort and stay the same) or update correctly." However, now my phone is stuck on the booting screen. I should at least still have TWRP installed, since I believe the "preserve recovery" box was automatically checked.
What can I do to fix the issue? I'm thinking if I download the full OTA and flash in recovery, maybe that will work?
If you can still boot into the bootloader (not recovery), do that and run through the manual install of the factory image (via the fastboot command - see the install instructions in the general forum). Again, do this manually (which requires downloading the factory image, extracting the files out, and manually flashing each file (bootloader, boot, etc.)) as that's really the only way you're going to get back to normal. You will have to re-root, etc., but that isn't that much work and saves the pain of going through what you just went through.
jeffrey123987 said:
I received the May OTA update earlier today, and since I'm rooted I decided to flash it with Flashfire. As soon as I opened Flashfire I was prompted to click a button to install the OTA. However, I then recieved a warning message "warning: it has been detected that you may be trying to flash a block-level ota, but your /system, /vendor, or /oem partition has been modified. This will likely cause the flash to fail!"
However, I clicked "ignore" and continued anyways, since I interpreted "flash to fail" to mean "will either not update (abort and stay the same) or update correctly." However, now my phone is stuck on the booting screen. I should at least still have TWRP installed, since I believe the "preserve recovery" box was automatically checked.
What can I do to fix the issue? I'm thinking if I download the full OTA and flash in recovery, maybe that will work?
Click to expand...
Click to collapse
Fixed
johnhazelwood said:
If you can still boot into the bootloader (not recovery), do that and run through the manual install of the factory image (via the fastboot command - see the install instructions in the general forum). Again, do this manually (which requires downloading the factory image, extracting the files out, and manually flashing each file (bootloader, boot, etc.)) as that's really the only way you're going to get back to normal. You will have to re-root, etc., but that isn't that much work and saves the pain of going through what you just went through.
Click to expand...
Click to collapse
Thanks, I actually just flashed the full factory OTA and now everything is working fine once again. I did lose root access though, so I have to reflash superSU as well. Thank you for trying to help though! If flashing the full OTA in TWRP had also failed, my Plan B was to just flash the factory image as you suggested.
jeffrey123987 said:
Thanks, I actually just flashed the full factory OTA and now everything is working fine once again. I did lose root access though, so I have to reflash superSU as well. Thank you for trying to help though! If flashing the full OTA in TWRP had also failed, my Plan B was to just flash the factory image as you suggested.
Click to expand...
Click to collapse
Or next time just use the full image (not OTA) with FF (with select flash firmware package). You won't have any issues plus will retain root/recovery. You'll be back up and running in one minute.
Glad you got it back up and running. Also, as mentioned, you could flash the full package via flashfire, just don't flash the bootloader using it.
The latest April 2018 OTA update Google pushes to my Nexus 6P is only 38.7mb.
Since my phone is rooted, it won't work and I have to download the full factory image, while OTA image being 899mb and smaller than the full image, then TWRP sideload, then re-flash twrp and re-root with Magisk.
My question is, is there any way to download the 38.7mb (assuming it works) and sideload that instead?
Further, is there any way to do the adb and fastboot stuff without a PC (my PC is slow, even in Linux with all the latest update), maybe with another phone or tablet?
Another problem just came up, TWRP can't verify the 899mb OTA image and failed.
I downloaded and flashed the 899mb OTA file twice, both failed.
Anyone has the same problem?
Guess I have to download the full image and extract files and flash.
mm6ff8 said:
Another problem just came up, TWRP can't verify the 899mb OTA image and failed.
I downloaded and flashed the 899mb OTA file twice, both failed.
Anyone has the same problem?
Guess I have to download the full image and extract files and flash.
Click to expand...
Click to collapse
You can't OTA when your using custom recovery. However I've heard if people using flashfire but have never tried. With Google backup doing such a great back up now just clean wipe and start from scratch. We use too just use superXe was completely stock based and updated frequently but the developer is really busy .
While I've never tried this, and you could cause problems with your device (Make a full nandroid!), you could try flashing stock recovery from the full image, then flashing normally from within the OS.
After flash is successful, flash back to TWRP..
Exodusche said:
You can't OTA when your using custom recovery. However I've heard if people using flashfire but have never tried. With Google backup doing such a great back up now just clean wipe and start from scratch. We use too just use superXe was completely stock based and updated frequently but the developer is really busy .
Click to expand...
Click to collapse
I have successfully done TRWP's "adb sideload" March 2018 OTA image .
But this April 2018 OTA just didn't work.
Wiltron said:
While I've never tried this, and you could cause problems with your device (Make a full nandroid!), you could try flashing stock recovery from the full image, then flashing normally from within the OS.
After flash is successful, flash back to TWRP..
Click to expand...
Click to collapse
Most, if not all, rooted Nexus manual update tutorials tell us to flash recovery stock recovery image, then flash custom recovery.
But I don't see why, and I've almost always skip this step without any problem, since Nexus 4.
But you're definitely right about making a full nandroid part.
mm6ff8 said:
I have successfully done TRWP's "adb sideload" March 2018 OTA image .
But this April 2018 OTA just didn't work.
Click to expand...
Click to collapse
That's great glad you got it sorted. And even better news SuperXe was updated for April! ?