summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Kevin Han <kevhan@google.com> 2021-11-11 14:29:35 -0800
committer Kevin Han <kevhan@google.com> 2021-11-19 13:06:59 -0800
commit2e8b4013072f30ee96f77cd691a52a98240c1b71 (patch)
treeb5b02ceb5c698c416310dacb6c1b2360bcbf3ba8 /libs/androidfw/StringPool.cpp
parent81577a397b4ce7de69024d94a0e2ffb17cd2ed20 (diff)
Add hibernation NPE check and unhibernate only if hibernating
Rather than depend strictly on "leaving" force-stop (i.e. stopped to not stopped), we unhibernate when setting stopped to false and the app is hibernating. This prevents situations where an app is not stopped but hibernating and can never exit hibernation because the app never "leaves" force-stop. With this, we can add the NPE check without risk of putting the app into a permanent hibernation state. Bug: 205774141 Test: atest AppHibernationIntegrationTest Test: atest PackageManagerServiceHibernationTests Change-Id: Ia45d0c9236474841d0ba63b5265b3b835cf9f6f5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions