diff options
author | Benjamin Franz <bfranz@google.com> | 2015-02-18 16:11:18 +0000 |
---|---|---|
committer | Benjamin Franz <bfranz@google.com> | 2015-04-07 11:02:46 +0100 |
commit | 39fb7fd730dc2113ced7e663d7a35e48a4c6b1ae (patch) | |
tree | 62072f007251cdfe1ab1f93e68d838d53e9f2ad4 /cmds/pm | |
parent | 80ac603651b56c7f22268fbafb65206f8c03d6ba (diff) | |
download | frameworks_base-39fb7fd730dc2113ced7e663d7a35e48a4c6b1ae.zip frameworks_base-39fb7fd730dc2113ced7e663d7a35e48a4c6b1ae.tar.gz frameworks_base-39fb7fd730dc2113ced7e663d7a35e48a4c6b1ae.tar.bz2 |
Allow silent package install for device owner.
Allow the device owner to silently install and remove packages using the
PackageInstaller APIs. Show notifications to the user after the
installation / deletion was successful.
Bug: 19422461
Change-Id: I0506e18c510efd9d04c4aea9b60a37456e689615
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 23a8629..b43c462 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1385,7 +1385,8 @@ public final class Pm { } final LocalIntentReceiver receiver = new LocalIntentReceiver(); - mInstaller.uninstall(pkg, flags, receiver.getIntentSender(), userId); + mInstaller.uninstall(pkg, null /* callerPackageName */, flags, + receiver.getIntentSender(), userId); final Intent result = receiver.getResult(); final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, |