def is_android_raw(raw):
    val = None

    if raw[0:2] == "PK":
        val = "APK"
    elif raw[0:3] == "dex":
        val = "DEX"
    elif raw[0:3] == "dey":
        val = "DEY"
    elif raw[0:7] == "\x7fELF\x01\x01\x01":
        val = "ELF"
    elif raw[0:4] == "\x03\x00\x08\x00":
        val = "AXML"
    elif raw[0:4] == "\x02\x00\x0C\x00":
        val = "ARSC"
    elif ('AndroidManifest.xml' in raw and
          'META-INF/MANIFEST.MF' in raw):
        val = "APK"

    return val
dataset/ETHPy150Open androguard/androguard/androguard/core/androconf.py/is_android_raw/original