[英]Android managed devices stuck in KIOSK mode, policy not automatically applying, unable to unpin
Currently we're using android-management-api on 100+ devices that are all under the same policy with a KIOSK mode app pushed to them.目前,我们在 100 多台设备上使用 android-management-api,这些设备都遵循相同的策略,并推送了 KIOSK 模式应用程序。 Most of the time the devices remain in the KIOSK mode, but from time to time we switch the pinning off, or apply and update, by changing to FORCE_INSTALLED and increasing minVersionCode.大多数情况下,设备保持在 KIOSK 模式,但有时我们会通过更改为 FORCE_INSTALLED 并增加 minVersionCode 来关闭固定或应用和更新。
ISSUE- Last week the app UNPINNING just stopped working all of a sudden(Was working fine for some months).问题 - 上周,应用程序 UNPINNING 突然停止工作(几个月后工作正常)。 No policy updates that we are pushing are being applied, tried deleting a policy (can't because the devices are using it), disabling the app(nothing happens).没有应用我们正在推送的策略更新,尝试删除策略(不能,因为设备正在使用它),禁用应用程序(没有任何反应)。 From the looks of it, we're stuck with devices that are pinned in one app and cannot be unpinned anymore.从它的外观来看,我们被固定在一个应用程序中并且无法再取消固定的设备所困扰。
I've read that applying policy update manually could help - but can't do it because of the pinned kiosk.我读过手动应用策略更新可能会有所帮助 - 但由于固定信息亭而无法这样做。 Restarting device doesn't help.重新启动设备没有帮助。
Only solution i can come up with right now is using adb to factory re-install all of them, but manually re-installing 100+ devices isn't a solution.我现在唯一能想到的解决方案是使用 adb 在工厂重新安装所有设备,但手动重新安装 100 多个设备不是解决方案。
It is recommended that you set the SystemUpdateType to WINDOWED
when using a KIOSK mode policy.建议您在使用 KIOSK 模式策略时将SystemUpdateType设置为WINDOWED
。 Setting an update window will ensure updates to be installed within specific time frames, even if an app is running in KIOSK mode.设置更新窗口将确保在特定时间范围内安装更新,即使应用程序在 KIOSK 模式下运行。
The following policy sets an update window between 3:00AM to 10:00AM.以下策略在 3:00AM 到 10:00AM 之间设置更新窗口。 When setting the systemUpdate
policy, ensure that startMinutes
and endMinutes
are not the same value and that neither value is set to 0.设置systemUpdate
策略时,请确保startMinutes
和endMinutes
不是相同的值,并且两个值都未设置为 0。
"systemUpdate": {
{
"type": "WINDOWED",
"startMinutes": 180,
"endMinutes": 600
]
}
}
To check when the policy was last updated on the device, you can use the devices.get API and check the lastPolicySyncTime
or check appliedPolicyVersion
field to check the version of the policy on the device.要检查设备上最后一次更新策略的时间,您可以使用devices.get API 并检查lastPolicySyncTime
或检查appliedPolicyVersion
的lastPolicySyncTime
字段以检查设备上的策略版本。
As an alternative to the systemUpdate
policy, you can also set the autoUpdateMode policy to AUTO_UPDATE_HIGH_PRIORITY
.作为systemUpdate
策略的替代方案,您还可以将autoUpdateMode策略设置为AUTO_UPDATE_HIGH_PRIORITY
。 Setting this policy will update the application as soon as an update is available.设置此政策将在有可用更新时立即更新应用程序。
{
"packageName": string,
...
"autoUpdateMode": “AUTO_UPDATE_HIGH_PRIORITY”
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.