adb_devices¶
Get an array of Connected android device serials
Fetches device list via adb, e.g. run an adb command on all connected devices.
adb_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"
end
Parameters¶
Key | Description | Default |
---|---|---|
adb_path |
The path to your adb binary (can be left blank if the ANDROID_SDK_ROOT environment variable is set) |
adb |
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action adb_devices