如何找到已注册为完全托管设备的设备? [英] How can I locate a device which has been enrolled as a fully managed device?

查看:64
本文介绍了如何找到已注册为完全托管设备的设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何找到已使用服务帐户和Android Management API注册的Android 9.0设备.该文档似乎对我的情况没有任何提示.

I'm trying to find out how to locate an Android 9.0 device which has been enrolled using a Service Account and the Android Management API. The documentation does not seem to have any hints for my case.

由于显然无法使用服务帐户登录,因此我相信我不能使用 https://www.google.com/android/find .

Since there is apparently no way of logging in with a Service Account, I believe I cannot use https://www.google.com/android/find either.

推荐答案

您可以使用Android Management API打开高精度"定位模式,但需要使用其他应用来获取设备的位置.

You can use the Android Management API to turn on "high accuracy" location mode but you will need to use another app to get the location of the device.

要启用高精度"位置模式,可以使用"locationMode":"HIGH_ACCURACY"并使用"permissionGrants"向您的应用授予访问位置的权限.

To enable "high accuracy" location mode you can use "locationMode": "HIGH_ACCURACY" and use "permissionGrants" to grant your app the permission to access the location.

policy_json = '''
{
  "applications": [
  {
    "packageName": "{your.app.packageId}",
    "installType": "FORCE_INSTALLED",
    "permissionGrants": [
    {
      "permission": "android.permission.ACCESS_FINE_LOCATION",
      "policy": "GRANT"
    }
  }
],
  "locationMode": "HIGH_ACCURACY"
}
'''

这篇关于如何找到已注册为完全托管设备的设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆