Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Start and Stop ADB Service

joelbyler edited this page · 1 revision

Starting the ADB server

start_server will issue the android adb start-server command.

ADB.start_server

This operation also accept a timeout (seconds) argument which will throw an ADBError if the start_server command does not execute successfully within the allotted timeout period. The default timeout is 30 seconds.

begin
  ADB.start_server(120)
rescue
  # handle the ADBError exception
end

Stopping the ADB server

stop_server will issue the android adb kill-server command.

ADB.stop_server

Similar to the start server, this stop server will also accept a timeout argument and throw an ADBError exception if the operation is not completed in the alloted timeout period (default 30 seconds).

begin
  ADB.stop_server(120)
rescue
  # handle the ADBError exception
end
Something went wrong with that request. Please try again.