diff options
| author | 2019-09-04 13:34:06 -0700 | |
|---|---|---|
| committer | 2019-09-04 13:34:06 -0700 | |
| commit | 9c724d78b9f2e00a7d4de3bfd2c65f6226fa8529 (patch) | |
| tree | a3796f67d19deece6118e60d2faebde9499ce083 /libs/binder/AppOpsManager.cpp | |
| parent | 0bc2361309d705f8c7f7766f1912fd0f7035d199 (diff) | |
| parent | 638c07856510784987e81ba0b026780850bf5775 (diff) | |
DO NOT MERGE - Merge Android 10 into master
Bug: 139893257
Change-Id: I0b8ce4715e111f1378ddada95d746b1788645a6d
Diffstat (limited to 'libs/binder/AppOpsManager.cpp')
| -rw-r--r-- | libs/binder/AppOpsManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/binder/AppOpsManager.cpp b/libs/binder/AppOpsManager.cpp index a494e22392..525685c35e 100644 --- a/libs/binder/AppOpsManager.cpp +++ b/libs/binder/AppOpsManager.cpp @@ -93,6 +93,14 @@ int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingP : APP_OPS_MANAGER_UNAVAILABLE_MODE; } +int32_t AppOpsManager::checkAudioOpNoThrow(int32_t op, int32_t usage, int32_t uid, + const String16& callingPackage) { + sp<IAppOpsService> service = getService(); + return service != nullptr + ? service->checkAudioOperation(op, usage, uid, callingPackage) + : APP_OPS_MANAGER_UNAVAILABLE_MODE; +} + int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { sp<IAppOpsService> service = getService(); return service != nullptr |