Merge pull request #312 from charithag/master

Removed invalid property insertion.
revert-dabc3590
inoshperera 9 years ago committed by GitHub
commit a09defebfe

@ -285,6 +285,9 @@ public class AndroidAPIUtils {
OperationCodes.DEVICE_INFO.equals(operation.getCode())) { OperationCodes.DEVICE_INFO.equals(operation.getCode())) {
try { try {
if (log.isDebugEnabled()){
log.debug("Operation response: " + operation.getOperationResponse());
}
Device device = new Gson().fromJson(operation.getOperationResponse(), Device.class); Device device = new Gson().fromJson(operation.getOperationResponse(), Device.class);
org.wso2.carbon.device.mgt.common.device.details.DeviceInfo deviceInfo = convertDeviceToInfo(device); org.wso2.carbon.device.mgt.common.device.details.DeviceInfo deviceInfo = convertDeviceToInfo(device);
updateDeviceInfo(deviceIdentifier, deviceInfo); updateDeviceInfo(deviceIdentifier, deviceInfo);
@ -403,8 +406,6 @@ public class AndroidAPIUtils {
} }
} else { } else {
if (prop.getName().equalsIgnoreCase("CPU_INFO")) { if (prop.getName().equalsIgnoreCase("CPU_INFO")) {
deviceInfo.setTotalRAMMemory(Double.parseDouble(getProperty(prop.getValue(), "User")));
deviceInfo.getDeviceDetailsMap().put("cpuUser", deviceInfo.getDeviceDetailsMap().put("cpuUser",
getProperty(prop.getValue(), "User")); getProperty(prop.getValue(), "User"));
deviceInfo.getDeviceDetailsMap().put("cpuSystem", deviceInfo.getDeviceDetailsMap().put("cpuSystem",

Loading…
Cancel
Save