[Question] Comparing classes.dex file

nwk

New User
3
04/05/16
0
Thread Author
Hi,

I am hoping somebody can help me with a way to compare two apk files (one original and the other is modded). I have compared their content and notice the only difference is their classes.dex file which has different size.
Can somebody teach me if there's a way to quickly compare the difference in their coding? I've tried decompilling the files but there's too many folders and sub folders of smali files so i'm lost there. Thanks.
 
On phone you can use DiffTool to compare folders, then it will show which files are not similar. Then you can compare files.
 
differentiate size of file is good enough, but you cant just use it for detect different from two file. What if the size is same, but bytes inside it is different. As @agent33 you need to use Diff tools or somethingllike it.
 
hi, thx both for replies. i see difftool is an android app. is it possible to do this on PC?
 
hi, thx both for replies. i see difftool is an android app. is it possible to do this on PC?
I'm not a expert on this but i think you can do it using IDA and HxD. Copy hex from both files and compare it in HxD.
 
Perhabs if ya extract the smalli files from both then ya can compare the files with notepad++ perhabs?

Not surw if works for smalli aint a coder etc but i know notepad++ has ability to compare files
 
hi, thx both for replies. i see difftool is an android app. is it possible to do this on PC?
Not sure why you do this on android, Its on pc ofcourse. You can use HxD diff feature for comparin hex bytes from different files. If i didnt forget, Notepad++ has this feature too
 
hi all, thx for the replies. I used winmerge which managed to compare all the smali files. But the problem now is the result shows that the content of all the smali files are exactly the same. I'm very confused now. lol
 
Back
Top Bottom