title: Keep wifi on during Android Zero-touch enrollment
body: <p>I created a json by following guide here <a href="https://developers.google.com/zero-touch/guides/customer/emm#provision" rel="nofollow noreferrer">https://developers.google.com/zero-touch/guides/customer/emm#provision</a></p>
  
  <p>My sample json:</p>
  
  <pre><code>{
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME": "sample-component-name",
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM": "device admin signature",
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION": "http://download/location/that.apk",
  "android.app.extra.PROVISIONING_SKIP_ENCRYPTION": false, 
  "android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {
      "serverurl": "my-mdm.server.url", 
      "gid": "testGid", 
      "un":"testUn",
      "pw":"testPass"
  },
  "android.app.extra.PROVISIONING_WIFI_SSID": "wifi-ssid",
  "android.app.extra.PROVISIONING_WIFI_PASSWORD": "correct-password",
  "android.app.extra.PROVISIONING_WIFI_PROXY_HOST": "my-wifi.proxy.host.url",
  "android.app.extra.PROVISIONING_WIFI_PROXY_PORT": 9999
  }
  </code></pre>
  
  <p>Now the problem is when device connects to wifi, it takes few minutes to actually download apk and install. During that time, sometimes screen turns off which causes wifi to sleep. I understand this it to save battery, but it is sort failing the zero-touch idea.</p>
  
  <p>I found link to a list of Global Settings on DevicePolicyManager doc page. <a href="https://developer.android.com/reference/android/provider/Settings.Global.html#WIFI_SLEEP_POLICY" rel="nofollow noreferrer">https://developer.android.com/reference/android/provider/Settings.Global.html#WIFI_SLEEP_POLICY</a>
  However I am not sure how to set this property through enrollment json. Can anybody please share any doc or example on how to achieve this?</p>
  
  <p>I tried to add <code>wifi_sleep_policy = 2</code> in EXTRAS_BUNDLE, but it didn't work :(</p>
  
  <p>Device is on Android-7-Nougat.</p>