Ensure that your app's minSdkVersion is set to at least API level 21.
Add the dependencies for the latest version of the AMAPI SDK to your
application. You can find the version of the latest available library, and how
to add it to your application, in the AMAPI SDK's release notes page.
Add queries element
If your app targets SDK 30 or later, then queries element is needed in the
AndroidManifest.xml to specify that it will interact with ADP.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 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."]]],[]]