summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-04-16 10:32:04 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2015-04-17 20:43:56 +0000
commit16a16899505ec0a9ede5b76650bfb8817b3227c7 (patch)
treeab1ff64e6befd59d55de65dbe7a89614feadcd2f /test-runner
parentd01242946eb7423612998b5bdbc71a6a1b3e8581 (diff)
downloadframeworks_base-16a16899505ec0a9ede5b76650bfb8817b3227c7.zip
frameworks_base-16a16899505ec0a9ede5b76650bfb8817b3227c7.tar.gz
frameworks_base-16a16899505ec0a9ede5b76650bfb8817b3227c7.tar.bz2
Add OP_READ_PHONE_STATE app op - framework
The READ_PHONE_STATE permission protects PII information and is in the Phone group. This change is adding the corrseponding app op for gating access to the API guarded by READ_POHNE state which will be used instead as an access control for legacy apps. Change-Id: I2ff895a5a0e529f26ec0ad706266a30d829268ba
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java
index b265d47..04ded9d 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -354,6 +354,13 @@ public class MockContext extends Context {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public void sendBroadcastAsUser(Intent intent, UserHandle user,
+ String receiverPermission, int appOp) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler,