Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

google api - Android Device Policy sync does not work until done manually

We have some android devices attached to Android Management API as fully managed work devices.

Now when we push out some changes to the device policy such as Factory Reset Disabled, Adjust Volume Button Disabled or any other such controls, the devices don't sync it immediately.

In fact we have to manually open up Android Device Policy and click on Sync for it actually get the changes.

This is really troublesome because at times the policy doesn't sync for hours together and the devices don't get the updates.

Also we load up the whole policy of the device for every control change because if not the other controls go back to null, can Patch or UpdateMask be used to avoid this?

Can someone please suggest me of what can be done to make sure the device gets the policy changes immediately ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I've run into the same issue, despite the documentation assuring that policy updates are applied to all devices that utilize the updated policy.

The best workaround I have found is to issue a REBOOT command to any device that I specifically want to update. While this usually leads to the device rebooting twice, it does immediately happen, and after the second reboot the device seems to pickup policy updates.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...