summaryrefslogtreecommitdiff
path: root/packages/Connectivity
AgeCommit message (Collapse)Author
2024-03-04Remove unused ConnectivityAnnotations Chiachang Wang
This is a clean up commit to remove legacy ConnectivityAnnotations as the annotations are defined in the ConnectivityManager, and is unused. Test: m Change-Id: Id3aec16559618ab563815fbdd4c8da54c54cafef
2021-05-24packages/Connectivity moved to packages/modules/Connectivity Baligh Uddin
BUG: 186628461 TEST: TH Change-Id: I2727e13dbe051162f23ef279ca11cd5cca1fc761
2021-05-22Merge "Add OWNERS block for migration" am: 81d4e1079e am: 6d03c42e3c am: ↵ Baligh Uddin
6c02c92a9e am: e6538223ed Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1715476 Change-Id: Id46109aba233c39838905752e04fecf556acf267
2021-05-22Merge "Add OWNERS block for migration" am: 81d4e1079e am: 6d03c42e3c Baligh Uddin
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1715476 Change-Id: Icdab309144d7f4fa5ec1eb80efd919c66d408839
2021-05-22Merge "Add OWNERS block for migration" Baligh Uddin
2021-05-21Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" am: ↵ Yan Yan
94a4cdd4e8 am: 7b8b5fd6de am: 10987d8c02 am: 1a93eb283f Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690265 Change-Id: Icba57c57776bf3df394d5b406fa818032f43a536
2021-05-21Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" am: ↵ Yan Yan
94a4cdd4e8 am: 7b8b5fd6de Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690265 Change-Id: I0e467627fdbf70d6ec704f1f2be58223df9642ed
2021-05-21Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" Yan Yan
2021-05-21Improve IKEv2/IPsec VPN by proposing more IPsec algorithms Yan Yan
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
2021-05-21Add OWNERS block for migration Baligh Uddin
BUG: 186628461 Test: TH Change-Id: Id03e0dfbe621b8ad08e594c0f6525ad9240837ae
2021-05-21Merge "Move to renamed NDK symbol AFileDescriptor_getFd" Orion Hodson
2021-05-21Merge "Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities" ↵ Chiachang Wang
am: 392633f757 am: c9f08650c9 am: 2003005744 am: 0a81dfc022 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1712731 Change-Id: I83051032d59ad427b6b7d7ce9693b3e5534c618b
2021-05-21Merge "Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities" ↵ Chiachang Wang
am: 392633f757 am: c9f08650c9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1712731 Change-Id: I53a692383de98d959b029cfd618621f47059fdd5
2021-05-21Merge "Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities" Chiachang Wang
2021-05-21Merge "Use CS identity to update setting while performing factory reset" am: ↵ Treehugger Robot
2c219a5b84 am: fd0680b79d am: 19f42a6f34 am: e7b2d80925 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695309 Change-Id: I52688f826a5d532a4932853e36f0b26471a372c4
2021-05-21Merge "Use CS identity to update setting while performing factory reset" am: ↵ Treehugger Robot
2c219a5b84 am: fd0680b79d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695309 Change-Id: I7c23d33349e7f28a6fc17f5191e973f60e1eb96d
2021-05-21Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities Chiachang Wang
Bug: 186061922 Test: atest CtsNetTestCases:android.net.NetworkCapabilitiesTest Change-Id: I369e71dd6ae85da78e114ea8377967ab0bde787b
2021-05-21Merge "Use CS identity to update setting while performing factory reset" Treehugger Robot
2021-05-20Merge "Check location permission for ConnDiags last." am: a376a93738 am: ↵ Cody Kesting
83b7dbfc1b am: 420000185e am: f9bda2628a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699069 Change-Id: I1664fd4cb4d5d896e9add62fc3fcc4214e1de0d7
2021-05-20Merge "Check location permission for ConnDiags last." am: a376a93738 am: ↵ Cody Kesting
83b7dbfc1b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699069 Change-Id: I6ca0b27d9280e9246fbf6ea105f18d6f1d073388
2021-05-20Merge "Check location permission for ConnDiags last." Cody Kesting
2021-05-20Merge "Add more unit tests for ConnectivityManager S APIs" into sc-dev am: ↵ TreeHugger Robot
7a5dda8b84 am: 6df51f557b am: bbe6eef494 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640282 Change-Id: I3d09c58b8fff20136b929fe9f565f01cfc1ee9f5
2021-05-20Merge "Add more unit tests for ConnectivityManager S APIs" into sc-dev am: ↵ TreeHugger Robot
7a5dda8b84 am: 6df51f557b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640282 Change-Id: I738f01bf04af315b5c3bb4b4950b3a25a4e96c32
2021-05-20Merge "Add more unit tests for ConnectivityManager S APIs" into sc-dev am: ↵ TreeHugger Robot
7a5dda8b84 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640282 Change-Id: I578b566c5b73e06b9f675cbde6954dccbc0a5a57
2021-05-20Merge "Add more unit tests for ConnectivityManager S APIs" into sc-dev TreeHugger Robot
2021-05-20Merge "Support to query TYPE_WIFI usage with subscriberId" into sc-dev Les Lee
2021-05-20Merge "Register APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting observer" into ↵ Paul Hu
sc-dev
2021-05-20Merge "Read APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting from ↵ Paul Hu
PermissionMonitor" into sc-dev
2021-05-20Merge "Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots" ↵ TreeHugger Robot
into sc-dev am: 95188f3762 am: 79a36b1cf6 am: ae2862940b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14601670 Change-Id: I800e9ceb40156cc4f96d6a4feebfd621cdc46078
2021-05-20Merge "Remove legacy resources fallback from Connectivity" into sc-dev am: ↵ Remi NGUYEN VAN
0dad48e00a am: 7ff09783f5 am: dfbd29f843 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14622504 Change-Id: I94eb5600dd70fb6f28926f161b7d8d1973acfa5c
2021-05-20Merge "Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots" ↵ TreeHugger Robot
into sc-dev am: 95188f3762 am: 79a36b1cf6 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14601670 Change-Id: Ib3d94471163139f281eaeff5cc67716eaffea593
2021-05-20Merge "Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots" ↵ TreeHugger Robot
into sc-dev am: 95188f3762 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14601670 Change-Id: Ib259c6351471aca6656dc4d46bb7242228a226c2
2021-05-20Merge "Remove legacy resources fallback from Connectivity" into sc-dev am: ↵ Remi NGUYEN VAN
0dad48e00a am: 7ff09783f5 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14622504 Change-Id: Ib7c4c68edfbb089f34a7679c2f58402fc8a816be
2021-05-20Merge "Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots" ↵ TreeHugger Robot
into sc-dev
2021-05-20Merge "Remove legacy resources fallback from Connectivity" into sc-dev am: ↵ Remi NGUYEN VAN
0dad48e00a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14622504 Change-Id: Iee4dd439c3f98e600c6a6b1ed6a73384f9a1c2ac
2021-05-20Merge "Remove legacy resources fallback from Connectivity" into sc-dev Remi NGUYEN VAN
2021-05-20Use CS identity to update setting while performing factory reset Chiachang Wang
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 Change-Id: If2dd69f702a1eafff331f9e71f6b92aeadfb715d
2021-05-20Merge "Move config_apf* resources to NetworkStack" am: 74ce6ae771 am: ↵ Remi NGUYEN VAN
785080237e am: 780aaa9bd8 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684656 Change-Id: Id21289779ef74f33e818e25117bf7a21bb3ecb7a
2021-05-20Merge "Support to query TYPE_WIFI usage with subscriberId" am: ced78f535c ↵ Les Lee
am: 812956f97d am: bad6f3aef6 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608057 Change-Id: I8779286b51f34af06d9aad6258f080a12e29088d
2021-05-20Merge "Add metered filter for API: buildTemplateCarrier" am: 287dcfbc80 am: ↵ Les Lee
94fa18312d am: bb2bce3215 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699687 Change-Id: I9ed05f9477768acaa0374e5b40da280fdafbbcde
2021-05-20Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is ↵ Treehugger Robot
present" am: 5bae6daf9b am: 1918c8edda am: aa0e6aaa51 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705390 Change-Id: I01bed3aa6da1c65f84098339a29bba1f4a09d15b
2021-05-19Merge "Allow unprivileged NetworkCallbacks to see other UIDs' networks." ↵ Lorenzo Colitti
into sc-dev am: 846ae25be5 am: e19eea3ce0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14597477 Change-Id: Icf9516c8f236d6e53f4816c7be67686498d25e4b
2021-05-19Merge "Dump only NORMAL priority information if no priority assigned" am: ↵ Chiachang Wang
f93d99deae am: 8b230f75d6 am: cd6c883c71 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1708333 Change-Id: Ie16efa923aeae623e36bb900cded04a87699d15e
2021-05-19Merge "Add ConnectivityAnnotations class" into sc-dev am: d2d8fa6c17 am: ↵ Aaron Huang
329aede902 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186142 Change-Id: I45df58f58e096f27fa6bb2e1b359c514e68206fe
2021-05-19Merge "Register APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting observer" am: ↵ Paul Hu
a199e8bf27 am: eaaa0cbce1 am: c41b928f88 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689573 Change-Id: Ie76502bc49a20ceafc9ab9a6a448a0b1a178b37a
2021-05-19Merge "Read APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting from ↵ Paul Hu
PermissionMonitor" am: 59dc4f0ac2 am: 9eec752260 am: 02f0c190d6 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689572 Change-Id: I6bfca3977345a57da6dc7938911fa3e26ea543e8
2021-05-19Merge changes I3ba50cbd,I970ee365 am: 37f2408143 am: ed64c29783 am: 8354c4531a Junyu Lai
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1620859 Change-Id: I9ce9369b30bc568a63321de8764bd49c263b9ea6
2021-05-19Move IoUtils#deleteContents from CorePlatformApi set to framework Nikita Iashchenko
As a part of internal core libraries cleanup move usages of IoUtils#deleteContents from CorePlatformApi set to framework. Bug: 154796679 Test: m update-api Change-Id: If7037029026b6753ab64be09aa52c40e04d5c7b1 (cherry picked from commit 87e9624648b9c4a4d87200b69331f3f97caff23c)
2021-05-19Add more unit tests for ConnectivityManager S APIs Junyu Lai
Ignore-AOSP-First: Avoid merge conflict Test: atest android.net.ConnectivityManagerTest Bug: 188657173 Change-Id: I33612650eb89486a14fcfc440ba0c357f4bb513c
2021-05-19Merge "Add metered filter for API: buildTemplateCarrier" into sc-dev Les Lee