summaryrefslogtreecommitdiffstats
path: root/cmds/pm
diff options
context:
space:
mode:
authorRich Cannings <richc@google.com>2012-08-08 12:46:06 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-08 12:46:06 -0700
commite1d7c711df3e3a2d2f195457882aa4ddb5626167 (patch)
treed27b6e508c1bdbd29028034471ee46acfe5d6cf8 /cmds/pm
parent24713907fe4632d263aea82f7a35c8fb08918a09 (diff)
downloadframeworks_base-e1d7c711df3e3a2d2f195457882aa4ddb5626167.zip
frameworks_base-e1d7c711df3e3a2d2f195457882aa4ddb5626167.tar.gz
frameworks_base-e1d7c711df3e3a2d2f195457882aa4ddb5626167.tar.bz2
Revert "Pass URLs to package verifiers"
This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09 Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
Diffstat (limited to 'cmds/pm')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java20
1 files changed, 2 insertions, 18 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java
index 4311c06..4cb5270 100644
--- a/cmds/pm/src/com/android/commands/pm/Pm.java
+++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -782,7 +782,6 @@ public final class Pm {
String macAlgo = null;
byte[] macKey = null;
byte[] tag = null;
- String referrer = null;
while ((opt=nextOption()) != null) {
if (opt.equals("-l")) {
@@ -846,13 +845,6 @@ public final class Pm {
showUsage();
return;
}
- } else if (opt.equals("--referrer")) {
- referrer = nextOptionData();
- if (referrer == null) {
- System.err.println("Error: must supply argument for --referrer");
- showUsage();
- return;
- }
} else {
System.err.println("Error: Unknown option: " + opt);
showUsage();
@@ -900,13 +892,6 @@ public final class Pm {
final Uri apkURI;
final Uri verificationURI;
- final Uri referrerURI;
-
- if (referrer != null) {
- referrerURI = Uri.parse(referrer);
- } else {
- referrerURI = null;
- }
// Populate apkURI, must be present
final String apkFilePath = nextArg();
@@ -931,7 +916,7 @@ public final class Pm {
PackageInstallObserver obs = new PackageInstallObserver();
try {
mPm.installPackageWithVerification(apkURI, obs, installFlags, installerPackageName,
- verificationURI, null, encryptionParams, apkURI, referrerURI);
+ verificationURI, null, encryptionParams);
synchronized (obs) {
while (!obs.finished) {
@@ -1451,8 +1436,7 @@ public final class Pm {
System.err.println(" pm list libraries");
System.err.println(" pm path PACKAGE");
System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]");
- System.err.println(" [--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>]");
- System.err.println(" [--referrer <URI>] PATH");
+ System.err.println(" [--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>] PATH");
System.err.println(" pm uninstall [-k] PACKAGE");
System.err.println(" pm clear PACKAGE");
System.err.println(" pm enable PACKAGE_OR_COMPONENT");