OSDN Git Service

New Settings symbols for captive portal detection
authorHugo Benichi <hugobenichi@google.com>
Tue, 27 Sep 2016 04:01:41 +0000 (13:01 +0900)
committerHugo Benichi <hugobenichi@google.com>
Wed, 28 Sep 2016 14:13:25 +0000 (23:13 +0900)
commit92eb22fdd2e5e2d99ca0b2c14e68dfd632323a90
treef9c29567a65a2ef3ea4ec84bfec141f9bc82c1ff
parentd953bf853d233026c9064e6a0c962b14cf4658d6
New Settings symbols for captive portal detection

This patch defines new Settings symbols for
  - setting the probe urls for captive portal detection.
  - setting which User-Agent to use for captive portal detection.

The existing default values for these settings are not changed, i.e:
  - HTTP and HTTPS probes urls are unchanged.
  - the fallback probe is not used.
  - User-Agent is empty by default.

Bug: 29367974
Change-Id: I6e4b3b172e56b8b67fffa4b51f776d68d5851f25
core/java/android/provider/Settings.java
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/connectivity/NetworkMonitor.java