summaryrefslogtreecommitdiff
path: root/framework/src/android/net/ConnectivityDiagnosticsManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Check location permission for ConnDiags last.Cody Kesting2021-05-171-1/+3
| | | | | | | | | | | | | | | | 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
* Revert "Revert "Remove connectivity dependency on Preconditions""Remi NGUYEN VAN2021-03-221-3/+2
| | | | | | | | | | | | | | Preconditions.checkNotNull is deprecated to be replaced by Objects.requireNonNull, and other methods can easily be replaced by inline checks. Preconditions is an internal API class that should not be used by unbundled jars. Bug: 177046265 Change-Id: I3a67d266b32142c034520acbcdc30f7213db5e13 Merged-In: I3a67d266b32142c034520acbcdc30f7213db5e13 Test: m
* Revert "Remove connectivity dependency on Preconditions"Remi NGUYEN VAN2021-03-151-2/+3
| | | | | | | | This reverts commit fa5eacc89f19bf96ed7de600a1a81b90454132f7. Reason for revert: Build broken: b/182721112 Change-Id: Ibc84ec6d7900fdcf0bc14cd7036f9c08287711db
* Remove connectivity dependency on PreconditionsRemi NGUYEN VAN2021-03-111-3/+2
| | | | | | | | | | | | | Preconditions.checkNotNull is deprecated to be replaced by Objects.requireNonNull, and other methods can easily be replaced by inline checks. Preconditions is an internal API class that should not be used by unbundled jars. Bug: 177046265 Test: m Change-Id: If14a75439ff332c927dc4114ae0eecb89f53c6c7
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-0/+777
Files that are planned to be part of the connectivity module are grouped in packages/Connectivity, so they can be built separately and moved in one operation with their history into packages/modules/Connectivity. This places the files in the existing framework-connectivity-sources filegroup instead of the current framework-core-sources filegroup. Both are used the same way in framework-non-updatable-sources. Bug: 171540887 Test: m Change-Id: I62d9d91574ace6f5c4624035d190260c3126b91e