summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2020-02-07 14:49:34 -0800
committerCody Kesting <ckesting@google.com>2020-03-09 11:27:00 -0700
commit292963dec7a9cfb2170715fd3e3ba7afcfef485d (patch)
tree34d2e59cec4db1cb61d7c1b439d8418745327f22 /tools/aapt2/java/JavaClassGenerator.cpp
parent8977dd0b7f86ad348f8b405091127e9f3ab2401f (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions