Commit Graph

13311 Commits

Author SHA1 Message Date
Robert Greenwalt
f8fd9efe2e Fix various issues found when testing Mms. am: a52c75ae24
Original change: undetermined

Change-Id: Id044d21392a47807d2f8e6b370d92e4881691261
2021-05-31 03:32:50 +00:00
Mike Lockwood
2fc6836994 ConnectivityService: Do not send broadcasts until the system is ready. am: fde2b76814
Original change: undetermined

Change-Id: Icad19bb92bd4f440a88d042ac1f941f1e1fd5b86
2021-05-31 03:32:37 +00:00
Robert Greenwalt
e62ff4f47c Add net type to mobile for mobile-required traffic am: 2034b91973
Original change: undetermined

Change-Id: I146cd13fefa414ff0bc3a9f7239ed6c0743c9a67
2021-05-31 03:32:23 +00:00
Robert Greenwalt
3c09371ed9 Whitespace cleanup prior to real work. am: 0659da31df
Original change: undetermined

Change-Id: I4678dd719fdde1dad2b1641384989ad85695bc96
2021-05-31 03:32:09 +00:00
Mike Lockwood
0551cc99e4 wifi: Keep the WLAN network interface up whenever wifi is enabled. am: 1791998080
Original change: undetermined

Change-Id: Ibd871009123ac660240032cba00dd9bf4492d3f1
2021-05-31 03:31:55 +00:00
Jean-Baptiste Queru
6bcaae80c7 am 6126eafd: reconcile donut snapshot am: b562ab9015
Original change: undetermined

Change-Id: I3778a6aaf82a6148e4177bc4f8f7ad90da9e5c8b
2021-05-31 03:31:41 +00:00
Dianne Hackborn
f27b8ff27d merged b1d251acd2 am: b771a49a30
Original change: undetermined

Change-Id: Ie186657a5477b487aabd11d0afdacb9587f3e4c7
2021-05-31 03:31:27 +00:00
Jean-Baptiste Queru
6f505dc4e2 Merge donut into master am: bc565c0a52
Original change: undetermined

Change-Id: I0c40a6646adcdfea180d9382c5e64bfced690c71
2021-05-31 03:31:13 +00:00
Jean-Baptiste Queru
2bd861f4e3 Merge donut into master am: 66b7286230
Original change: undetermined

Change-Id: I939a24cc871a6e2fc1182607f544d75efda35974
2021-05-31 03:31:00 +00:00
Automerger Merge Worker
346e03426b AI 146222: Manual merge of 145980 from donutburger => master. am: 418d2d13d3
Original change: undetermined

Change-Id: Ia18da97fc694d78bb7cdc290e8a0f38172e76f0b
2021-05-31 03:30:47 +00:00
The Android Open Source Project
a20c50840e auto import from //depot/cupcake/@135843 am: 28527d2c5f
Original change: undetermined

Change-Id: I7bd463ce7da4cb62b5de171fa318489a34b10e94
2021-05-31 03:30:34 +00:00
The Android Open Source Project
9edcfc70d0 auto import from //depot/cupcake/@135843 am: ae5a5399b4
Original change: undetermined

Change-Id: Ib96b88e1beb3924af2030eeedb7156728bd57446
2021-05-31 03:30:20 +00:00
The Android Open Source Project
c5be480b05 auto import from //branches/cupcake/...@130745 am: cffb11385e
Original change: undetermined

Change-Id: Ie58d9018ec587c79c3a42152ff45f5e9bf027d1b
2021-05-31 03:29:58 +00:00
The Android Open Source Project
2eb842fa92 Code drop from //branches/cupcake/...@124589 am: 0caef3f9f1
Original change: undetermined

Change-Id: I6e0e780979e2d303c4b0e9d30e700d1c98285b7b
2021-05-31 03:29:43 +00:00
The Android Open Source Project
47626abd90 Initial Contribution am: 54a942fddf
Original change: undetermined

Change-Id: Ifa8862cbafd96b258d530043afae1488e9dbc111
2021-05-31 03:29:15 +00:00
Orion Hodson
fdbcbb0512 Merge "Use updated NetworkEventDispatcher API" into sc-dev am: 13f6148e22
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14722293

Change-Id: I3b13f70d9ec4e2bd97e7ef67f78c7c842af6a92e
2021-05-26 13:55:19 +00:00
Orion Hodson
13f6148e22 Merge "Use updated NetworkEventDispatcher API" into sc-dev 2021-05-26 13:34:07 +00:00
Lorenzo Colitti
ce1dc4feb1 Merge "Update allowed on restricted networks getter/setter" into sc-dev am: 962e174260
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14730611

Change-Id: Ida55717388317ce3f7313860e321a8459cf6560d
2021-05-26 12:39:59 +00:00
Lorenzo Colitti
962e174260 Merge "Update allowed on restricted networks getter/setter" into sc-dev 2021-05-26 12:18:03 +00:00
Anton Hansson
4a1e20e353 Include sdk versioning proto in tethering apex am: 89eb55fb8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14683380

Change-Id: I95137d04ae27edad02b7f116a2e46c821b202f87
2021-05-26 10:31:02 +00:00
paulhu
68aacb407a Update allowed on restricted networks getter/setter
As API review feedback, setting allowed on restricted networks
should be by uid instead of package name for security reason.
Thus, update the getter/setter to return/accept set of uids.

Bug: 188085693
Test: atest FrameworksNetTests
Ignore-AOSP-First: Needs cherry-picks
Change-Id: I979bf98075e6c9c0ed7e891582843fddb62643cb
2021-05-26 16:16:57 +08:00
Orion Hodson
1f4fa9ffd5 Use updated NetworkEventDispatcher API
Bug: 185153775
Ignore-AOSP-First: addressing API council comments with deadline
Test: m
Change-Id: Iae3cec4f751e1f74ccd26db6f22f55cf21dfc04a
2021-05-25 21:25:17 +01:00
Anton Hansson
89eb55fb8a Include sdk versioning proto in tethering apex
Allows SdkExtensions to inspect its version to decide what the extension
sdk version is on-device.

Bug: 188787081
Test: m com.android.tethering and inspect
Ignore-AOSP-first: internal topic, will cherry-pick after submission
Change-Id: If2d28b02be871594fed1fbb40b7aad284b553afb
2021-05-25 13:01:31 +01:00
Bill Yi
6a9c51da3b [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 58b943a701 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14707183

Change-Id: I536ce42a36898b24968c8be58968daaa997b6030
2021-05-25 04:08:17 +00:00
Bill Yi
01d8b26118 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I43815f54aac23b9f43bfd427b7b18f22c97e0b31
2021-05-24 18:13:23 -07:00
Bill Yi
58b943a701 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I764f64b9ce1284955530e1c1b40c6441691845e2
2021-05-24 18:12:15 -07:00
Baligh Uddin
395514fa3d Merge history of packages/Connectivity am: 2afd0986d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14700782

Change-Id: I7507f15a8a7b178035eda8af2345f19baa7267ec
2021-05-24 07:49:35 +00:00
Baligh Uddin
2afd0986d3 Merge history of packages/Connectivity
Modified Visibility / Includes for:
- Tethering/common/TetheringLib/Android.bp

Modified License Import for:
- framework/Android.bp
- service/Android.bp
- tests/common/Android.bp
- tests/deflake/Android.bp
- tests/integration/Android.bp
- tests/smoketest/Android.bp
- tests/unit/Android.bp
- tests/unit/jni/Android.bp
Modified Lint mapping for:
- framework/lint-baseline.xml
- service/lint-baseline.xml

BUG: 186628461
TEST: TH
Merged-In: Ie82d0fb34bda77543e31c82660c6f315efa87f62
Change-Id: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f
2021-05-24 04:40:14 +00:00
TreeHugger Robot
958fe9a51d Merge changes I1de322c9,Id0983d4b into sc-dev
* changes:
  Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
  Improve IKEv2/IPsec VPN by proposing more IKE algorithms
2021-05-22 05:05:51 +00:00
TreeHugger Robot
424e2ef3aa Merge "Check location permission for ConnDiags last." into sc-dev 2021-05-22 05:01:18 +00:00
TreeHugger Robot
08bbc34bbe Merge "Use CS identity to update setting while performing factory reset" into sc-dev 2021-05-22 04:59:28 +00:00
Yan Yan
f1ea9b302c Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IpSecAlgorithm. Those new algorithms have stronger
security guarantees and better performances.

This commit also removes algorithm name validation because all
algorithms are URL encoded to ensure no special characters create
problems due to their use by VpnProfile for list or field delimiting
(e.g. rfc7539esp(chacha20,poly1305))

Bug: 185265778
Test: atest FrameworksNetTests, CtsNetTestCases
Test: All new algorithms are manually verified
Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
Merged-In: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
2021-05-21 23:33:23 +00:00
Mark Chien
eba760b272 Merge "Test tethered callback with TetheringInterface" into sc-dev am: fcda6f1131
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14622456

Change-Id: I12bc874b2c366ae2256a1a72eec5420f19814a8e
2021-05-21 16:26:30 +00:00
Cody Kesting
0b4be0203d Check location permission for ConnDiags last.
This CL updates ConnectivityService to check location permissions for
ConnectivityDiagnostics callbacks last in the permission check process.
This minimizes misattribution of location access for networks that an
app is not administering.

This CL also updates ConnectivityDiagnosticsManager documentation to
clearly state that location permissions are required in order to receive
callbacks.

Bug: 187310575
Test: atest ConnectivityDiagnosticsManagerTest
Test: atest ConnectivityServiceTest
Change-Id: I2dbeddac6273e2392ccaeae51a1c7776d6d3da75
Merged-In: I2dbeddac6273e2392ccaeae51a1c7776d6d3da75
(cherry picked from commit f3d0fc49db)
2021-05-21 16:22:50 +00:00
Mark Chien
fcda6f1131 Merge "Test tethered callback with TetheringInterface" into sc-dev 2021-05-21 16:04:47 +00:00
Junyu Lai
287890574d Merge "Add CTS for getAllNetworkStateSnapshots" into sc-dev am: 9a4c06f276
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14598438

Change-Id: I4b36375873be6cfde8b91ce9c0da3cc60478fb74
2021-05-21 09:53:17 +00:00
Junyu Lai
9a4c06f276 Merge "Add CTS for getAllNetworkStateSnapshots" into sc-dev 2021-05-21 09:36:49 +00:00
Treehugger Robot
fac2a72593 Use CS identity to update setting while performing factory reset
When apps try to call factoryReset to do networking reset, it
will result in updating the setting in SettingsProvider.
ContentProvider will verify if the package name of the caller
that initiated the request being processed on the current thread.
The package should belong to the calling UID. The setting update
started from the ConnectivityService context, so the package will
be android but the calling UID will be the calling app. It will
cause a SecurityException. The behavior is fine previously as its
known caller(Settings) shares system UID. But it will be a
problem for other callers, such as CTS. Thus, clear the identity
since the necessary permission check should be examined at the
top of the method. The following actions should be fine to be
proceed from the system itself. Also replace the user restriction
check via hasUserRestrictionForUser with the UserHandle created
from the calling uid to ensure it's verified with correct user.

Bug: 186061922
Test: Factory reset from Settings
Merged-In: If2dd69f702a1eafff331f9e71f6b92aeadfb715d
Change-Id: If2dd69f702a1eafff331f9e71f6b92aeadfb715d
(cherry picked from commit 10ba4b773b)
2021-05-21 08:01:37 +00:00
Chiachang Wang
0aa413eba7 Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities
Bug: 186061922
Test: atest CtsNetTestCases:android.net.NetworkCapabilitiesTest
Merged-In: I369e71dd6ae85da78e114ea8377967ab0bde787b
Change-Id: I369e71dd6ae85da78e114ea8377967ab0bde787b
(cherry picked from commit 0aa0790dec)
2021-05-21 07:54:46 +00:00
junyulai
3a64e80dee Add CTS for getAllNetworkStateSnapshots
Ignore-AOSP-First: Needs cherry-picks
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest#testGetAllNetworkStateSnapshots --rerun-until-failure 100
Test: atest
CtsNetTestCasesLatestSdk:android.net.cts.ConnectivityManagerTest on R
device
Bug: 188140631

Change-Id: I573b009bd05bbc0c855aaa6e20cb8ebde6729936
2021-05-21 06:43:31 +00:00
TreeHugger Robot
02619b4b1a Merge "Add CTS for NetworkAgentConfig#setSubscriberId" into sc-dev am: 323a05334b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14639705

Change-Id: I512829ff1fdd642e4c1d5577935c2a835b8ce872
2021-05-21 04:16:39 +00:00
TreeHugger Robot
323a05334b Merge "Add CTS for NetworkAgentConfig#setSubscriberId" into sc-dev 2021-05-21 03:50:11 +00:00
TreeHugger Robot
f9d1bbb566 Merge "Add more unit tests for ConnectivityManager S APIs" into sc-dev 2021-05-20 16:32:19 +00:00
markchien
960e5fa8b0 Fix tethering unit test fail in R am: 6cee9c5e04 am: 2aa768a7e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14660570

Change-Id: Ie7a89af1a6f7c02cfb79c88248f68ea4bd53e61c
2021-05-20 09:39:27 +00:00
markchien
2aa768a7e9 Fix tethering unit test fail in R am: 6cee9c5e04
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14660570

Change-Id: I357e2e93204fb67119e7ec81bcf9020b73912d88
2021-05-20 09:17:20 +00:00
markchien
82f99f95b7 Test tethered callback with TetheringInterface
The old callback only report interface list, new callback could provide
the mapping of interface and type. Replace old callback usage in cts
with new callback and check whether old callback could get the correct
interface list by comparing the result between old and new callback.

Bug: 162920185
Bug: 152203943
Test: atest CtsTetheringTest on S
      atest CtsTetheringTestLatestSdk on R
      atest MtsTetheringTestLatestSdk on S and R
Ignore-AOSP-First: Its dependences CL is not in aosp currently.

Change-Id: I2a0b8c43fb340c3eaed7f0f90464199222a24280
2021-05-20 09:02:39 +00:00
Les Lee
627c446560 Merge "Support to query TYPE_WIFI usage with subscriberId" into sc-dev 2021-05-20 08:55:59 +00:00
Paul Hu
5acfe4933e Merge "Register APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting observer" into sc-dev 2021-05-20 08:45:35 +00:00
markchien
6cee9c5e04 Fix tethering unit test fail in R
The change aosp/1708088 break tethering unit test in R.

Bug: 187946226
Test: atest TetheringTests in R and S
Change-Id: I4eb4b757f6d7cd3458964c81310dcf0687a4f091
Merged-In: I4eb4b757f6d7cd3458964c81310dcf0687a4f091
2021-05-20 14:52:01 +08:00
Junyu Lai
056b6649cd Add CTS for NetworkAgentConfig#setSubscriberId
Ignore-AOSP-First: Needs cherry-picks
Test: atest CtsNetTestCases:android.net.cts.NetworkAgentTest
Test: atest CtsNetTestCasesLatestSdk:android.net.cts.NetworkAgentTest
      on R device
Bug: 188140631
Change-Id: I90d47ac9bd0570c0aed19402fa9be4e99e0f8621
2021-05-20 06:07:08 +00:00