From ad3b2975574f916c14382628d50c710a78064746 Mon Sep 17 00:00:00 2001 From: Svet Ganov Date: Tue, 7 Jul 2015 22:49:17 -0700 Subject: Add an API for apps to query if a permisison is denied by policy. bug:22177216 Change-Id: I32227f55097fae997f33743fd1eee06cb18f47f1 --- test-runner/src/android/test/mock/MockPackageManager.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test-runner') 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(); } -- cgit v1.1