In das AMAPI SDK einbinden
Mit dem Android Management API (AMAPI) SDK können bestimmte Apps
direkt mit Android Device Policy (ADP) kommunizieren können. Folgende Funktionen werden unterstützt:
Führen Sie folgende Schritte aus, um das AMAPI SDK in Ihr
Anwendung:
- Fügen Sie die AMAPI SDK-Bibliothek hinzu.
- Fügen Sie das Abfrageelement hinzu, wenn das Ziel-SDK >= 30 ist.
Vorbereitung
- Die
minSdkVersion
deiner App muss mindestens auf API-Level 21 festgelegt sein.
- Fügen Sie die Abhängigkeiten für die neueste Version des AMAPI SDK zu Ihrem
. Sie können die Version der neuesten verfügbaren Bibliothek
finden Sie auf der Seite mit den Versionshinweisen zum AMAPI SDK.
Abfrageelement hinzufügen
Wenn Ihre App auf SDK 30 oder höher ausgerichtet ist, ist das Element „Abfragen“ im
AndroidManifest.xml
, um anzugeben, dass eine Interaktion mit ADP erfolgt.
<queries>
<package android:name="com.google.android.apps.work.clouddpc" />
</queries>
Weitere Informationen finden Sie unter Paketsichtbarkeit unter Android filtern.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]