summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/UserId.java
Commit message (Collapse)AuthorAgeFilesLines
* Rename UserId to UserHandle.Dianne Hackborn2012-08-161-123/+0
| | | | | | This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
* Don't back up / restore non-primary users' dataChristopher Tate2012-08-131-0/+2
| | | | | | | | | For now only the device owner "user" gets cloud backups. Also, only the device owner account has access to local backup/restore. Bug 6956438 Change-Id: I87d7ba5969e606c23f4214469f9bf2fd47a6c61b
* Start the correct settings from the status bar.Amith Yamasani2012-08-081-0/+5
| | | | | | | | | | | Added a new method to Context: startActivityAsUser() requiring the INTERACT_ACROSS_USERS_FULL permission. Show the correct Recents list, based on current user. Added a getRecentTasksForUser() in ActivityManager. Hidden and requires the INTERACT_ACROSS_USERS_FULL permission. Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
* Merge "Package restrictions per user"Amith Yamasani2012-03-221-0/+8
|\
| * Package restrictions per userAmith Yamasani2012-03-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Packages can be enabled/disabled per user. This requires maintaining stopped/launched states and enabled / disabled components and packages per user. Refactored pm.Settings and PackageSettingsBase to keep track of states per user. Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml Changed intent resolution to handle individual user restrictions. Bunch of IPackageManager calls now have a userId argument. Make AppWidgetService handle removals of packages. Added some tests for pm.Settings and PackageManager. Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
* | Move network policy to per-appId (instead of UID).Jeff Sharkey2012-03-221-0/+9
|/ | | | | | | | To support multi-user, store network policy per-appId and expand to apply rules to all UserInfo on device. Bug: 6140462 Change-Id: Ic0866b4d41c8c60cc1c0a597f0de927b92b65b1e
* Multi-user - wallpaper serviceAmith Yamasani2012-02-101-0/+4
| | | | | | | | | | | | - Allow each user to have their own wallpaper (live or static). - Migrate old wallpaper on upgrade. - Update SystemBackupAgent to backup/restore from primary user's new wallpaper directory. Reduce dependency on Binder.getOrigCallingUser() by passing the userId for bindService. Change-Id: I19c8c3296d3d2efa7f28f951d4b84407489e2166
* Some hardening of isolated processes by restricting access to services.Dianne Hackborn2012-02-091-0/+5
| | | | | | | | | | | | | | | Services now must explicitly opt in to being accessed by isolated processes. Currently only the activity manager and surface flinger allow this. Activity manager is needed so that we can actually bring up the process; SurfaceFlinger is needed to be able to get the display information for creating the Configuration. The SurfaceFlinger should be safe because the app doesn't have access to the window manager so can't actually get a surface to do anything with. The activity manager now protects most of its entry points against isolated processes. Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
* Multi-user - 1st major checkinAmith Yamasani2012-02-031-0/+90
Switching activity stacks Cache ContentProvider per user Long-press power to switch users (on phone) Added ServiceMap for separating services by user Launch PendingIntents on the correct user's uid Fix task switching from Recents list AppWidgetService is mostly working. Commands added to pm and am to allow creating and switching profiles. Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed