diff options
author | 2015-04-29 16:50:41 -0700 | |
---|---|---|
committer | 2015-05-01 13:51:45 -0700 | |
commit | b412f6e203b38f8047f760261a5e3dc6d0722f08 (patch) | |
tree | f4e06f90090581c0efcff50602145ff11d0ea753 /libs/binder/AppOpsManager.cpp | |
parent | 61a3c8dec90acebef15ef56cae14efea69279f69 (diff) |
Add body sensors app op - framework native
Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
Diffstat (limited to 'libs/binder/AppOpsManager.cpp')
-rw-r--r-- | libs/binder/AppOpsManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/binder/AppOpsManager.cpp b/libs/binder/AppOpsManager.cpp index c562c30eed..e4d82019f1 100644 --- a/libs/binder/AppOpsManager.cpp +++ b/libs/binder/AppOpsManager.cpp @@ -104,4 +104,13 @@ void AppOpsManager::stopWatchingMode(const sp<IAppOpsCallback>& callback) { } } +int32_t AppOpsManager::permissionToOpCode(const String16& permission) { + sp<IAppOpsService> service = getService(); + if (service != NULL) { + return service->permissionToOpCode(permission); + } + return -1; +} + + }; // namespace android |