How to update with TWRP - Nexus 5 Q&A, Help & Troubleshooting

Hi,
Basically I'm trying to update to lollipop via OTA so I dont lose all my data, but whenever I try and install the update, my phone reboots into TWRP, but then it just goes to the main menu and doesn't update anything.
Just wondering how I should update? Do I have to install the stock recovery? Or will that make me lose my data too?
Cheers,
Jack

I don't think it's a very good idea to update ota when your phone is rooted. I don't think it will update either because you don't have the stock recovery.
What I did personally... I backed up my 4.4 ROM and followed the instructions on bixie's stock ROM. I didn't delete my internal storage and everything carried over.
If you don't have the latest twrp. You can either download flashify from the market or you can use adb/fast boot.
Sent from my Nexus 5 using XDA Free mobile app

So I used TWRP to install that rom but lost my root in the process. Any idea's what I screwed up?
I made sure to backup using TWRP before starting.

Root is removed as the OTA removes it, just root again (if you read any of the guide threads on here you'd know this)

Related

[Q] Restore backup to get ICS OTA Update?

Before I go wiping my device again in anticipation of getting the OTA ICS update...
I made a backup of my device when I was on the original Honeycomb build after rooting. I then switched to the Prime ROM. I'm assuming that I can just restore my Honeycomb update, get Root Keeper and install the OTA update. Am I correct, or is there something that will stop me from doing this?
Edit: Also, when restoring a backup using CWM, does it automatically wipe the device before restoring, or does that need to be done manually?
I believe you also need to restore the original recovery. The last time I tried to flash an upgrade on my rooted stock image using CWM, it rebooted after downloading and rejected the (non-stock) recovery. I'm guessing the ICS update will require a reboot into the stock recovery as well.
Spookymonster said:
I believe you also need to restore the original recovery. The last time I tried to flash an upgrade on my rooted stock image using CWM, it rebooted after downloading and rejected the (non-stock) recovery. I'm guessing the ICS update will require a reboot into the stock recovery as well.
Click to expand...
Click to collapse
Indeed, no OTA update when original recovery is not installed.
I looked around a bit and saw how to unroot and restore to stock recovery... is there an easy way to just restore stock recovery? My plan was to restore my stock backup (to get off revolver) and then can go from CWM -> Stock, I just wasn't sure how to do the last part without undoing everything and fully returning to stock/no root.
It's also very possible that Root Keeper will not work since this is a new firmware form the ground up.
chadcspencer said:
It's also very possible that Root Keeper will not work since this is a new firmware form the ground up.
Click to expand...
Click to collapse
OTA Rootkeeper do not work if the system partition is formatted. Which is not the until now. Also people reported OTA rootkeeper worked to get root back after ICS update.
Otherwise use vipermod option 1 to root on ICS.
darkstar107 said:
Before I go wiping my device again in anticipation of getting the OTA ICS update...
I made a backup of my device when I was on the original Honeycomb build after rooting. I then switched to the Prime ROM. I'm assuming that I can just restore my Honeycomb update, get Root Keeper and install the OTA update. Am I correct, or is there something that will stop me from doing this?
Edit: Also, when restoring a backup using CWM, does it automatically wipe the device before restoring, or does that need to be done manually?
Click to expand...
Click to collapse
I just did exactly this. I had a nandroid backup of my original stock honeycomb so I restored the backup (I had some problems with the kernel after restoring from Revolver with some OC kernel, but flashing "plain" Revolver and then restoring the stock rom from the backup did the trick).
After that I made sure that everything is OK - I checked that I'm on the correct pieces of the software, in particular the kernel. All looked fine so I pulled OTA update, but before applying it I had to restore stock recovery. For this I used the stock recovery linked in this thread: http://forum.xda-developers.com/showthread.php?t=1154947 Just downloaded it, placed it on my SD card, rebooted into CWM recovery and flashed it (pleas note - I only downloaded this single file, not needed to download any other files mentioned n the above thread since I already been on rooted stock rom).
After booting the TF again, I made sure that my root is backed up with Supercurio's Root Keeper, then I applied the OTA and after a few minutes I was happy user of ICSed Transformer.
Please note that what worked in my case may not work in yours though. So be careful, think twice, and keep in mind that it's your decision - your risk (and if something goes wrong - your brick )
BTW, all applications, data, etc. are still in place. Root was restored via Root Keeper. Then I downloaded some updates of applications and so far I'm fine.

[Q] Going back from custom rom to stock. need some direction please.

Hello all,
sorry if this is a repeated question. I tried to read as much as I can in the Q&A and general sections, but could not find it.
I have a NS that was running CNA 1.4 for sometime. I got tired from the performance and I decided to give phone to my better half. Since my wife does not care much about custom roms, I decided to go back to stock so I can give her a care-free phone. She would be capable of doing the OTA updates on her own.
so, these are the steps I did to get to custom:
1. phone came with 2.3.4
2. unlock BL using ADB
3. root and install CWM
4. Nandroid backup
5. OTA update to 2.3.6
6. Nandroid backup
7. Custom ICS rom
when I tried to go back to stock I did a restore to step 6 above, the OTA was pushed automatically to my phone, but when I tried to install, the phone rebooted but did nothing and it seemed stuck at the android with an ! in a triangle.
I removed the battery, restored back to step 4 above and tried again and I got the same results.
I know I am probably forgetting something but I am not sure what is it.
Could someone please offer some direction?
thanks in advance.
Flash official factory images with fasttboot .
You cant get official OTAs when your device is rooted
thanks guys for your reply.
but what is the main cause for not being able to install OTA updates?
1. is it because the BL in unlocked?
2. or because of root?
if because of root, has anyone tried that app from the Market? could it be used to regain root after OTA?
https://play.google.com/store/apps/details?id=org.projectvoodoo.otarootkeeper
thanks again.
You can get ota just fine on a stock (unmodified) rom with root. You will loose root when it updates. Then just reroot it.
Bootloader state is irrelevant.
albundy2010 said:
You can get ota just fine on a stock (unmodified) rom with root. You will loose root when it updates. Then just reroot it.
Bootloader state is irrelevant.
Click to expand...
Click to collapse
thanks for the info.
one last question, when I rooted my 2.3.4, it also installed CWM recovery.
Does CWM interfere with the OTA update or just the root?
if it interferes, I'll have to find a way to go back to stock recovery, right?
Yes and no.
For the OTA process to go as "normal' stock recovery needs to be there. Normal as in get the OTA notifcation/auto download reboot and install.
No as in if you manually download or place the ota zip file on your internal storage it will flash in cwm like any other zip.
Also since ICS you currently have to flash the ota zips with aftermarkt recoverys if you do it manually. The pick zip from sd card in stock recovery is broken now.
In the stock rom under /system/etc there is a script that overwrites custom recovery with the stock one on every boot. Rename that file to .bak or something instead of its default .sh If you want to stock recovery back just change the file extenstion back and reboot the phone fully. Next time you boot back into recovery it will be stock again.
Or you don t go to stock recovery and flash the updates by yourself on your phone. Downloaf them and then flash them through CWM. But i think u havent got CWM anymore after grtting an official update. You ll get the original recovery again
thanks again guys.
currently I can go back to either 2.3.4 or 2.3.6 stock roms but both have CWM and root.
ultimately what I want to do is:
1. be able to un-root (probably using this market app)
2. download OTA on phone, do normal "reboot and install"
3. boot up with updated OTA rom.
4. regain root (probably using the same market app)
so, what I understand from prev posts, that I must put back the stock recovery (which I do not mind) for my steps above to work.
can I use ADB and fastboot to push the stock "recovery.img"? and where to find it?
I'll do some searching in the forums, but if someone happens to have link to the thread, it would be fantastic.
thanks again
Why dont you keep the root and flash the official firmware that you downloaded per CWM. So you dont have to unroot and root again later. Or do a factory wipe.
ok guys, so whatever I tried to do I was not able to get the stock recovery back to go with the "normal OTA download on phone, reboot and install thing", so here is what I ended up doing.
1. I had 2.3.6 (GRK39F), rooted stock rom, cwm recovery.
2. Download/install "OTA Rootkeeper" free app from Google Play Market. link below
3. Using "OTA Rootkeeper" app, did a "backup root", then "temp un-root"
4. Download official signed Google ICS update package to upgrade from 2.3.6 (GRK39F) to 4.0.4 (IMM76D) and move it to sd card. link below
5. Reboot into cwm recovery
6. Install update from sd card and choose Zip from #4
7. Go back and reboot system
8. After upgrade to ICS is complete, use "OTA Rootkeeper" app, did a "restore root" and voila
9. So now I have rooted stock ICS rom, and cwm recovery.
notes:
these steps should also work on whatever stock GB rom you have as long as:
a. rooted
b. have cwm
c. download the proper update package in step 4 above.
links:
2. https://play.google.com/store/apps/details?id=org.projectvoodoo.otarootkeeper
4. http://www.randomphantasmagoria.com/firmware/nexus-s/
thanks again guys, couldn't have done without your help
good luck for anyone trying to do the same.
1.Download appropriate rom for your phone
i9020T or i9023
http://downloadandroidrom.com/file/NexusS/roms/ota/2.3.6/i9020t_i9023.zip
and i9020a
http://downloadandroidrom.com/file/NexusS/roms/ota/2.3.6/i9020a.zip
2.Copy it to sdcard
3.Install it through recovery (CWM)
4.Restart system
5.Reboot phone into bootloader
6. Hit recovery and once you get the lil droidy and the !, Push Vol up + Power until you get blue menu
7. Go to wipe data/fact reset
8.Reboot to bootloader
9.then go into adb and type fastboot oem lock
By this time you shouldve completely returned your phone to stock and you are able to get ota updates and everything!!! YAY!!!!
http://www.randomphantasmagoria.com/firmware/nexus-s/
if you wanna go back to 100% stock unrooted, download any rom from that thread and install through cwm then reboot and you will be stock and unrooted with stock recovery and then just lock the boot loader and you will be 101% factory stock and ready to receive ota updates. I would recommend the 2.3.6 because it will give you the 4.0.4 ota right after you reboot.

[Q] New to rooting, updating

Hi,
I'm thinking about rooting my Note 10.1 (mostly because I want to use DicertoryBind/Link2SD) via ClockworkMod Recovery.
My questions:
I won't receive any OTA updates, cause the status will be custom, right?
I want to stay on stock FW, what can I do to update my tablet if there is a new OTA:
Can I directly flash the FW from sammobile with odin or are they not campatible with cwm? Would that mean that every time there is a new OTA, I have to unroot, flash back to stock recovery, get the OTA, flash back cwm and root again?
Isn't there a way to flash the update while keeping all my data (just like normal OTA does) and root ?
Thanks!
Kamairo said:
Hi,
I'm thinking about rooting my Note 10.1 (mostly because I want to use DicertoryBind/Link2SD) via ClockworkMod Recovery.
My questions:
I won't receive any OTA updates, cause the status will be custom, right?
Yes
I want to stay on stock FW, what can I do to update my tablet if there is a new OTA:
Can I directly flash the FW from sammobile with odin or are they not campatible with cwm? Would that mean that every time there is a new OTA, I have to unroot, flash back to stock recovery, get the OTA, flash back cwm and root again?
You can flash using ODIN, but you will need to re root the device, also chances are you will not lose data but in rare cases you will need to do a factory reset which will mean you lose all your data.
Isn't there a way to flash the update while keeping all my data (just like normal OTA does) and root ?
Above answer should answer this also but you will need to re-root the device
Thanks!
Click to expand...
Click to collapse
Hope this answers all queries
You can flash using ODIN, but you will need to re root the device, also chances are you will not lose data but in rare cases you will need to do a factory reset which will mean you lose all your data.
Click to expand...
Click to collapse
Okay, that means I download the firmware from for instance sammobile, flash it using ODIN (will that be PDA only, like flashing cwm?), and then re root means install superSU again from cwm or installing cwm completely new?
*edit* Thanks for the sticky!
Yes you can use this post to know how to install using odin http://forum.xda-developers.com/showthread.php?t=2080366
You do not require CWM to root you can use the exynos patch apk to root you can download the apk from here
http://forum.xda-developers.com/showthread.php?t=2050297
samir_a said:
Yes you can use this post to know how to install using odin http://forum.xda-developers.com/showthread.php?t=2080366
You do not require CWM to root you can use the exynos patch apk to root you can download the apk from here
http://forum.xda-developers.com/showthread.php?t=2050297
Click to expand...
Click to collapse
Hey, thanks so far, I just installed CWM, everything went fine, but if I look at the system status it still says "offical", does that mean I can receive OTA's? Or won't that work cause of CWM?
Also I believe before it didn't say "official" but "normal".
*edit* okay, nevermind, after a reboot it sys now "custom"
Since you have rooted your device you can also use Mobile ODIN to flash the roms from sammfirmware directly on your note 10.1. You just make sure everroot is ticked but if you think you might loose root then have both the CWM.tar file saved on your device, its a tiny file so no real space lost or if you don't care about CWM but want root access then keep the exynosexploit.apk on your device. I have everything I need on the sd card in case I cant get to a PC. Much better when I'm not tied to the PC...
ultramag69 said:
Since you have rooted your device you can also use Mobile ODIN to flash the roms from sammfirmware directly on your note 10.1. You just make sure everroot is ticked but if you think you might loose root then have both the CWM.tar file saved on your device, its a tiny file so no real space lost or if you don't care about CWM but want root access then keep the exynosexploit.apk on your device. I have everything I need on the sd card in case I cant get to a PC. Much better when I'm not tied to the PC...
Click to expand...
Click to collapse
Thanks so far, but theres one question left: From what you've said I think it's possible to flash with odin or mobile odin while CWM is still installed, what will happen to CWM after the flash? Is it completely gone (stock recovery comes with the firmware?!) or does "re root" only mean that I have to reinstall superSU with CWM?
You will go back to stock recovery but you might retain root if you ticked everoot function....
As I said earlier, you can reflash CWM onto your Note using mobile ODIN if you have the CWM.tar file stored on your device...
+1 for Mobile Odin if you're wanting to stay stock.
Use Exynos Abuse to root the first time.
Install Mobile Odin pro.
Backup your EFS partition off the device.
Install CWM using Mobile Odin and make a nandroid backup.
Back up apps with Titanium if required.
Download the new stock from you want and use Mobile Odin to install with Everoot selected.
Use Mobile Odin to install CWM.
Simplest method I've found by far.
Sent from my GT-N7100 using xda premium
After rooting with exynos abuse root, can you just do a factory reset to make you stock again to get OTA's?
I don't believe so (prepared to be corrected) but if you reinstall the stock rom without Everoot ticked and factory reset you'll be back to stock unmodified.
Sent from my GT-N7100 using xda premium
Never tried but I don't think so, The OTA checks for an unmodified system and even though stock recovery says its official the status in settings is "Custom".
What if I'm on the stock rom (never went custom) and stock recovery. All I did was root? Would a recovery restore allow me to get OTA's?
if you are on stock recovery then why would you restore recovery.
Yes if you are rooted only you will receive OTA if you are on the orignal rom (rom from country which note was purchased irrespective of the version you are on)
samir_a said:
if you are on stock recovery then why would you restore recovery.
Yes if you are rooted only you will receive OTA if you are on the orignal rom (rom from country which note was purchased irrespective of the version you are on)
Click to expand...
Click to collapse
That is my situation, exactly. So, I can take OTAs in my present situation? I used #2 root option from zedomax. I haven't changed anything or used a custom rom. All I want to do is get current on my updates, and retain root and CWM.
Should I also use TriangleAway, and at what point? Thank you.
Apologies to the OP, but I've been waiting for a chance to resolve this.
If you used method 2 you have replaced the stock recovery... That's what CWM recovery means...
You're flash counter will now be one and need to be reset using triangle away. No OTA for you...
ultramag69 said:
If you used method 2 you have replaced the stock recovery... That's what CWM recovery means...
You're flash counter will now be one and need to be reset using triangle away. No OTA for you...
Click to expand...
Click to collapse
Thank you.

4.4.3 Download failed

I just recently got the newest update. I downloaded all 99mb of it, plugged in my charger and it rebooted to update my phone. But when it turned on again my phone hasn't been updated, it's still 4.4.2. Checking for updates doesn't work at all.
Anyone have a clue where the download is stored so I can just try to manually flash it?
Stock ROM & Kernel 4.4.2
Rooted
CWM Touch recovery
Sent from my Nexus 5
JustinBieber said:
I just recently got the newest update. I downloaded all 99mb of it, plugged in my charger and it rebooted to update my phone. But when it turned on again my phone hasn't been updated, it's still 4.4.2. Checking for updates doesn't work at all.
Anyone have a clue where the download is stored so I can just try to manually flash it?
Stock ROM & Kernel 4.4.2
Rooted
CWM Touch recovery
Sent from my Nexus 5
Click to expand...
Click to collapse
I read somewhere that the script will abort if your device is rooted. Not sure if this applies to you.
robbham78 said:
I read somewhere that the script will abort if your device is rooted. Not sure if this applies to you.
Click to expand...
Click to collapse
Incorrect. Root has nothing to do with it. You will lose root after updating, but it's as simple as flashing SuperSU in your custom recovery to get it back. The reason it's failing is because you have a custom recovery, and are trying to apply the OTA from within Android. If you do that, you have to have stock recovery. If you are stock, just with root, you can flash the OTA.zip using your CWM recovery. The OTA.zip can be found in the /cache directory. I believe it reverts your custom recovery back to stock recovery, but getting it back is as easy as fastboot flashing it.
charesa39 said:
Incorrect. Root has nothing to do with it. You will lose root after updating, but it's as simple as flashing SuperSU in your custom recovery to get it back. The reason it's failing is because you have a custom recovery, and are trying to apply the OTA from within Android. If you do that, you have to have stock recovery. If you are stock, just with root, you can flash the OTA.zip using your CWM recovery. The OTA.zip can be found in the /cache directory. I believe it reverts your custom recovery back to stock recovery, but getting it back is as easy as fastboot flashing it.
Click to expand...
Click to collapse
Thanks guys, I didn't know everything had to be stock! plus I found out that xposed will also break the ota
There's an OTA help desk sticky thread in general that tells you everything you need to know
Sent from my Nexus 5 using Tapatalk

Updating while rooted

I want to update to the new 12.1-YOG7DAS2K1 and I haven't found any tutorials or anything that really actually helped so could anyone tell me how I could do it and keep root I tried just going and updating with TRWP but I got an error which I think it because I'm using the latest version of TWRP which I can fix that but I can't find anything saying if I will lose root or stuff like xposed if I update
If I'm not mistaken, the full flashable zip is not released yet, so your best bet is to update it OTA, which will remove root. You can then re-flash TWRP recovery and SuperSU to regain root. I can't comment on Xposed as I don't use it.
I always believed in not taking OTA updates while rooted. I know it's different with cm and o²os and all, but it's just good habits. Wait for a twrp flashable of the update
lucaboox said:
I want to update to the new 12.1-YOG7DAS2K1 and I haven't found any tutorials or anything that really actually helped so could anyone tell me how I could do it and keep root I tried just going and updating with TRWP but I got an error which I think it because I'm using the latest version of TWRP which I can fix that but I can't find anything saying if I will lose root or stuff like xposed if I update
Click to expand...
Click to collapse
Check here the full flashable zip has been available for awhile now. Wipe system and flash ROM + supersu and profit.
http://forum.xda-developers.com/showthread.php?t=2906746
oble said:
If I'm not mistaken, the full flashable zip is not released yet, so your best bet is to update it OTA, which will remove root. You can then re-flash TWRP recovery and SuperSU to regain root. I can't comment on Xposed as I don't use it.
Click to expand...
Click to collapse
OTA will never work on a rooted phone FYI. You need a stock system with CM recovery for it to pass the OTA checks and for it to successfully flash
Sent from my A0001 using Tapatalk
Renosh said:
Check here the full flashable zip has been available for awhile now. Wipe system and flash ROM + supersu and profit.
http://forum.xda-developers.com/showthread.php?t=2906746
OTA will never work on a rooted phone FYI. You need a stock system with CM recovery for it to pass the OTA checks and for it to successfully flash
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
Can I just flash it without reseting and keep all my apps and what not or do I have to do a reset? Also this will reset Xposed right?
You can flash this via twrp recovery
cm-12.1-YOG7DAS2K1-bacon-signed.zip
From
http://forum.xda-developers.com/showpost.php?p=63421581&postcount=3
You can backup your apps in titanium backup after flash above ROM you can restore them.
Official cm 13 came up. Aren't you know ? That can also twrp flashable. I get in CyanogenMod website.
I flashed one of them and got it updated no apps reset or anything have everything along with Xposed and Root
https://download.cyanogenmod.org/?device=bacon would the newest nightly be the right thing to do and I don't really know what has changed in CM 13 anything removed that was big?

Categories

Resources