diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2015-04-22 10:44:49 +0900 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2015-04-22 12:01:35 +0900 |
| commit | fa57c489f621cd10add639cf7df59f630a7f41a4 (patch) | |
| tree | 484087f6d93ba69be703eaa7a69699553e7f8c5c /docs/html/sdk/api_diff/19/changes | |
| parent | 8b625dbe7fa13e3fd15f57f015ab7afe229ce3cf (diff) | |
Allow apps with ACCESS_WIFI_STATE to listen for wifi networks
The compatibility measure introduced in bug 20081183 for apps
that connect to a Wi-Fi network without Internet access and then
expect to be able to use that network requires that such apps
register a NetworkCallback so that their WifiManager can pin them
to whatever wifi Network connects.
Currently, registering the callback requires ACCESS_NETWORK_STATE
and the app may not have that permission. Allow registering wifi
(only) callbacks if the app has ACCESS_WIFI_STATE.
If the app does not have ACCESS_WIFI_STATE (unlikely, since
CHANGE_WIFI_STATE is not very useful without ACCESS_WIFI_STATE),
then don't enable the compatibility measure.
Bug: 20081183
Bug: 20423580
Change-Id: Iad328d30c2d170dead883868fece3d922da68f6f
Diffstat (limited to 'docs/html/sdk/api_diff/19/changes')
0 files changed, 0 insertions, 0 deletions
