Commit Graph

2515 Commits

Author SHA1 Message Date
Roshan Pius
6402e56c4a WifiManager: Mark disableEphemeralNetwork as @hide
This is only used by settings, so no need to make it @SystemApi.
Removing the @SystemApi tag which was unnecessarily added in ag/5529624.

Bug: 122278104
Test: make system-api-stubs-docs-update-current-api
Change-Id: I74a67abdc5e1ed2f2f049e560a3e6f8a1d0e8d76
2019-01-22 11:07:23 -08:00
TreeHugger Robot
9e10c87914 Merge "passpoint-r2: change the name for OSU_FAILURE_INVALID_SERVER_URL." 2019-01-22 18:07:23 +00:00
Etan Cohen
0d2740ca69 Merge "[WIFI] Open up the getRandomizedMacAddress API" 2019-01-19 17:39:41 +00:00
Hai Shalom
f1845027ca Merge changes from topic "isEasyConnectSupported"
* changes:
  [DPP] Rename isDppSupported to isEasyConnectSupported
  [DPP] Add more documentation about Easy-Connect (DPP)
2019-01-19 06:39:41 +00:00
TreeHugger Robot
4453778fb1 Merge changes from topic "DppExecutor"
* changes:
  [DPP] Use Executor instead of Handler in Easy Connect API
  [DPP] Add more documentation about stopEasyConnectSession API
2019-01-19 04:33:21 +00:00
Jimmy Chen
176af33735 Merge "wifi: extend feature flag from int to long" 2019-01-19 00:26:07 +00:00
TreeHugger Robot
2ba0d6ff68 Merge "[DPP] Add _GENERIC suffix to EASY_CONNECT_EVENT_FAILURE code" 2019-01-18 23:05:39 +00:00
Etan Cohen
41561126ef Merge "[WIFI] Clarify getConfiguredNetworks behavior for Carrier Apps" 2019-01-18 21:07:09 +00:00
Ecco Park
327c0b1e31 passpoint-r2: change the name for OSU_FAILURE_INVALID_SERVER_URL.
Currently OSU_FAILURE_INVALID_SERVER_URL name is confused with another
flag called (OSU_FAILURE_SERVER_URL_INVALID) that is used for connecting
OSU server.

So, it is better to change the name to meaningful name.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I4dabe6bab12211faae7758b8fc2df2381efb6c21
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-17 21:56:16 -08:00
Etan Cohen
753e63c0f5 [WIFI] Make Aware + Connectivity agent network specifiers sensitive
Configure the Wi-Fi Aware and Wi-Fi connectivity API agent network
specifiers as sensitive. This will strip them out from the
network capabilities before the capabilities are forwarded to the
app.

Necessary since the agent network specifier contains information
which the apps should not have.

Bug: 122160111
Test: atest ConnectivityServiceTest (frameworks/base/tests/net)
Test: atest frameworks/base/tests/net
Test: atest frameworks/opt/net/wifi/tests/wifitests
Test: atest frameworks/opt/telephony/tests/telephonytests
Test: atest frameworks/opt/net/ethernet/tests
Test: atest android.net.cts - some flakiness!
Test: act.py ThroughputTest
Test: act.py DataPathTest
Test: atest SingleDeviceTest (cts)
Change-Id: I9673107a2ee13bca63539fc7dbee7f376af3ebcb
2019-01-18 05:24:32 +00:00
Roshan Pius
3c3f264c7f Modify toString for WifiNetworkSpecifier, etc
Bug: 119632465
Test: Verified logs manually.
Change-Id: I5b8a5b5665313a62606ebc9ca9b2fb14ac37ea33
2019-01-18 04:51:15 +00:00
Hai Shalom
50b9e393bc [DPP] Rename isDppSupported to isEasyConnectSupported
Rename isDppSupported to isEasyConnectSupported to be
consistent with the rest of the API.

Bug: 123041766
Test: atest com.google.android.gts.setupwizard.DppHostTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: I45fe54140c593b33b43fb67128c5e540859cc3ff
2019-01-17 19:02:14 -08:00
Hai Shalom
e1a40cfed3 [DPP] Add more documentation about Easy-Connect (DPP)
Add more documentation about Easy-Connect (DPP) in WifiManager. Explain
in a few words the key items of this technology.

Bug: 122985335
Test: No code changes
Change-Id: I395b37f23874a0b8b25a418118d7b38804d29501
2019-01-17 19:02:06 -08:00
Hai Shalom
77dc840540 [DPP] Use Executor instead of Handler in Easy Connect API
Following API Council review, use Executor instead of Handler
in all Easy Connect API.

Bug: 122984003
Test: atest com.google.android.gts.setupwizard.DppHostTest
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: I58f61929e4b8792d43fc495ddaa51f766737b743
2019-01-17 15:45:46 -08:00
Ecco Park
37f2ba0a3f Merge "passpoint-r2: add @systemApi for Passpoint APIs" 2019-01-17 22:32:49 +00:00
TreeHugger Robot
3b6f1ed1a9 Merge "passpoint: mark as @deprecated and add permissions" 2019-01-17 22:28:05 +00:00
Etan Cohen
a914a2ef0b [WIFI] Open up the getRandomizedMacAddress API
The randomized MAC address needs to be available to DO, PO, and
Carrier apps (which is restricted to getting the randomized MAC
address only from configurations it created).

Unhide the API and document the restrictions.

Bug: 112205095
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Change-Id: I7376a00cf6ada51236d8a00538159e1ca25743b3
2019-01-17 13:21:07 -08:00
Etan Cohen
999aa2af59 [WIFI] Clarify getConfiguredNetworks behavior for Carrier Apps
Carrier privileged apps will have a partial exemption post-Q to
receive a set of configurations which they created (but no others).

Clarify documentation.

Bug: 112205095
Test: N/A
Change-Id: I0d5e44155f0db40de0c2ca554d29cb6cd1e40f3d
2019-01-17 13:21:07 -08:00
Hai Shalom
16789e7525 [DPP] Add more documentation about stopEasyConnectSession API
Following API Council review, add more documentation about
stopEasyConnectSession API.

Bug: 122984897
Test: No code changes
Change-Id: I7741b14387ddc9bb0d6aced6c6b493d8d77a357c
2019-01-17 11:06:09 -08:00
Hai Shalom
5ec038abf4 [DPP] Add _GENERIC suffix to EASY_CONNECT_EVENT_FAILURE code
Following API council review, rename EASY_CONNECT_EVENT_FAILURE to
EASY_CONNECT_EVENT_FAILURE_GENERIC.

Bug: 122984877
Test: atest DppManagerTest
Change-Id: I4703e7f66b21e7e54dbf1f1059fd1410b7b1bece
2019-01-17 10:48:30 -08:00
Ecco Park
44fd4d89f0 passpoint-r2: add @systemApi for Passpoint APIs
Making Passpoint APIs @Systemapi is required for Setup Wizard to use.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I3aadfdb30295de8a2997f154705af0b1b27f3a5e
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-16 14:14:14 -08:00
Jimmy Chen
df3ad8c56a wifi: extend feature flag from int to long
WiFi features run out of all 32 bits of int.
Extend feature flag from int to long for more bits.

Bug: 122939035
Test: build
Test: atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: I7e2bcc03d24940e95e22f5fc34070cf4aebfadfd
2019-01-16 18:47:57 +08:00
Ecco Park
0ca45736f5 passpoint: mark as @deprecated and add permissions
The list of passpoint APIs are currently defined as public API.
So, any app can call this API without any permission.
Since PasspointConfiguration has all information for user credential,
we should add a permission so that only permitted app is able to call those APIs.

Bug: 122918799
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I9530fcc11b0c4087e6b7bfd232cfff565dc06195
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-15 20:54:47 -08:00
Daichi Ueura
aa1a2355ae Add SHA256 key management definition
This patch adds SHA256 key management definition for
wifi service to manipulate them.

Test: Build with dependent CLs
Bug: 68787540
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
Change-Id: I35326c6803de48814564a619d42e217a06aaf06f
(Cherry-picked from commit dc3f6ee703d9a0e7f6d735c6c0e22a6bc45c726c)
2019-01-15 14:43:05 -08:00
TreeHugger Robot
bd43f37be1 Merge "passpoint-r2: copy updateIdenfier field in the copy constructor" 2019-01-15 22:32:52 +00:00
Hai Shalom
e49bb32221 Merge "[DPP] Rename "DPP" public API to "Easy Connect"" 2019-01-15 20:46:44 +00:00
Hai Shalom
6c5d08bfd7 [DPP] Rename "DPP" public API to "Easy Connect"
Rename all DPP public API and constants to use Easy Connect naming,
whic is the WFA public technology name

Bug: 122851551
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: Iaf30b62d8981b55e07cb509a4f12a476baf22768
2019-01-15 20:46:19 +00:00
Sunil Ravi
25830b58d7 Merge "Rx Link speed Information" 2019-01-15 18:43:59 +00:00
Ecco Park
6d6041365c passpoint-r2: copy updateIdenfier field in the copy constructor
It needs to be copied for R2 connection

Bug: 117958599
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: capture the sniffer log while associating R2 AP.
Change-Id: Ia38d5f8f405c7eb72e3dedca5d5c48a93489a611
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-14 17:33:00 -08:00
Ecco Park
f473169704 Merge "passpoint-r2: handle multiple CA certificates" 2019-01-14 21:25:48 +00:00
Sunil Ravi
ec814a1030 Rx Link speed Information
Get Rx link speed and save it in WifiInfo.
Expose the API to get Rx link speed and Tx
link speed

Bug: 118820339
Test: Manual test by connecting to AP and checking
rx link speed print in logcat logs.

Change-Id: I35245d846533069f2c6b0fa70c6eb94bccb6365c
2019-01-14 12:33:32 -08:00
Etan Cohen
cf1cf81c33 Merge "[AWARE] Add Wi-Fi Aware-specific Network info: port, transport protocol" 2019-01-14 17:49:39 +00:00
Ecco Park
ccbce520d8 passpoint-r2: handle multiple CA certificates
This is required to save the AAA root CA certs for PPS MO.
Put @hide for new API because this is only used for wifi service.

Bug: 117717842
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: Ib84c030024d3429140cd80bb622fd23ca608b9bb
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-14 08:14:42 -08:00
Jimmy Chen
182bbb6dae Merge "p2p: support frequency for GroupJoin/GroupCreation with config" 2019-01-14 02:28:11 +00:00
TreeHugger Robot
485251a185 Merge "[WPA3] Rename allowedGroupMgmtCiphers to allowedGroupManagementCiphers" 2019-01-13 16:15:05 +00:00
Roshan Pius
7fb5c3b75c WifiManager: Mark NetworkSuggestionsStatusCode hidden
The intdef interfaces should be hidden according to API council
guidelines.

Bug: 122518129
Test: make api-stubs-docs-update-current-api
Change-Id: I46d38341fab7136ed053445eb92a065abc3a2a26
2019-01-11 15:41:05 +00:00
Hai Shalom
69139f4cb6 [WPA3] Rename allowedGroupMgmtCiphers to allowedGroupManagementCiphers
Following API Council review:
Rename allowedGroupMgmtCiphers to allowedGroupManagementCiphers in all instances
in order to be consistend with existing members.

Bug: 122616519
Test: atest com.android.server.wifi
Change-Id: I5e24a97308c2c6150ecedbd60ea90c50c20e3760
2019-01-10 12:45:49 -08:00
Ecco Park
9434c534e8 passpoint-r2: change return type of getAllMatchingWifiConfigs
It is to get the scanresults per home or roaming network type for
matching PasspointProfile.
With this, UI is able to connect to an AP based on the following priority.
1) Home network
2) Roaming network

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I88cacddc072d04e478536276dee411ecc63ced52
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-10 11:43:34 -08:00
Etan Cohen
7faa4facf9 [AWARE] Add Wi-Fi Aware-specific Network info: port, transport protocol
Add port and transport protocol to the network specification and
network capabilities.

Bug: 117605977
Test: atest android.net.wifi.aware
Change-Id: Ia78e5f31ce55f4112feb8209110930a6503e69ad
2019-01-08 12:20:17 -08:00
lesl
3a53928c7d Add location permissions required for APIs
API:getConfiguredNetworks
API:getPrivilegedConfiguredNetworks

Bug: 111844314
Test: atest frameworks/base/wifi/tests/
Test: manual tests in Settings
Change-Id: I005969d735d4cb3fc452913d29a978c95fda5bbd
2019-01-08 20:23:14 +08:00
TreeHugger Robot
b91b3b15b0 Merge "passpoint-r2: change return type of getMatchingOsuProviders" 2019-01-08 02:05:20 +00:00
TreeHugger Robot
72efe39d7d Merge "passpoint-r2: add OSU flag for WifiInfo" 2019-01-07 21:21:58 +00:00
Ecco Park
d23fedb01f passpoint-r2: change return type of getMatchingOsuProviders
This change is required to show signal strength with OSU provider name
on UI

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R2 AP for connection
Signed-off-by: Ecco Park <eccopark@google.com>

Change-Id: I4abb69ffad3ccd855db935e738d1896b263da147
2019-01-07 17:19:41 +00:00
Ecco Park
05df45db02 passpoint-r2: change the return type of getAllMatchingWifiConfigs
This change is required to show the signal level associated with service
name on UI for installed passpoint profile as picking strongest one up
from matching scanResults.

In order to get a map that consists of WifiConfiguration and a list of
ScanResults, three steps are required.

1) Gets a map that consists of FQDN(Fully Qualified Domain Name) of
a matching Passpoint profile and a list of ScanResults.
2) Gets a list of WifiConfigurations for Passpoint profiles matched a
provided list of FQDN.
3) Creates a new map that consists of WifiConfiguration and a list of
ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: I0d56dbdddae4e365b909b9c8f3eff3b0121dc5de
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-07 15:38:12 +00:00
Jimmy Chen
9d11970303 Merge "p2p: add frequency field in WifiP2pGroup" 2019-01-07 06:25:54 +00:00
Les Lee
3f215a1dea Merge "Add documentation about permissions required for hide API." 2019-01-07 03:37:44 +00:00
Jimmy Chen
1f031c62f4 p2p: add frequency field in WifiP2pGroup
The frequency will be used for fast group connection and Wifi p2p metrics.

Bug: 119998319
Test: manuall test
      * check this value in metrics dump

Change-Id: I5e153d3b022b2d27ddabf5f0fb43f499aeec924a
2019-01-07 09:50:18 +08:00
Etan Cohen
4fd1f35592 Merge "[AWARE] Make PeerHandle parcelable" 2019-01-04 18:29:46 +00:00
Ecco Park
e366488567 passpoint-r2: add OSU flag for WifiInfo
This flag is required for UI to handle it differently for OSU AP.

Bug: 122321935
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: testing on UI by clicking OSU provider name.
Change-Id: I6d31f093a9d7fb0b768cd105f270ac54beec9b2d
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-03 20:12:35 -08:00
Hai Shalom
a088295e7f Merge "[DPP] Add DPP key management capability API" 2019-01-03 17:05:44 +00:00