<s> import sys <EOL> PATH_INSTALL = "<STR_LIT>" <EOL> sys . path . append ( PATH_INSTALL ) <EOL> from androguard . core . bytecodes import dvm <EOL> from androguard . core . analysis import analysis <EOL> from androguard . decompiler . dad import decompile <EOL> from androguard . util import read <EOL> TEST = '<STR_LIT>' <EOL> vm = dvm . DalvikVMFormat ( read ( TEST , binary = False ) ) <EOL> vmx = analysis . VMAnalysis ( vm ) <EOL> for method in vm . get_methods ( ) : <EOL> mx = vmx . get_method ( method ) <EOL> if method . get_code ( ) == None : <EOL> continue <EOL> print method . get_class_name ( ) , method . get_name ( ) , method . get_descriptor ( ) <EOL> ms = decompile . DvMethod ( mx ) <EOL> ms . process ( ) <EOL> print ms . get_source ( ) </s>
