summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2021-04-06 13:48:06 -0700
committerKevin Han <kevhan@google.com>2021-04-06 18:18:36 -0700
commit5b3dd0e09b9c7bffb83c3d0b89d35c020b274cf3 (patch)
tree49ac2b78875464bf98cceeffa11810637e7bfbcc /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc9f96b6ea78192afad34867eea60d401d78c2d67 (diff)
Do not hold PM or AM locks when calling hibernation API
App hibernation calls into activity manager and package manager API. If package manager calls into AppHibernationService while holding either the activity manager lock or package manager locks, it can cause a deadlock. To fix this, we ensure that app hibernation API is never called with either lock, either by separating out the logic or putting the app hibernation state mutation on a background thread. Bug: 184661338 Bug: 182811830 Test: manual, hibernation app, open, see hibernation state is left Test: atest PackageManagerServiceHibernationTests Change-Id: I1d7dfb2232a49a63958628dd94f6b6445ece4d55
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions