Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (21 sloc) 0.62 kB
3f7720c @kelwin Added support for specifying APIs by name
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 level = 7
9 class_ = "android.content.ContextWrapper"
10 method = "<init>"
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 android_api = api.AndroidAPI()
16 android_api.load(data_path)
17
18 #android_api.show_classes()
19 for c in android_api.classes.values():
20 if not c.name == "android.content.ContextWrapper":
21 continue
22 for m in c.methods.values():
23 if m.name == method:
24 print m.sdesc
25
Something went wrong with that request. Please try again.