Search code examples
androidmdmandroid-management-api

How to get Device id for using Android Management API?


I'm trying to build an app for MDM using Android Management API. But I can't find an API to create a device id. How to get Device id for using Android Management API?


Solution

  • The deviceId is generated upon successful enrollment. You can list the devices using Devices.list after enrollment. The deviceId is stored in the name field in the form enterprises/{enterpriseId}/devices/{deviceId} you can check the Device resource for more info.