summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-07-07 22:49:17 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-07-08 18:12:58 -0700
commitad3b2975574f916c14382628d50c710a78064746 (patch)
tree57b6dfd10624fd9e00facac26725e29a9909727f /test-runner
parent3aa1b1e5ec3a4e2074ea054b931cd68df45b43cf (diff)
downloadframeworks_base-ad3b2975574f916c14382628d50c710a78064746.zip
frameworks_base-ad3b2975574f916c14382628d50c710a78064746.tar.gz
frameworks_base-ad3b2975574f916c14382628d50c710a78064746.tar.bz2
Add an API for apps to query if a permisison is denied by policy.
bug:22177216 Change-Id: I32227f55097fae997f33743fd1eee06cb18f47f1
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index ac92dc0..3df7bbc 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -177,6 +177,11 @@ public class MockPackageManager extends PackageManager {
}
@Override
+ public boolean isPermissionRevokedByPolicy(String permName, String pkgName) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public boolean addPermission(PermissionInfo info) {
throw new UnsupportedOperationException();
}