O SDK da API Android Management (AMAPI) permite que apps específicos
se comunicam diretamente com o Android Device Policy (ADP). Ele inclui suporte para:
Verifique se o minSdkVersion do app está definido como pelo menos o nível 21 da API.
Adicione as dependências da versão mais recente do SDK da AMAPI ao seu
para o aplicativo. Você encontra a versão da biblioteca mais recente disponível e como
para adicioná-lo ao seu aplicativo, na página de notas da versão do SDK da AMAPI.
Adicionar elemento de consultas
Se o aplicativo for direcionado ao SDK 30 ou superior, o elemento de consultas é necessário no
AndroidManifest.xml para especificar que ele vai interagir com o ADP.
[null,null,["Última atualização 2024-08-22 UTC."],[[["The Android Management API (AMAPI) SDK allows specific apps to directly communicate with Android Device Policy (ADP), enabling local command execution and device migration."],["To integrate the AMAPI SDK, developers need to add the SDK library, include the queries element for apps targeting SDK 30 or later, and ensure the app's `minSdkVersion` is at least API level 21."],["Apps utilizing the AMAPI SDK must declare their interaction with ADP through the queries element in their `AndroidManifest.xml` for enhanced security and visibility if targeting SDK 30 or later."],["Extension apps using the AMAPI SDK require device provisioning with an extensibility policy for proper functionality."]]],["The Android Management API (AMAPI) SDK allows apps to communicate with Android Device Policy (ADP), supporting local command execution and custom DPC migration to AMAPI. To integrate, add the AMAPI SDK library and, if the target SDK is 30 or higher, include a `\u003cqueries\u003e` element in `AndroidManifest.xml` to interact with ADP. The `minSdkVersion` must be at least API level 21. Extension apps also require provisioning with an extensibility policy. The latest version and dependencies can be found in the release notes.\n"]]