Skip to content

Commit 0282da7

Browse files
return proper os for devices
1 parent e00a3a5 commit 0282da7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/thoughtworks/android/AndroidManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public JSONObject getDeviceInfo(String deviceID) throws InterruptedException, IO
7171
adbDevices.put("deviceModel", deviceModel);
7272
adbDevices.put("screenSize", getScreenResolution);
7373
adbDevices.put("deviceManufacturer",deviceOrEmulator);
74+
adbDevices.put("os", "android");
7475
return adbDevices;
7576
}
7677

@@ -145,4 +146,4 @@ public int getPid(Process process) {
145146
return -1;
146147
}
147148
}
148-
}
149+
}

src/main/java/com/thoughtworks/iOS/IOSManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private JSONObject getDeviceInfo(String udid) throws InterruptedException, IOExc
6767
iOSDevices.put("screenSize","Not Supported");
6868
iOSDevices.put("apiLevel","");
6969
iOSDevices.put("osVersion",osVersion);
70+
iOSDevices.put("os", "ios");
7071
return iOSDevices;
7172
}
7273

0 commit comments

Comments
 (0)