Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,101 Members 43,018 Now Online
XDA Developers Android and Mobile Development Forum

Simple TWRP instructions for flashing ROMs

Tip us?
 
@wells
Old
(Last edited by @wells; 11th April 2014 at 08:29 PM.)
#1  
@wells's Avatar
Senior Member - OP
Thanks Meter 363
Posts: 466
Join Date: Feb 2014
Location: Zagreb, HR
Default Simple TWRP instructions for flashing ROMs

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!
The Following 5 Users Say Thank You to @wells For This Useful Post: [ Click to Expand ]
 
simms22
Old
(Last edited by simms22; 3rd February 2014 at 07:27 PM.)
#2  
simms22's Avatar
Recognized Contributor
Thanks Meter 21015
Posts: 25,311
Join Date: Jun 2009
Location: BROOKLYN!
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.
Google+ Profile
Twitter Simms22
DerKernel For Trinity kernels and more!
The Following User Says Thank You to simms22 For This Useful Post: [ Click to Expand ]
 
@wells
Old
#3  
@wells's Avatar
Senior Member - OP
Thanks Meter 363
Posts: 466
Join Date: Feb 2014
Location: Zagreb, HR
Quote:
Originally Posted by simms22 View Post
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.
 
simms22
Old
#4  
simms22's Avatar
Recognized Contributor
Thanks Meter 21015
Posts: 25,311
Join Date: Jun 2009
Location: BROOKLYN!
Quote:
Originally Posted by TIMMAH! View Post
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.
Google+ Profile
Twitter Simms22
DerKernel For Trinity kernels and more!
 
@wells
Old
#5  
@wells's Avatar
Senior Member - OP
Thanks Meter 363
Posts: 466
Join Date: Feb 2014
Location: Zagreb, HR
Quote:
Originally Posted by simms22 View Post
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: [ Click to Expand ]
 
@wells
Old
#6  
@wells's Avatar
Senior Member - OP
Thanks Meter 363
Posts: 466
Join Date: Feb 2014
Location: Zagreb, HR
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.
 
gee2012
Old
(Last edited by gee2012; 8th April 2014 at 09:20 PM.)
#7  
gee2012's Avatar
Recognized Contributor
Thanks Meter 2918
Posts: 8,013
Join Date: Jul 2010
Location: Heerlen
Quote:
Originally Posted by @wells View Post
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
USE Search: /this thread /all threads/Google before posting your question, you`re most likely not the first one having this issue
The Following User Says Thank You to gee2012 For This Useful Post: [ Click to Expand ]
 
kufikugel
Old
#8  
kufikugel's Avatar
Recognized Themer
Thanks Meter 17689
Posts: 2,977
Join Date: 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

Devices: Nexus 5 - hammerhead - SlimKAT

If you like my work or think I have helped
simply buy me a beer or hit the thanks button
The Following User Says Thank You to kufikugel For This Useful Post: [ Click to Expand ]
 
jd1639
Old
#9  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3160
Posts: 9,338
Join Date: Sep 2012
Location: Minnetonka, MN
I flashed a rom per your instructions and get force closures in play music. What should I do?

Sent from my Nexus 5
 
@wells
Old
#10  
@wells's Avatar
Senior Member - OP
Thanks Meter 363
Posts: 466
Join Date: Feb 2014
Location: Zagreb, HR
@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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes