Commit Graph

7227 Commits

Author SHA1 Message Date
Lorenzo Colitti
476dd3c83a Merge "Allow passing in acceptUnvalidated without explicitlySelected" into qt-dev am: 56b7edcae2 am: b643b2ba9c
am: b484560391

Change-Id: I516f47609c552e8213c218ba9fc0f665fed4b63a
2019-06-04 20:29:05 -07:00
Lorenzo Colitti
b484560391 Merge "Allow passing in acceptUnvalidated without explicitlySelected" into qt-dev am: 56b7edcae2
am: b643b2ba9c

Change-Id: I8e499af0eb8e37f93ba2fa29a0c9510a4e7163db
2019-06-04 19:15:01 -07:00
Lorenzo Colitti
b643b2ba9c Merge "Allow passing in acceptUnvalidated without explicitlySelected" into qt-dev
am: 56b7edcae2

Change-Id: Ifd9dbc9c83e426e66417247cbf1fa594193e000f
2019-06-04 18:29:51 -07:00
TreeHugger Robot
56b7edcae2 Merge "Allow passing in acceptUnvalidated without explicitlySelected" into qt-dev 2019-06-04 18:00:31 +00:00
junyulai
21a5743bbf Merge "Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev am: eabafd5ceb am: ed0f1438e0" into qt-r1-dev-plus-aosp
am: b9322773d2

Change-Id: Ie3def4fb2e5fd98f2f3d77ecbec98bd495aadeeb
2019-06-04 09:11:07 -07:00
junyulai
4c7f60f553 Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev am: eabafd5ceb am: 2f233cc104
am: 8bd7b31193

Change-Id: If22a74559b3dd5ad0cd2dc7dd12becf2e0b1e59e
2019-06-04 09:08:35 -07:00
Android Build Merger (Role)
b9322773d2 Merge "Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev am: eabafd5ceb am: ed0f1438e0" into qt-r1-dev-plus-aosp 2019-06-04 15:55:18 +00:00
junyulai
b41f0d3860 Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev am: eabafd5ceb
am: ed0f1438e0

Change-Id: I9b719ddc913dfaeab2ae13b61dc0ffe96f26b252
2019-06-04 08:54:22 -07:00
junyulai
8bd7b31193 Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev am: eabafd5ceb
am: 2f233cc104

Change-Id: I5cc209e05eb91a368c94f76efc961ba5fd2750fb
2019-06-04 08:54:19 -07:00
junyulai
2f233cc104 Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev
am: eabafd5ceb

Change-Id: I580b4dd2e493430e8420ca0907f9cf7d1d5a8773
2019-06-04 08:48:21 -07:00
Lorenzo Colitti
e01696a4c4 Allow passing in acceptUnvalidated without explicitlySelected
This will allow wifi to tell ConnectivityService that partial
connectivity is acceptable even if the network is not explicitly
selected.

This is needed when the user selects a partial connectivity
network and tells the system to connect to the network, and never
to ask again. In such cases, the system must switch to the
network even if it is not explicitly selected.

Bug: 130766237
Test: atest FrameworksNetTests
Test: unit tests in an upcoming CL
Change-Id: I13465090b7b1c0bf5dc83362387a5428d77b7e1d
2019-06-04 14:35:22 +00:00
junyulai
97e3775df4 Fix cannot create Nat-T keepalive on mobile data
Currently phone process fail to unparcel NattKeepalivePacketData
since it is not in framework. Moves NattKeepalivePacketData to
framework to make it can be utilized by telephony.

This change also removes the error feedback triggered by calling
add keepalive packet filter to an unsupported network agent. This
is misinterpreted by KeepaliveTracker that start keepalive is
failing.

Bug: 134048171
Test: 1. atest android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimitTelephony
      2. atest android.net.cts.ConnectivityManagerTest
      3. atest FrameworksNetTests
      4. atest FrameworksTelephonyTests

Merged-In: If630d5b339aa722717258c721daa8ead8c431e2d
Change-Id: Ic0f168be6f5a6263a5e0565b6381dcb5c645660f
(cherry picked from commit 9ede677bb2c081ccdc41c8c3c19c949114bcc138)
2019-06-04 20:44:29 +08:00
Lorenzo Colitti
0e662a5150 Merge "Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev am: 4afb7f9b03 am: 74f7be63fc" into qt-r1-dev-plus-aosp
am: a2abfa2f2b

Change-Id: Ia5d3be740cf1403832833328302eddaab92ed168
2019-06-03 17:25:27 -07:00
Lorenzo Colitti
c48232c18e Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev am: 4afb7f9b03 am: 7c74b37a97
am: d9f0f9fb64

Change-Id: Ia4d9c02424403b143f4a2d1de971d5cd3555baa9
2019-06-03 17:23:17 -07:00
Android Build Merger (Role)
a2abfa2f2b Merge "Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev am: 4afb7f9b03 am: 74f7be63fc" into qt-r1-dev-plus-aosp 2019-06-04 00:18:18 +00:00
Lorenzo Colitti
690c9d6ffc Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev am: 4afb7f9b03
am: 74f7be63fc

Change-Id: Ia33ff8920d47c22b8f901cb5dc9e3e93e3569699
2019-06-03 17:17:25 -07:00
Lorenzo Colitti
d9f0f9fb64 Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev am: 4afb7f9b03
am: 7c74b37a97

Change-Id: Ia8b2e10f2792a22a91c6dfce82cc4cd9790c632c
2019-06-03 17:17:08 -07:00
Lorenzo Colitti
7c74b37a97 Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev
am: 4afb7f9b03

Change-Id: Ic988e284f12b8b54c760d17cd6c6aa93e84f1721
2019-06-03 17:12:14 -07:00
TreeHugger Robot
4afb7f9b03 Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev 2019-06-03 23:58:17 +00:00
Lorenzo Colitti
b0e3c107f5 [automerger skipped] Merge "Re-notify if the network goes to PARTIAL." into qt-dev am: ad3e86a742 -s ours am: 29eefaccfd -s ours
am: 8e5f79ac51 -s ours
am skip reason: change_id I1b79d3faf96ffe792738935088e4ebbdfcc0d878 with SHA1 df84643d9b is in history

Change-Id: I6c8a55b4a3edd8c3ba22bc7315a5ca10f68bb13f
2019-06-03 07:40:48 -07:00
Lorenzo Colitti
8e5f79ac51 [automerger skipped] Merge "Re-notify if the network goes to PARTIAL." into qt-dev am: ad3e86a742 -s ours
am: 29eefaccfd -s ours
am skip reason: change_id I1b79d3faf96ffe792738935088e4ebbdfcc0d878 with SHA1 df84643d9b is in history

Change-Id: I3d7a91b2d281a4df654640f83ca079aeef62ff9d
2019-06-03 07:34:42 -07:00
Lorenzo Colitti
29eefaccfd [automerger skipped] Merge "Re-notify if the network goes to PARTIAL." into qt-dev
am: ad3e86a742 -s ours
am skip reason: change_id I1b79d3faf96ffe792738935088e4ebbdfcc0d878 with SHA1 df84643d9b is in history

Change-Id: Ifa6185f3daa9087e9d2a6ecffb31c6029db331e0
2019-06-03 07:28:46 -07:00
Lorenzo Colitti
e518c3e5ea Merge "Re-notify if the network goes to PARTIAL." am: 94851761a8 am: 58d4e7304c am: df84643d9b
am: 4d034fb062

Change-Id: I30c1d3dcff0ea4272db7af91f7a7588a6edb575f
2019-06-03 06:21:06 -07:00
Lorenzo Colitti
28325f2722 Re-notify if the network goes to PARTIAL.
If NetworkMonitor detects partial connectivity before
EVENT_PROMPT_UNVALIDATED arrives, show the partial
connectivity notification immediately. Re-notify
partial connectivity silently if no internet
notification already there.

Bug: 130683832
Bug: 130766237
Test: atest com.android.server.ConnectivityServiceTest
Change-Id: I7d4eddc643ec795c3961097dc1bdd314d168f6c7
Merged-In: I1b79d3faf96ffe792738935088e4ebbdfcc0d878
(cherry picked from commit 58d4e7304cfce68e338ab34022a0b29d45f42c38)
2019-06-03 13:19:22 +00:00
Lorenzo Colitti
4d034fb062 Merge "Re-notify if the network goes to PARTIAL." am: 94851761a8 am: 58d4e7304c
am: df84643d9b

Change-Id: If3c568a486fdaf5bbbde33676144379670e2aacd
2019-06-03 06:16:03 -07:00
Lorenzo Colitti
df84643d9b Merge "Re-notify if the network goes to PARTIAL." am: 94851761a8
am: 58d4e7304c

Change-Id: I1b79d3faf96ffe792738935088e4ebbdfcc0d878
2019-06-03 06:10:10 -07:00
Lorenzo Colitti
94851761a8 Merge "Re-notify if the network goes to PARTIAL." 2019-06-03 12:50:11 +00:00
Chiachang Wang
61e494012d Re-notify if the network goes to PARTIAL.
If NetworkMonitor detects partial connectivity before
EVENT_PROMPT_UNVALIDATED arrives, show the partial
connectivity notification immediately. Re-notify
partial connectivity silently if no internet
notification already there.

Bug: 130683832
Bug: 130766237
Test: atest com.android.server.ConnectivityServiceTest
Change-Id: I7d4eddc643ec795c3961097dc1bdd314d168f6c7
2019-06-03 12:49:53 +00:00
Lorenzo Colitti
c123ebacbd [automerger skipped] Merge changes Ib9a15fec,I9f3f2588 into qt-dev am: f4a435aca0 -s ours am: 4b5b1f6f71 -s ours
am: 478500efff -s ours
am skip reason: change_id Ib9a15fececd8579fc5b139fe0341275a45512e0f with SHA1 6edf86cd9c is in history

Change-Id: Iaaabfd03a1f9895e7afa84af90a1a2a3e2739c8b
2019-05-31 09:28:50 -07:00
Lorenzo Colitti
86fd3ca898 Merge "[automerger skipped] Merge changes Ib9a15fec,I9f3f2588 into qt-dev am: f4a435aca0 am: 3d7da92f91 -s ours
am: 6015da41ff -s ours
am skip reason: change_id Ib9a15fececd8579fc5b139fe0341275a45512e0f with SHA1 6edf86cd9c is in history

Change-Id: Ic4a71618bfa8d431bdbfcde3892499c50cd2e6fc
2019-05-31 09:26:39 -07:00
Lorenzo Colitti
478500efff [automerger skipped] Merge changes Ib9a15fec,I9f3f2588 into qt-dev am: f4a435aca0 -s ours
am: 4b5b1f6f71 -s ours
am skip reason: change_id Ib9a15fececd8579fc5b139fe0341275a45512e0f with SHA1 6edf86cd9c is in history

Change-Id: Icbc02f3e68f813f889d0c91950ea489cb46b17fa
2019-05-31 09:14:31 -07:00
Lorenzo Colitti
b48760c242 [automerger skipped] Merge changes Ib9a15fec,I9f3f2588 into qt-dev am: f4a435aca0
am: 3d7da92f91 -s ours
am skip reason: change_id Ib9a15fececd8579fc5b139fe0341275a45512e0f with SHA1 6edf86cd9c is in history

Change-Id: Icc72ee8aa8a51abe3072c3dabed450cef094e418
2019-05-31 09:12:40 -07:00
Lorenzo Colitti
4b5b1f6f71 [automerger skipped] Merge changes Ib9a15fec,I9f3f2588 into qt-dev
am: f4a435aca0 -s ours
am skip reason: change_id Ib9a15fececd8579fc5b139fe0341275a45512e0f with SHA1 6edf86cd9c is in history

Change-Id: I2aa4637ae7a48afbf7b4ad953837762262bd94b8
2019-05-31 08:58:13 -07:00
Lorenzo Colitti
fef8619d64 Merge "Don't crash ConnectivityService if the network stack crashes." am: 55d1b0500a am: ac29a97d10 am: fc289313db
am: 87aea88c62

Change-Id: Ic0290841473e49e1b9fce9dadbbbbf69feae4d39
2019-05-31 07:32:41 -07:00
Lorenzo Colitti
87aea88c62 Merge "Don't crash ConnectivityService if the network stack crashes." am: 55d1b0500a am: ac29a97d10
am: fc289313db

Change-Id: I985416bbb655a36f85b9d0bc9d9a401fe7b56f5c
2019-05-31 07:27:38 -07:00
Lorenzo Colitti
fc289313db Merge "Don't crash ConnectivityService if the network stack crashes." am: 55d1b0500a
am: ac29a97d10

Change-Id: Idae97f7dc29fd95ede722fe34dc20b941002a41c
2019-05-31 07:22:43 -07:00
Lorenzo Colitti
7577c856bc Don't crash ConnectivityService if the network stack crashes.
When the network stack crashes, the system will rebind to it.
Existing references are no longer useful (they just throw
RemoteException) but if the system is still up, then the user
can at least recover the situation by taking actions such as
going into airplane mode, toggling wifi, etc.

This CL stops ConnectivityService from crashing the system when
it cannot talk to NetworkMonitor. This is arguably better than
crashing the system, because crashing the system is disruptive
and carries the serious risk of a bootloop from which it is not
possible to recover.

NetworkStackClient already contains code to crash the system
when the network stack crashes. This change help ensure that
if a crash occurs, it is the result of an explicit decision by
that code instead of an unchecked exception in one of the callers
of the network stack.

Bug: 133725814
Test: builds, boots
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Ib9a15fececd8579fc5b139fe0341275a45512e0f
Merged-In: Ib9a15fececd8579fc5b139fe0341275a45512e0f
(cherry picked from commit ac29a97d10fe8ea0720763f4ca4657cac85732a1)
2019-05-31 14:19:36 +00:00
Lorenzo Colitti
6edf86cd9c Don't crash ConnectivityService if the network stack crashes.
When the network stack crashes, the system will rebind to it.
Existing references are no longer useful (they just throw
RemoteException) but if the system is still up, then the user
can at least recover the situation by taking actions such as
going into airplane mode, toggling wifi, etc.

This CL stops ConnectivityService from crashing the system when
it cannot talk to NetworkMonitor. This is arguably better than
crashing the system, because crashing the system is disruptive
and carries the serious risk of a bootloop from which it is not
possible to recover.

NetworkStackClient already contains code to crash the system
when the network stack crashes. This change help ensure that
if a crash occurs, it is the result of an explicit decision by
that code instead of an unchecked exception in one of the callers
of the network stack.

Bug: 133725814
Test: builds, boots
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Ib9a15fececd8579fc5b139fe0341275a45512e0f
2019-05-31 19:30:36 +09:00
Chalard Jean
ad6e0aa85e Merge "[automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev am: f3eaec257a am: 929210b213 -s ours
am: 74e22ad420 -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history

Change-Id: I9bc76284a14723986646e9860f7434e912b00730
2019-05-31 02:38:18 -07:00
Chalard Jean
ee57a04697 [automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev am: f3eaec257a -s ours am: f304c9d67e -s ours
am: e7f53c1a0f -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history

Change-Id: I7c6c0fdf0a6e8ba2d7ea82156973104d6914f44e
2019-05-31 02:36:51 -07:00
Android Build Merger (Role)
74e22ad420 Merge "[automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev am: f3eaec257a am: 929210b213 -s ours am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history" into qt-r1-dev-plus-aosp 2019-05-31 09:32:36 +00:00
Chalard Jean
e925e64bce [automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev am: f3eaec257a
am: 929210b213 -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history

Change-Id: Ibc28983759c80ae21756e7a3c03b9db7aae285d8
2019-05-31 02:31:50 -07:00
Chalard Jean
e7f53c1a0f [automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev am: f3eaec257a -s ours
am: f304c9d67e -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history

Change-Id: I165b03e552cfacd2eaa694094834a081234d2e73
2019-05-31 02:31:49 -07:00
Chalard Jean
f304c9d67e [automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev
am: f3eaec257a -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 7284daa96e is in history

Change-Id: I08e37b4458b3c6242a1cca8aab913b09642a9e53
2019-05-31 02:26:51 -07:00
Varun Anand
23b9b0068a [automerger skipped] Merge changes from topic "vpn_data_accn_tests" am: b50e778fa7 am: 9561790069 -s ours am: 35dff8c0b9 -s ours
am: a995bd5d5a -s ours
am skip reason: change_id Iffd3f95fc2e11d311691a797b010edb38d2ef3c6 with SHA1 20204cdf6a is in history

Change-Id: I5843bda44deaca837e2517465df3f8d9f3f2d5d2
2019-05-30 14:08:06 -07:00
Varun Anand
a995bd5d5a [automerger skipped] Merge changes from topic "vpn_data_accn_tests" am: b50e778fa7 am: 9561790069 -s ours
am: 35dff8c0b9 -s ours
am skip reason: change_id Iffd3f95fc2e11d311691a797b010edb38d2ef3c6 with SHA1 20204cdf6a is in history

Change-Id: I982ce55558624e26531695abf09e3108b2463780
2019-05-30 13:47:41 -07:00
Varun Anand
35dff8c0b9 [automerger skipped] Merge changes from topic "vpn_data_accn_tests" am: b50e778fa7
am: 9561790069 -s ours
am skip reason: change_id Iffd3f95fc2e11d311691a797b010edb38d2ef3c6 with SHA1 20204cdf6a is in history

Change-Id: I86c99de74590e3ad54055a16b5c349b6ba3659ab
2019-05-30 13:26:09 -07:00
Luke Huang
7aac233f38 [automerger skipped] Merge "Merge "Fix issue for DnsResolver#query" into qt-dev am: bd5e52bd4d am: 308ae8f73c" into qt-r1-dev-plus-aosp
am: 94dc5ff9cb -s ours
am skip reason: change_id Ibb5080acd3c296650d56532fc7da525e9fa95e8f with SHA1 0c60cd9d94 is in history

Change-Id: Ib47ff2cace7d2c1a8baac653a4f480ecd074b8e1
2019-05-30 10:04:40 -07:00
Luke Huang
431671cf01 [automerger skipped] Merge "Fix issue for DnsResolver#query" into qt-dev am: bd5e52bd4d am: dd6b466b89
am: 20446db50a -s ours
am skip reason: change_id Ibb5080acd3c296650d56532fc7da525e9fa95e8f with SHA1 0c60cd9d94 is in history

Change-Id: If5cd009ca06efbb0709c0397eb20bcae2823ede5
2019-05-30 10:00:17 -07:00
Chiachang Wang
734764fe1c [automerger skipped] Merge "Replace limited connectivity notification after detecting it" into qt-dev am: db8cd0ac3e -s ours am: d5e1830ff2 -s ours
am: eb394fed22 -s ours
am skip reason: change_id I004e78a33689e2208918d4316bcf9a8f50a0bac3 with SHA1 66cc78d6ab is in history

Change-Id: I38aa6f806cec21fc09af2cc2465e7fbe8f279165
2019-05-30 09:52:02 -07:00