summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkStackTest.java
diff options
context:
space:
mode:
authorpaulhu <paulhu@google.com>2021-02-22 15:40:43 +0800
committerPaul Hu <paulhu@google.com>2021-02-23 08:35:38 +0000
commitbb0277e7e60639e4b015cc008f790c6850b772e6 (patch)
tree1f112e42c00b9184f2d21a1ac04ec2bec31304f1 /tests/common/java/android/net/NetworkStackTest.java
parent10de86f5e5ba4e245035c2af4e451f2b4eace147 (diff)
Implement Settings#checkAndNoteChangeNetworkStateOperation on CS
Connectivity is becoming a mainline module in S and ConnectivityManager#enforceChangePermission is using Settings#checkAndNoteChangeNetworkStateOperation for performing a strict and comprehensive check of whether a calling package is allowed to change the state of network. However, Mainline modules are not allowed to use non-formal APIs, fortunately CS is the only caller of this ConnectivityManager#enforceChangePermission. Thus, implement the Settings API on ConnectivityService and remove the ConnectivityManager#enforceChangePermission and Settings#checkAndNoteChangeNetworkStateOperation. Bug: 178565313 Test: atest FrameworksNetTests Change-Id: I6f03398c1735b89470ad5bdbe3a036929daeb53c Merged-In: I6f03398c1735b89470ad5bdbe3a036929daeb53c
Diffstat (limited to 'tests/common/java/android/net/NetworkStackTest.java')
0 files changed, 0 insertions, 0 deletions