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
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>
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
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
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
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
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
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
Following API Council review, add more documentation about
stopEasyConnectSession API.
Bug: 122984897
Test: No code changes
Change-Id: I7741b14387ddc9bb0d6aced6c6b493d8d77a357c
Following API council review, rename EASY_CONNECT_EVENT_FAILURE to
EASY_CONNECT_EVENT_FAILURE_GENERIC.
Bug: 122984877
Test: atest DppManagerTest
Change-Id: I4703e7f66b21e7e54dbf1f1059fd1410b7b1bece
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>
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
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>
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)
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
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>
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
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>
The intdef interfaces should be hidden according to API council
guidelines.
Bug: 122518129
Test: make api-stubs-docs-update-current-api
Change-Id: I46d38341fab7136ed053445eb92a065abc3a2a26
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
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>
Add port and transport protocol to the network specification and
network capabilities.
Bug: 117605977
Test: atest android.net.wifi.aware
Change-Id: Ia78e5f31ce55f4112feb8209110930a6503e69ad
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
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>
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
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>