summaryrefslogtreecommitdiff
path: root/libs/binder/AppOpsManager.cpp
diff options
context:
space:
mode:
author Yin-Chia Yeh <yinchiayeh@google.com> 2019-08-13 12:24:25 -0700
committer Yin-Chia Yeh <yinchiayeh@google.com> 2019-08-30 14:52:12 -0700
commit8e95ee87a96bcacab17a4b49a8150fb42565ac8c (patch)
tree48a2b10aad3c1d41fdf847a45fe2fc128b164adb /libs/binder/AppOpsManager.cpp
parent217dd40021b4b6f346a588bbdb3bf9afd9790568 (diff)
Camera: add camera audio restriction binder call
Also add the API to AppOpsManager Test: new CTS tests Bug: 135676184 Change-Id: I8bcdd34a4b6bb0fba5151677db38f8c35b7ae97e
Diffstat (limited to 'libs/binder/AppOpsManager.cpp')
-rw-r--r--libs/binder/AppOpsManager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/binder/AppOpsManager.cpp b/libs/binder/AppOpsManager.cpp
index 48b218e78b..e2af01c161 100644
--- a/libs/binder/AppOpsManager.cpp
+++ b/libs/binder/AppOpsManager.cpp
@@ -193,6 +193,13 @@ int32_t AppOpsManager::permissionToOpCode(const String16& permission) {
return -1;
}
+void AppOpsManager::setCameraAudioRestriction(int32_t mode) {
+ sp<IAppOpsService> service = getService();
+ if (service != nullptr) {
+ service->setCameraAudioRestriction(mode);
+ }
+}
+
#endif // __ANDROID_VNDK__
bool AppOpsManager::shouldCollectNotes(int32_t opcode) {