简体   繁体   English

如何通过android管理API调整语言和时间设置

[英]How to adjust the language and time settings through the android management API

So we starting with testing the management api on several devices within the company I work for.因此,我们首先在我工作的公司内的几台设备上测试管理 api。 Now we got some feedback from our employees who would like to have the 24 hour notation and switch the language to Dutch.现在我们从员工那里得到了一些反馈,他们希望使用 24 小时记法并将语言切换为荷兰语。 Until now i did not find a way of changing the language settings of the devices through a device policy到目前为止,我还没有找到通过设备策略更改设备语言设置的方法

Unfortunately, there is no configuration available in the policy set that will enable you to do those things mentioned, you can only do it during enrollment using the DPC extra you included, or manually.不幸的是,策略集中没有可用的配置可以让您执行上述操作,您只能在注册期间使用您包含的 DPC 额外功能或手动执行此操作。

If you are using QR code or ZT to provision devices, you can add a DPC extra EXTRA_PROVISIONING_LOCALE like the sample code below.如果您使用 QR 码或 ZT 来配置设备,您可以像下面的示例代码一样添加额外的 DPC EXTRA_PROVISIONING_LOCALE

qrdata = {
'android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME': 'com.afwsamples.testdpc/.DeviceAdminReceiver',
'android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM': 'gJD2YwtOiWJHkSMkkIfLRlj-quNqG1fb6v100QmzM9w',
'android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION': 'https://play.google.com/managed/downloadManagingApp?identifier=testdpc',
'android.app.extra.PROVISIONING_USE_MOBILE_DATA':'true',
'android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED':'true',
"android.app.extra.PROVISIONING_LOCALE":"nl"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM