SearchManagerService made multi-user aware

Cache Searchables per user and query package manager through the
private interface.

Change-Id: I1d24fdd27cce8c27be45287cbfcb4df1e2ce2cf1
This commit is contained in:
Amith Yamasani
2012-06-14 11:32:13 -07:00
parent 39d39f8ce9
commit 5bb87cd9b8
4 changed files with 73 additions and 33 deletions

View File

@ -9383,7 +9383,7 @@ public class PackageManagerService extends IPackageManager.Stub {
@Override
public UserInfo getUser(int userId) {
enforceSystemOrRoot("Only the system can remove users");
enforceSystemOrRoot("Only the system can query user");
return sUserManager.getUser(userId);
}