diff options
author | paulhu <paulhu@google.com> | 2021-02-22 15:40:43 +0800 |
---|---|---|
committer | Paul Hu <paulhu@google.com> | 2021-02-23 08:33:01 +0000 |
commit | 694c8a99358044241b38f00479f07f89e873a188 (patch) | |
tree | 66e0a739fdf39fea8803ae4973691760b885ca06 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 98580a2e82e1b537ac8efb6c8283a5cc9c481072 (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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions