parameters: (path)
docstring: Install the sample on the emulator via adb
docstring_summary: Install the sample on the emulator via adb
docstring_tokens: Install the sample on the emulator via adb
function: def install_sample(path):
      """Install the sample on the emulator via adb"""
      log.info("Installing sample in the device: %s", path)
      try:
          args = ["/system/bin/sh", "/system/bin/pm", "install", path]
          output = subprocess.check_output(args)
      except subprocess.CalledProcessError as e:
          log.error("Error installing sample: %r", e)
          return
  
      log.info("Installed sample: %r", output)
function_tokens: def install_sample ( path ) : log . info ( "Installing sample in the device: %s" , path ) try : args = [ "/system/bin/sh" , "/system/bin/pm" , "install" , path ] output = subprocess . check_output ( args ) except subprocess . CalledProcessError as e : log . error ( "Error installing sample: %r" , e ) return log . info ( "Installed sample: %r" , output )