summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptGL.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2021-02-04 00:18:27 +0900
committerLorenzo Colitti <lorenzo@google.com>2021-02-10 02:52:16 +0900
commit9cc08edf1f31f615b8fc0dab653f484f9ca22b5d (patch)
tree42f1e40aab8a5f14fe94000015f3138e34b47178 /rs/java/android/renderscript/RenderScriptGL.java
parent76e8a43e680587b139026bc0ee69f4cdb1468c12 (diff)
Stop using mVpns in getConnectionOwnerUid.
Use data that is already available in ConnectivityService instead. The behaviour of the new implementation is slightly different from Q and R code when the permission check fails. - The old code would throw a SecurityException if an app that was not an active VPN called the method, and would return INVALID_UID if the connection belonged to a UID that was not subject to the VPN. - The new code returns INVALID_UID in both cases. This does not seem like a compatibility problem. The only case in which the code throws SecurityException is if the app is not a current VPN app, but the app already knows whether it is or not. The docs don't mention that the method SecurityException, either. Bug: 173331190 Test: atest FrameworksNetTests Test: atest HostsideVpnTests Change-Id: If3d031e74df33b5c97e12ebf02272faac6769d50
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptGL.java')
0 files changed, 0 insertions, 0 deletions