OSDN Git Service

Handle stopped users in onCleanupUser
authorFyodor Kupolov <fkupolov@google.com>
Thu, 16 Mar 2017 20:01:12 +0000 (13:01 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Thu, 16 Mar 2017 20:01:12 +0000 (13:01 -0700)
commitb9da4e4637a9992023c24d0c0f0115cdbff8acf7
tree9ad41d514f17077c158a75987c9319b157cbb817
parent352b0f05cbe3d33d780124e749249b32204145d5
Handle stopped users in onCleanupUser

This will also take care of the case when the user is removed.

Previously CE database wasn't closed after user was stopped.

Bug: 35988361
Test: Create u10 - switch - add account - switch to u0 - stop u10
Test: Create u10 - switch - add account - switch to u0 - remove u10
Change-Id: I6df61a8b1d00b28f2985d60861dd1b74e3e5942b
services/core/java/com/android/server/accounts/AccountManagerService.java