3

My Nexus 5 is rooted. I received the 6.0.1 OTA update but when I try to install the update (I just clicked install link when the update finished downloading), the device restarts and goes to the TWRP screen and doesn't install the update.

Can anyone tell me how I can get the update to install?

4

You cannot install an OTA update on rooted device because SuperSU changes some statement in install-recovery.sh to run itself on boot.

To install OTA you need to install factory image available at https://developers.google.com/android/nexus/images?hl=en

If you dont want to loose your apps and data. Simply edit the script flash-all.bat and remove

-w

From

fastboot -w update image-hammerhead-*.zip

Installation script file name will differ according to your OS.

You will loose root access and TWRP after going through above method as there's no other way to install OTA because all system files should be intact for successful installation of OTA.

  • If that SH file is the issue here, shouldn't removing SuperSU followed by reverting that file back to its original state help here? Also, have you read about block based OTA's – Firelord Dec 25 '15 at 18:02
  • @Firelord I came to know about this when i tried to install an OTA update zip by flashing manually using stock recovery when my device was rooted. Where the stock recovery stated that it has some directory issues in install-recovery.sh . Then i went through this file which stated that SuperSU will launch in daemon mode on boot. By default this file contains the block information for applying OTA patch. This is file is located at /system/etc/install-recovery.sh . Instead of reverting everything i chose to flash system.img lazyy me. – nishantn3 Dec 25 '15 at 18:19
  • Flashed 6.0.1 factory image successfully – Lahiru Chandima Dec 26 '15 at 2:35
0

If your phone is rooted by flashing normal SuperSu, then SuperSu app & binaries would have been pushed into the /system partition of your phone..
OTAs normally verify the checksum of your current system partition with that of untouched stock system partition's before the update..
By rooting your device, which modifies the system, the MD5 sum would definitely not match, so you won't be able to install the OTA..

If you had rooted it by using systemless root (by SuperSu), then you can flash the OTA with no issues, since system partition will not be modified by that method..

It seems you have TWRP installed now.
Better flash the stock ROM (6.0) and don't root it.
Then install the (6.0.1) OTA through the stock recovery.
There's no way other than this..

  • Thanks for the answer. Is there a special reason not to flash 6.0.1 directly? – Lahiru Chandima Dec 25 '15 at 12:15
  • Hey, 6.0.1 is just a minimal update with bug fixes & security patches for 6.0, something like 30MB or whatever. – Gokul NC Dec 25 '15 at 15:14
  • Can you support your statement "OTAs normally verify the MD5 checksum of your current system partition with that of untouched stock system partition's before the update" with a legit technical source? I need to see something. // The default appears to be SHA256. – Firelord Dec 25 '15 at 18:12
  • I wasn't sure what checksum it was.. Just removed the MD5 part – Gokul NC Dec 26 '15 at 5:01
0

You can using app: [root] FlashFire that can downloaded in PlayStore.

Then, download the latest factory images package for Nexus 5 from here

After the file is downloaded and saved in your phone, open FlashFire app. The app will grant root access and if it found update[OTA] file, choose 'delete'.

Next, click "plus" icon > choose "Flash firmware package" > browse to the location that you saved the downloaded factory image.

Then the app will scanning the firmware file and after that you can select some options.

*If you want to keep TWRP as recovery, just uncheck "Recovery".

*Be careful, if you want to keep your data in phone, make sure that "Data" unchecked.

Last, just click "FLASH" then your phone will reboot and install the update.

*Note: I've tried this for my Nexus 5 and it is successfull. Hope it works for you too :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.