02c8990bd6125f05cb32561727d559dc9327a601 |
|
15-Nov-2016 |
Kenny Guy <kennyguy@google.com> |
Allow overriding max profile in debugable builds. Support a system property on debugable builds to override the max number of managed profiles to allow easier dogfooding of multiple profiles. Support 3 different badge colours for managed profiles. Bug: 30473760 Test: runtest -c com.android.server.pm.UserManagerServiceCreateProfileTest frameworks-services Test: runtest -c com.android.server.pm.UserManagerServiceUserInfoTest frameworks-services Test: manual - attempting to create 2 profiles with adb fails, passes once I set the property. Change-Id: Ie7fb19048a04a01572666f229283152254d0ffc3
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
d3986be5e40115158cb3e41f251cad41cf08eeab |
|
01-Nov-2016 |
Tony Mak <tonymak@google.com> |
Add javadoc for profileGroupId According to the implementation of getProfileParent, profileGroupId == parent user id. And we have already assumed this is true in some part of code in DPMS. Test: Javadocs change Change-Id: Ie48fdf24fb0428d4ee3f09bed2ac26cb17e1ced9
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
434a74f5589844987048cf51e05cc20e5321a2a2 |
|
04-Aug-2016 |
Robin Lee <rgl@google.com> |
Remove another fw.show_hidden_users We've finished developing managed profiles now. Change-Id: Ic587fce990e06c676d0819c63439a31b9ca07dcb
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
eb437d4dffb310857e19bb619778dc5b6b7febff |
|
29-Apr-2016 |
Amith Yamasani <yamasani@google.com> |
Retail mode flag and some clients for it Bug: 27280140 Change-Id: Ide33e941b9c71eb925b5977d0b0d62198537ca14
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
bd91e2f3f6aca512a02be645b2515b5e3331e177 |
|
22-Mar-2016 |
Jeff Sharkey <jsharkey@android.com> |
Update PRE_BOOT_COMPLETED for FBE. Now that CE data isn't available until after a user is unlocked, we need to delay the PRE_BOOT_COMPLETED broadcasts. This is done by adding a new RUNNING_UNLOCKING user state to the UserController lifecycle. We now track the last fingerprint a user was logged in under, and we dispatch PRE_BOOT receivers when that fingerprint changes. To work around battery pull issues, we only persist the updated fingerprint once all PRE_BOOT receivers have finished. This is less granular than the original solution, but it's still correct. We only consider a user as "logged in" once it transitions into the RUNNING_UNLOCKED state. When starting a process, track if the user was "unlocked" when started, so that we only spin up unaware providers in processes started before user unlock. Add generic IProgressListener to communicate PRE_BOOT progress and strings up to lock screen. For now, LockSettingsService just blocks until finished, but it could display these strings in the future. Bug: 27220885 Change-Id: I349439776b885acd32f6a578d8951ffd95640be2
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
6f48d6ef35df55e092d18619fe1f92a2593682d4 |
|
23-Mar-2016 |
Amith Yamasani <yamasani@google.com> |
Localize owner's name to current locale until changed Don't set a name for the system user and always return a localized name until the user explicitly sets a name. Bug: 27814125 Change-Id: I7972a45d77c07d9efbd67d5b360bacee46247a66
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
1ddda4793c26fd249590fd3549cf060ecb7c157b |
|
12-Feb-2016 |
Lenka Trochtova <ltrochtova@google.com> |
Prevent ephemeral user from being re-entered after stop. Once the ephemeral user stops, the user's deletion is scheduled. It takes a while before the user actually disappears and it is not desirable for the user to be re-entered in the meantime. Mark the user as disabled on stop and check this flag in the activity manager to prevent the user from being switched to again. Also hide the user from user-switching UI. BUG: 26795729 BUG: 26780152 Change-Id: I83a61674958954b5a210114b88ffa5ae55922c1f
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
12747879b0204b9dfee997eddc981d09289e8b77 |
|
07-Dec-2015 |
Amith Yamasani <yamasani@google.com> |
User creation with an intent New API for an app to request creating a new user with a given user name and seed account information for the SetupWizard to use when that user is switched into. Also adds system APIs to read the seed account data from UserManager. Bug: 22776757 Change-Id: I0bc3f11ee19c15e0ee2a908c88d98b13296cc30d
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
c4dd021322d38ea32ac49930e904b6d08ce6490c |
|
18-Nov-2015 |
Lenka Trochtova <ltrochtova@google.com> |
Introduce ephemeral users. BUG: 24883058 Change-Id: I2e1d6aa184142c2a3dc0415c0cd407573453cf41
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
0a29ecd8a53b5ac63b628e870a344650ff34c4b0 |
|
04-Nov-2015 |
Rubin Xu <rubinxu@google.com> |
Introduce quiet mode state to managed profile users Quiet mode means the user will be free from visual and audio interruptions from apps inside the managed profile, including notifications, widgets and others. This CL adds the underlying state bit to users and exposes various APIs to control and query the quiet mode state. Bug: 22541941 Change-Id: If5f8e5a897843050e83b6ec26cb39561098f12b9
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
a4490622207804ef85f39439ff7b9cb2470f6287 |
|
23-Sep-2015 |
Xiaohui Chen <xiaohuic@google.com> |
Cleanup USER_OWNER in activity and location services Bug: 19913735 Change-Id: Ie2b7acb3fa53b1dcf7319de1eb5bdec585dbf78c
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
06a484adb93c6c969321147b07112684383305f6 |
|
22-Aug-2015 |
Fyodor Kupolov <fkupolov@google.com> |
Non-system users can now have restricted profiles In the non split system user, only USER_OWNER is allowed to have restricted profiles. This is now changed in split user mode, where multiple secondary users can have restricted profiles. Added UserInfo.restrictedProfileGroupId field, which defines parent/child relationship between secondary users and linked restricted profiles. Adjusted shared accounts handling logic to not assume that USER_OWNER is the only owner. Bug: 23191995 Change-Id: I5f3fc2aa4f229103d6e75ec2c3dfce866b8007de
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
2170ee43a176cdfa45dd4d9122a183023831d44b |
|
27-Aug-2015 |
Fyodor Kupolov <fkupolov@google.com> |
Merge "Limit the number of apps running as system user"
|
7db5af124e551554f7a2f1abdd2a486c937910fe |
|
01-Aug-2015 |
Fyodor Kupolov <fkupolov@google.com> |
Limit the number of apps running as system user For the system user, enable apps based on the following conditions: - app has no launcher icons or has INTERACT_ACROSS_USER_FULL permission - app is whitelisted - app is not in the blacklist Bug: 23283899 Change-Id: I90fa266e8cfb28d002e5f792998fdddb6a1e6969
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
bd0e03bb763ae7956ecba35fe5759d4b443158ca |
|
21-Aug-2015 |
Xiaohui Chen <xiaohuic@google.com> |
More USER_OWNER cleanup. Bug: 19913735 Change-Id: I408a92d9dbab2a096407efccb91e2a8bdc22714d
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
b818681dcae157412b897587ff856cd0c531c3f4 |
|
06-Aug-2015 |
Nicolas Prevot <nprevot@google.com> |
Allow non-owner users to have managed profiles. In the split system user model: The only users that are not allowed to have managed profiles are: - purely system user (user 0) - guest users - restricted profiles - managed profiles In the non-split system user model, the behavior does not change: only the primary user can have managed profiles. BUG:22956426 Change-Id: If908c30f110fd3e740770174f050c9b6cf87ce1b
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
7cb69df507f5f7956c52a2868a0d6e89aec6dde2 |
|
14-Jul-2015 |
Xiaohui Chen <xiaohuic@google.com> |
sys user split: refactor systemui user switcher BUG:19913735 Change-Id: I017dd1b03fd163c266b8080b969fb7a2e934e26c
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
70f6c38644a4a6e28c016c265e6987bf00dd61f1 |
|
28-Apr-2015 |
Xiaohui Chen <xiaohuic@google.com> |
Introduce system user and primary user. Bug: 19913735 Change-Id: I2c7855915d778cf80a7154314321ddd90e2eaaac
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
eddeb49a734a524347587e7654025c489fb6331e |
|
09-Sep-2014 |
Adam Lesinski <adamlesinski@google.com> |
ActivityManager shouldn't return null for getCurrentUser There was a race where ActivityManager would return null for getCurrentUser() when switching between guest accounts. This is because the Guest account was marked for deletion while it was still active. Bug:17290209 Change-Id: I224fb4b6836380e5acb7dbeb8f3343d74505f88a
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
df35d570ed25257c6782e632ab1bae5e1603855a |
|
09-Apr-2014 |
Alexandra Gherghina <alexgherghina@google.com> |
Adds an enabled state in UserInfo instead of DevicePolicyManager Bug: 14377459 Change-Id: Ib4ec43d87da96c3dddaf9b7ae1796f261863a182
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
2a764949c943681a4d25a17a0b203a0127a4a486 |
|
02-Apr-2014 |
Kenny Guy <kennyguy@google.com> |
Rename related users to profiles. Rename the related user concept as profiles. When returning profiles of a user include the user as a profile of itself. Change-Id: Id5d4f29017b7ca6844632ce643f10331ad733e1d
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
1a447535cef7e3739d5f763dfe13e568568b9789 |
|
20-Feb-2014 |
Kenny Guy <kennyguy@google.com> |
Hide managed profiles from user switchers. Hide managed profiles from lockscreen user switcher on tablets. Hide managed profiles from power menu user switcher on phones. Add flag to enable multi user ui turned off by default. Change-Id: I4c69a6f7b0f39c249fc85fd940318df1ddab073f
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
a52dc3eb40777b055c0ca8d7885bd2c9577bcd1a |
|
11-Feb-2014 |
Kenny Guy <kennyguy@google.com> |
Add concepts of related users and managed profiles to user manager. Related users are a group that will share things like notifications. Managed profiles are a profile of another user. Change-Id: I2d0532f1abf939810f0fa3fc7c77ad13fa567833
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
67df64b3a48a8157d08a98fa90135d0ac0ee621c |
|
14-Dec-2012 |
Amith Yamasani <yamasani@google.com> |
Shared accounts and sharing of apps API and preliminary implementation for sharing primary user accounts with a secondary user. AbstractAccountAuthenticator has new methods to retrieve and apply a bundle of credentials to clone an account from the primary to a restricted secondary user. The AccountManagerService initiates the account clone when it starts up the user and detects that the user has a shared account registered that hasn't been converted to a real account. AccountManager also has new hidden APIs to add/remove/get shared accounts. There might be further improvements to this API to make shared accounts hidden/visible to select apps. AccountManagerService has a new table to store the shared account information. Added ability in PackageManager to install and uninstall packages for a secondary user. This is required when the primary user selects a few apps to share with a restricted user. Remove shared accounts from secondary users when primary user removes the account. Change-Id: I9378ed0d8c1cc66baf150a4bec0ede56f6f8b06b
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
d4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 |
|
28-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #7211769 and #7244492, thrash around on #7226656. Issue #7211769: Crash dialog from background user has non-working "report" The report button now launches the issue reporter for the correct user. Also for crashes on background users, either disable the report button, or simply don't show the dialog depending on the build config. Issue #7244492: Bugreport button in Quick Settings doesn't actually do anything Now they do. Issue #7226656: second user seeing primary user's apps I haven't had any success at reproducing this. I have tried to tighten up the path where we create the user to ensure nothing could cause the user's applications to be accessed before the user it fully created and thus make them installed... but I can't convince myself that is the actual problem. Also tightened up the user switch code to use forground broadcasts for all of the updates about the switch (since this is really a foreground operation), added a facility to have BOOT_COMPELTED broadcasts not get launched for secondary users and use that on a few key system receivers, fixed some debug output. Change-Id: Iadf8f8e4878a86def2e495e9d0dc40c4fb347021
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
920ace0bbc2d4133dbec991d2636c99a57d6245e |
|
21-Sep-2012 |
Amith Yamasani <yamasani@google.com> |
Query users excluding any being removed Keep track of user creation and last logged-in time. adb shell dumpsys users User switcher shouldn't show users about to be removed. No need to check for singleton for activities. Bug: 7194894 Change-Id: Ic9a59ea5bd544920479e191d1a1e8a77f8b6ddcf
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
5dc5a00e7ebadc085ded7e29feacd17e53698486 |
|
16-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
More multi-user stuff. - New public APIs to find out when a user goes to the foreground, background, and is first initializing. - New activity manager callback to be involved in the user switch process, allowing other services to let it know when it is safe to stop freezing the screen. - Wallpaper service now implements this to handle its user switch, telling the activity manager when it is done. (Currently this is only handling the old wallpaper going away, we need a little more work to correctly wait for the new wallpaper to get added.) - Lock screen now implements the callback to do its user switch. It also now locks itself when this happens, instead of relying on some other entity making sure it is locked. - Pre-boot broadcasts now go to all users. - WallpaperManager now has an API to find out if a named wallpaper is in use by any users. Change-Id: I27877aef1d82126c0a1428c3d1861619ee5f8653
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
b049e212ab7fe8967893c202efcb30fecfdb82fb |
|
08-Sep-2012 |
Jeff Sharkey <jsharkey@android.com> |
Include user identifier in external storage paths. When building external storage paths, always include user in path to enable cross-user paths and aid debugging. Each Zygote process continues to only have access to the appropriate user-specific emulated storage through bind mounts. A second set of mounts continue supporting legacy /sdcard-style paths. For example, a process running as owner has these mount points: /storage/emulated_legacy /storage/emulated_legacy/Android/obb /storage/emulated/0 /storage/emulated/obb Since Environment is created before Zygote forks, we need to update its internal paths after each process launches. Bug: 7131382 Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
2a00329c6d55c6cd9166e01963d7410e95d80d21 |
|
15-Aug-2012 |
Amith Yamasani <yamasani@google.com> |
UserHandle to UserSerialNo mapping Use AtomicFile for usermanager files. Added a MANAGE_USERS permission that apps (signature permission) can use to create/query/modify/remove users. Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
258848d2ae04f447ff1c18023fa76b139fcc0862 |
|
11-Aug-2012 |
Amith Yamasani <yamasani@google.com> |
User Manager service to manage users and query user details Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
b8151ecd6ef4faa5c16d0a4c3abb45ec84d1f97a |
|
19-Apr-2012 |
Amith Yamasani <yamasani@google.com> |
Add an icon to the user information. Store the icon in the user folder under /data/system, similar to how the wallpaper is stored. Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
0b285499db739ba50f2f839d633e763c70e67f96 |
|
15-Apr-2011 |
Amith Yamasani <yamasani@google.com> |
Plumbing in PackageManager and installd for multi-user support. - Create /data/user directory and symlink /data/user/0 -> /data/data for backward compatibility - Create data directories for all packages for new user - Remove data directories when removing a user - Create data directories for all users when a package is created - Clear / Remove data for multiple users - Fixed a bug in verifying the location of a system app - pm commands for createUser and removeUser (will be disabled later) - symlink duplicate lib directories to the original lib directory Change-Id: Id9fdfcf0e62406a8896aa811314dfc08d5f6ed95
/frameworks/base/core/java/android/content/pm/UserInfo.java
|
4b2e934928a2eb65927bd39197198c28c49efb94 |
|
31-Mar-2011 |
Amith Yamasani <yamasani@google.com> |
Package manager changes to store and update user information. Some API stubs for managing users and storing their details. List of users is stored in an xml file. Each user's properties are stored in a separate xml file. Some unit tests for modifying the XML files. Change-Id: If2ce2420723111bd426f6762def3c2afc19a0ae5
/frameworks/base/core/java/android/content/pm/UserInfo.java
|