code: def addAPK(self, filename, data):
          
          digest = hashlib.sha256(data).hexdigest()
          log.debug("add APK:%s" % digest)
          apk = APK(data, True)
          self.analyzed_apk[digest] = [apk]
          self.analyzed_files[filename].append(digest)
          self.analyzed_digest[digest] = filename
  
          dx = Analysis()
          self.analyzed_vms[digest] = dx
  
          for dex in apk.get_all_dex():
              # we throw away the output... FIXME?
              self.addDEX(filename, dex, dx)
  
          log.debug("added APK:%s" % digest)
          return digest, apk
docs: Add an APK file to the Session and run analysis on it.
  
          :param filename: (file)name of APK file
          :param data: binary data of the APK file
          :return: a tuple of SHA256 Checksum and APK Object