if (System.getProperty("os.name").toLowerCase().contains("mac")) {
if (IOSDeviceConfiguration.deviceUDIDiOS != null) {
System.out.println("Adding iOS devices");
devices.addAll(IOSDeviceConfiguration.deviceUDIDiOS);
}
<BUG>if (androidDevice.getDeviceSerial() != null) {
</BUG>
System.out.println("Adding Android devices");
<BUG>devices.addAll(AndroidDeviceConfiguration.deviceSerail);
</BUG>
}

if (System.getProperty("os.name").toLowerCase().contains("mac")) {
if (IOSDeviceConfiguration.deviceUDIDiOS != null) {
System.out.println("Adding iOS devices");
devices.addAll(IOSDeviceConfiguration.deviceUDIDiOS);
}
if (AndroidDeviceConfiguration.deviceSerial != null) {
System.out.println("Adding Android devices");
devices.addAll(AndroidDeviceConfiguration.deviceSerial);
}
