def adb_binary_or32bit_support():
 tools_dir = os.path.join(settings.BASE_DIR, 'DynamicAnalyzer/tools/')
 adb_path = getADB(tools_dir)
 try:
  fnull = open(os.devnull, 'w')
  subprocess.call([adb_path], stdout=fnull, stderr=fnull)
 except:
  msg = "\n[WARNING] You don't have 32 bit execution support enabled or MobSF shipped ADB binary is not compatible with your OS.\nPlease set the 'ADB_BINARY' path in settings.py"
  if (platform.system != 'Windows'):
   print (((Color.BOLD + Color.ORANGE) + msg) + Color.END)
  else:
   print msg

def adb_binary_or32bit_support ( ) : tools_dir = os . path . join ( settings . BASE_DIR , 'DynamicAnalyzer/tools/' ) adb_path = getADB ( tools_dir ) try : fnull = open ( os . devnull , 'w' ) subprocess . call ( [ adb_path ] , stdout = fnull , stderr = fnull ) except : msg = "\n[WARNING] You don't have 32 bit execution support enabled or MobSF shipped ADB binary is not compatible with your OS.\nPlease set the 'ADB_BINARY' path in settings.py" if ( platform . system != 'Windows' ) : print ( ( ( Color . BOLD + Color . ORANGE ) + msg ) + Color . END ) else : print msg
check if 32bit is supported .