summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorrich cannings <richc@google.com>2012-07-26 14:07:53 -0700
committerrich cannings <richc@google.com>2012-08-02 11:26:47 -0700
commit24713907fe4632d263aea82f7a35c8fb08918a09 (patch)
treefbf80caed2388c579d64b20b86b9b9f2586b1640 /test-runner
parent26ea2e5df58edfd14717c86854f6bb99975b6a77 (diff)
downloadframeworks_base-24713907fe4632d263aea82f7a35c8fb08918a09.zip
frameworks_base-24713907fe4632d263aea82f7a35c8fb08918a09.tar.gz
frameworks_base-24713907fe4632d263aea82f7a35c8fb08918a09.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: If9ff6663ad7f3426b7aea2aceb1413b689788138
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index 0399b3b..b1224d3 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -563,7 +563,17 @@ public class MockPackageManager extends PackageManager {
@Override
public void installPackageWithVerification(Uri packageURI, IPackageInstallObserver observer,
int flags, String installerPackageName, Uri verificationURI,
- ManifestDigest manifestDigest, ContainerEncryptionParams encryptionParams) {
+ ManifestDigest manifestDigest, ContainerEncryptionParams encryptionParams,
+ Uri originatingURI, Uri referrer) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @hide
+ */
+ @Override
+ public void installPackageWithOrigin(Uri packageURI, IPackageInstallObserver observer,
+ int flags, String installerPackageName, Uri originatingURI, Uri referrer) {
throw new UnsupportedOperationException();
}