Phiên bản này giới thiệu quy trình đăng ký thiết bị được cải tiến cho Trình kiểm soát chính sách thiết bị (DPC) tuỳ chỉnh. Phương pháp tinh giản này tận dụng SDK AMAPI và ứng dụng Android Device Policy (ADP) để đơn giản hoá quy trình đăng ký thiết bị.
Gói Environment mới com.google.android.managementapi.environment để thiết lập thiết bị cho API Device Trust từ Android Enterprise và nếu cần, hãy cài đặt hoặc cập nhật ứng dụng Android Device Policy.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[[["\u003cp\u003eIntegrate the Android Management SDK by adding the Google Maven repository and necessary dependencies to your project's \u003ccode\u003ebuild.gradle\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the \u003ccode\u003ecom.google.android.libraries.enterprise.amapi:amapi\u003c/code\u003e dependency, ensuring you always use the latest version for optimal performance and stability.\u003c/p\u003e\n"],["\u003cp\u003eVersion 1.1.4 introduces a new DPC Migration package to facilitate device migration to AMAPI, with guidance available in the provided documentation.\u003c/p\u003e\n"]]],["To use the Android Management SDK, add the Google Maven repository to your project's `repositories` block. Include the necessary artifacts in your app's `build.gradle` file within the `dependencies` block, using `implementation`. The latest stable version of the library, such as 1.1.5, is recommended for bug fixes. Version 1.3.0-rc01 includes the Device Trust signal APIs, while version 1.1.4 introduced a DPC Migration package.\n"],null,["The Android Management SDK release process may include a release candidate stage\nas part of the standard release process.\n| **Key Point:** A release candidate is a prospective release implementing the final API surface.\n\nLatest Update\n\n| | Stable Release | Release Candidate |\n|---------------|-------------------------|-------------------|\n| June 18, 2025 | [1.4.0](#version-1.4.0) | |\n\nDeclare dependencies\n\nTo add a dependency on Android Management SDK, you must add the [Google Maven\nrepository](https://developer.android.com/build/remote-repositories#google-maven) to your project: \n\n```groovy\nrepositories {\n ...\n google()\n}\n```\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n```groovy\ndependencies {\n def amapi_version = \"1.4.0\"\n\n implementation \"com.google.android.libraries.enterprise.amapi:amapi:$amapi_version\"\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](https://developer.android.com/build/dependencies).\n| **Key Point:** Always use the latest available stable version of the library to benefit from the available bug fixes and improvements.\n\nVersion 1.4.0\n\n*June 18, 2025*\n\nThis version includes the [`Device.WorkProfileState`](/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.WorkProfileState) signal to identify the\ndevice [management state](/android/management/device-trust-signals#management-state).\n\nThere are no differences with [v1.4.0-rc01](#version-1.4.0-rc01).\n| **Important:** Access to the Device Trust from Android Enterprise API is restricted using an allowlist to prevent unauthorized usage. For additional information see: [**Device Trust from Android Enterprise - API access**](/android/management/device-trust-register).\n\nVersion 1.4.0-rc01\n\n*June 02, 2025*\n\nThis version includes the [`Device.WorkProfileState`](/android/management/reference/amapi/com/google/android/managementapi/device/model/Device.WorkProfileState) signal to identify the\ndevice [management state](/android/management/device-trust-signals#management-state).\n\nVersion 1.3.0\n\n*Apr 14, 2025*\n\nThis version includes the first release of the\n[Device Trust from Android Enterprise](/android/management/device-trust-api) API.\n\nThere are no differences with [v1.3.0-rc01](#version-1.3.0-rc01).\n| **Important:** Access to the Device Trust from Android Enterprise API is restricted using an allowlist to prevent unauthorized usage. For additional information see: [**Device Trust from Android Enterprise - API access**](/android/management/device-trust-register).\n\nVersion 1.3.0-rc01\n\n*Feb 18, 2025*\n\nThis version includes the first release candidate for the Device Trust signal\nAPIs.\n\n- New Device Trust Signal package [`com.google.android.managementapi.device`](/android/management/reference/amapi/com/google/android/managementapi/device/package-summary)\n- New Environment package [`com.google.android.managementapi.environment`](/android/management/reference/amapi/com/google/android/managementapi/environment/package-summary) to set up the device for the Device Trust from Android Enterprise API and, if necessary, to install or update the Android Device Policy app.\n\nVersion 1.1.5\n\n*May 13, 2024*\n\nThis version includes the following updates:\n\n- Bug fixes and internal improvements.\n\nVersion 1.1.4\n\n*January 24, 2024*\n\nThis version includes the following updates:\n\n- New DPC Migration package [`com.google.android.managementapi.dpcmigration`](/android/management/reference/amapi/com/google/android/managementapi/dpcmigration/package-summary) to support device migration to AMAPI. For additional information you can review the guide [*Migrate existing devices to AMAPI*](/android/management/dpc-migration).\n\nVersion 1.0.1\n\n*February 15, 2022*\n\nThis version includes the following updates:\n\n- Bug fixes and internal improvements.\n\nVersion 1.0.0\n\n*September 20, 2021*\n\nThis version includes the following updates:\n\n- Initial release."]]