Add a new network disable reason to disable EAP network if
AT_NOTIFICATION notification code (1031) is returned. It indicates
user has not subscribed to the requested service.
Bug: 122921493
Test: Manually verified that device will not try to connect to the
EAP network if EAP authentication failed with 1031 code before.
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
Change-Id: I0c531064cb5098f1e036a7fd8975a94cb51855b9
Currently we don't print any information for eap_method and
phase2_method.
Without this information, it is difficult know that the configuration is
created correctly.
Bug: 123089627
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I933790a87bd38d4af7438c61f4e12f2e0488d3a1
Signed-off-by: Ecco Park <eccopark@google.com>
Split the existing WifiNetworkConfigBuilder into 2 separate builders,
one for building WifiNetworkSuggestion and one for WifiNetworkSpecifier.
Other changes in the CL:
a) Marked the constructor of the abstract NetworkSpecifier class public
to allow WifiNetworkSpecifier.Builder() (& hence WifiNetworkSpecifier) to
be public. The alternative is to put the builder for WifiNetworkSpecifier
in some other file (like WifiManager)
b) Mark WifiNetworkSpecifier class public to make it's builder visible.
c) Modify the documentation (& usage example) for WifiNetworkSpecifier
builder to explicitly call out that this can only be used for a local
wifi connection (i.e no internet capability).
Bug: 123313291
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: make docs
Change-Id: I1a5fcff886124010222e112dbca92797a514b6d9
1. Add new API requestDeviceInfo to support get device information
2. Add more documentation about permissions required and relate change
Bug: 77228252
Test: Unit tests - atest frameworks/base/wifi/tests/
Test: Manually test Wi-Fi Direct settings/WiFiDirectDemo
Change-Id: I388ef005e71c1c0b54d8365232519cf1db91d6e7
Update the javadoc for Passpoint APIs to remove @throws
UnsupportedOperation Exception when the Passpoint is not enabled on the
device.
Bug: 121078741
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I087a595c04b926a76b6ea9d6f2a475e12033815b
Signed-off-by: Ecco Park <eccopark@google.com>
It needs the APIs to set/get the CA certificate for remediation server.
Bug: 116346527
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R2 AP for connection and verified that the CA
certificate is saved into keyStore.
Test: tested with R1 credential
Change-Id: I8568935234a6197e83f1b997f145b7e98dc56497
Signed-off-by: Ecco Park <eccopark@google.com>
Add a field to store package name for suggestion/specifier package name.
Storing these info in WifiInfo is the convention being followed
for ephemeral networks in WifiTracker.
Bug: 115504887
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Iab6ab93a2a281011499adfff3163c35058600706
Add system API to allow framework to receive Wifi usability score from system APK.
Also add a new permission to protect this API from being used by unauthorized applications. This permission is the same as the one added for sending Wifi usability stats.
Bug: 113262380.
Test: frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: Ib695dbb4c6c1f4518a464877f1d0f60dde4904eb
Add new field to mark a WifiConfiguration as created from a network
specifier or suggestion. WifiConfiguration.creatorName for such networks
will contain the package name of the app that added the corresponding
specifier/suggestion.
This can be used by the settings app to display the app's name in the
wifi picker summary.
Bug: 115504887
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ic0ae2292930628dc38c668777c7de4f19af4e925
Add system API to allow framework to send Wifi usability stats to
system APK.
Also add a new permission to protect this API from being
used by unauthorized applications.
In addition, add a few more entries in Wifi.proto.
Bug: 113262380
Test: Unit tests for Wifi: frameworks/base/wifi/tests/runtests.sh
Change-Id: I5432419d6da3db96ecc6ff8e1c3197121ca7afbc
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
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
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
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
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