WIFI 网络的 EMM 策略代理设置
EMM Policy Proxy Setting for WIFI Networks
嗨!
我为具有 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,
}
谢谢
我终于在 chromium 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"
}
嗨!
我为具有 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,
}
谢谢
我终于在 chromium 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"
}