[Q] How do I update TWRP from an older version on Oneplus One? - ONE Q&A, Help & Troubleshooting

I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.

BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
you do not have to unlock your bootloader again. you can use the fastboot method.
but there is also flashable zip you can flash in recovery to update TWRP (This method is easier in my opinion). you can get it from here
-->https://www.androidfilehost.com/?w=files&flid=19646
that link is from Temasek CM12.1 thread http://forum.xda-developers.com/oneplus-one/development/rom-cm11-temasek-build-t2870743
you can visit the thread for more info. be sure to take nandroid backup before flashing.

BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
This method works without a PC.
1) Download the recovery image from TWRP website
2) Install Flashify from Play Store
3) Flash the recovery image through Flashify
And that's it and root access is definitely required.

BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
All you need to do is flash the updated version the same way that you flashed when you first installed it, with fastboot. No you don't need to unlock the bootloader again unless you've previously locked it yourself.
Code:
fastboot flash recovery <recovery.img>
XDA Moderator
Transmitted via Bacon

Related

[Q] one xl stuck

Okay, I tried putting a new rom on my at&t one xl, and it did something horribly wrong. I was able to get to recovery and it told me I had no operating system, the I tried flashing a new rom again. At this point it restarted the phone got stuck at the splash screen and now I cant even get to recovery just the fast boot and boot loader. Any help would greatly appreciated.
You haven't given any of the vital information required to help you. Please provide the following:
hboot/firmware version
S-on or s-off
Recovery version
What ROM(s) you were trying to flash
What you have done to try to recover
Sent from my Evita
timmaaa said:
You haven't given any of the vital information required to help you. Please provide the following:
hboot/firmware version
S-on or s-off
Recovery version
What ROM(s) you were trying to flash
What you have done to try to recover
Sent from my Evita
Click to expand...
Click to collapse
hboot 1.14.002
s is off
cant remember recovery version since I can't access it
I had viper rom and I was going to cyanogen mod 10.1
and I thought I had a titanium backup but my whole sd card go deleted, so I mounted my sd card and got the rom again and flashed it and at that point I couldn't go back to recovery
Did you read the OP for cm10.1? It states in the requirements that you must RUU up to the latest (3.18) to run that ROM. In terms of your recovery, just flash it again from fastboot.
Sent from my Evita
timmaaa said:
Did you read the OP for cm10.1? It states in the requirements that you must RUU up to the latest (3.18) to run that ROM. In terms of your recovery, just flash it again from fastboot.
Sent from my Evita
Click to expand...
Click to collapse
I must of completely overseen that. and sir the only option I have on my boot is fast boot, recovery, factory reset, clear storage, simlock, image crc, and power down. I don't know how to even flash things at this point.
and only options I fast boot are bootloader, reboot, reboot boot loader and powerdown
That's all you need to RUU, it's an exe file that you just run while your phone is connected in fastboot mode. You'll need top flash your recovery again, then you can flash a ROM.
Download the RUU
Run the RUU
Download recovery
Flash recovery
Flash ROM
The fastboot command to flash the recovery is:
fastboot flash recovery "recovery.img"
(The exact recovery filename, without the talking marks)
fastboot erase cache
fastboot reboot-bootloader
Now you can enter recovery on your phone, mount usb storage, copy ROM to phone, flash ROM.
Sent from my Evita
Thanks guys. My kids an idiot and did this today to his phone (my old phone). He got the information from you guys and left it to me to fix when I got home.
timmaaa said:
That's all you need to RUU, it's an exe file that you just run while your phone is connected in fastboot mode. You'll need top flash your recovery again, then you can flash a ROM.
Download the RUU
Run the RUU
Download recovery
Flash recovery
Flash ROM
The fastboot command to flash the recovery is:
fastboot flash recovery "recovery.img"
(The exact recovery filename, without the talking marks)
fastboot erase cache
fastboot reboot-bootloader
Now you can enter recovery on your phone, mount usb storage, copy ROM to phone, flash ROM.
Sent from my Evita
Click to expand...
Click to collapse
Cool glad ur all set
Sent from my HTC One XL using xda premium

Remove twrp and get back to factory state, need help!!!

Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
td32 said:
Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
Click to expand...
Click to collapse
See here.
gregc2009 said:
See here.
Click to expand...
Click to collapse
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
td32 said:
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
Click to expand...
Click to collapse
I would do it all just to make sure you are back to complete stock since you mentioned you rooted the device also.
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Code:
. If the tamper flag value is "true", then you'll have to reset it. The following steps will reset this flag, and lock your bootloader.
•So, first, go here: http://forum.xda-developers.com/show....php?t=2239421 (Thanks @osm0sis for the wonderful script)
Under "Flashable Zips", you will find the Nexus BootUnlocker script. Download it.
•Put the zip on your internal storage.
•Download the latest TWRP recovery image for the Nexus 5 from here: http://techerrata.com/browse/twrp2/hammerhead. Rename it to TWRP.img.
Now boot it. You do this by booting your phone in fastboot, and typing the following command:
Code:
fastboot boot path/to/TWRP.img
TWRP recovery should boot.
•Flash the zip in TWRP, then reboot.
Now your bootloader should be locked, and your tamper flag should show "false".
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
td32 said:
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
Click to expand...
Click to collapse
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Sorry man but i'm not getting something here.
If i flash everything first, even the recovery will be stock, so i have to flash twrp once again to flash the tamper flag script. So i end up with twrp recovery and the tamper flag reset, while it should be stock recovery and tamper flag reset.
What i'm i missing here?
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
pepdavies said:
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
Click to expand...
Click to collapse
ok thank, now its all clear
i should have paid more attention to the command :silly:
It says boot not flash :silly:
Thanks for you help guys

CWM no command

Hey there guys. I have recently flashed CWM-touch-6.0.4.7-falcon.img im able to go into recovery when i flash it, on reboot i selected yes for the fix install stock recovery, when back to recovery and it has an android with an exclamation mark coming out of it with it saying 'no command' at the bottom. How do i fix this? Moto G 3G 1st gen
You can try:
Code:
fastboot erase recovery
And then:
Code:
fastboot flash recovery recoveryname.img
After you flash the custom recovery boot into it right away and see if that works.
.:Dark:. said:
You can try:
Code:
fastboot erase recovery
And then:
Code:
fastboot flash recovery recoveryname.img
After you flash the custom recovery boot into it right away and see if that works.
Click to expand...
Click to collapse
I did that and it was all success but same thing happened
Also i tried flashing stock recovery but still no luck
An Android with an exclamation with 'no command' means you are on the stock recovery. Did you try the latest TWRP?
legolas06 said:
An Android with an exclamation with 'no command' means you are on the stock recovery. Did you try the latest TWRP?
Click to expand...
Click to collapse
Oh right ok. No i haven't used TWRP, i don't really like it. I tried CWM touch but i haven't tried normal CWM yet
You can also try philz recovery. Not sure why it won't stick after you flash but be sure go into recovery right after you finish flashing otherwise it will overwrite back to stock I believe.
.:Dark:. said:
You can also try philz recovery. Not sure why it won't stick after you flash but be sure go into recovery right after you finish flashing otherwise it will overwrite back to stock I believe.
Click to expand...
Click to collapse
I always go straight into recovery after i flash it but when i reboot it goes back to stock recovery :/
What message do you get after flashing the recovery? Previously I got 'partition size mismatch' indicating I flashed a recovery different from stock. Philz & TWRP worked fine for me.
legolas06 said:
What message do you get after flashing the recovery? Previously I got 'partition size mismatch' indicating I flashed a recovery different from stock. Philz & TWRP worked fine for me.
Click to expand...
Click to collapse
I forget, ill check it tomorrow as today i am a bit busy
I get a mismatch partition size (recovery) when i flash. I boot straight away to recovery, then say yes to disable flash stock recovery, reboot into recovery and stock recovery. I flashed the non touch CWM this time
bublz654 said:
I get a mismatch partition size (recovery) when i flash. I boot straight away to recovery, then say yes to disable flash stock recovery, reboot into recovery and stock recovery. I flashed the non touch CWM this time
Click to expand...
Click to collapse
Then sorry I'm not sure about the reason. May be you downloaded a wrong recovery or that recovery doesn't work with your bootloader. Just search the thread you downloaded this from to find any solution. Or if you don't like the TWRP try Philz touch as it is CWM based.
http://forum.xda-developers.com/showthread.php?t=2639583 .
Currently the only supported recovery for moto g is TWRP by h2o64.
legolas06 said:
Then sorry I'm not sure about the reason. May be you downloaded a wrong recovery or that recovery doesn't work with your bootloader. Just search the thread you downloaded this from to find any solution. Or if you don't like the TWRP try Philz touch as it is CWM based.
http://forum.xda-developers.com/showthread.php?t=2639583 .
Currently the only supported recovery for moto g is TWRP by h2o64.
Click to expand...
Click to collapse
I have flashed CWM-touch and normal CWM before until flashify came along and made my recovery screwed up
I suggest you try using mfastboot included here: https://www.androidfilehost.com/?fid=23578570567719065
NOTE: mfastboot erase recovery is not required. Simply use: mfastboot flash recovery recovery.img
lost101 said:
I suggest you try using mfastboot included here: https://www.androidfilehost.com/?fid=23578570567719065
NOTE: mfastboot erase recovery is not required. Simply use: mfastboot flash recovery recovery.img
Click to expand...
Click to collapse
I just tried that and still the same issue occurs
bublz654 said:
I just tried that and still the same issue occurs
Click to expand...
Click to collapse
Could you try the latest TWRP just to rule out a bad recovery.img: http://forum.xda-developers.com/moto-g/development/recovery-twrp-2-8-2-0-touch-recovery-t2980621
lost101 said:
Could you try the latest TWRP just to rule out a bad recovery.img: http://forum.xda-developers.com/moto-g/development/recovery-twrp-2-8-2-0-touch-recovery-t2980621
Click to expand...
Click to collapse
I'll try the philz recovery first as Im not a real big fan of twrp lol
lost101 said:
Could you try the latest TWRP just to rule out a bad recovery.img: http://forum.xda-developers.com/moto-g/development/recovery-twrp-2-8-2-0-touch-recovery-t2980621
Click to expand...
Click to collapse
I flashed philz recovery. Rebooted again and went into recovery and it worked, the recovery was still there
But one more thing on reboot of recovery it didn't ask if i wanted to fix root. Am i rooted already or not? :/
Are you on stock or a custom rom? Certain custom roms may have built in root access for everything else you will have to flash SuperSU.
Glad to see you got the recovery issue sorted. I'm with you I don't particularly like TWRP so I pretty much use Philz exclusively.

Cant flash any updated Recovery; Rom is Bricked

Hey, so I went to install Android 6.0 on my OPO, but there seemed to be some driver issue with the Wifi.
So I wanted to go back to my original OS, that I had backuped. I had the same Problems on this one too - as soon as I would enable WiFi, It would just crash and reboot after a few seconds.
Then I thought, perhaps with a updated Recovery it would work. So i tried to install a newer version of TWRP.
This is what happens:http://forum.xda-developers.com/attachment.php?attachmentid=3627932&stc=1&d=1454171784
Any help would be much appreciated - thanks!
Check to see if ur bootloader is still unlocked
Bradl79 said:
Check to see if ur bootloader is still unlocked
Click to expand...
Click to collapse
How exactly do you mean that?
I issued the command "fastboot oem unlock" prior to trying to flash.
LennartFuchs said:
How exactly do you mean that?
I issued the command "fastboot oem unlock" prior to trying to flash.
Click to expand...
Click to collapse
Try this: fastboot oem device-info, and show us what it says.
fastboot flash recovery xxxx.img
Don't need to erase recovery it will overwrite existing recovery
deziguy420 said:
fastboot flash recovery xxxx.img
Don't need to erase recovery it will overwrite existing recovery
Click to expand...
Click to collapse
He can't, his OPO doesn't seem to be unlocked. Look in the screenshot please...
fastboot oem device-info
Post ur screenshot here

January Update

I have this problem with last update (January security patch).
No root, locked bootloader...
NMF26U from NMF26O OTA URL approx 48MB:
https://ota.googlezip.net/packages/.../8ee38294041837b0d077b53e1c19afd374bfa23d.zip
how to apply this package to my current build NMF26U which was rooted and twrp installed.
xdatastic said:
NMF26U from NMF26O OTA URL approx 48MB:
https://ota.googlezip.net/packages/.../8ee38294041837b0d077b53e1c19afd374bfa23d.zip
Click to expand...
Click to collapse
bush911 said:
how to apply this package to my current build NMF26U which was rooted and twrp installed.
Click to expand...
Click to collapse
You have to flash the full image if you were rooted, OTA won't work.
Edit: Well you might be able to flash the stock kernel for the previous version and OTA.
to flash ota if rooted:
fastboot flash boot_a boot.img (current or previous it dont matter)
fastboot flash boot_b boot.img (current or previous it dont matter)
reboot recovery
adb sideload ota.zip (changes to new slot, i prefer slot a, i do it twice, but boot into bootloader before sideloading the second time)
to get root again:
fastboot boot twrp.img
once in twrp, install twrp if wanted, then newest supersu
reboot
note:
for elementalx kernel, i do the above (install twrp), and then after i reboot, i adb reboot recovery and install elementalx
for Sharkey kernel after i fastboot boot twrp i install (in order): sharkey kernel, twrp, supersu
for franco kernel (jan update not available yet), before booting twrp, i fastboot flash kernel first then fastboot boot twrp
bush911 said:
how to apply this package to my current build NMF26U which was rooted and twrp installed.
Click to expand...
Click to collapse
Do you think you can consolidate your 10 posts across 5 different threads into one clear and concise request? You are all over the map on this and cross posting is very annoying.
Sorry for the inconvenience, as this new device came with 2 slots, I had to make sure not to brick the phone.
bobby janow said:
Do you think you can consolidate your 10 posts across 5 different threads into one clear and concise request? You are all over the map on this and cross posting is very annoying.
Click to expand...
Click to collapse
johnandbodhi said:
to flash ota if rooted:
fastboot flash boot_a boot.img (current or previous it dont matter)
fastboot flash boot_b boot.img (current or previous it dont matter)
reboot recovery
adb sideload ota.zip (changes to new slot, i prefer slot a, i do it twice, but boot into bootloader before sideloading the second time)
to get root again:
fastboot boot twrp.img
once in twrp, install twrp if wanted, then newest supersu
reboot
note:
for elementalx kernel, i do the above (install twrp), and then after i reboot, i adb reboot recovery and install elementalx
for Sharkey kernel after i fastboot boot twrp i install (in order): sharkey kernel, twrp, supersu
for franco kernel (jan update not available yet), before booting twrp, i fastboot flash kernel first then fastboot boot twrp
Click to expand...
Click to collapse
Why do we need to do this with the boot images? I dont think I did this last time for the OTA? I'm unlocked BL and rooted but stock recovery.
km8j said:
Why do we need to do this with the boot images? I dont think I did this last time for the OTA? I'm unlocked BL and rooted but stock recovery.
Click to expand...
Click to collapse
stock recovery in both slots..chainfire recommended it initially and i still do it..
johnandbodhi said:
stock recovery in both slots..chainfire recommended it initially and i still do it..
Click to expand...
Click to collapse
Can you help me with a little more detail on this? Wouldn't I already have it in both slots? Do I need to download a new recovery image?
I'm new to ADB and fastboot, but I found using the flash-all minus the -w in the script (and putting ./ in front of the commands in the script cuz I'm on a Mac) the easiest way to upgrade to the latest version. And it does all the flashing to the correct a and b partitions. Had to reinstall TWRP and root at the end and the whole process took 5 minutes.
OP, do you think that everyone can understand your screenshot??
km8j said:
Can you help me with a little more detail on this? Wouldn't I already have it in both slots? Do I need to download a new recovery image?
Click to expand...
Click to collapse
Bump

Categories

Resources