def METHOD_NAME(filename, session=None, raw=False):
    """
    Analyze an android dex 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: A session (Default None)
    :param raw: If set, ``filename`` will be used as the odex's data (bytes). Defaults to ``False``
    :rtype: return a tuple of (sha256hash, :class:`DEX`, :class:`Analysis`)
    """
    logger.debug("AnalyzeDex")
    if not session:
        session = get_default_session()
    if raw:
        data = filename
    else:
        with open(filename, "rb") as fd:
            data = fd.read()
    return session.addDEX(filename, data)