| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Change-Id: Ie19edb512ffd341a44b4af38e8c5f3597914f75f
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Reasons:
1. These recovery events are reported to metrics as well.
2. These recovery events are not severe and don't impact
user experiecne.
3. We usually can't get useful information from the wtf log
snippets.
Bug: 66996979
Test: compile, unit tests
Change-Id: I713a243927bf935aaf356289be42389f1ba0d5ea
|
|\| |
| | |
| | |
| | | |
Change-Id: Ib79e87b17c92b0edb6168cd1760877ac4b8ffce6
|
| |/
| |
| |
| |
| |
| | |
Bug: 67482129
Test: compile, unit tests
Change-Id: I8d6806f750a8002a0a568bb2b84d1f18ba833594
|
|\|
| |
| |
| | |
Change-Id: I364d7180d69955561699e4e525cd47880fccaf95
|
| |\
| | |
| | |
| | | |
oc-mr1-dev
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
According to the document of WifiManager.reconnect(), we only
try to connect when wifi is disconnected.
This CL adds the handling of CMD_RECONNECT in WifiStateMachine
for L2ConnectedState to avoid unnecessary scans and connection
attempts.
This also adds the handling of CMD_RECONNECT for WpsRunningState,
which just logs and ignores this command because in WpsRunningSate
we are attempting to connect and when we leave and head to disconnected
state, we will trigger a scan anyway.
Bug: 65839442
Test: compile, unit tests
Test:
1. Write a simple cts test case WifiManagerTest#testWifiReconnect
only calling WifiManager.reconnect()
2. Make sure wifi is connected
3. Run cts test using:
cts-tradefed run cts -m CtsNetTestCases -t
android.net.wifi.cts.WifiManagerTest#testWifiReconnect
4. Grab bugreport
5. Verify the following log appears:
"Ignore CMD_RECONNECT request because wifi is already connected"
Change-Id: I7aa7842653aa4eaf8d70946dc8e120d3814ffc09
|
| |\| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 65839442
Test: compile, unit tests
Test:
1. Write a simple cts test case WifiManagerTest#testWifiReconnect
only calling WifiManager.reconnect()
2. Make sure wifi is disconnected
3. Run cts test using:
cts-tradefed run cts -m CtsNetTestCases -t
android.net.wifi.cts.WifiManagerTest#testWifiReconnect
4. Grab bugreport
5. Verify the following logs appears:
forceConnectivityScan in request of WorkSource{...}
Change-Id: I7fa7803e90ba950c9331a55cb1268baef4ae02a8
|
| |\ \
| | |/
| |/|
| | | |
unfiltered." into oc-mr1-dev
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Do not remove the SSID/BSSID from the WifiInfo in
getConnectionInfo() if the requester is:
* The Settings.Global.USE_OPEN_WIFI_PACKAGE
* The current user or has been granted INTERACT_ACROSS_USERS_FULL
This only applies when the device is connected to an open network.
In all other cases the SSID/BSSID will be removed unless the caller
has scan result access.
Bug: 65639900
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Local testing with app.
Change-Id: I71eddca75a84945775be476f9ccaf1bb5c668fec
|
| |\ \
| | | |
| | | |
| | | | |
oc-mr1-dev
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently, we drop all connection start attempts if we do not
have any NetworkRequests that we can fulfil. This can happen if
the default network has a score that's higher than our score
filter. The reason for this is that we don't want to connect a
new network if we're not already connected: if we did,
ConnectivityService would immediately request that the network be
torn down.
However, it does make sense to connect if we are already
connected, because that means that we ourselves are the
highest-scoring network - otherwise, ConnectivityService would
have torn us down. So, when deciding whether to process a
connection request, allow it if mNetworkAgent is non-null, even
if there are no NetworkRequests that we can fulfil.
In order to do this, move the check from startConnectToNetwork to
the code that processes CMD_START_CONNECT, because it's not safe
to access mNetworkAgent except from the handler thread. Moving
the check also seems more correct in general, because
the return value of hasConnectionRequests() could change between
when startConnectToNetwork is called and when the resulting
CMD_START_CONNECT is processed.
The connect requests are only allowed from the settings/sysui. We don't
allow any non-privileged apps to be able to override the user's decision
to stay connected to a network with no internet access (which causes the
mNetworkAgent.releaseNetworkFor()).
Bug: 65262556
Test: Unit tests for START_CONNECT handling for 4 scenarios:
a) START_CONNECT with the default network request.
b) START_CONNECT with no network request.
c) START_CONNECT with no network request, but already connected
d) START_CONNECT with no network request, but already connected, but
from non-privileged app.
Test: Settings can connect to a new network when wifi has a score of 100
Change-Id: Iad582b5109a81f238f335eaac3e7264c5da6e9b1
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It fails to start Wi-Fi Tethering at first boot
after OS version up from Android N to O.
It is caused by permission.
Owner of hostapd.conf is "system" on Android N.
However, it is "wifi" on Android O.
hostapd.conf doesn't need to be handed over
because it is created again when Tethering is started.
Bug: 67351973
Test: manually run tethering
Change-Id: Ia7c87ab1f2040434963f6e0670ccd02cdd84bee7
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This fails scan request if no available channels could
be scanned for this request.
With this fix we can avoid the freezing of WifiScanner in
aformentioned case.
Bug: 67015387
Test: compile, unit test, integration test
Change-Id: I68654ce8d53104484c1559d8b0525585ab50b9e5
|
|\| | | |
| | | | |
| | | | |
| | | | | |
Change-Id: I69ffda90e6be4e715c156c6b9767f7b95e69ddad
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Couple of fixes in user stop handling:
a) Only clear the network data belonging to the user that is stopped.
b) Don't reset the user Id on stop. It will be done in the user switch
handling.
Bug: 65939780
Test: Unit tests
Change-Id: Ia3ab033d893009cfd8019ee27d52a490a8040438
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
4371241 snap-temp-L10900000107789672
Change-Id: I69ee67c044892913b3aa5dc6766f5c683a91733b
|
| |\| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
WifiStateMachine: Handle WifiManager.save() when wifi is off
NetworkListStoreData: Set creatorUid for all networks on load
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: 66909738
Test: Verified that you can save networks even when wifi is off using
ag/2930541.
Test: Unit tests
Change-Id: I38c316456e74ce5ad1ec43750b075f0999c28327
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some network configurations saved during N have the creatorUid set to -1.
(Not sure what was the root cause in N which introduced this issue in
saved networks)
Ensure that we set |creatorUid| for such networks with invalid uid to
SYSTEM_UID on loading. The networks with invalid creatorUid can
anyway only be modified only by settings/sysui (because they possess
NETWORK_SETTINGS permission).
Bug: 65623732
Test: Unit tests
Change-Id: Ib6f61b81e19877cdf0c42d29c9f5ae3869725517
|
| |\ \ \ \ |
|
| | |/ / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Tracks the number of notifications posted for each state of ONA, and the
number of user actions made for each notification type. Also tracks the
state of the feature setting, the size of the recommender blacklist,
recommendation update counts, and connection initiation failure counts.
Also adds additional debug logging.
Bug: 37501326
Bug: 66996715
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
and verify in dumpsys
Change-Id: Ia00ae95fbcf923ebae051ba82cd3174cfe11be31
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This also adds corresponding unit tests.
Bug: 66910426
Test: compile, unit tests
Merged-In: I58f7061887ebc1dd78d3941218653460f80abb1f
Change-Id: I58f7061887ebc1dd78d3941218653460f80abb1f
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
4365318 snap-temp-L33600000106883904
Change-Id: I90ee8d18c349171089514d4f2bf523afddfd5cb4
|
| |\ \ \
| | |/ /
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If a network config is removed while we are in the ObtainingIpState, we
will attempt to get the configured network from WifiConfigManager but it
will be null. As we move to the Connected state, this throws a NPE.
Instead of moving along to the Connected state, disconnect from the
network if we find out we have null for the current config. Also add an
additional null check where the NPE was thrown further down the line.
Bug: 65257934
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ibbce6491970de16cf5265b03398b50a7cdd50ba2
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
4351869 snap-temp-L93800000104806132
Change-Id: I5560dbb11164ab7ebf1bbcc907271bee927ab3f6
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This CL allows us to keep using last known country code
on cellular loss and |mRevertCountryCodeOnCellularLoss| is
set to false.
This also fixes simCardRemoved() to revert country code
unconditionally, and cleans up code for airplaneModeEnabled().
Bug: 65602314
Test: compile, unit tests
Change-Id: I7b15d9ae197c5e2aacd7788b505e386f970786ed
|
|\| |
| | |
| | |
| | |
| | |
| | | |
4332123 snap-temp-L59300000101925107
Change-Id: I0dcd7a3a5f38da71fca0986aaf98417ae8726067
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 65599523
Bug: 65550505
Test: compile, unit tests
Change-Id: Ie9092dae5b07ac14889545c41b2ca212eca97294
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows us to save the most recent kernel logs
when wificond or hal crashes.
This saved log could help us debug underlying driver/kernel
issues.
Bug: 65550505
Bug: 64934608
Test: compile
Test: run frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually kill wificond and take bugreport
Find if there is a "Bug dump" section with "reason = 8"
Change-Id: Id9311cee34b3fc25400e804bd96795c7f28f537a
|
|\| |
| | |
| | |
| | |
| | |
| | | |
4329935 snap-temp-L86100000101558881
Change-Id: I354eee94a17ecbcd5b344f2455a6a789a96d2c15
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Support all the NAN data-interfaces which the firmware supports -
based on the returned capability.
- Create the data-interfaces
- Assign data-paths to data-interfaces based on constraints of
unique [(src mac, dst mac), security config] tuples. I.e. a
single data-interface can only have a single security configuration
to a specific destination interface.
Bug: 63635857
Test: unit tests + integrated test suite
Change-Id: I4a21f3b025e8164673366e22da062d536d588148
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
4326576 snap-temp-L80300000101054689
Change-Id: Ic238c9bb3a576e1ffdf5e0f33562950a36852250
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The new Open Network Available notification UI introduces a connection
flow in which users can connect to a recommended open network directly
by interacting with the notification. "Connect" and "See all" action
buttons are introduced to initiate the flow, and once a connection
attempt is made, the connection status will be reflected on the
notification.
Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I30231c4f71476a7417a3b423848575d5488f51f7
|
| |\| | |
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This change introduces the new notifications but does not utilize them
to change the existing functionality yet. It also refactors the state
handling of the notifier to represent the new connection and
notification states.
When attempting to connect to a network, the notification will update
based on connection success and failures.
Bug: 37357441
Bug: 65257065
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I3cf188f7f0fac1ea7d1ec882c9473bdbaccccabd
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
4323561 snap-temp-L80400000100600189
Change-Id: I8b66594d3720a5f2562438da24a05b5fbffa3c41
|
| |\| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I2d531304598249dcb18bdc45492e48ee90ddff5f
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These modules were used to migrate store data out of the old store
files. Now that O is released, these classes are unused so cleaning up
dead code.
Bug: 31041781
Test: Unit test passes.
Test: Flashed a device and ensured that none of the saved networks are
lost.
Change-Id: Ib6936cace3c72408ba4be2e33226737228159a48
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
4321077 snap-temp-L97000000100182150
Change-Id: I6389ef4349976122eafc5615b81a3ea022da7c62
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
null am: 3abc7f0561 am: 3b17189719 am: 1e779938f2
am: fb9027f897
Change-Id: I2198545cb8000378e7350c9d2e580da74af2e3b9
|