summaryrefslogtreecommitdiff
path: root/services/core
AgeCommit message (Collapse)Author
2021-03-23Merge changes from topic "vcn-status-changed"Cody Kesting
* changes: Rename VcnStatusCallback#onVcnStatusChanged. Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23Remove the reference of new Network(int) in Vpn.javajunyulai
Test: atest FrameworksNetTests Bug: 182963397 Merged-In: I4176dd1298ad8d8e8407eb95b2e6cbb8faf4bc17 Change-Id: I4176dd1298ad8d8e8407eb95b2e6cbb8faf4bc17 (cherry-picked from ag/13959430)
2021-03-23Merge "Replace hidden API usages of NetworkCapabilities"Treehugger Robot
2021-03-23Merge "Emulator cleanup in ClipboardService.java (closePipe)"Treehugger Robot
2021-03-23Merge changes Ieeb0ebef,I1f33a8c6,I07168a7bTianjie Xu
* changes: Add a specific error code for keystore failure Add a specific error code for provider mismatches Report the true value of more RoR metrics
2021-03-23Merge "Have a new method in NetworkAgentConfig.Builder to set allowBypass"Lorenzo Colitti
2021-03-23Merge "Move disk reads to background"Rajeev Kumar
2021-03-23Merge changes I638ed5cd,I29f15571,I21a22ed1Lorenzo Colitti
* changes: Expose registerDefaultNetworkCallbackAsUid. Support calling registerDefaultNetworkCallback for another UID. Store the effective UID in NetworkRequestInfo.
2021-03-23Merge "Cache correct calling UID for VcnStatusCallbacks."Cody Kesting
2021-03-23Have a new method in NetworkAgentConfig.Builder to set allowBypasslucaslin
Have a new method in NetworkAgentConfig.Builder for Vpn to set allowBypass. Bug: 182963397 Test: m Change-Id: I3f244464438325ee7f8a1b953d3fb28186293628
2021-03-22Add a specific error code for keystore failureTianjie
Because of the keystore 2.0 migration, we expect to see one time RoR failures in S build. Add an error code to distinguish the case. Bug: 183140900 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: Ieeb0ebef570cb7392f6ac47d2ad918da64869712
2021-03-22Add a specific error code for provider mismatchesTianjie
If the device used HAL based RoR to arm the escrow key, the recovery will fail if we switch to server based RoR after reboot. Set a specific error for metrics purpose. Bug: 183140900 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: I1f33a8c6cf111d868a2b96a155f5a0926a7c788a
2021-03-22Cache correct calling UID for VcnStatusCallbacks.Cody Kesting
This CL updates VcnManagementService to cache the correct UID for the caller when a VcnStatusCallback is registered. Previously, getBinderCallingUid() was checked after the calling identity was cleared. Bug: 183437200 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: Idfa2d2aad6bc03b3d08a137f9913276057632a3b
2021-03-22Report the true value of more RoR metricsTianjie
Design ErrorCode for errors of loadRebootEscrowData. Also report the status of vbmeta digest, as we plan to associate k_k with vbmeta in the future. Bug: 179105110 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: I07168a7bc4fd20d41df9b87136e1e5158129d7f6
2021-03-22Merge "Report more metrics in RecoverySystem"Tianjie Xu
2021-03-22Merge "Fix the case where blocked reasons for dataSaver are not considered."Treehugger Robot
2021-03-22Emulator cleanup in ClipboardService.java (closePipe)Roman Kiryanov
Bug: 182436079 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I08563b24c356e7519ffe6cf6020d301ab086fa70
2021-03-22Reevaluate VcnGatewayConnections on receiving new configs.Cody Kesting
This CL updates Vcn.java to reevaluate its VcnGatewayConnections when it receives a new VcnConfig. This may result in VcnGatewayConnections being torn down (if their VcnGatewayConnectionConfig is not in the updated VcnConfig) or established (if a NetworkRequest matches a new VcnGatewayConnectionConfig). Bug: 181815405 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I7da60f60e972bd968e1ff4fe416fb9a1d3309a18
2021-03-22Merge "Emulator cleanup in ClipboardService.java (openPipe)"Treehugger Robot
2021-03-22Fix the case where blocked reasons for dataSaver are not considered.Sudheer Shanka
Fixes: 183267528 Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideNetworkCallbackTests.java Merged-In: I3c90c3849261df4c289c398f22661f91f7cf4994 Change-Id: Iba3ff804a74fb482847dd999c2854405b21affd2
2021-03-22Merge "Remove reference of getActiveLinkproperties"Treehugger Robot
2021-03-22Remove reference of getActiveLinkpropertiesjunyulai
For callers who access the hidden API, replaced with public APIs. Test: atest FrameworksNetTests Bug: 182963397 Merged-In: Ic0e895c77cf3efb78ddc333c4f3b1016cebcfe17 Change-Id: Ic0e895c77cf3efb78ddc333c4f3b1016cebcfe17 (cherry-picked from ag/13929756)
2021-03-22Support calling registerDefaultNetworkCallback for another UID.Lorenzo Colitti
This is to be used by privileged components (e.g., JobScheduler) to request callbacks about the state of other UIDs on the system. Bug: 165835257 Test: new unit test coverage Change-Id: I29f155710394e58c14fcef488db6271d8d83033a
2021-03-22Store the effective UID in NetworkRequestInfo.Lorenzo Colitti
This is necessary for privileged components such as JobScheduler to file NetworkCallbacks on behalf of other UIDs. This CL adds the field to NetworkRequestInfo and updates some of the matching code, but does not set the field to anything other than the UID that created the request. Thus, it should cause no behaviour changes. Bug: 165835257 Test: refactoring with no change in behaviour, passes existing tests Change-Id: I21a22ed1b851b8511d36f5202c9eac03e7158d3d
2021-03-22Replace hidden API usages of NetworkCapabilitiesjunyulai
For callers who access hidden APIs of NetworkCapabliities, replace them with Builder system APIs. Test: atest FrameworksNetTests Bug: 182963397 Merged-In: Iaa4e256e43a33bdf08780bdd1a1a8b538058634d Change-Id: Iaa4e256e43a33bdf08780bdd1a1a8b538058634d (cherry-pick from ag/13929753)
2021-03-22Fix privileged apps calling registerDefaultNetworkCallback.Lorenzo Colitti
When registerDefaultNetworkCallback is called by an app that has NETWORK_SETTINGS, the UID of the app is forgotten and the request that is filed has an empty UID set. This results in that request matching networks that have UID ranges that do not include it, e.g., VPNs. Fix this by ensuring that the UID ranges are properly set. Bug: 165835257 Test: updated specific tests for this bug Change-Id: I90bf79573342c144d1cfbc2f61a3155fdd5b1fa7
2021-03-21Merge "The phone didn't reload the allowed Network Type"SongFerng Wang
2021-03-21Merge changes from topics ↵Treehugger Robot
"revert-1645768-revert-1626206-replaceUidRange-MSYTKFNGUE-HIUTVTIGIR", "ti_redaction" * changes: TransportInfo: Add a generic redaction mechanism Revert "Revert "Expose uids related APIs in NetworkRequest and N..." Revert^2 "Replace the usage of UidRange"
2021-03-21Use module resources in NetworkNotificationManager.Lorenzo Colitti
Also make getTransportName non-static so it can access the module resources. Also fix a duplicate comment in a resource file. Bug: 183097033 Test: atest FrameworksNetTests Test: connected to Wi-Fi with no Internet, observed notification Change-Id: Ic0d24d36af0b87153d527083f8964ddc6cd78482 Merged-In: Ic0d24d36af0b87153d527083f8964ddc6cd78482
2021-03-20Remove unused NetworkPolicyManagerInternal in CSpaulhu
ConnectivityService doesn't call any NPMI methods, so remove all usage from CS. Bug: 170598012 Test: atest FrameworksNetTests Test: atest FrameworksNetIntegrationTests Change-Id: I8719ef2e96e7db9da2894b467b9e7a1bc09de386 Merged-In: I8719ef2e96e7db9da2894b467b9e7a1bc09de386
2021-03-20Move connectivity AIDLs to android.netRemi NGUYEN VAN
java_sdk_libraries and apexes need to contain bootclasspath classes under predefined packages. Tethering currently uses android.net, so make sure all the connectivity bootclasspath classes are under android.net. This avoids maintaining two packages for the tethering APEX, where com.android.connectivity.aidl is only used by internal AIDL files. Bug: 182984842 Test: m Change-Id: I611f1941698c574e37aea912ee76dadc8b32e41a Merged-In: I611f1941698c574e37aea912ee76dadc8b32e41a
2021-03-20Migrate framework-connectivity internal resourcesRemi NGUYEN VAN
Use ServiceConnectivityResources instead. Start by creating resources in the ServiceConnectivityResources package to match the internal configuration, and common overlays. Bug: 182125649 Test: device boots, has connectivity Change-Id: I77a3efca2cd644f9828db1ed5d3cae8070fb8363 Merged-In: I77a3efca2cd644f9828db1ed5d3cae8070fb8363
2021-03-20Add multipath preference, background status APIRemi NGUYEN VAN
Add APIs for getMultipathPreference and getRestrictBackgroundStatus. Both are used by Connectivity to back the external ConnectivityManager.getRestrictBackgroundStatus, and ConnectivityManager.getMultipathPreference APIs. Test: atest CtsNetTestCases atest ConnectivityServiceTests atest NetworkPolicyManagerServiceTest Bug: 176289731 Change-Id: I8a03162b2f6691086bb64e75ffd354cdfca7f86a Merged-In: I8a03162b2f6691086bb64e75ffd354cdfca7f86a
2021-03-19Emulator cleanup in ClipboardService.java (openPipe)Roman Kiryanov
Bug: 182436079 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: If19859b04d6c5ed27249c31ea55e273f303b3ec4
2021-03-20Merge changes from topic "app_hibernation_permission"Kevin Han
* changes: Add API to get hibernating packages Add MANAGE_APP_HIBERNATION permission
2021-03-19Merge "Support MTE and GWP-ASan features in proto tombstones."Peter Collingbourne
2021-03-19Report more metrics in RecoverySystemTianjie
Use shared preferences in recovery system service. So it be used for metrics storage and report RoR metrics. Bug: 179105110 Test: atest FrameworksServicesTests:RecoverySystemServiceTest; check the value of prefs Change-Id: Id09545824713ab124882f2f2add67e7f93cb43ca
2021-03-19TransportInfo: Add a generic redaction mechanismRoshan Pius
This replaces the existing mechanism for redacting location sensitive fields with a more extensible mechanism. Currently supported redactions are for the following permissions: i. ACCESS_FINE_LOCATION ii. LOCAL_MAC_ADDRESS iii. NETWORK_SETTINGS Also, removed WifiInfo from ConnectivityServiceTest to reduce cross dependencies on wifi code. Bug: 156867433 Bug: 162602799 Test: atest android.net Test: atest com.android.server Change-Id: I2bb980c624667a55c1383f13ab71b9b97ed6eeab
2021-03-19Merge "OWNERS for a few Voice Interaction files."Jeff Sharkey
2021-03-19Move disk reads to backgroundKevin Han
Move disk reading to background to improve performance on user unlocking. Bug: 182098676 Test: atest AppHibernationServiceTest Change-Id: I087bd9d29f4f90c818a03648ee75e3cbfb2ded41
2021-03-19Add API to get hibernating packagesKevin Han
Add API to AppHibernationService to get hibernating packages so Settings can access this information. Bug: 175829330 Test: atest AppHibernationServiceTest Change-Id: Icd186807c19ece55a21fc4d240d2f0132951af82
2021-03-19Add MANAGE_APP_HIBERNATION permissionKevin Han
Add permission for app hibernation state manipulation. Bug: 183058954 Test: run hibernation job and confirm the API works for PermissionController (cherrypick of ag/13909632) Merged-In: Id57ee57f49710d0b8a49a4ec561800db43089f87 Change-Id: Id57ee57f49710d0b8a49a4ec561800db43089f87
2021-03-19Merge "Remove the reading of APK file."Yan Wang
2021-03-19Merge "Keystore 2.0: Enable by default."Treehugger Robot
2021-03-19The phone didn't reload the allowed Network TypeSongFerngWang
Reload the allowed Network after device insert SIM card. Change the behavior of notifyAllowedNetworkTypesChanged. Log print String representation of the allowed network types. Bug: 180903931 Bug: 179814490 Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason_moreReason atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason atest android.telephony.cts.TelephonyCallbackTest Change-Id: Icfffea3c74ecf6938455d841da9d6175f6aa07de Merged-In: Icfffea3c74ecf6938455d841da9d6175f6aa07de
2021-03-19Merge changes I18d2ccea,I4e80a75d,Ib8ea2a17,Iaba678edTreehugger Robot
* changes: Remove hidden API usage of RouteInfo Remove reference of NetworkAgent#unwanted() Remove references of NetworkAgentConfig constructor Remove reference of @ValidationStatus annotation
2021-03-19Merge "[NS03] Mix in other CS-managed properties"Chalard Jean
2021-03-19Merge "Reland "Add an API to listen for changes in network blocked status of ↵Treehugger Robot
an uid.""
2021-03-19Merge "Send a Network instead of network id for wifi no internet dialog"Chiachang Wang
2021-03-19Merge "Remove hidden API usage from ProxyTracker"Aaron Huang