diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-01-30 10:43:18 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-28 12:55:59 -0800 |
commit | 6d7cb232362d8036875d1d3c3f0e8f5d47a2ad25 (patch) | |
tree | 5fe52ea9b5bd9e0b0aa7e3dbc312733858d7d8ed /cmds/pm | |
parent | 894b5b9998a9c8417cd7c9cbd4bdf03074475160 (diff) |
Sending explicit broadcast to the launcher when a package is installed
Test: Manually tested on device and add CTS tests
Bug: 32920609
Change-Id: Ic23c077a469fb41d6c4e123d4bc022899f634198
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 1aef3639e449..91520f1a7d8e 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -547,6 +547,12 @@ public final class Pm { throw new IllegalArgumentException("Missing inherit package name"); } break; + case "--pkg": + sessionParams.appPackageName = nextOptionData(); + if (sessionParams.appPackageName == null) { + throw new IllegalArgumentException("Missing package name"); + } + break; case "-S": final long sizeBytes = Long.parseLong(nextOptionData()); if (sizeBytes <= 0) { |