def get_app_methods(dump_result, pid): ''' info:获得app中的方法 ''' # dump_result = class_dump_utils.dump_app(app) methods = api_helpers.extract(dump_result) #for m in methods: # ret_methods = ret_methods.union(set(m["methods"])) #保留class_name信息 return methods
def get_app_methods(app, pid): ''' info:获得app中的方法 ''' dump_result = class_dump_utils.dump_app(app) methods_file_name = 'method_' + os.path.basename(app) or 'app_methods' cur_dir = os.getcwd() methods_file_name = os.path.join(cur_dir, "tmp/" + pid + '/' + methods_file_name) strings = open(methods_file_name + ".txt", "w") #print methods_file_name print >>strings, dump_result #ret_methods = set() methods = api_helpers.extract(dump_result) #for m in methods: # ret_methods = ret_methods.union(set(m["methods"])) #保留class_name信息 return methods
def get_app_methods(dump_result, pid): """ 获取App中的方法 """ methods = api_helpers.extract(dump_result) return methods