使用managedConfigurationTemplate的安卓托管应用配置间歇性丢失问题求助
Android托管应用
managedConfigurationTemplate配置间歇性消失问题 在设备策略中通过managedConfigurationTemplate配置的安卓托管应用,其托管设置会间歇性失效,表现为应用仿佛未配置任何托管规则。但通过managedConfiguration直接在策略中提供JSON配置的方式,则不存在该问题。
触发该问题的常见场景为:应用配置managedConfigurationTemplate后,重启设备。
此问题于2025年5月初首次出现,已在自研应用及Google Chrome等第三方应用中验证,涉及设备包括三星系列及Google Pixel系列。
设备策略示例片段
存在问题的配置(使用managedConfigurationTemplate)
{ "applications": [ { "packageName": "com.example", "managedConfigurationTemplate": { "templateId": "07689490608237604572" } } ] }
正常运行的配置(使用managedConfiguration)
{ "applications": [ { "packageName": "com.example", "managedConfiguration": { "exampleDateProperty": "2025-06-03T20:10:57.785Z", "exampleStringProperty": "2.1.1-2" } } ] }
复现步骤
- 使用托管配置iFrame配置Google Chrome的托管规则
- 在「允许访问的URL列表」中填入:stackoverflow.com
- 在「阻止访问的URL列表」中填入:*
- 应用上述配置模板,在安卓设备上安装Chrome
- 打开Chrome访问stackoverflow.com,确认可正常访问
- 打开Chrome访问google.com,确认被阻止访问
- 重启设备
- 再次打开Chrome访问stackoverflow.com,仍可正常访问
- 打开Chrome访问google.com,发现原本应被阻止却可正常访问,说明托管配置模板已失效
内容的提问来源于stack exchange,提问作者Mobile Dan
相关产品推荐
相关产品推荐

