mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fix for JIRA: https://wso2.org/jira/browse/EMM-1613
This commit is contained in:
parent
2a4757539a
commit
f5d95f0695
Binary file not shown.
|
Before Width: | Height: | Size: 229 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB |
@ -53,8 +53,8 @@ function onRequest(context) {
|
||||
};
|
||||
} else if (device["type"] == "android") {
|
||||
viewModel["imei"] = device["properties"]["IMEI"];
|
||||
viewModel["model"] = device["properties"]["DEVICE_MODEL"];
|
||||
viewModel["vendor"] = device["properties"]["VENDOR"];
|
||||
viewModel["model"] = device["deviceInfo"]["deviceModel"];
|
||||
viewModel["vendor"] = device["deviceInfo"]["vendor"];
|
||||
var osBuildDate = device["properties"]["OS_BUILD_DATE"];
|
||||
if (osBuildDate != null && osBuildDate != "0") {
|
||||
viewModel["os_build_date"] = new Date(osBuildDate * 1000);
|
||||
@ -73,17 +73,17 @@ function onRequest(context) {
|
||||
}
|
||||
}
|
||||
deviceInfo = info;
|
||||
viewModel["BatteryLevel"] = deviceInfo["BATTERY_LEVEL"];
|
||||
viewModel["BatteryLevel"] = device["deviceInfo"]["batteryLevel"];
|
||||
viewModel["internal_memory"]["FreeCapacity"] = Math.
|
||||
round(deviceInfo["INTERNAL_AVAILABLE_MEMORY"] * 100)/100;
|
||||
round(device["deviceInfo"]["internalAvailableMemory"] * 100)/100;
|
||||
viewModel["internal_memory"]["DeviceCapacityPercentage"] = Math.
|
||||
round(deviceInfo["INTERNAL_AVAILABLE_MEMORY"]
|
||||
/ deviceInfo["INTERNAL_TOTAL_MEMORY"] * 10000) / 100;
|
||||
round(device["deviceInfo"]["internalAvailableMemory"]
|
||||
/ device["deviceInfo"]["internalTotalMemory"] * 10000) / 100;
|
||||
viewModel["external_memory"]["FreeCapacity"] = Math.
|
||||
round(deviceInfo["EXTERNAL_AVAILABLE_MEMORY"] * 100) / 100;
|
||||
viewModel["external_memory"]["DeviceCapacityPercentage"] = Math.
|
||||
round(deviceInfo["EXTERNAL_AVAILABLE_MEMORY"]
|
||||
/ deviceInfo["EXTERNAL_TOTAL_MEMORY"] * 10000) / 100;
|
||||
round(device["deviceInfo"]["externalAvailableMemory"]
|
||||
/ device["deviceInfo"]["externalTotalMemory"] * 10000) / 100;
|
||||
} else if (device["type"] == "windows") {
|
||||
viewModel["imei"] = device["properties"]["IMEI"];
|
||||
viewModel["model"] = device["properties"]["DEVICE_MODEL"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user