README
August 10, 2013 ยท View on GitHub
This is an extension from DroidBox APIMonitor to instrument and monitor the entry and exit of specified methods. The DroidBox APIMonitor version used is beta 3 (Oct 21, 2012) from the project wiki.
Currently the extension only monitor those realted to Activity lifecycle and user input. The way the APIMonitor was implemented is to insert a logging statement before the target method call statement; however, we need more detailed information about how long the app has stayed inside a specific method and the nested method calls. Tests of the script are based on Android 2.2 on a Nexus One.
- Eric J. Chen eric.jyc@gmail.com
APKIL is an APK Instrumentation Library. Supported by Google Summer of Code 2012 and The Honeynet Project.
Author: Kun Yang kelwya@gmail.com Project Wiki: http://code.google.com/p/droidbox/wiki/APIMonitor
apimonitor.py DroidBox APIMonitor script(currently beta).
usage: apimonitor.py [-h] [-o, --output dirpath] [-a, --api apilist] [-v, --version] filename
Repackage apk to monitor arbitrary APIs.
positional arguments:
filename path of APK file
optional arguments:
-h, --help show this help message and exit
-o, --output dirpath output directory
-a, --api apilist config file of API list
-v, --version show program's version number and exit
apkil/apk.py A light weight module to play with apk to develop in the future. Currently we use androguard/apk.py.
apkil/smali.py Parse smali files of APKs to tree based structure.
apkil/monitor.py Inject monitor code to smali tree.
apkil/api.py Derive inheritence relationship of Android API from android.jar
process_api.py Call apkil/api.py to build and store API database.
api_permissions.py Permissions from http://www.android-permissions.org/ which may be used in the future.