Send feedback
Integrate with the AMAPI SDK
Stay organized with collections
Save and categorize content based on your preferences.
The Android Management API (AMAPI) SDK enables specific apps to
communicate directly with Android Device Policy (ADP). It includes support for:
The following steps must be taken to integrate the AMAPI SDK with your
application:
Add the AMAPI SDK library .
Add the queries element , if target SDK >= 30.
Note: If you are developing an extension app, you will also need to provision
the device with an extensibility policy .
Prerequisites
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.
<queries>
<package android:name="com.google.android.apps.work.clouddpc" />
</queries>
See Package visibility filtering on Android for more information.
Send feedback
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 2024-06-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-06-03 UTC."}
[[["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-06-03 UTC."]]