My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
Changes to /demos/dalvikvm_format_3.py
a7887d5d8446 vs. a954a482ac43 Compare: vs.  Format:
Revision a954a482ac43
Go to: 
Project members, sign in to write a code review
/demos/dalvikvm_format_3.py   a7887d5d8446 /demos/dalvikvm_format_3.py   a954a482ac43
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import sys 3 import sys
4 4
5 PATH_INSTALL = "./" 5 PATH_INSTALL = "./"
6 sys.path.append(PATH_INSTALL + "/core") 6 sys.path.append(PATH_INSTALL + "/core")
7 sys.path.append(PATH_INSTALL + "/core/bytecodes") 7 sys.path.append(PATH_INSTALL + "/core/bytecodes")
8 sys.path.append(PATH_INSTALL + "/core/analysis") 8 sys.path.append(PATH_INSTALL + "/core/analysis")
9 9
10 import dvm, analysis 10 import dvm, analysis
11 11
12 TEST = "./examples/android/Test/bin/classes.dex" 12 TEST = "./examples/android/Test/bin/classes.dex"
13 #TEST = "examples/android/Hello_Kitty/classes.dex" 13 #TEST = "examples/android/Hello_Kitty/classes.dex"
14 14
15 j = dvm.DalvikVMFormat( open(TEST).read() ) 15 j = dvm.DalvikVMFormat( open(TEST).read() )
16 x = analysis.VM_BCA( j ) 16 x = analysis.VMAnalysis( j )
17 17
18 # SHOW CLASSES (verbose and pretty) 18 # SHOW CLASSES (verbose and pretty)
19 #j.pretty_show( x ) 19 #j.pretty_show( x )
20 20
21 # SHOW METHODS 21 # SHOW METHODS
22 for i in j.get_methods() : 22 for i in j.get_methods() :
23 i.pretty_show( x ) 23 i.pretty_show( x )
Powered by Google Project Hosting