Coder Social home page Coder Social logo

apkfunccounter's Introduction

ApkFuncCounter

Android Apk Function Count by package

安装

  1. 需要预先配置jdk环境,测试 java -version保证其可以使用
  2. 将目录下*.sh *.jar一共三个文件解压到任意文件夹(如 ~/temp)
  3. chmod +x ./count.sh

使用

./count.sh test1.apk -d 5 -diff test2.apk viila

会进行以下步骤

  1. apk解包到out目录
  2. 依据参数进行指定包的DEX方法数统计
  3. 查看diff指定的apk统计历史,计算增减
  4. 计算过滤后方法数总和

参数依次为

[APK]

test1.apk APK地址

[DEPTH]

-d 5 统计包的层数为 5

比如有apk文件包含 com.sample.app.a com.sample.app.b com.sample.lib.x com.sample.lib.y

选择层数 -d 3则过滤出以下两个包的反编译DEX方法数

com.sample.app
com.sample.lib

选择层数 -d 2则只有

com.sample

比如项目命名空间是info.viila.android.test1.*表示各个模块,所以是-d 5

[DIFF]

-diff test2.apk 与之前统计过的test2版本的方法进行比较

[FILTER]

viila 过滤出包名中含有viila字样的包

过滤参数必须是最后一个

apkfunccounter's People

Contributors

viilaismonster avatar

Watchers

James Cloos 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.