parameters: (self, apk_path, forward_lock=False, reinstall=False,
                sd_card=False, **kwargs)
docstring: Installs an apk on the gce instance
  
      Args:
        apk_path: Host path to the APK file.
        forward_lock: (optional) If set forward-locks the app.
        reinstall: (optional) If set reinstalls the app, keeping its data.
        sd_card: (optional) If set installs on the SD card.
docstring_summary: Installs an apk on the gce instance
docstring_tokens: Installs an apk on the gce instance
function: def Install(self, apk_path, forward_lock=False, reinstall=False,
                sd_card=False, **kwargs):
      """Installs an apk on the gce instance
  
      Args:
        apk_path: Host path to the APK file.
        forward_lock: (optional) If set forward-locks the app.
        reinstall: (optional) If set reinstalls the app, keeping its data.
        sd_card: (optional) If set installs on the SD card.
      """
      adb_wrapper.VerifyLocalFileExists(apk_path)
      cmd = ['install']
      if forward_lock:
        cmd.append('-l')
      if reinstall:
        cmd.append('-r')
      if sd_card:
        cmd.append('-s')
      self.Push(apk_path, '/data/local/tmp/tmp.apk')
      cmd = ['pm'] + cmd
      cmd.append('/data/local/tmp/tmp.apk')
      output = self.Shell(' '.join(cmd))
      self.Shell('rm /data/local/tmp/tmp.apk')
      if 'Success' not in output:
        raise device_errors.AdbCommandFailedError(
            cmd, output, device_serial=self._device_serial)
function_tokens: def Install ( self , apk_path , forward_lock = False , reinstall = False , sd_card = False , * * kwargs ) : adb_wrapper . VerifyLocalFileExists ( apk_path ) cmd = [ 'install' ] if forward_lock : cmd . append ( '-l' ) if reinstall : cmd . append ( '-r' ) if sd_card : cmd . append ( '-s' ) self . Push ( apk_path , '/data/local/tmp/tmp.apk' ) cmd = [ 'pm' ] + cmd cmd . append ( '/data/local/tmp/tmp.apk' ) output = self . Shell ( ' ' . join ( cmd ) ) self . Shell ( 'rm /data/local/tmp/tmp.apk' ) if 'Success' not in output : raise device_errors . AdbCommandFailedError ( cmd , output , device_serial = self . _device_serial )