OSDN Git Service

Don't resume activity if user is locked and encryption is unsupported
authorBryce Lee <brycelee@google.com>
Thu, 17 Aug 2017 22:37:26 +0000 (15:37 -0700)
committerBryce Lee <brycelee@google.com>
Thu, 17 Aug 2017 22:37:26 +0000 (15:37 -0700)
commit8558ec7dbe7733a36b621b24309e7a9dd9deec8c
tree6de9a1ab175f19f23956b49e67c095a4b30e0aa5
parentc3e7f875b41f78de26d07f6c8ab8fe78747886c0
Don't resume activity if user is locked and encryption is unsupported

Previously we were not checking if to see if this condition was met
when determining the top running activity. As a result we could get
in a loop where we force stop the process since the app doesn't
support encryption yet try to start it again due to the
ActivityRecord being on top.

This changelist addresses the issue by checking this condition when
determining whether it is okay to show.

Change-Id: I868f97ce8b3ea4220019b8570407e33f27ea88bc
Fixes: 64259425
Test: go/wm-smoke
core/java/android/content/pm/ApplicationInfo.java
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/pm/PackageManagerService.java