def android_setup(setup):
  try:
    setup.setup_all()
  except setuputil.common.FileDownloadError as e:
    logging.error("Please visit " + e.link + "for download link and extraction "
                  "instructions.\n" + e.instructions)
    raise e
  except setuputil.common.UnknownFileTypeError as e:
    logging.error("Unknown file type \"" + e.filetype + "\" downloaded.\n" +
                  e.instructions)
    raise e
  except setuputil.common.CommandFailedError as e:
    logging.error("Unable to perform bash command:\n\t" + e.command + "\n"
                  "Please check error message and go to " + e.link + " for "
                  "help.")
    raise e
Perform all necessary setup for Android and catch installation errors.
dataset/ETHPy150Open google/fplutil/bin/setup_all_prereqs.py/android_setup