Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (27 sloc) 0.845 kB
aff4636 @kelwin Added APIMonitor script and fixed bugs
authored
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 import sys
4 import os
5 from apkil import api
6 import cPickle
7
8 levels = [3, 4, 7, 8, 10, 11, 12, 13, 14, 15,16]
9 """
10 for level in levels:
11
12 jar_name = "android-%d.jar" % level
13 jar_path = os.path.join("androidlib", jar_name)
14 data_path = os.path.join("androidlib", "android-%d.db" % level)
15
16 android_api = api.AndroidAPI(level, jar_path)
17 android_api.save(data_path)
18 """
19
20
21 level = 7
22
23 jar_name = "android-%d.jar" % level
24 jar_path = os.path.join("androidlib", jar_name)
25 data_path = os.path.join("androidlib", "android-%d.db" % level)
26 android_api = api.AndroidAPI()
27 android_api.load(data_path)
28
29 #android_api.show_classes()
30 for c in android_api.classes.values():
31 if not c.name == "android.content.ContextWrapper":
32 continue
33 for m in c.methods.values():
34 print m
35
Something went wrong with that request. Please try again.