kelwin / apkil Goto Github PK
View Code? Open in Web Editor NEWAn APK instrumentation library and DroidBox APIMonitor
An APK instrumentation library and DroidBox APIMonitor
Hi! I tried APIMonitor with an example that I wrote and I got a Fatal Exception when I run the modified app. The output is:
E/AndroidRuntime( 1697): FATAL EXCEPTION: main
E/AndroidRuntime( 1697): java.lang.IllegalAccessError: tried to access method android.app.Activity.onCreate:(Landroid/app/Activity;Landroid/os/Bundle;)V from class droidbox.android.app.Activity
E/AndroidRuntime( 1697): at droidbox.android.app.Activity.onCreate(Unknown Source)
Thanks!
I was wondering how long does it take for APIMonitor to repack an apk please? The process seems to be frozen at accessing database step as shown below:
wenhui@wenhui:~/Downloads/droidbox/APIMonitor$ sudo ./apimonitor.py ../../VirtualWallet.apk -o ../../out/
min_sdk_version=16
target_sdk_version=22
Parsing ../../out/apimonitor_out/origin_smali...
Done!
Loading and processing API database...```
There are some *smali files in the output folder though when Done!
shows up
yet it seems like the apk file is still unprocessed, as the time stamp does not change
I used both master and taintdriod branch, both of them are introducing the same result
$ ./apimonitor.py /tmp/a.apk -o /tmp/
Traceback (most recent call last):
File "./apimonitor.py", line 67, in
new_apk = os.path.join(outdir, root_name + "_new.apk")
File "/usr/lib/python2.7/posixpath.py", line 68, in join
elif path == '' or path.endswith('/'):
AttributeError: 'list' object has no attribute 'endswith'
suggest change "args.output" at line58, apimonitor.py to "args.output[0]"
running apimonitor from outside the apkil directory causes issues. simplest example error would be [error] Config file not found: config/default_api_collection because the default is a relative path.
I took a stab at trying to fix the issue but it turned out to be more than just a simple patch as it looks like it would require some changes in apkil/monitor.py as well. Should think about how to handle paths so that it isn't so sensitive to where apimonitor is being run.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.