Git Product home page Git Product logo

apkcompare's Introduction

比较两个版本APK中文件差异的工具

比较两个版本APK中文件的大小差异,以便分析APK增大的原因.

使用方法

下载 jar 文件,然后运行:

java -jar apkcompare-1.0.jar app-1.0.apk app-2.0.apk v2_v1

其中参数app-1.0.apk是1.0版本的APK,app-2.0.apk是2.0版本的APK,v2_v1是输出差异结果的文件名,最终的输出是一个Markdown格式的文件(size列排序过了),比如:


Diff Compressed Size : 1,505 bytes

Diff Raw Size : 2,527 bytes

Changed Files Diff Raw Size (byte)
Added new file 3,395
Increased file 3,169
Decreased file -3,069
Removed file -1,469

Added New Files (新版本中新增的文件)

File Name Size (byte)
res/drawable/a01.png 4,626
res/drawable/a04.png 3,395
res/layout/bcd.xml 1,469

Size Increased Files (新版本中大小增加的文件)

File Name Increased Size (byte)
assets/abc.mp3 12,335
assets/d.txt 7,100

Size Decreased Files (新版本中大小减少的文件)

File Name Decreased Size (byte)
AndroidManifest.xml -390
META-INF/MANIFEST.MF -115
META-INF/AP_ANDRO.DSA -110
META-INF/AP_ANDRO.SF -40

Removed Files (新版本中删除的文件)

File Name Decreased Size (byte)
res/layout/A.xml -42,471
res/drawable/b.png -32,755

License

MIT License

apkcompare's People

Contributors

linsea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.