summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSahana Rao <sahanas@google.com>2020-02-10 13:59:42 +0000
committerSahana Rao <sahanas@google.com>2020-02-11 15:20:01 +0000
commit364d250fb72595fa3b927350cb38da6cac824624 (patch)
tree0cc145c1678e997f9b7e8dff27ea00e3432a2868 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1527beb31e78d2ddf86bda9d7c9a1385bce026f8 (diff)
Fail silently on MediaScannerConnection#onScanCompleted
MediaScannerConnection#onScanCompleted callback runs on background thread. Exception on the callback kills the process. To avoid this, ignore exceptions from callback for apps targeting Q or lower. This change fixes change in behavior from refactoring Ie959daa7576214024150faf84b44cdba00119257 where errors on the callback was handled on a binder thread that doesn't cause process crash. Test: atest frameworks/base/media/ directory Test: "in.mohalla.sharechat" app doesn't crash while sharing video. Test: "com.vkontakte.android" app doesn't crash while sending a photo. Bug: 147998630 Bug: 148925602 Change-Id: I5bd5f9fc22ac274da4d09c55dd639a6cca08be9b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions