Android Device Policy sync does not work until done manually
Asked Answered
D

3

8

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 ?

Dissert answered 12/9, 2019 at 6:21 Comment(8)
Hi Sudhu, if you need to update only one setting, for example cameraDisabled, just call patch() with updateMask set to cameraDisabled. Other values will keep their current values. You can specify more settings to be updated at once by separating them with a comma. Hope this helps!Auric
Did this also solve the issue where sync is not automatic? If yes, would it be possible to write it down in an answer? Thanks!Bushcraft
@Fred, unfortunately No, it does not. This is really very troublesome for me. We pushed an App update yesterday and it's still not reflected on the device, the policy shows the app is indeed updated.Dissert
Update: we're still actively looking into this issue. We haven't found the root cause yet.Bushcraft
The issue should now be resolved. Can you confirm? ThanksBushcraft
@Bushcraft Is there a solution to this? We've tried apply policy updates both in full and using 'updateMask'. Same result either way. The device is not compliant until we manually sync the phone in 'Android Device Policy' or the device randomly syncs itself. (Even thought the API says the device is compliant) I can't find any documentation on setting sync times. Locking / Rebooting a phone is instantaneous.Carvel
@RCCola, can you share a bug report in the EMM community please so we can look into your issue? Thanks!Bushcraft
HI @Bushcraft I'd be happy to but we don't have a current EMM account. Is there somewhere else we can log a bug report?Carvel
H
2

Try with the settings: "appAutoUpdatePolicy": "ALWAYS",

"systemUpdate": { "type": "AUTOMATIC" }

I have my device update in a few seconds.

Herminiahermione answered 27/2, 2020 at 9:15 Comment(0)
M
0

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.

Microvolt answered 16/10, 2019 at 4:37 Comment(1)
Unfortunately rebooting a device is not an idle solution and most probably no client would agree to do so. And also we face the issue with reboot as well i.e device reboots 2-3 times.Dissert
F
0

It also depends upon device to device. Many devices brand like samsung, oneplus updates fastly and there are other brands like techno, itel which takes a lot of time to update the policy

Favor answered 20/12, 2022 at 6:49 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewOversweet

© 2022 - 2024 — McMap. All rights reserved.