object DpcMigrationApiLevelException : DpcMigrationException
The API level of the device is too low. The device needs to be running at least Android 9. Work profiles on company-owned devices need at least Android 11.
Summary
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-23 UTC.
[null,null,["Last updated 2025-02-23 UTC."],[[["`DpcMigrationApiLevelException` signals that the device's API level is insufficient for device policy controller (DPC) migration."],["Devices need to be running at least Android 9, while work profiles on company-owned devices require Android 11 or higher."],["This exception is a subclass of `DpcMigrationException` and indicates an issue specifically related to the device's Android version."]]],["`DpcMigrationApiLevelException` signifies that a device's Android version is incompatible with the required API level for device management. Specifically, the device must run Android 9 or higher, while company-owned work profiles need at least Android 11. This exception inherits functions for managing the stack trace and properties related to the cause and the error message.\n"]]