Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
GAda
Old
(Last edited by GAda; 12th August 2010 at 07:46 PM.)
#1  
Member - OP
Thanks Meter 0
Posts: 46
Join Date: Jun 2010
Default [HOWTO] compare two Firmwares (Changelog)

Here is a simple way to compare two firmwares.

unpack the files and mount the file-systems as root on a Linux system:

Code:
mount -o loop /home/gregor/Desktop/CODE_I9000XWJM2/factoryfs.rfs /home/gregor/Desktop/dir1

mount -o loop /home/gregor/Desktop/I9000XWJM5/I9000XWJM5/CODE_I9000XWJM5.tar.md5_FILES/factoryfs.rfs /home/gregor/Desktop/dir2
Compare the two filesystems and generate a list:
Code:
rsync -cavn --delete /home/gregor/Desktop/dir1/ /home/gregor/Desktop/dir2/ > diff_JM2_JM5.txt
Examples attached
Attached Files
File Type: txt diff_JM2_JM5.txt - [Click for QR Code] (4.6 KB, 755 views)
File Type: txt diff_JM5_JH1.txt - [Click for QR Code] (8.0 KB, 298 views)
 
RyanZA
Old
#2  
Senior Member
Thanks Meter 653
Posts: 2,021
Join Date: Jan 2006
Location: JHB
Wow, way more changes between JM2 and JM5 than you'd think!
 
AllGamer
Old
#3  
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter 1485
Posts: 11,360
Join Date: May 2008
Location: buried under loads of work IRL

 
DONATE TO ME
this should be stickied or added to the big FAQ

Donation is appreciated but not required, a cup of Coffee would suffice
Get 16 GB of Legit Free Space in Dropbox

Samsung i9000m: on CM9.0
Samsung Nexus S: on JB 4.1.1
Motorola Milestone XT720: on CM6.3.5.3
Samsung Galaxy S II SGH-T989: on CM9.1
Samsung Galaxy NOTE SGH-i717r: on CM9.0
 
hcarrega
Old
#4  
hcarrega's Avatar
Senior Member
Thanks Meter 6
Posts: 472
Join Date: Feb 2007
Location: Amadora
i agree nice tip
to many phones
 
bub181
Old
#5  
Senior Member
Thanks Meter 7
Posts: 241
Join Date: Jul 2007
Where did you get firmware version JH1? This is a new firmware right?
 
miki4242
Old
(Last edited by miki4242; 18th September 2010 at 11:55 AM.)
#6  
Senior Member
Thanks Meter 18
Posts: 164
Join Date: Jun 2009
You can also use this command (change OLD and NEW with the dir1 and dir2 from rsync method):

Code:
LANG=C diff -ur OLD NEW | sed -e 's/^Binary files .* and \(.*\) differ$/Changed: \1/' | fgrep -v '.odex'
This shows in an IMHO somewhat nicer way which files were added or removed, and also shows exactly what changed in text files. It also removes odex files from the list, because they will change on every rebuild no matter how, even if the apps didn't change.

See this post for example output.
 
OneDream
Old
#7  
OneDream's Avatar
Member
Thanks Meter 1
Posts: 51
Join Date: Aug 2010
Quote:
Originally Posted by AllGamer View Post
this should be stickied or added to the big FAQ
+1

This is awesome.
 
miki4242
Old
(Last edited by miki4242; 22nd September 2010 at 08:23 PM.)
#8  
Senior Member
Thanks Meter 18
Posts: 164
Join Date: Jun 2009
edit: oops, wrong thread

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more