diff options
author | Patrick Baumann <patb@google.com> | 2019-11-18 13:43:11 -0800 |
---|---|---|
committer | Patrick Baumann <patb@google.com> | 2019-11-22 11:55:10 -0800 |
commit | 182ea1cd99ac429630a48fa0b0618fda46c40b13 (patch) | |
tree | fd87d812f1b901bcc738150e724551ab5a60e204 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 081777becde7d5dee0341461844a5561d0eb0a31 (diff) |
Avoids deadlock when applying preferred activities
Prior to this change, we were resolving the mime type of a given intent
while holding the package lock. With this change, we instead rely on the
preferred-activity declaration to define the mime type if it's
important, removing need for an activity manager service call and the
potential for deadlock.
Bug: 143105100
Test: Manual; sideload to /system/etc/preferred-apps/ and reset app preferences
Change-Id: Ie0b124216b49a1147bd5c2e82cf8c7cadb3f08ac
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions