It is to indicate the OSU network for suppressing sign-in notification
as captive-portal when user triggers OSU procedure.
Bug: 120149912
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: test with R2 AP for verifying that sign-in pop up doesn't happen.
Change-Id: Ib00e418471fbbc7c511af8773ff305d2a27363e6
Signed-off-by: Ecco Park <eccopark@google.com>
Given a list of OSU providers, this only returns OSU providers
that already have Passpoint R2 configurations in the device.
This API is required to remove OSU provider entries that already have
the passpoint r2 profile in the device on Settings UI
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: I111e380b3031ff268721c80501257c638f64e01a
Signed-off-by: Ecco Park <eccopark@google.com>
Exposed API in WifiManager to allow device mobility state to
be updated, so that Wifi scan interval can be increased when the
device is stationary in order to save power. Also added a new
permission to protect this API from being used by unauthorized
applications.
Bug: 120097108
Test: Call new API method using test app
Change-Id: Iee59dba711c23add5d4b2affafeac2c009407c7f
The NetworkSpecifier is required when requesting a Wi-Fi Aware
data-path link. Previously the NetworkSpecifier was created using
3 separate methods - such a mechanism is not scalable as we need
to add more parameters (i.e. more methods).
Add Builder pattern for creating the Aware NetworkSpecifier and
deprecate the original methods.
This CL does not add any new parameter - it should be functionally
the same as the original codebase.
Bug: 117605977
Test: atest android.net.wifi.aware
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Change-Id: Ifd4a1791a5fa0c351912733012e543bd90939c7f
Add Wi-Fi Aware-specific Network Capabilities which are
used to send IPv6 as part of Wi-Fi Aware data-path setup.
Bug: 117605977
Test: (unit tests) atest android.net.wifi.aware
Test: (ACTS) ThroughputTest:test_iperf_single_ndp_aware_only_ib
Change-Id: If806f82b8b3d729c3e5c5ded4883deb7e49d14f5
API to get the factory MAC addresses. Not for use by third party apps.
Bug: 111634904
Test: unit tests
Change-Id: I9258889b963886b79191b9ea1e7aa70ffb4eb6ad
Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.
In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.
Bug: 115333477
Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Exempt-From-Owner-Approval: API cleanup
This commit adds a flag for low latency support. This flag will be
checked when supported features are queried thorugh the HAL.
Bug: 34905427
Test: Unit test
Test: ./tests/wifitests/runtests.sh
Change-Id: I5cc5405ca0004c8ccea9f0b49c483936b5124d31
When the user disallows CHANGE_WIFI_STATE app-ops, the suggestion API
surface will return the new error code.
Bug: 120072329
Test: Compiles
Change-Id: I59a62a64541120cad738e821ec6d70e320f79174
Allow apps to provide suggestions at the BSSID level for more fine
grained control.
Also,
a) Added some more documentation for
WifiNetworkConfigBuilder#buildNetworkSuggestion.
b) Added a missing match-none bssid pattern to validate.
Bug: 115504887
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ie551ea6753edba9bb0d05181390ab430f5510a63
This partially reverts commit 8561aa3281 because
the added API references the OsuProvider type which is not part of the API.
Bug: 119556446
Test: make droid
Change-Id: Id13857bcb52e715148b06d27cf4096d08f751d37
Exempt-From-Owner-Approval: API only change
This commit is part of adding the support for low latency mode
wakelocks. It adds the new WifiLock for low latency
This commit also deprecates the FULL, and SCAN_ONLY wifilocks.
Bug: 34905427
Test: No Test- This commit is just the api definition
Change-Id: Id47294867d8000517601dd48a2fcf5a345779ddb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
Give WifiScanner an API to ignore location settings while wifi scanning
for certain requests.
Bug: 119140584
Test: manually
Change-Id: I9bc4cf38c3ea720193dcc87f2c8494afd89a36ec
The API is non-public API if it is used by settings only.
Remove unnecessary System API notation.
Bug: 120072277
Test: Manual test
* Run Network Reset Option in Settings
* Check saved groups are cleared.
Change-Id: Id5147b8147a2ee68447b7757f314dbd3f84296e6
Also, changed the return of add/removeNetworkSuggestions to clearly
indicate the error encountered.
Bug: 119210573
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I06eff1aad584ed9939ba905a1008a7565909d148
Mark all the custom connect (& other APIs) added to serve settings &
setupwizard as @SystemApi.
Also, enforce tighter permissions on these APIs. These were explicitly
added to serve settings & we should not allow any other apps to use
them.
Bug: 116127346
Test: Compiles
Change-Id: Ic0000f21ccbeda4ade59a3b04d78f49b1b20cd02
Changes:
a) Pass the calling package name in the AIDL call to allow target-SDK
checks & error logging on the service side (similar to other binder calls).
b) Pass the return value from service for AIDL calls: disconnect,
reconnect, reassociate.
c) Return false for a previously deprecated saveWifiConfiguration API.
Bug: 115504728
Test: Compiles
Change-Id: I9bc9c8fc5857a430242e5afbecca7fc2c39f1ca1
Pass in the requested package name in every request for
non-privileged requests. We need the exact package name because
some system app shares its uid with a bunch of modules.
Retrieving the package name using the uid (via getNameForUid())
will not work for app-ops checks.
Bug: 117612744
Bug: 113542524
Test: Able to see scan results in wifi picker.
Test: Verified maps working with wifi scans.
Change-Id: Ib9c252e351fbb6cca0b44b2d6ec993d2a2ad655e
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: live test with Passpoint R2 service provider AP
Change-Id: Iabc5bea2c3ca581061d34300c139c0bc7ee38bc8
Signed-off-by: Ecco Park <eccopark@google.com>
Also, modified existing WPA2 API's to be symmetric with the new WPA3
API's.
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I2f521e3893a8e5592757bd8aa7706f9145496de0
Sticky broadcasts is planned to be eliminated. Because some
information is only in these broadcasts, provide API to retrieve
them on demand.
Bug: 64695709
Test: manual test
Test: Unit tests - atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: I88167991a1af6b49d3f976bff1a88f59f6d6adfb
new createGroup API accepts the configuration built by
WifiP2pConfig#Builder to create a group.
Bug: 64695709
Test: manual test
* create a group with pre-defined configuration.
* join it as new Group Client.
* join it as legacy Wi-Fi STAs.
Test: Unit tests - atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: Ib6598016ee0e96d8a53638189890ff228bb0f177
Creating/Joining a group with credentials needs additional
fields in WifiP2pConfig. Using builder to construct corresponding
WifiP2pConfig object
Bug: 64695709
Test: Unit tests - atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: Ib01a7a1313fab3a7e3e9a0c6c9a10e419deed9d4
* changes:
WifiManager: Add abort callback for network request
WifiNetworkAgentSpecifier: Allow satisfiedBy call for 2 instances
WifiConfiguration: Add a field to mark network as trusted
WifiManager: Send list of matching scan results for network request
WifiManager: Implement network suggestion API
wifi(API): Send directed broadcast post connection for suggestions
Add a callback to inform the UI that the active request has been
aborted.
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I85bc1aee37af66b57471a7abf67dec55b13f97b0
The specifier created for wifi network agent will end up being compared
with itself whenever there is a capability update sent for example.
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiManagerTest
Change-Id: Id8c28fd96ac298df2c17f94476abf9cdbc5d23c9
The |ephemeral| field (added for WFA) is currently used for 2 purposes:
a) Network is not persisted & network config
is automatically removed at the end of the connection.
b) Network is marked untrusted (in NetworkInfo capabilities) after connection.
For the new network request API, we want (a), but not (b) (Network should
be marked trusted because user explicitly allowed it).
Add a new flag to explicitly mark the network as trusted or not. Hence
(a) & (b) are now indicated by different flags.
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: If4da84ca4fc03fd6a835b71a3e18e966c3b11f05
Change the arguments for the onMatch() callback to return a list of
|ScanResult| instead of |WifiConfiguration|. This allows the settings UI
team to reuse the existing infrastructure used for presenting list of networks in
the wifi picker UI.
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ic7e0665bbef35a52df77be4d3c0574b01e0c8193