mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge branch 'application-mgt-new' into 'application-mgt-new'
Sync with upstream master See merge request entgra/carbon-device-mgt-plugins!67
This commit is contained in:
commit
b83c8806af
@ -251,6 +251,20 @@ public class AndroidDeviceUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
AndroidAPIUtils.getDeviceManagementService().updateOperation(deviceIdentifier, operation);
|
AndroidAPIUtils.getDeviceManagementService().updateOperation(deviceIdentifier, operation);
|
||||||
|
// This has to be bellow other if blocks, since updateOperation would fail if we execute against a disenrolled
|
||||||
|
// device.
|
||||||
|
if (!Operation.Status.ERROR.equals(operation.getStatus()) && AndroidConstants.
|
||||||
|
OperationCodes.WIPE_DATA.equals(operation.getCode())) {
|
||||||
|
if (log.isDebugEnabled()) {
|
||||||
|
log.debug("Received wipe data from device '" + deviceId + "'");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
AndroidAPIUtils.getDeviceManagementService().disenrollDevice(deviceIdentifier);
|
||||||
|
} catch (DeviceManagementException e) {
|
||||||
|
throw new OperationManagementException("Error occurred while unenrolling the device.", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<? extends Operation> getPendingOperations
|
public static List<? extends Operation> getPendingOperations
|
||||||
|
|||||||
@ -20,12 +20,12 @@
|
|||||||
data-deviceinfoservice="{{device.deviceInfoServiceAPI}}"
|
data-deviceinfoservice="{{device.deviceInfoServiceAPI}}"
|
||||||
data-devicelocationservice="{{device.deviceLocationServiceAPI}}">
|
data-devicelocationservice="{{device.deviceLocationServiceAPI}}">
|
||||||
{{device.owner}}'s {{device.name}}
|
{{device.owner}}'s {{device.name}}
|
||||||
<a id="device-info-tooltip" href="#" data-toggle="tooltip" title="Device Identifier: {{device.deviceIdentifier}}
|
</h1>
|
||||||
|
<a id="device-info-tooltip" href="#" data-toggle="tooltip" title="Device Identifier: {{device.deviceIdentifier}}
|
||||||
Firmware Build Date: {{device.osBuildDate}}
|
Firmware Build Date: {{device.osBuildDate}}
|
||||||
UDID: {{device.udid}}">
|
UDID: {{device.udid}}">
|
||||||
<i class="fw fw-info"></i>
|
<i class="fw fw-info"></i>
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
|
||||||
{{#if device.model}}
|
{{#if device.model}}
|
||||||
<h4>{{device.vendor}} {{device.model}}</h4>
|
<h4>{{device.vendor}} {{device.model}}</h4>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user