OSDN Git Service

More multi-user stuff:
authorDianne Hackborn <hackbod@google.com>
Thu, 6 Sep 2012 21:21:19 +0000 (14:21 -0700)
committerDianne Hackborn <hackbod@google.com>
Fri, 7 Sep 2012 20:55:23 +0000 (13:55 -0700)
commit5e03e2ca7d25b899b129baad2dd5eca6bf99d88a
tree10c601a58b0bbeb6902d43e0862c58f3ec121c78
parent970683c5d42a1d8588d656d4e570ce4f0f6e0abc
More multi-user stuff:

- New (hidden) isUserRunning() API.
- Maintain LRU list of visited users.
- New FLAG_IS_DATA_ONLY for ApplicationInfo.
- Clean up pending intent records when force-stopping a user (or package).
  (Also fixes bug #6880627: PendingIntent.getService() returns stale
  intent of force stopped app)
- Fix force-stopping when installing an app to do the force-stop across
  all users for that app.
- When selecting which processes to kill during a force stop, do this
  based on the actual packages loaded in the process, not just process
  name matching.
- You can now use --user option in am when starting activities, services,
  and instrumentation.
- The am --user option accepts "current" and "all" as arguments.
- The pm uninstall command now uninstalls for all users, so it matches
  the semantics of the install command.
- PhoneWindowManager now explicitly says to start home in the current
  user.
- Activity manager call to retrieve the MIME type from a content provider
  now takes a user argument, so it will direct this to the proper user.
- The package manager uninstall paths are now implemented around
  PackageSetting, not PackageParser.Package.  This allows them to work
  even if the application's apk has been removed (in which case it only
  exists as a PackageSetting, not the PackageParser.Package parsed from
  the apk).

Change-Id: I3522f6fcf32603090bd6e01cc90ce70b6c5aae40
17 files changed:
api/current.txt
cmds/am/src/com/android/commands/am/Am.java
cmds/pm/src/com/android/commands/pm/Pm.java
core/java/android/app/ActivityManager.java
core/java/android/app/ActivityManagerNative.java
core/java/android/app/ContextImpl.java
core/java/android/app/IActivityManager.java
core/java/android/content/ContentResolver.java
core/java/android/content/pm/ApplicationInfo.java
core/java/android/content/pm/InstrumentationInfo.java
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
services/java/com/android/server/am/ActiveServices.java
services/java/com/android/server/am/ActivityManagerService.java
services/java/com/android/server/am/PendingIntentRecord.java
services/java/com/android/server/am/ProviderMap.java
services/java/com/android/server/pm/PackageManagerService.java
services/java/com/android/server/pm/Settings.java