summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-16 15:48:50 +0000
committerCody Kesting <ckesting@google.com>2020-03-17 00:21:50 -0700
commita5333b952837a880262121174b60809a82ab00dc (patch)
treec7c5ed085c742c6ff21e1776395f2be0f8ccac6c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9347e33557713af56b3ef3f83fdee4ed6c55ac90 (diff)
Protect ConnectivityService from SecurityException in permission check.
ConnectivityService currently calls LocationPermissionChecker#checkLocationPermission. This method call throws a SecurityException if the given package name and UID do not match. This permission check is made from the ConnectivityService Thread, so any Exception being thrown will crash the SystemServer. This is not acceptable, so surround the permission check in a try-catch in case any SecurityExceptions are thrown. Bug: 149119324 Test: atest ConnectivityServiceTest Change-Id: Ibe2874f2a5249432270aa1b9eb7d004bbba35ac2 Merged-In: Ibe2874f2a5249432270aa1b9eb7d004bbba35ac2 (cherry picked from commit 9eacc855b63b36f5b937e703b20d4b0bb077ab75)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions