Workspace ONE UEM detects jailbroken devices and can wipe compromised devices if enabled in the Workspace ONE UEM console.

Compromised protection requires no code unless you want to manually check the status of the device.

Check Compromised Protection Status

To check the status of a device directly in your application, whether the device is online or offline, call the isCurrentDeviceCompromised() API from the DeviceInformationController singleton class.

//Swift
let deviceInfoController = DeviceInformationController.sharedController()
let compromisedStatus = deviceInfoController.isCurrentDeviceCompromised()
if compromisedStatus == true {
  AWLogDebug("My device is jailbroken!")
}

Compliance and Compromised Protection

Compromised protection is a feature that allows the developer to check the SSO status and the jailbreak status.

You can check the compromised status of the device directly in your application by calling the isCurrentDeviceCompromised() API from the DeviceInformationController singleton.

let deviceInfoController = DeviceInformationController.sharedController()
let compromisedStatus = deviceInfoController.isCurrentDeviceCompromised()
if compromisedStatus == true {
  AWLogInfo("My device is jailbroken! Oh no!")
}