def AnalyzeODex(filename, session=None): """ Analyze an android odex file and setup all stuff for a more quickly analysis ! :param filename: the filename of the android dex file or a buffer which represents the dex file :type filename: string :rtype: return the :class:`DalvikOdexVMFormat`, and :class:`VMAnalysis` objects """ androconf.debug("AnalyzeODex") if not session: session = get_default_session() with open(filename, "rb") as fd: data = fd.read() return session.addDEY(filename, data)
def AnalyzeODex(filename, session=None): """ Analyze an android odex file and setup all stuff for a more quickly analysis ! :param filename: the filename of the android dex file or a buffer which represents the dex file :type filename: string :param session: The Androguard Session to add the ODex to (default: None) :rtype: return the :class:`DalvikOdexVMFormat`, and :class:`Analysis` objects """ log.debug("AnalyzeODex") if not session: session = get_default_session() with open(filename, "rb") as fd: data = fd.read() return session.addDEY(filename, data)