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 1484
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

report this ad
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

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more