嗨!
我为具有wifi设置的设备创建了策略。 我可以连接到wifi,但由于缺少代理设置,因此无法上网。我没有在Google emm页面上找到有关代理设置的任何信息。https://developers.google.com/android/management/reference/rest/v1/enterprises.policies 有人知道如何通过android设备策略配置代理。
{
"name": "enterprises/myenterpriseid/policies/browserkiosk",
"version": "32",
"applications": [
{
"packageName": "com.android.chrome",
"installType": "FORCE_INSTALLED",
"lockTaskAllowed": true,
"defaultPermissionPolicy": "GRANT"
}
}
],
"screenCaptureDisabled": true,
"openNetworkConfiguration": {
"NetworkConfigurations": [
{
"GUID": "id2",
"Name": "name2",
"Type": "WiFi",
"WiFi": {
"AutoConnect": true,
"SSID": "wlan2",
"Security": "WPA-PSK",
"Passphrase": "password2"
}
},
{
"GUID": "id1",
"Name": "name1",
"Type": "WiFi",
"WiFi": {
"AutoConnect": true,
"SSID": "wlan1",
"Security": "WPA-PSK",
"Passphrase": "password1"
}
}
]
},
"systemUpdate": {
"type": "WINDOWED",
"startMinutes": 120,
"endMinutes": 240
},
"factoryResetDisabled": true,
"safeBootDisabled": true,
"statusBarDisabled": true,
"keyguardDisabled": true,
"statusReportingSettings": {
"softwareInfoEnabled": true,
"memoryInfoEnabled": true,
"networkInfoEnabled": true,
"displayInfoEnabled": true,
"powerManagementEventsEnabled": true,
"hardwareStatusEnabled": true
},
"complianceRules": [
{
"nonComplianceDetailCondition": {
"settingName": "persistentPreferredActivities"
}
}
],
"blockApplicationsEnabled": true,
}
谢谢
答案 0 :(得分:0)
我终于找到了铬OS文档中的解决方案。
但是android上不完全支持openNetworkConfiguration。
代理正在运行,但是您无法在设备上的wifi设置中看到已配置的代理。
"openNetworkConfiguration": {
"NetworkConfigurations": [
{
"GUID": "id1",
"Name": "name1",
"Type": "WiFi",
"ProxySettings": {
"Type": "Manual",
"Manual": {
"HTTPProxy": {
"Host": "proxy.test.intra",
"Port": 1234
}
}
}
"WiFi": {
"AutoConnect": true,
"SSID": "wlan1",
"Security": "WPA-PSK",
"Passphrase": "password1"
}