【发布时间】:2020-05-02 18:26:33
【问题描述】:
当我在 Android Management API 中发出 LOCK 或 REBOOT 命令时,设备上都不会执行:
Command command = new Command();
command.Type = "LOCK";
var operation = svc.Enterprises.Devices.IssueCommand(command, "enterprises/LCxxxxxxxx/devices/3ded38daabec2df8").Execute();
//svc is equal to authenticated Google.Apis.AndroidManagement.v1.AndroidManagementService;
回复:
Operation.Metadata
Count = 5
[0]: {[@type, type.googleapis.com/google.android.devicemanagement.v1.Command]}
[1]: {[type, LOCK]}
[2]: {[createTime, 2020-01-15 9:59:15 PM]}
[3]: {[duration, 600s]}
[4]: {[userName, enterprises/LCxxxxxx/users/10763xxxxxxxxxxx]}
已成功将策略推送到设备,并且可以检索数据并取消配置它。
谢谢
【问题讨论】:
-
嗯,好的,今天我进来了,现在两个都在工作....不确定该 API 是否已准备好迎接黄金时段。似乎有很多问题。注意:我也看到了设备的双重重启。
标签: android .net android-management-api