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
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 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>
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>
The frequency support is done in framework and supplicant.
Revise document to indicate the frequency can be used for fast group
connection API.
Bug: 64695709
Test: CtsVerifier - WiFi Direct
Test: manual test
* specify frequency for Group Owner.
* The group is run at specified frequency.
* specify frequency for Group Client.
* only specified frequency is scanned.
Test: Unit test - atest frameworks/opt/net/wifi/tests/wifitests
Test: build - make docs
Change-Id: Iedfdbf268af0d125611a81886881cdaebf017058
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.
Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.
For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.
Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
Added new DPP Initiator APIs and callbacks:
startDppAsConfiguratorInitiator
startDppAsEnrolleeInitiator
stopDppSession
The Initiator APIs are asynchronous and provide events and status codes
through callbacks.
Bug: 112197021
Test: atest DppManagerTest
Change-Id: Ib2226a5e6d94b1d6247f958513c858cf38686ce8
This reverts commit 7bccf2f997.
Reason for revert:
It is necessary for P2p connection.
Application need to update WpsInfo in WifiP2pConfig when trigger p2p connection
API:
public void connect(Channel c, WifiP2pConfig config, ActionListener listener) {
Bug: 80105789
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I0c881627eaee7a7313db6b9805dd6cdb03547df0
PeerHandle is an opaque object used to represent a peer for
communication and data-path setup.
Applications which use multiple components may want to communicate the
PeerHandle across components using Binder - requiring a Parcelable
implementation.
Bug: 119594815
Test: All Wi-Fi Manager unit tests + added unit test for this CL
Change-Id: Iae1c8c223677d232c54e7f6c2bdf811764ab6c82
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
1. Update channel package name and binder when channel init
2. Add location permission request for p2p API
Bug: 118384508
Test: local ACTS test to verify p2p function
-tc WifiP2pLocalServiceTest
-tc WifiP2pManagerTest
Test: local test APK to test permission
Change-Id: I44ab103a3f7404827b882e7963bbb8abe2556dfc
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