OSDN Git Service

Don't reuse userids that are being cleaned up on boot
authorAmith Yamasani <yamasani@google.com>
Mon, 27 Jun 2016 17:40:09 +0000 (10:40 -0700)
committerAmith Yamasani <yamasani@google.com>
Mon, 27 Jun 2016 17:58:39 +0000 (10:58 -0700)
commitae26189aa9a1a2d20ca2006d591d50d7338eb917
tree066640ff367ea185d654c8c36df3ad65462dd987
parentbb1fb395cae4dd92739db4ce6fa48037ba5383f6
Don't reuse userids that are being cleaned up on boot

During the current session, if we're cleaning up some
old users, mark them as being in the remove pile so
that the userIds are not reused right away. Otherwise
there's a potential for confusing the file-based crypto
layer.

Bug: 29635364
Change-Id: I57a868fbe6c58a02ffcea63809d25eba01360e1e
services/core/java/com/android/server/pm/UserManagerService.java