简体   繁体   English

比较两个 apk 文件以检查 then 之间的差异(大小差异为 1 kb)

[英]comparing two apk files to check the difference between then(size difference of 1 kb)

I have two apks, which basically are exactly the same but their size differs by 1 KB.我有两个 apk,它们基本上完全相同,但它们的大小相差 1 KB。 I would like to check what this difference is.我想检查一下这个区别是什么。 Is there any tool available for this purpose?是否有任何工具可用于此目的?

When i unzip the apk's , the size turns out to be exactly the same.当我解压缩 apk 时,大小结果完全相同。

这就是你要找的apkanalyzer

APK 文件本质上是一个存档,因此尝试在您感兴趣的 apk 上运行zipcmp命令。它显示存档中不同文件的大小和哈希值。

Here is how to compare the content of apks.下面是比较apks内容的方法。

  1. Unzip apks and compare META-INF/MANIFEST.MF files - it will show which file differs.解压缩 apk 并比较META-INF/MANIFEST.MF文件 - 它会显示哪个文件不同。 If none, the zip structure differs (not suremaybe zip headers?).如果没有,则 zip 结构不同(不确定也许是 zip 标头?)。

  2. apktool decode both apks to folders - it will result in files with decoded resources, manifest and classes to folders. apktool 将两个 apk解码到文件夹 - 它将生成带有解码资源、清单和类的文件到文件夹。

  3. directory compare (ie meld ) bot folders to investigate the difference in file content.目录比较(即meld )bot 文件夹以调查文件内容的差异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM