Commit Graph

2528 Commits

Author SHA1 Message Date
Jimmy Chen
69236f8e2b Merge "p2p: add p2p random MAC feature flag in framework" 2019-01-23 02:53:10 +00:00
Roshan Pius
c2aa6a91d3 Merge "WifiNetworkConfigBuilder: Pass package name" 2019-01-22 22:36:06 +00:00
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
Roshan Pius
6c3d416762 WifiNetworkConfigBuilder: Pass package name
Capture the package name (along with uid) of the app using the
builder for creating network specifiers & suggestions. We need
the exact package name to differentiate apps using shared UIDs.

Bug: 123078593
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest
Test: act.py -c wifi_manager.config -tb dut-name -tc
WifiNetworkSuggestionTest
Test: New CtsVerifier tests for network request.

Change-Id: Ib55d34b60219808ad30bf44db2a806e1c69ae2c5
2019-01-18 11:52:20 -08: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
Jimmy Chen
d91c4ed282 p2p: add p2p random MAC feature flag in framework
P2P random MAC needs the driver to support changing MAC address.

Bug: 118904478
Test: manual test
      * Enter WiFI Direct Page
      * check the feature is enabled in logcat
        * WifiP2pService: Supported feature: P2P MAC randomization
      * check p2p0 MAC address is randomized.

Change-Id: I189a984b27886ca009b5f269c848fa38faedf0d9
2019-01-17 11:23:34 +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
Hugo Benichi
779d10c7dd wifi: Update AbstractWifiService to be concrete.
This patch removes the abstract qualifier from AbstractWifiService and
change its name to BaseWifiService for consistency.

This checks at compile time that all base methods defined in
IWifiManager.aidl are stubbed in AbstractWifiService. Previously since
AbstractWifiService was an abstract class, any new method added to
IWifiManager.aidl would not force an update to AbstractWifiService.

Bug: 112338174
Test: Checked that removing a stub from BaseWifiService causes an
error at compilation.

Change-Id: I3f71aae51adfe5775bec25e1133876b975cf0515
2019-01-10 09:14:36 +09:00
Les Lee
3e06fd002b Merge "Add location permissions required for APIs" 2019-01-09 09:53:43 +00: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
Hugo Benichi
5e59d6e31d WiFi: Remove deprecated stubs in AbstractWifiService
Bug: 122431221
Test: Compiled.
Change-Id: Icc7d4b0625ea9f7163a162b164ea582b465a81d1
2019-01-08 22:24:38 +09:00
Hugo Benichi
cfbfd9bdce Merge "Add setDeviceMobilityState() to AbstractWifiService." 2019-01-08 13:11:08 +00: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
000e8e6444 Merge "WiFi: Add missing stubs to AbstractWifiService." 2019-01-08 03:40:18 +00:00
TreeHugger Robot
b91b3b15b0 Merge "passpoint-r2: change return type of getMatchingOsuProviders" 2019-01-08 02:05:20 +00:00