summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2020-10-01 03:19:00 -0700
committerSudheer Shanka <sudheersai@google.com>2020-10-01 10:36:23 -0700
commitfa8340654b3f24b4ac1f95e7a9d52a1b105b81a3 (patch)
treed598865ee54cedba515019241309881beb20dd93 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent19690df0312f25c5f2ab2c3f0108304db37903c0 (diff)
Update INTERNET perm state cache to use uids instead of appIds.
It really shouldn't have mattered whether we use uids or appIds for this cache but given the way NetworkPolicy iterates over all apps on the device (all_apps * all_users), it is possible that we end up checking the permission state of apps which are not installed on a user which will always be DENIED and we end up caching this. So, we could end up treating an app as not having INTERNET permission on a user even though it has. Also, update the cache stragety to always check with PackageManager when the permission state is denied in the cache just to be safe, until NetworkPolicy iteration of apps is fixed. Bug: 168299219 Test: atest cts/hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Test: manual Change-Id: I6f2a60695a519a972c96ec8e053d3be5dc732461
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions