summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-07-27 11:11:19 -0700
committerKenny Root <kroot@google.com>2011-08-15 17:26:31 -0700
commit5ab2157bf1f105b02d3e2913cd3a33f9765b74ca (patch)
tree5c2241ddca3526545b73472ed0006eaba0439da1 /test-runner
parentdd7bc9f457204e60feeea53b0b12ba706d6964df (diff)
downloadframeworks_base-5ab2157bf1f105b02d3e2913cd3a33f9765b74ca.zip
frameworks_base-5ab2157bf1f105b02d3e2913cd3a33f9765b74ca.tar.gz
frameworks_base-5ab2157bf1f105b02d3e2913cd3a33f9765b74ca.tar.bz2
Infrastructure to support package verifier
Allow a package verifier to approve or disapprove of a package being installed. Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index d84f1e5..501c219 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -37,6 +37,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.ManifestDigest;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
@@ -533,4 +534,22 @@ public class MockPackageManager extends PackageManager {
public void updateUserFlags(int id, int flags) {
throw new UnsupportedOperationException();
}
+
+ /**
+ * @hide
+ */
+ @Override
+ public void installPackageWithVerification(Uri packageURI, IPackageInstallObserver observer,
+ int flags, String installerPackageName, Uri verificationURI,
+ ManifestDigest manifestDigest) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @hide
+ */
+ @Override
+ public void verifyPendingInstall(int id, boolean verified, String failureMessage) {
+ throw new UnsupportedOperationException();
+ }
}