Should I unroot before installing latest OTA update? - Nexus 5 Q&A, Help & Troubleshooting

I've got a Nexus 5 with Android 5.0. I've had it rooted and unlocked using SkipSoft Unified Android Toolkit. I recently got a notification for an OTA update for 5.0.1. When I tried to install it, it downloaded ok but upon restarting it dropped me into teamwin recovery menu with options for: Install, Wipe, Backup, Restore, Mount, Settings, Advanced, Reboot. Not knowing what to do I clicked on Reboot -> System which booted back into the phone. Nothing changed or got installed.
Does anyone know how I can apply the latest OTA update? Do I have to unroot first, apply and then re-root? Does the Toolkit have support for 5.0.1 rooting yet?
TIA

You must be 100% stock to update so yes, you need to fully unroot.
Though you should just fastboot flash the system.img and boot.img
Don't use toolkits. Do things manually. You can either flash SuperSU from recovery or use cf-auto root from a computer.

Its very easy, there is flashable 5.0 stock ROM, I dirty flashed, or you can do it like rootSU said via fastboot, root has been lost, then I flashed stock recovery via fastboot, there is thread for recoveries, then I upgraded via ota and flashed twrp via fastboot and flashed SuperSU to gain root and custom kernel.

My way is much quicker though as you flash 5.0.1 system and boot straight away. Nothing else.

rootSU said:
My way is much quicker though as you flash 5.0.1 system and boot straight away. Nothing else.
Click to expand...
Click to collapse
We will never understand why people even bother with OTAs regardless what we ever tell them

rootSU said:
You must be 100% stock to update so yes, you need to fully unroot.
Though you should just fastboot flash the system.img and boot.img
Don't use toolkits. Do things manually. You can either flash SuperSU from recovery or use cf-auto root from a computer.
Click to expand...
Click to collapse
Ok, I'm not 100% sure I understood everything you said. I've downloaded the 5.0.1 update from here: https://developers.google.com/android/nexus/images. Using 7zip, I noticed the system.img and boot.img is contained in the tgz file (along with several other files). Do I just extract just those two files? And then what do I do in Teamwin?
Will all my apps and data persist?
TIA

Techno79 said:
Ok, I'm not 100% sure I understood everything you said. I've downloaded the 5.0.1 update from here: https://developers.google.com/android/nexus/images. Using 7zip, I noticed the system.img and boot.img is contained in the tgz file (along with several other files). Do I just extract just those two files? And then what do I do in Teamwin?
Will all my apps and data persist?
TIA
Click to expand...
Click to collapse
Boot into bootloader
fastboot flash system system.img
fastboot flash boot boot.img
Boot into Lollipop
You didn't touch userdata.img so it doesn't touch the data partition, although a wipe is usually recommended anyways because it's a new version of Android.

Lethargy said:
Boot into bootloader
fastboot flash system system.img
fastboot flash boot boot.img
Boot into Lollipop
You didn't touch userdata.img so it doesn't touch the data partition, although a wipe is usually recommended anyways because it's a new version of Android.
Click to expand...
Click to collapse
Sweet, that worked a great. Thank you.

Related

[Q] What to do now when 4.1.1 comes if I'm rooted and so?

Fixed.
RusherDude said:
If I am on 4.4 stock rooted, with a custom recovery, and stuff modified on /system.. what I do when the update to 4.1.1 comes?
If I don't do nothing, the update will download automatically (which I don't want at all...), then try to patch and fail (I guess it won't even start since it detects that it's not stock system and recovery to flash the update) and it may even loop downloading and failing by what I readed being a bug on some 4.3 roms on the Nexus 4?
So how I should act in the following situations? First make a nandroid then..
a) I wanna flash it asap: I get the ota zip asap its posted and flash it on CWM and hope it goes ok. I may **** up stuff and have to revert to the nandroid, or 1it can go ok and just lose root and the system changes, right?
b) I wanna stay on 4.4 until all the stuff is ported to 4.1.1: It will at some point download the ota (****) by itself and spam me continuously to install it, right? If I wanna stay on 4.4 until all the stuff I use its compatible with 4.1.1, what I got to do to evade the auto-downloading of the ota and the spam about the update?
I don't know.. any way to stop the auto-update from working or so? That would be great!
Thanks in advance.
Click to expand...
Click to collapse
Here is what I just did, and it worked perfectly.
1. Take note of all the mods you installed so you can install them afterwards.
2. Put phone in bootloader mode / fastboot
3. Grab the 4.4 stock image from Google. Extract system.img file from it and flash that through fastboot (without the -w command) (fastboot flash system system.img). Don't worry you won't lose anything if you omit -w. Apps and data are preserved, it just set the \system area back to stock
4. Copy the OTA udpate zip to your phone, flash with TWRP. Since everything is 'back to stock' it should flash fine.
I had to re-root with TWRP after flashing before I rebooted. Everything was good to go. Then reflash your mods.
sonicdeth said:
Here is what I just did, and it worked perfectly.
1. Take note of all the mods you installed so you can install them afterwards.
2. Put phone in bootloader mode / fastboot
3. Grab the 4.4 stock image from Google. Extract system.img file from it and flash that through fastboot (without the -w command) (fastboot flash system system.img). Don't worry you won't lose anything if you omit -w. Apps and data are preserved, it just set the \system area back to stock
4. Copy the OTA udpate zip to your phone, flash with TWRP. Since everything is 'back to stock' it should flash fine.
I had to re-root with TWRP after flashing before I rebooted. Everything was good to go. Then reflash your mods.
Click to expand...
Click to collapse
Ok, that covers the a) situation where I want to flash it asap, thanks! (also note everyone, you got to disable xposed and all mods before flashing the ota)
PS: You can just flash the stock kernel and undo all the system changes, no need to flash the entire 4.4 stock zip.
What about the b) situation?
RusherDude said:
Ok, that covers the a) situation where I want to flash it asap, thanks! (also note everyone, you got to disable xposed and all mods before flashing the ota)
PS: You can just flash the stock kernel and undo all the system changes, no need to flash the entire 4.4 stock zip.
What about the b) situation?
Click to expand...
Click to collapse
Don't know why you'd want to go all the way back to 4.1.1. That's from July '12.
mattjorgs said:
Don't know why you'd want to go all the way back to 4.1.1. That's from July '12.
Click to expand...
Click to collapse
Wut? in the b) situation I just wanna STAY on 4.1 until all the stuff is ported to 4.1.1 (if something needs porting).
RusherDude said:
Wut? in the b) situation I just wanna STAY on 4.1 until all the stuff is ported to 4.1.1 (if something needs porting).
Click to expand...
Click to collapse
You mean 4.4? And 4.4.1? Lol
Sent from my Nexus 5 using Tapatalk
How to update to 4.4.1
I am rooted/bootloader unlocked with TWRP v2.6.3.1. When I try to flash in recovery manually with ota zip, I get a Failed error with error "E: error executing updater binary in zip"
What are step to update for a device like mine??
Cheeze[iT] said:
You mean 4.4? And 4.4.1? Lol
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Omg yea, 4.4 lol, fail haha

[Q] Upgrading Nexus 5 rooted with custom kernel to 4.4.4?

Currently running Android 4.4.3. I have TWRP installed. To upgrade can I just flash system.img and radio.img within TWRP? I believe that this is how I upgraded from 4.4.2 to 4.4.3 but my memory is hazy and this was before I installed a custom kernel. I'm not sure on whether I need to do anything additional such as rolling back to stock 4.4.3 before upgrading to 4.4.4. I've seen people discuss this but I think that's just if one wants to run the OTA update.
you can. or you can just dirty flash(no wiping) a stock rooted rom from the android development section, and your kernel, and reboot
prnz said:
Currently running Android 4.4.3. I have TWRP installed. To upgrade can I just flash system.img and radio.img within TWRP? I believe that this is how I upgraded from 4.4.2 to 4.4.3 but my memory is hazy and this was before I installed a custom kernel. I'm not sure on whether I need to do anything additional such as rolling back to stock 4.4.3 before upgrading to 4.4.4. I've seen people discuss this but I think that's just if one wants to run the OTA update.
Click to expand...
Click to collapse
You are correct, except you flash img files with fastboot.
Aerowinder said:
You are correct, except you flash img files with fastboot.
Click to expand...
Click to collapse
Thanks. Is there any way to do it from recovery? I hate having to hook up the USB cable, etc.
Also, this seems a lot easier than what is suggested here (Special Scenario #1) http://forum.xda-developers.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
1) downloaded factory image from https://developers.google.com/androi...ges#hammerhead
2) extract the tgz, the tar within that, then extract the the zip within that to get the system.img and boot.img files
3) moved these two files into the adb folder (for the fastboot/adb method)
4) downloade SuperSU-v1.80.zip from http://download.chainfire.eu/supersu
5) put SuperSU-v1.80.zip on your phone's internal storage
6) download the 4.4.1 OTA update zip from http://android.clients.google.com/pa...M.7ed504f6.zip
7) rename it to ota.zip
8) move ota.zip onto your phone's internal storage
9) boot into bootloader
10) open command prompt from your adb folder
11) connect USB cable
12) type 'fastboot devices' to check the connection
13) type 'fastboot flash system system.img'
14) type 'fastboot flash boot boot.img'
15) use volume and power buttons to boot into recovery (TWRP)
16) install ota.zip
17) install SuperSU-v1.80.zip
18) clear dalvik and cache
19) reboot phone
Click to expand...
Click to collapse
Seems to me like people go to a lot of extra work installing the OTA instead of the factory images.
prnz said:
Thanks. Is there any way to do it from recovery? I hate having to hook up the USB cable, etc.
Also, this seems a lot easier than what is suggested here (Special Scenario #1) http://forum.xda-developers.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
Seems to me like people go to a lot of extra work installing the OTA instead of the factory images.
Click to expand...
Click to collapse
extra work is done in both those methods. just dirty flash a precompiled rooted stock rom and your kernel. itll take seconds to a minute, and you wont lose anything. and you do that in recovery.
simms22 said:
extra work is done in both those methods. just dirty flash a precompiled rooted stock rom and your kernel. itll take seconds to a minute, and you wont lose anything. and you do that in recovery.
Click to expand...
Click to collapse
Not to create a flamewar but I'm too afraid of security issues to install a pre-rooted ROM.
prnz said:
Not to create a flamewar but I'm too afraid of security issues to install a pre-rooted ROM.
Click to expand...
Click to collapse
have you ever seen or heard(a real one, not just "stories") of a security issue?
prnz said:
Not to create a flamewar but I'm too afraid of security issues to install a pre-rooted ROM.
Click to expand...
Click to collapse
The ones on XDA are safe. Just as safe as you rooting your stock ROM.
Sent from my Nexus 5 using Tapatalk

How to install Android 5.0.1 to Nexus 5 without wiping data

I recently unlocked my Nexus 5's bootloader and flashed Android L on it, which wiped all my data. I just downloaded the Google image for Android 5.0.1 for my device from the Android site, and need someone to point me in the right direction on how to apply the update without wiping my user data. I just checked on my phone for an OTA update and it didn't find one. I have AT&T, but bought the phone from Google Play Store.
Edit the flash-all.bat and remove the "-w" bit in the "fastboot -w update image-hammerhead-lrx22c.zip" line
Delete the userdata.img in the image-hammerhead-lrx22c.zip file (you can do this in 7zip or the built-in Windows zip tool)
Flash as normal using the flash-all.bat once your phone is in the bootloader.
Just done the above myself and it has upgraded fine without losing my data.
ianm said:
Edit the flash-all.bat and remove the "-w" bit in the "fastboot -w update image-hammerhead-lrx22c.zip" line
Delete the userdata.img in the image-hammerhead-lrx22c.zip file (you can do this in 7zip or the built-in Windows zip tool)
Flash as normal using the flash-all.bat once your phone is in the bootloader.
Click to expand...
Click to collapse
Thanks for the quick response! I'll try this.
Edit: It worked!
You also could have extracted the image files and done
Code:
fastboot flash system system.img
fastboot flash radio radio.img
fastboot flash boot boot.img
rootSU said:
You also could have extracted the image files and done
Code:
fastboot flash system system.img
fastboot flash radio radio.img
fastboot flash boot boot.img
Click to expand...
Click to collapse
Are these the only .img files you need to flash? Why not the others? I know flashing userdata.img will erase your data but the others? Is nothing else updated, e.g. recovery or bootloader?
The factory image is to return it all to stock so you can start again but you only really need those three if you want to keep your custom recovery. Personally, I flash everything and set my phone up fresh with every factory image but then again most of my data is in the cloud these days so I don't mind wiping data
EddyOS said:
The factory image is to return it all to stock so you can start again but you only really need those three if you want to keep your custom recovery. Personally, I flash everything and set my phone up fresh with every factory image but then again most of my data is in the cloud these days so I don't mind wiping data
Click to expand...
Click to collapse
It worked great. Used the same method on my Nexus 7 2013 the other day sans flashing radio. I have too many apps so I gladly avoid the hassle of re-installing everything and signing in on 20+ different apps. I know I can use titanium or other methods to backup all data etc, but I think the fastboot method is the most convenient if you don't have limited bandwidth.
If someone want's a guide on how to use the non OTA fastboot method without loosing data I made a separate one here: http://forum.xda-developers.com/google-nexus-5/help/guide-how-to-update-5-0-to-5-x-loosing-t2975174
update to 5.0.1
I'm on root, stock rom and custom recovery. I got the notification for 5.0.1 update and I'm not sure how to do the update. Can I flash the image from TWRP custom recovery?
g33kos said:
I'm on root, stock rom and custom recovery. I got the notification for 5.0.1 update and I'm not sure how to do the update. Can I flash the image from TWRP custom recovery?
Click to expand...
Click to collapse
no you can not. You have to sideload the ota in the stock recovery. This is different than before. You also have to be stock recovery, system, kernel and radio
Sent from my Nexus 5 using XDA Free mobile app

[Q] ota sideloading aborted

Hey group mates please help me
I'm currently using a nexus 5 and thought of sideloading the ota zip through nexus root toolkit so i first flashed stock recovery and then when i tried to sideload it, it started flashing till it reached 61% and which my phone said installation aborted for no reason.. Tried this more than 3-4 times but the result were all the same
I'm not sure what seems to be the issue here so it would be great if any one could help me solve this issue
Thanks in advance
drunken monkey said:
Hey group mates please help me
I'm currently using a nexus 5 and thought of sideloading the ota zip through nexus root toolkit so i first flashed stock recovery and then when i tried to sideload it, it started flashing till it reached 61% and which my phone said installation aborted for no reason.. Tried this more than 3-4 times but the result were all the same
I'm not sure what seems to be the issue here so it would be great if any one could help me solve this issue
Thanks in advance
Click to expand...
Click to collapse
Are you rooted or having custom kernel?
kaushikd said:
Are you rooted or having custom kernel?
Click to expand...
Click to collapse
I'm currently running stock recovery, stock os rooted and unlocked bootloader
I have the exact same problem. The sideload gets to 61%, then shows the following message:
"/system/bin/install-recovery.sh" has unexpected contents
E:Error in /sideload/package.zip
(Status 7)
I have a stock recovery, was rooted using Chainfire's first method for Lollipop (patched kernel) but flashed the stock kernel (fastboot flash boot boot.img) from the N5 5.0 image before the sideload.
drunken monkey said:
I'm currently running stock recovery, stock os rooted and unlocked bootloader
Click to expand...
Click to collapse
You can't be rooted to use the OTA. Anything that is modified in the system will cause this.
I downloaded the full image and extracted just the radio, system and boot image files. Then just a few fastboot commands with bootloader reboots inbetween and 5.0.1 works.
For reference, I used the following:
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash boot boot.img
So while sideloading it should I unroot as well?
jsgraphicart said:
You can't be rooted to use the OTA. Anything that is modified in the system will cause this.
Click to expand...
Click to collapse
So to sideload I have to be in complete stock without even SuperSU.. Is that correct?
drunken monkey said:
So to sideload I have to be in complete stock without even SuperSU.. Is that correct?
Click to expand...
Click to collapse
That correct
Sent from my Nexus 5 using XDA Free mobile app
pauleyc said:
I downloaded the full image and extracted just the radio, system and boot image files. Then just a few fastboot commands with bootloader reboots inbetween and 5.0.1 works.
For reference, I used the following:
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash boot boot.img
Click to expand...
Click to collapse
I was thinking about doing this, too... but am I correct to assume that this would cause data loss? I have TWRP and SuperSU installed at the moment.
Or, if there's an easy way to ditch these and do the OTA, I'd be okay with that, too.
jrronimo said:
I was thinking about doing this, too... but am I correct to assume that this would cause data loss? I have TWRP and SuperSU installed at the moment.
Or, if there's an easy way to ditch these and do the OTA, I'd be okay with that, too.
Click to expand...
Click to collapse
It won't cause any data loss. It's about the only way to get the ota to work. But in your case, since you have twrp you should also flash the stock recovery.img
Sent from my Nexus 5 using XDA Free mobile app
No data loss (well, apart from root) if you flash just the radio, system and boot images. Worked great for me.
Thanks for the tips, guys. After extracting the full 5.0.1 firmware from the Factory Images page, there are system and boot .img files, but no radio. Is this normal?
jrronimo said:
Thanks for the tips, guys. After extracting the full 5.0.1 firmware from the Factory Images page, there are system and boot .img files, but no radio. Is this normal?
Click to expand...
Click to collapse
There's a radio. It's in the first file you extracted, not the zip you also had to extract
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
There's a radio. It's in the first file you extracted, not the zip you also had to extract
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Good thing I didn't get past this step -- I had downloaded the wrong factory image. D: That'll explain things a bit...
---------- Post added at 02:13 PM ---------- Previous post was at 01:54 PM ----------
Alrighty! New problem: After the phone boots, I get the battery and signal icons in the top right, but a black screen otherwise. If I hit the power button to put it in sleep mode and then hit the power button again, I get a quick flash of the "Welcome to Android, select your language" screen. Any pro-tips?
If I have to set up from scratch, it's no big deal. Most of the important stuff should be backed up; it'd just be annoying. All that Desert Golfing progress!!!
Finally managed to get around it. Ended up updating TWRP and re-flashing most of the .imgs a bunch, then using TWRP to first let me back up data to my computer and then wipe partitions. I'm on 5.0.1 again.
Welp, that was painful, haha. I'm sure I did something wrong leading into this, but I'm not sure what that was...
If i just flash the whole Firmware that i downloaded from Google, will i be able to flash it and loose root?
I am OK with loosing root and beeing back to stock.
At this moment i have Lolipop 5.0 that is rooted with Chainfire.
I was running rooted stock 5.0 with TWRP and had already flashed the 5.0.1 radio, so I just fastboot flashed the 5.0.1 system.img and rerooted. All is well so far.
jd1639 said:
That correct
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
So if I unroot and then sideload it will I loose all my data ?
P.s I'll be rooting it back immediately after I get 5.1
So is there any way which can avoid a data loss?
I still have a doubt, I saw rootjunky's video in which he sideload 5.1 to his nexus 7 using nrt..
Even I followed the same method but it didn't succeed for me
pauleyc said:
I have the exact same problem. The sideload gets to 61%, then shows the following message:
"/system/bin/install-recovery.sh" has unexpected contents
E:Error in /sideload/package.zip
(Status 7)
I have a stock recovery, was rooted using Chainfire's first method for Lollipop (patched kernel) but flashed the stock kernel (fastboot flash boot boot.img) from the N5 5.0 image before the sideload.
Click to expand...
Click to collapse
So after flashing your stock kernal and stock recovery did the sideload work.. I mean that it didn't get stuck at the 61% mark?

stock recovery?

I am trying to find stock marshmallow recovery, need to take device back. Anyone know where I might find that?
I have no PC access to flash firmware so plan to restore the stock twrp backup I made and user flasher app for stock recovery.
lost101's factory firmware image files contain stock recovery.img : http://forum.xda-developers.com/showthread.php?t=3169639
I think you can directly flash it through TWRP, just tap install>'install img', browse for the file, check recovery partition and swipe to flash. Done
Broadcasted from Zeta Reticuli
Gravemind2015 said:
lost101's factory firmware image files contain stock recovery.img : http://forum.xda-developers.com/showthread.php?t=3169639
I think you can directly flash it through TWRP, just tap install>'install img', browse for the file, check recovery partition and swipe to flash. Done
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
Never new this was possible. So... could I also flash the rest of the img too, such as system.img for example.
Edit: I see not possible, only boot and recovery.
jikobutsu said:
Never new this was possible. So... could I also flash the rest of the img too, such as system.img for example.
Edit: I see not possible, only boot and recovery.
Click to expand...
Click to collapse
Even I don't have pc that's whyI flashed whole factory firmware 6.0.1 using flashfire app and it went successfully without glitch and previously I was on CM 13.
I'm still on stock recovery and it's working.
aadison said:
Even I don't have pc that's whyI flashed whole factory firmware 6.0.1 using flashfire app and it went successfully without glitch and previously I was on CM 13.
I'm still on stock recovery and it's working.
Click to expand...
Click to collapse
Oh that is cool!. I remember on my Galaxy s3 there was Odin mobile, which done this. And it kept root through the update...wonder if FlashFire does it too.
jikobutsu said:
Oh that is cool!. I remember on my Galaxy s3 there was Odin mobile, which done this. And it kept root through the update...wonder if FlashFire does it too.
Click to expand...
Click to collapse
It keeps root untouched for Nexus devices. But it fails on our device.
aadison said:
It keeps root untouched for Nexus devices. But it fails on our device.
Click to expand...
Click to collapse
I noticed this too. But the firmware flash went well, thanks for the heads up
Although root is easy if your bootloader is unlocked. I use kingroot, which I don't recommend for anyone to get root. Then you just flash twrp with recovery flash app, then boot and uninstall kingroot with full unroot. Reboot twrp and flash Su with systemless root through terminal like this;
echo SYSTEMLESS=true>>/data/.supersu
@jikobutsu : yeah you were doing kingroot unnecessarily, just bootloader unlock> fastboot boot/flash twrp>backup>echo systemless=true and flash supersu. Done.
Broadcasted from Zeta Reticuli
Gravemind2015 said:
@jikobutsu : yeah you were doing kingroot unnecessarily, just bootloader unlock> fastboot boot/flash twrp>backup>echo systemless=true and flash supersu. Done.
Broadcasted from Zeta Reticuli
Click to expand...
Click to collapse
I think he used kingroot as he earlier said he doesn't have pc access, so to flash TWRP using flash tools u need root. He temporarily rooted by kingroot.
Yeah no pc at this time so had to improvise

Categories

Resources