AI-generated Key Takeaways
-
Use the provided Colab quickstart guide to enroll an enterprise, create a policy, and provision a device for the Android Management API.
-
To use the quickstart, you need an Android 6.0+ device, a non-enterprise Gmail account, and a Cloud Platform project you own or can edit.
-
Optional cleanup steps include deprovisioning a device using its
deviceId
and deleting the enterprise through the managed Google Play admin settings. -
Further resources like the Introduction, Developer's guide, API reference, and client libraries are available to start developing with the Android Management API.
To get started with the Android Management API, we've created a Colab notebook that you can follow to enroll an enterprise, create a policy, and provision a device.
To use the quickstart guide, you need:
- An Android 6.0+ device.
- A Gmail account. This account cannot be associated with an existing enterprise.
- A Cloud Platform project that you
own 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
you
created, follow the steps below.
1. Deprovision a device
Before you can deprovision a device, you need the device's deviceId
. To get a
list of all your provisioned devices, call enterprises.devices.list
and
specify:
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, the
example 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
and
specify:
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 unbind your account from an enterprise, you need to delete the enterprise:
- Visit play.google.com/work with the account used 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 management solution, review the Introduction, Developer's guide, API reference and Permissible Usage guidelines.
- Download the Android Management API client library for Java, .NET, Python, or Ruby (Alpha).