summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2020-01-09 17:35:07 -0800
committerHai Zhang <zhanghai@google.com>2020-01-09 17:46:21 -0800
commit72ddbffcd5bf25070fd7cc020b013ab011f1cfd0 (patch)
treeaaaacd50a800e910bd2f0e378a71947cf53bf2cc /tools/aapt2/diff/Diff.cpp
parentb4632bca2e330dfdea959665e86153b985da5fd5 (diff)
Throw exception out of grant/upgrade permissions callback.
PermissionControllerManager now uses AndroidFuture for callback, and it swallows exceptions thrown in the callback, so it is not going to kill the system server and main thread waiting on CountDownLatch will never be unblocked. This change uses AndroidFuture.completeExceptionally() to correctly pass out the exeption and kill system server in that case. Also added logging user ID to figure out which user is causing the exception. Bug: 147418116 Test: presubmit Change-Id: Ib5a9073b0ef4d43232f9e4266ac072ad00f6afe7
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions