commit | d39113ea00b650f5778ed3d5dea6664c5d06f5b4 | [log] [tgz] |
---|---|---|
author | Robin Lee <rgl@google.com> | Fri Jan 22 15:44:49 2016 +0000 |
committer | Robin Lee <rgl@google.com> | Wed Jan 27 18:01:01 2016 +0000 |
tree | bce13d2257d104294eac713d6844b53e5549f2db | |
parent | eb6c023710ebc1f07329f8623cf0b3e44d5bd538 [diff] |
Replace broken UserHandle.SYSTEM check in LPU ActivityManager.getCurrentUser returns the user currently in the foreground, not the calling or affected process. Note: --- This is just an API for setting the default suggestion when choosing a new lock type in Settings, so it's not much of a security problem (background users/profiles could only modify the suggestion, not the actual encryption setting). Change-Id: I98c62be7c5726f99fea0ec9320ad9d85cce850ef