Method: ADB#uninstall

Defined in:
lib/ADB.rb

#uninstall(package, target = {}, timeout = 30) ⇒ Object

uninstall an apk file to a device

:emulator, and :serial. seconds.

Parameters:

  • the

    package name of the apk ou wish to uninstall

  • which (Hash)

    device to wait for. Valid keys are :device,

  • timeout (defaults to: 30)

    value for the command to complete. Defaults to 30

Raises:



110
111
112
113
# File 'lib/ADB.rb', line 110

def uninstall(package, target={}, timeout=30)
  execute_adb_with(timeout, "#{which_one(target)} uninstall #{package}")
  raise ADBError, "Could not uninstall #{package}#{stdout_stderr_message}" unless stdout_contains "Success"
end