02-13-2017 04:32 PM
29 12
tools
  1. MikeCallery's Avatar
    I asked this on another forum and went no where, maybe someone here knows the answer.

    I rooted my N6 and have TWRP installed. A beautiful combination, however, recently I have been getting upgrades from Google for the phone which will not install. The upgrade has the phone reboot into recovery mode, which is TWRP and then it simply does not take place.

    I did not want to put on a custom ROM, I simply wanted to get two apps running and for that, I had to be rooted.

    Can anyone tell me how I do the upgrades now? I used the WUG kit to even put the phone back to stock and remove TWRP but then when it went to do the upgrade it went to the recovery screen and showed an error when it tried to upgrade. I am not sure if my bootloader was locked or not, maybe that was the culprit.

    I'd like to leave the phone rooted with TWRP but still do the upgrades?? How??
    Surizon1 and smithilberry like this.
    09-16-2015 08:18 AM
  2. jj14x's Avatar
    If you are rooted, I'd urge you to keep a custom recovery (TWRP) installed, and most importantly, not lock your bootloader (unless you are absolutely sure you know what you are doing). I've seen enough folks that end up with a soft/hard brick because they lock their bootloader, and are unable to boot up into the OS.

    Now, on to your actual question: You are correct - since Lollipop, Google doesn't let the OTA install on top of a modified system. (any modification at all). If you were rooted, and you unroot, the system is still considered "modified".

    The suggested way to install the updates would be ignore the OTA completely. Wait for the factory images to be made available on Google's site. Download it, and extract the system.img from that image (also get the radio file if the radio is newer than what you have). Use fastboot to flash the system.img (and radio if newer). Reboot, and reroot using TWRP, and you are done.

    If you don't want to wait for the new factory image to be available, you can download the previous factory image, flash it, and then apply the OTA file, and then reroot using TWRP, and done.
    kct1975 and electricpete like this.
    09-16-2015 08:33 AM
  3. LeoRex's Avatar
    Once you modify system stuff... be it root, a recovery, whatnot... you disconnect yourself from the OTA system. The OTA files come with system checks to look for any kind of system modification as part of the requsites to run. If it detects something, it kicks out. And to be honest, I doubt that TWRP would run it in the first place.

    Once you modify your phone like that, you are now responsible for any updates. You can either flash back to full stock, load the OTA then re-root and load your customer recovery back on (which isn't exactly all that hard with a Nexus). Or you go out and find a flashable zip that you can load in TWRP yourself.

    There are a few other things you can do... but it is still on you, not Google, to update.
    MikeCallery likes this.
    09-16-2015 10:34 AM
  4. MikeCallery's Avatar
    Thank you, that is helpful and puts me on the right track. I remember somewhere I read about an app that prevents the phone from getting the OTA's so I might have to look at that.

    Again, thanks.
    09-16-2015 11:08 AM
  5. LeoRex's Avatar
    Well... if you search around, you'll find something to disable the OTA checks.
    09-16-2015 01:26 PM
  6. Lee_Bo's Avatar
    Go to SETTINGS / SOUND & NOTIFICATION / APP NOTIFICATIONS / GOOGLE PLAY SERVICES

    Then choose "never show notifications from this app".

    How can I get OTA Updates while Rooted?-screenshot_2015-09-16-16-44-36.jpg
    09-16-2015 03:46 PM
  7. LeoRex's Avatar
    The problem with blocking Play Service's notifications is that you end up blocking a lot more than an OTA notification.

    The best way to block that I've seen is using a tool that can selectively block certain services from running. There are some flashable zips out there that probably do it. But you can also use a tool like Autostarts to go in and do a surgical strike on only the services that do the OTAs... looking around, here are the services:

    com.google.android.gms.update.SystemUpdateService$ Receiver
    com.google.android.gms.update.SystemUpdateService$ ActiveReceiver
    com.google.android.gms.update.SystemUpdateService$ SecretCodeReceiver

    Go do a search for "Disable OTA check nexus 6"... find the method that best suits your needs.
    09-16-2015 04:05 PM
  8. biotron2000's Avatar
    I had my phone rooted, but was having trouble with Android Auto and unrooted it and returned it to factory. I still get OTA updates.
    09-21-2015 06:22 PM
  9. brogdonbr's Avatar
    I've got a Nexus 7, with the same basic setup (rooted stock + TWRP + Xposed). Quick question--does flashing system.img from the factory image wipe out all of my apps and settings? I know that it does when I've downloaded factory images and ran the "install-all" script in order to return a device to stock.

    Thanks!
    09-30-2015 09:27 AM
  10. jj14x's Avatar
    I've got a Nexus 7, with the same basic setup (rooted stock + TWRP + Xposed). Quick question--does flashing system.img from the factory image wipe out all of my apps and settings? I know that it does when I've downloaded factory images and ran the "install-all" script in order to return a device to stock.

    Thanks!
    User Apps and app settings will not be impacted by flashing system.img
    The flash-all script will wipe your user apps (unless you override the userdata wipe with the -w)
    09-30-2015 04:35 PM
  11. brogdonbr's Avatar
    Great to hear! Thank you!
    10-01-2015 09:00 AM
  12. tazmanian200's Avatar
    once I'm rooted and want to update, all I have to do is download image file, extract the system img file and flash it? reroot thru twrp and I'm done, won't loose my apps and data?
    12-02-2015 12:11 PM
  13. jj14x's Avatar
    Personally, I flash everything except userdata.img (so, flash cache, system, bootloader, boot, radio...)
    Can't reroot just using twrp (with Marshmallow) - need a custom kernel too. But the concept is still the same. Just flash the new image files (skipping userdata), and reroot. Your user data should stay intact
    12-03-2015 07:33 AM
  14. tazmanian200's Avatar
    So to get Root back, you have to flash the root boot img file again after your done? do u have to reflash twrp too? then go to twrp and flash superSU again?
    12-03-2015 07:54 AM
  15. tazmanian200's Avatar
    So to get Root back, you have to flash the root boot img file again after your done? Do u have to reflash twrp too? then go to twrp and flash superSU again?
    12-03-2015 08:13 AM
  16. jj14x's Avatar
    I've stopped rooting my phone, so can't say for sure, but it should be possible to flash the modified boot img (instead of flashing the stock one and then flashing the modified one).
    (Edit: You could just skip flashing the boot.img, and retain the custom boot.img)

    TWRP - if you flash stock recovery, you'll need to flash TWRP. If you plan to root, just skip the stock recovery. You will need to flash SuperSU for sure because your system.img is wiped
    12-03-2015 09:58 AM
  17. anthonymr921's Avatar
    I know this is kinda late. I know that I have to flash the stock system.img in order to install an OTA, but do you have to flash the recovery.img as well? I thought OTAs wouldn't install if you messed with the system and recovery.
    03-12-2016 10:32 PM
  18. lephils's Avatar
    I know this is kinda late. I know that I have to flash the stock system.img in order to install an OTA, but do you have to flash the recovery.img as well? I thought OTAs wouldn't install if you messed with the system and recovery.
    Why flash the old system.img and then take the ota update?

    Just flash the new system image and you're done.
    jj14x likes this.
    03-12-2016 10:45 PM
  19. anthonymr921's Avatar
    Well because sometimes theres no image like for monthly security updates.

    Okay so, get the system image, flash that while keeping the custom recovery, then reflashing SuperSU?
    03-12-2016 10:53 PM
  20. lephils's Avatar
    Well because sometimes theres no image like for monthly security updates.

    Okay so, get the system image, flash that while keeping the custom recovery, then reflashing SuperSU?
    1. Google always posts the images a couple of days before the ota update starts rolling.

    2. Yes.

    So you can update faster if you want, and it's even less trouble. Well I think.
    03-12-2016 10:58 PM
  21. seamus517's Avatar
    My short question, is where I can I find the images referenced below for a Moto X Pure Edition 6.0 with a Verizon Sim? (If that makes a difference)

    The long version of what I'm trying to do is below. Any comments / advice are welcome.

    I've got a Moto X Pure Edition running 6.0. Several months ago I:

    Unlocked the bootloader
    Installed TWRP
    Rooted the phone (I forget exactly how I did this, I want to say I flashed SuperSU)
    Made a Nandroid Backup

    Recently, the phone attempted to update, it went into a loop with "Teamwin" on the screen. I had to boot into recovery mode, and restored from the nandroid backup on the SD card (I had to change system from read only to read-write).

    Now I'm back in pure 6.0, unrooted, but when I tried to install the OTA security update (mine currently has a date of Nov 1), the same things teamwin boot loop happens.

    Where can I get the image file for 6.0 with the security updates?

    Also, what's the best way to re-root, flash SuperSU?


    If you are rooted, I'd urge you to keep a custom recovery (TWRP) installed, and most importantly, not lock your bootloader (unless you are absolutely sure you know what you are doing). I've seen enough folks that end up with a soft/hard brick because they lock their bootloader, and are unable to boot up into the OS.

    Now, on to your actual question: You are correct - since Lollipop, Google doesn't let the OTA install on top of a modified system. (any modification at all). If you were rooted, and you unroot, the system is still considered "modified".

    The suggested way to install the updates would be ignore the OTA completely. Wait for the factory images to be made available on Google's site. Download it, and extract the system.img from that image (also get the radio file if the radio is newer than what you have). Use fastboot to flash the system.img (and radio if newer). Reboot, and reroot using TWRP, and you are done.

    If you don't want to wait for the new factory image to be available, you can download the previous factory image, flash it, and then apply the OTA file, and then reroot using TWRP, and done.
    03-14-2016 03:11 PM
  22. lephils's Avatar
    To take an ota update you need the stock recovery.

    Or you could just flash the last factory image, and then just reflash supersu through the recovery.
    jj14x likes this.
    03-15-2016 04:53 PM
  23. seamus517's Avatar
    Thanks....that makes sense. Where can I get the factory images for my phone?

    I looked on the Motorola site and couldn't seem to find the one I need.
    03-16-2016 08:47 AM
  24. jj14x's Avatar
    03-16-2016 08:50 AM
  25. seamus517's Avatar
    Unfortunately it's not a Nexus device....it's a Motorola X PE. Is one of these compatible with my device?
    03-20-2016 09:12 AM
29 12

Similar Threads

  1. Forums App Latest Update Crashes It
    By Sizzers in forum Android Central Apps
    Replies: 10
    Last Post: 10-05-2015, 04:00 PM
  2. Replies: 0
    Last Post: 09-16-2015, 06:59 AM
  3. Replies: 1
    Last Post: 09-16-2015, 05:32 AM
  4. I was updating and lost contacts, how can I get it back?
    By AC Question in forum Samsung Galaxy S6
    Replies: 0
    Last Post: 09-16-2015, 05:05 AM
  5. s5 g900i not updating from another country
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 09-16-2015, 12:25 AM
LINK TO POST COPIED TO CLIPBOARD