summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorrich cannings <richc@google.com>2012-08-20 13:20:14 -0700
committerrich cannings <richc@google.com>2012-08-20 13:20:14 -0700
commit706e8ba26bf0de19ad5f736516dae40c4c88c2d7 (patch)
tree2c45b61e1420f9a7442de8517b1eca6802d507c0 /test-runner
parent99de2459e200e0c86d55d5eee7ea000fd030990f (diff)
downloadframeworks_base-706e8ba26bf0de19ad5f736516dae40c4c88c2d7.zip
frameworks_base-706e8ba26bf0de19ad5f736516dae40c4c88c2d7.tar.gz
frameworks_base-706e8ba26bf0de19ad5f736516dae40c4c88c2d7.tar.bz2
Pass URLs to package verifiers
This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index ef14404..a85c8b5 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -39,6 +39,7 @@ import android.content.pm.ProviderInfo;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.content.pm.UserInfo;
+import android.content.pm.VerificationParams;
import android.content.pm.VerifierDeviceIdentity;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
@@ -519,6 +520,16 @@ public class MockPackageManager extends PackageManager {
throw new UnsupportedOperationException();
}
+ /**
+ * @hide
+ */
+ @Override
+ public void installPackageWithVerificationAndEncryption(Uri packageURI,
+ IPackageInstallObserver observer, int flags, String installerPackageName,
+ VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public void verifyPendingInstall(int id, int verificationCode) {
throw new UnsupportedOperationException();