Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,870 Members 49,415 Now Online
XDA Developers Android and Mobile Development Forum

TWRP and MD5 Checking during flashing

Tip us?
 
geoffcorey
Old
#1  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 477
Posts: 2,157
Join Date: Apr 2010
Default TWRP and MD5 Checking during flashing

Anyone familiar with how TWRP goes about checking for MD5SUM matching on a file that is being flashed?

Like, do you need to have a .md5 with the same name as the .zip you're flashing? or what is the structure required?

I've tried googling this, but i haven't gotten anywhere, mainly just stuff about md5 and nandroids.
"If we amplify everything, nothing is heard."
 
jerrycycle
Old
#2  
jerrycycle's Avatar
Senior Member
Thanks Meter 157
Posts: 1,215
Join Date: Aug 2009
Not sure about your question but the Md5 can be checked with root explorer -long press package of choose-tap properties
Phone: Htc One Max T6VZW
Rom: CM11
Theme: Black KitKat
Recovery: TWRP 2.7.1.0
Kernel: Default
Android version: 4.4.4
The Following User Says Thank You to jerrycycle For This Useful Post: [ Click to Expand ]
 
bilbo524
Old
(Last edited by bilbo524; 5th September 2012 at 11:53 PM.)
#3  
bilbo524's Avatar
Member
Thanks Meter 35
Posts: 79
Join Date: Jun 2009
Location: Greensboro, NC
After a little research and testing, this is what worked for me.

If all you have is the MD5 hash, then put it in a text file in the same directory as the zip you want to flash. The format should look like this:

Code:
Select Code
1234567890abcdef1234567890 *app-20120905-final.zip
If the zip is named, for example:
Quote:
app-20120905-final.zip

then that is what goes in the file after the asterisk ( * ).

Also, in this case, the text file you create should be named:
Quote:
app-20120905-final.zip.md5


Hope this helps.

Edit: I just realized how old this thread was. However, I did not find any answers to this question when searching, so hopefully this is still of use to someone.

S-OFF, locked, HBOOT 1.44.0000
ROM: CM11 Nightly Recovery: TWRP 2.6.3.0
Radio: 1.00.20.0315 PRI: 3.17_003 PRL: 55015

TF-101, C10
ROM: CM10 Nightly Recovery: TWRP 2.2.2.1


Retired: HTC EVO 4G LTE, HTC EVO Shift 4G, HTC TouchPro2, HTC TouchPro, HTC Mogul (PPC-6800), Sanyo MM-9000, Sanyo VI-2300, Sanyo Katana DLX, Sanyo Katana II, Samsung VGA1000, LG LX5350
The Following 17 Users Say Thank You to bilbo524 For This Useful Post: [ Click to Expand ]
 
geoffcorey
Old
#4  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 477
Posts: 2,157
Join Date: Apr 2010
Thanks for the reply.

I ended up a few weeks ago going to #twrp or #openrecovery (can't remember which) and asked them, and was pointed to a guide:

md5sum some_file.zip > some_file.zip.md5

Sent from my Galaxy Nexus using Tapatalk 2
"If we amplify everything, nothing is heard."
The Following User Says Thank You to geoffcorey For This Useful Post: [ Click to Expand ]
 
bilbo524
Old
#5  
bilbo524's Avatar
Member
Thanks Meter 35
Posts: 79
Join Date: Jun 2009
Location: Greensboro, NC
Yeah. My method was for those not comfortable at terminal, let alone in Linux at all. Glad you got it figured out

Sent from my LTEvo using XDA Premium.

S-OFF, locked, HBOOT 1.44.0000
ROM: CM11 Nightly Recovery: TWRP 2.6.3.0
Radio: 1.00.20.0315 PRI: 3.17_003 PRL: 55015

TF-101, C10
ROM: CM10 Nightly Recovery: TWRP 2.2.2.1


Retired: HTC EVO 4G LTE, HTC EVO Shift 4G, HTC TouchPro2, HTC TouchPro, HTC Mogul (PPC-6800), Sanyo MM-9000, Sanyo VI-2300, Sanyo Katana DLX, Sanyo Katana II, Samsung VGA1000, LG LX5350
 
ShadowVlican
Old
#6  
ShadowVlican's Avatar
Senior Member
Thanks Meter 51
Posts: 395
Join Date: Feb 2007
Location: Toronto
THANKS FOR THIS!!!

i can finally make use of TWRP's MD5 check!
Device: Samsung Note 2 Telus
ROM: slimkat weekly
 
diantro_fr
Old
#7  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Oct 2013
Quote:
Originally Posted by bilbo524 View Post
After a little research and testing, this is what worked for me.

If all you have is the MD5 hash, then put it in a text file in the same directory as the zip you want to flash. The format should look like this:

Code:
Select Code
1234567890abcdef1234567890 *app-20120905-final.zip
If the zip is named, for example:
then that is what goes in the file after the asterisk ( * ).

Also, in this case, the text file you create should be named:

Hope this helps.

Edit: I just realized how old this thread was. However, I did not find any answers to this question when searching, so hopefully this is still of use to someone.
Thanks for this, helped me a lot making sure my file was correct and not responsible for the bootloop!
 
*child
Old
#8  
*child's Avatar
Senior Member
Thanks Meter 200
Posts: 449
Join Date: Jul 2009
Also, the MD5 hash must be lowercase.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes