0

嗨!

我为我们的设备创建了一个带有 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,
}

谢谢

4

1 回答 1

0

我终于在 chromium os doc 中找到了解决方案。

但是 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"
   }
于 2018-10-23T12:51:17.390 回答