Post Reply

Simple TWRP instructions for flashing ROMs

OP @wells

3rd February 2014, 07:04 PM   |  #1  
@wells's Avatar
OP Senior Member
Zagreb, HR
Thanks Meter: 363
 
466 posts
Join Date:Joined: Feb 2014
More
So many posts with errors while flashing custom ROMs and flaming it then. No need.

Always flash latest TWRP found here:

http://techerrata.com/browse/twrp2/hammerhead

To flash recovery use fastboot:

fastboot devices

(some number should appear here)

fastboot flash recovery

Or you can use Flashify or similar if already rooted. But, go ahead and learn to fastboot.

(Thanks to @simms22 for telling me to clarify)

first thing you want to do is backup your EFS partition in twrp and copy it to safe place (aka your computer or some secure cloud) - thanks to @gee2012 for headsup.


So now to the ROM flashing / fun part:

Installing custom ROMS/Gapps packages (thanks to @kufikugel for headsup)

Go to Wipe -> Advanced, format system (as your previous custom ROM/Gapps has most probably added backup scripts in system/addon.d), data, cache & dalvik. reboot recovery. flash new ROM & gapps as you would usually.

Easy?

Peace!
Last edited by @wells; 11th April 2014 at 08:29 PM.
The Following 5 Users Say Thank You to @wells For This Useful Post: [ View ]
3rd February 2014, 07:24 PM   |  #2  
simms22's Avatar
Recognized Contributor
BROOKLYN!
Thanks Meter: 21,865
 
26,264 posts
Join Date:Joined: Jun 2009
lol, you didnt include instructions on how to flash twrp in your instructions post. maybe you should add instructions?
anyways, twrp is flashed via fastboot, not recovery. you can also flash it with the flashify app if you already have root(or the twrp manager app). also, wiping one time is too much. you never ever need to wipe when flashing a recovery.
Last edited by simms22; 3rd February 2014 at 07:27 PM.
The Following User Says Thank You to simms22 For This Useful Post: [ View ]
3rd February 2014, 07:28 PM   |  #3  
@wells's Avatar
OP Senior Member
Zagreb, HR
Thanks Meter: 363
 
466 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by simms22

twrp is flashed via fastboot, not recovery. you can also flash it with the flashify app if you already have root(or the twrp manager app).

And I nowhere mentioned twrp is flashed via recovery . I will edit my post to clarify I mean flashing custom ROMs via twrp.
3rd February 2014, 07:28 PM   |  #4  
simms22's Avatar
Recognized Contributor
BROOKLYN!
Thanks Meter: 21,865
 
26,264 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by TIMMAH!

And I nowhere mentioned twrp is flashed via recovery . I will edit my post to clarify I mean flashing custom ROMs via twrp.

you mentioned about wiping. wiping is done in recovery.
3rd February 2014, 07:35 PM   |  #5  
@wells's Avatar
OP Senior Member
Zagreb, HR
Thanks Meter: 363
 
466 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by simms22

you mentioned about wiping. wiping is done in recovery.

There I fixed it, my post was aimed to post-installing-twrp era. Thanks!
The Following User Says Thank You to @wells For This Useful Post: [ View ]
8th April 2014, 09:11 PM   |  #6  
@wells's Avatar
OP Senior Member
Zagreb, HR
Thanks Meter: 363
 
466 posts
Join Date:Joined: Feb 2014
More
update: even with 2.7.0.0 you'll most probably run into issues flashing ROM if you format system and don't reboot recovery.. so just do it.
8th April 2014, 09:17 PM   |  #7  
gee2012's Avatar
Recognized Contributor
Flag Heerlen
Thanks Meter: 3,145
 
8,558 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by @wells

I'm well aware I am n00b in your eyes, but still.. so many posts with TWRP 2.6.3.4 errors while flashing custom ROMs and flaming it then. No need.

Always flash latest TWRP found here:

http://techerrata.com/browse/twrp2/hammerhead

To flash recovery use fastboot:

fastboot devices

(some number should appear here)

fastboot flash recovery <filename.img>

Or you can use Flashify or similar if already rooted. But, go ahead and learn to fastboot.

(Thanks to @simms22 for telling me to clarify)

So now to the ROM flashing / fun part:

Don't wipe system as most ROM scripts will do it for you or if you do, unmount system before flashing (or even better just reboot recovery and then flash your custom ROM).

Easy?

Also, no need to wipe multiple times anything before custom ROM flashing, it does nothing, just once is enough and just factory reset is usually enough, no need for advanced wipes.

Hope this helps somebody, mods if you think this should go away, just make it go away, not trying to be clever one.

Peace!

Maybe its usefull to add/mention the option to backup the EFS folder in TWRP and users should copy it to the PC once they backed it up
Last edited by gee2012; 8th April 2014 at 09:20 PM.
The Following User Says Thank You to gee2012 For This Useful Post: [ View ]
9th April 2014, 12:30 AM   |  #8  
kufikugel's Avatar
Recognized Themer
Thanks Meter: 17,769
 
2,977 posts
Join Date:Joined: Aug 2012
Donate to Me
Well I would prefer when you add the hint that switching ROMs or gapps packages the user should wipe manually system prior the flash.

It is right that every ROM flash will format the system partition. But all ROMs have since long time backup scripts (for gapps and such things). When you flash a ROM it searches for this scripts, all things mentioned in the script will be copied to the data partition.... ROM formats the system partition installs its stuff and restores the copied stuff from data partition back.

Due that every gapps package is slightly different and as well a lot ROMs package own scripts into the addon.d folder this results always in problems. And a factory reset does not wipe this scripts. Only a manual format system.

Sent from my Nexus 5 using Tapatalk
The Following User Says Thank You to kufikugel For This Useful Post: [ View ]
9th April 2014, 12:34 AM   |  #9  
jd1639's Avatar
Recognized Contributor
Minnetonka, MN
Thanks Meter: 3,527
 
10,231 posts
Join Date:Joined: Sep 2012
I flashed a rom per your instructions and get force closures in play music. What should I do?

Sent from my Nexus 5
9th April 2014, 02:23 AM   |  #10  
@wells's Avatar
OP Senior Member
Zagreb, HR
Thanks Meter: 363
 
466 posts
Join Date:Joined: Feb 2014
More
@kufikugel & @gee2012 done, thanks for the headsup
@jd1639
try clearing data from Play music app, not sure it's related to these instructions..

The Following User Says Thank You to @wells For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 5 General by ThreadRank