简体   繁体   English

Android Management api - 是否可以在 android 应用程序中获取设备 ID/名称? (设备特定的 QR 是不可能的,生成策略特定的

[英]Android Management api - Is it possible to get device id/name in android app? ( Device specific QR is not possible, Generating Policy specific

I am using android management api and Want to fetch device id from Android Management api.我正在使用 android 管理 api 并想从 Android 管理 api 获取设备 ID。 So send data to Custom server (Own backend).因此将数据发送到自定义服务器(自己的后端)。

https://developer.android.com/work/managed-configurations https://developer.android.com/work/managed-configurations

This is already used for fetching policy name and other details.这已用于获取策略名称和其他详细信息。 It's not useful for above requirement它对上述要求没有用

You can use Method: enterprises.devices.list to list all the devices under the enterprise.您可以使用Method: enterprise.devices.list列出企业下的所有设备。 In the JSON response, you can get the device's name from the Device resource in the form enterprises/{enterpriseId}/devices/{deviceId} .在 JSON 响应中,您可以从enterprises/{enterpriseId}/devices/{deviceId}形式的设备资源中获取设备名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM