To get started with the Android Management API, we've created a Colabnotebook that you can follow to enroll an enterprise, create a policy, andprovision a device.
To use the quickstart guide, you need:
- An Android 6.0+ device.
- A Gmail account. This account cannot be associated with an existingenterprise.
- A Cloud Platform project that youown or can edit:
- Go to the Projects Page.
- Click CREATE PROJECT.
- Take note of the project ID.
Cleanup (optional)
To reset your device and unbind your Gmail account from the enterprise
youcreated, follow the steps below.
1. Deprovision a device
Before you can deprovision a device, you need the device's deviceId
. To get alist of all your provisioned devices, call enterprises.devices.list
andspecify:
parent
: The enterprise name in the form ofenterprises/{enterprise-id}
.
A successful response contains an array of devices
resources. Because you only need the name
field to deprovision a device, theexample response below is shortened.
{ "devices": [ { "name": "enterprises/{enterprise-id}/devices/{device-id}", "state": "ACTIVE", // Additional device resource fields } ]}
To deprovision and factory-reset a device, call enterprises.devices.delete
andspecify:
name
: The device ID in the form ofenterprises/{enterprise-id}/devices/{device-id}
.
If successful, the request returns an empty response body.
2. Delete an enterprise
You can only associate your Gmail account with a single enterprise. To unbindyour account from an enterprise, you need to delete the enterprise:
- Visit play.google.com/work with the accountused to create the enterprise.
- Select Admin Settings.
- In Organization information, select the three vertical dots.
- Click Delete Organization.
Start developing
- For more detailed information on how to develop an Android managementsolution, review the Introduction,Developer's guide,API reference andPermissible Usage guidelines.
- Download the Android Management API client library forJava,.NET,Python,or Ruby (Alpha).
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 2021-10-06 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" }]