Get an array of Connected android device serials

Fetches device list via adb, e.g. run an adb command on all connected devices.

Supported platforms android
Author @hjanuschka
Returns Returns an array of all currently connected android devices

1 Example

adb_devices.each do |device|
  model = adb(command: "shell getprop ro.product.model",
    serial: device.serial).strip

  puts "Model #{model} is connected"


Key Description Default
adb_path The path to your adb binary adb

* = default value is dependent on the user's system

To show the documentation in your terminal, run

fastlane action adb_devices

View source code

Back to actions