fixing device name issue in windows8.1 enrollment

revert-dabc3590
Hasunie 8 years ago
parent 0ffb142023
commit 1d0752f09c

@ -325,10 +325,10 @@ public class SyncmlServiceImpl implements SyncmlService {
existingProperties.add(deviceModelProperty); existingProperties.add(deviceModelProperty);
existingDevice.setProperties(existingProperties); existingDevice.setProperties(existingProperties);
existingDevice.setName(deviceName);
existingDevice.setDeviceIdentifier(syncmlDocument.getHeader().getSource().getLocURI()); existingDevice.setDeviceIdentifier(syncmlDocument.getHeader().getSource().getLocURI());
existingDevice.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS); existingDevice.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
status = WindowsAPIUtils.getDeviceManagementService().modifyEnrollment(existingDevice); status = WindowsAPIUtils.getDeviceManagementService().modifyEnrollment(existingDevice);
existingDevice.setName(deviceName);
// call effective policy for the enrolling device. // call effective policy for the enrolling device.
PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService(); PolicyManagerService policyManagerService = WindowsAPIUtils.getPolicyManagerService();
policyManagerService.getEffectivePolicy(deviceIdentifier); policyManagerService.getEffectivePolicy(deviceIdentifier);

Loading…
Cancel
Save