History log of /frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cae13b0afff4b1ef3da25a31f2eb9b16faa14a4b 07-Jun-2016 David Sehr <sehr@google.com> Add usage line for dump-profiles

Previous commit did not include the usage line to be printed when user types
adb shell cmd package

Bug: 28748264
Change-Id: I0a684dbc44c8cc5ec7cd4eba82ce18feed53368c
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
a87770828637813dacd176ba3c8d3810f7ed6ab8 25-May-2016 David Sehr <sehr@google.com> Installer connection support for dump_profiles

Bug: 28748264
Change-Id: I22322b5a0716a030d9873edcc6dfd7f3ef2d3bca
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
fb6cf77a6721f2af4df09b33d649f66ad79559f6 27-May-2016 Nicolas Geoffray <ngeoffray@google.com> Cleanup performDexOpt with instruction sets.

Always use the packages' derived instruction sets.

This fixes a bug where otas and background dexopt would only
look at one instruction set.

bug:28994818

Change-Id: I730b59d24943c71de30adb485a823fd79c6806a6
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
0c4e6a8da3405f742e5cef8afdf579d58b6f1246 14-May-2016 Dianne Hackborn <hackbod@google.com> Fix issue #27532364: Security Vulnerability in IIntentSender.send

We need to make IIntentSender oneway... but when the system is
calling that for itself, it needs to be able to return a result code.

Solution: instead of directly calling the interface, we have a new
IPC through the activity manager. If the thing being used is the
activity manager impl, it can do the synchronous send and return
the result directly in place. If not, you only get asynchronous
sending and thus never a failure result back (too bad for you!).

Change-Id: I4096e5b00063e8dba66230585a2dfe67e35e8092
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
5f201e682545c93ee93c9f17215b986f55bce348 11-May-2016 Richard Uhler <ruhler@google.com> Fix --reset argument to 'cmd package compile'.

Bug: 28562124
Change-Id: If5c2161e79ee1666943b591ac652ae9075e84390
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
568a969f605043a044d08f3a58e7c1176a8d5572 04-May-2016 Richard Uhler <ruhler@google.com> Remove inconsistent 'cmd package compile' documentation.

Bug: 28562124
Change-Id: I89e6cd0d7ebb717bf1b143b615f717a1f6573549
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
62e7d26a0c267ac76f641a17e66e4f9c11b887c9 27-Apr-2016 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #28403313: Improve package manager query commands" into nyc-dev
b1072718130b998e6d25bc3358eefa62b4fa5a2d 27-Apr-2016 Todd Kennedy <toddke@google.com> Don't override pre-release target sdk

If a package targets a pre-release SDK [eg a letter version] it should not
be allowed to be upgraded by a release SDK [eg a number version]. If one
absolutely must upgrade to a release SDK, use the "--force-sdk" option
during install.

Bug: 28345311
Change-Id: Ic9fb209968e7c5da2c80c5ca4c0f44f5125f610a
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
d6e4aa499a6cda1538afcdde780c7ecb47bd12ae 26-Apr-2016 Dianne Hackborn <hackbod@google.com> Fix issue #28403313: Improve package manager query commands

Change-Id: I69122cb2ba04e7d8e5e2ff1aaeb840a28dfc3e14
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
efc4a344a173ae20ec72b8c05c45b794687fda87 22-Mar-2016 Andrei Stingaceanu <stg@google.com> AfW - suspend apps - API polish

* renamed getPackageSuspended => isPackageSuspended
* does not return false for an error, instead throws
NameNotFoundException if the package could not be
found, or if there is an unknown RemoteException,
wraps it in a RuntimeException and rethrows.

Bug: 27532430
Bug: 22776761
Change-Id: Iee00600089b1c0556a3312b10456826464fa8f9f
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
8bc758b4569bc2c6ea29b144762920bd047c6057 28-Mar-2016 Calin Juravle <calin@google.com> Read "dalvik.vm.usejitprofiles" for package compile command

Bug: 27859630
Change-Id: I8c6fff6762646e4abe5b72428c23ceefa90b1f53
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
43fc2447df2354fcb7b843a86b1c266946ca5702 25-Mar-2016 Andreas Gampe <agampe@google.com> PackageManager: Move compilation reasons to PMS

Move the reasons to PackageManagerService (making them public) so
they can be used by clients.

Bug: 27189430
Change-Id: I30e1f823f9297e95c5b1e389004a4fd3052d5702
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
bdd30d86ef98456161069d11481b2ccd25a11b4e 20-Mar-2016 Andreas Gampe <agampe@google.com> Frameworks/base: Refactor package manager

Introduce a mapping between dexopt reasons and compiler filters. Use
reasons in package manager and other classes, where possible.

Change PackageDexOptimizer to accept a compilation filter. Adapt for
the split-out profile merging. Pass compilation filter to installd.

Bug: 27689078
Change-Id: I8c0ea6f10fbfdbd096adecc52abfd2466d048fdc
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
4828a59d68570270875d43d29b1ee25b799a923d 16-Mar-2016 Makoto Onuki <omakoto@google.com> Add "pm set-home-activity"

This is needed to change the default launcher on CTS for
ShortcutManager.

- When the default set with DPM.addPersistentPreferredActivity() is
still stronger.

- Ideally we should unify the code with HomeSettings, but I couldn't
find a good way to do this.

- I didn't make it to work to set the default for any intents
because building an intent filter from a command line would be
painful.

Bug 27548047

Change-Id: I66b153c20c7796147f77214b483112629f9d80c5
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
f96eee36df0cc987bafd1f01ce69504191efb8b8 10-Mar-2016 Todd Kennedy <toddke@google.com> Merge "remove splits" into nyc-dev
eb9b05392ad047863244f9e07a3b10e9c0561e39 08-Mar-2016 Todd Kennedy <toddke@google.com> remove splits

Individual splits can now be removed for an application. The
application will be terminated if it's running when a split is
removed.

To remove a split, either use either "uninstall":
$ adb shell cmd package uninstall <PACKAGE> <SPLIT>

or "install-remove":
$ adb shell cmd package install-create -r -p <PACKAGE>
$ adb shell cmd package install-remove <SESSION> <SPLIT>
$ adb shell cmd package install-commit <SESSION>

For "install-remove" you must use '-r' and '-p' when creating
the session.

Bug: 27547051
Change-Id: I4d71a19ad45e39f6622d9ab6791ea8c4230a79e0
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
cf0469520e1c49a48a1d04c79883e7405ed3a059 08-Mar-2016 David Brazdil <dbrazdil@google.com> Fix 'cmd package compile' help message

Change-Id: I6d4fc505b509569793c5e61410327b4c69487a43
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
ce389e53b158b6737d3fb4232bbac22fcb07b0e5 08-Mar-2016 David Brazdil <dbrazdil@google.com> Rename 'all' compile mode to 'full'

The name of the full-AoT compile mode is confusing. We should change it.

Change-Id: I9cba83e398fb4ae0efb1a25ff257ba79ab105386
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
9aa6db03f0a317b8414af760b8b1ee6331bedc46 08-Mar-2016 David Brazdil <dbrazdil@google.com> Add option to clear profile data to 'cmd package compile'

Adds an option which clears all profile data of a given package.

Bug: 27516490
Change-Id: Ie83ef1f06ca47d35ffb206c29341dc68166afeb3
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
990fb6b5c91be62078a698ee1c01e24d33364c85 01-Mar-2016 David Brazdil <dbrazdil@google.com> Add option to compile all packages with 'cmd package compile'

To help investigate performance regressions, an option is added to
'adb shell cmd package compile' to compile all packages with the
given mode.

Bug: 27391290
Change-Id: I70a3a518e08b54535bb34f13f0cedda3a1f7085f
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
d5896630f6a2f21da107031cab216dc93bdcd851 05-Mar-2016 Jeff Sharkey <jsharkey@android.com> Move more PM calls to ParceledListSlice.

Since the data returned by these calls can grow unbounded based on
various GET flags, we need to switch 'em over.

Bug: 27391893
Change-Id: Ie849ca30dbaaa91158da4c83675657715629a0ee
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
eb84b1843a3f6805c6109c1d9d023550229a3fc5 26-Jan-2016 Andrei Stingaceanu <stg@google.com> Suspend packages - one call for multiple packages

Refactor setPackageSuspended into setPackagesSuspended. The rationale
is that the consumers of this API are likely to want to remove
multiple packages at once. Rather than calling the API N times, call
it just once.

The good part is that we already have the broadcast intent for
suspended packages take an array so only one broadcast. Less stress
on the system.

Another good part is that (right now) we only have one consumer of
this API and it will be easy to make changes once this CL goes in.

As a shell command, for consistency only allowed one package at
a time.

Bug: 22776761
Change-Id: Ic8b8cf64d0a288ea3a282bb7b72f9d663b3b0049
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
5ae4e73ef0747c2d08a901f1a76d8fb8ee64a53a 17-Feb-2016 Andrei Stingaceanu <stg@google.com> Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev
355b232d7998cfc9b29d42a0356390e25191bcbd 12-Feb-2016 Andrei Stingaceanu <stg@google.com> Suspend packages - new API for retrieving the suspended status

Instead of always rebuilding the full ApplicationInfo for a
package when callers are only interested in the suspended status
add a new fast API in Packagemanager (which only checks the
suspended user setting for the requested package and returns
a boolean) and change the appropriate caller code too.

Bug: 26794775
Bug: 22776761
Change-Id: Ide8428ef734479360d5a8a75fd8e0ed8ddf2da7a
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
115d2c189a46f535778d9dd0923f703ff2f888fe 16-Feb-2016 Jeff Sharkey <jsharkey@android.com> Add feature versions for devices and apps.

We're starting to see more instances of device features that will
increment separately from the SDK API level, such as camera HAL,
GPU capabilities, Bluetooth, and other hardware standards.

This change adds the ability for device features to specify a
version, which is defined to be backwards compatible. That is, apps
requesting an older version of a feature must continue working on
devices with a newer version of that same feature.

When a version is undefined, we assume the default version "0".

Bug: 27162500
Change-Id: If890bf3f3dbb715e8feb80e7059a0d65618482ea
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
493411ace40a8b4a90be70576f361c5b7515f29d 01-Feb-2016 David Brazdil <dbrazdil@google.com> Add 'package compile' shell command

Bug: 26707406
Change-Id: I554969c9f3b3153179370d3d23a88fa7e8693885
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
2e931f56c77cf53df9daf99d5afdd7bc4c109a54 28-Jan-2016 Dianne Hackborn <hackbod@google.com> Some small binder shell command improvements.

- Improve documentation.
- Add low-level access to input/output streams.

Change-Id: I3892be222d6fd919b164fa4e4882185940947f70
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
50ea35f6695539a03e2c6efe61eca03b598c9c18 17-Dec-2015 Todd Kennedy <toddke@google.com> Print "Success" on success

Change-Id: I274e2aa5d840fee4f57f5a4f2f73af01f0587847
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
8d9366cfe9657e6884c00e728bc3b4e8b191bc53 16-Dec-2015 Todd Kennedy <toddke@google.com> Remove 2nd line from failure

In an attempt to provide more detailed information to the end-user, we
caused tests to fail [they parse the output of the 'pm' command]. Remove
the 2nd line of the output that was causing the failure.

Also took the opportunity to merge changes from the Pm command to the
Cmd command.

Bug: 26131598
Change-Id: I459f9ec8978d87dd571136222f780039e426474e
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
1e2839188fb49575b86646d3aadb355c81ef9cc5 26-Nov-2015 Andrei Stingaceanu <stg@google.com> Wire call to suspend a package

Adds APIs in DevicePolicyManager and PackageManager for allowing
a device admin to suspend a package. PackageManagerService sets
or unsets a new PackageUserState 'suspended' setting. Terminal
command to suspend/unsuspend has been added via
PackageManagerShellCommand (as root).

Next steps:
* use the new 'suspended' setting for denying access to start app
(probably in ActivityStackSupervisor)
* broadcast a PACKAGE_(UN)SUSPENDED intent for launchers to pick up
* remove app from recents (go further and kill it if it is running)
* erase existing notifications for this app

Bug: 22776576
Change-Id: I718b3498f6a53cc0c6fdfb6d15031e53ddca4353
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
6ac42aeed905181b484f97a53db57a17134ef7a8 09-Dec-2015 Dianne Hackborn <hackbod@google.com> Add a mechanism for broadcasts to control background dispatching.

Right now this is just for the BOOT_COMPLETED broadcast to allow
all apps to receive it.

Also clean up the dumpsys of the broadcast queue to not have
every little detail of ResolveInfo+ActivityInfo+ApplicationInfo,
which is just not useful and makes reading the broadcast queue
debug output a lot harder because of so much noise there is.

And rename the package shell query-intent-* commands to a
shorter query-* form.

Change-Id: I0d01565babb87e68b840c9756a2ea730d699efc7
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
c72b3101ee368d2a9943e4436ede679acfa38f92 07-Dec-2015 Todd Kennedy <toddke@google.com> Merge "Add ephemeral installs"
2699f065558ba78066887210b0c7346105959860 20-Nov-2015 Todd Kennedy <toddke@google.com> Add ephemeral installs

* Add a new --ephemeral argument to 'adb install'
* Add plumbing to internally track ephemeralness
* Create new app directory for ephemeral installs

Bug: 25119046
Change-Id: I1d379f5ccd42e9444c9051eef2d025a37bd824fe
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
99878e9b1c599ae4dae0975245b4cead1c47f1a1 03-Dec-2015 Dianne Hackborn <hackbod@google.com> Add package command to print resolve activity.

Change-Id: I020a2b0e27f1430d9c2e9bf64f949e26610db147
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
3f24edf0dd57b5a4daa0e106ce66cac7472e2d2b 19-Nov-2015 Felipe Leme <felipeal@google.com> Fixed typos.

Change-Id: I13f2a0cd9b5e41a6af27fbbc6f33ecc0241b3c29
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
3cdb56efea044112bfe1b97b3ed78ee05e0dba46 11-Nov-2015 Dianne Hackborn <hackbod@google.com> Some debugging improvements.

- Fix dumping of package manager intent filters so the option
to print the filter detail works again.
- Extend dump resolvers to allow you to specify the specific
types of resolvers you'd like to dump.
- Add new package manager commands for querying activities,
services, receivers.
- Move the code for parsing a command line into an intent to
the framework, so it can be used by the new package manager
commands and later elsewhere.

Change-Id: I56ea2bb8c3dd0e5198ee333be8f41ad9dcdb626f
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
72cfcd02b89838264b018e9b9417d2829c87b7e2 04-Nov-2015 Todd Kennedy <toddke@google.com> Move 'un/install' to cmd

Move the implementation of the install variants and uninstall to the cmd
command. Additionally, make two other important changes: 1) replace calls
to the legacy PackageManager#installPackageAsUser with the PackageInstaller
2) allow streaming package bits for 'pm install'

Change-Id: I5680f57208d377daadb69b2cc09c233c02fe5016
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
18bc3305e43a040018add48c97cfbc7b3d9ecf7c 09-Nov-2015 Todd Kennedy <toddke@google.com> Revert "Move 'un/install' to cmd"

This reverts commit ec059d839de6d061085dcfd85ce6565dcf4d5b69.

Change-Id: Ieaa1373e96fb4cc20aa41c3159518bd9e86c572b
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
ec059d839de6d061085dcfd85ce6565dcf4d5b69 04-Nov-2015 Todd Kennedy <toddke@google.com> Move 'un/install' to cmd

Move the implementation of the install variants and uninstall to the cmd
command. Additionally, make two other important changes: 1) replace calls
to the legacy PackageManager#installPackageAsUser with the PackageInstaller
2) allow streaming package bits for 'pm install'

Change-Id: Ia49dac0ccd6470f9d1c1964bdeb3c0b22b856075
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java
60459abb211a11caf71238a44f543fdc18289772 30-Oct-2015 Todd Kennedy <toddke@google.com> Implement shell commands for package and user services

Only implement the 'list' package service command. More will follow
in future CLs.

Change-Id: Iae225cd4ee63c7d468a4fd882d8cb4b6b76ccc09
/frameworks/base/services/core/java/com/android/server/pm/PackageManagerShellCommand.java