diff options
| author | 2023-10-05 21:05:30 +0000 | |
|---|---|---|
| committer | 2023-10-05 21:05:30 +0000 | |
| commit | 748247412c22113f2fda5cc0479a0133cddf5d74 (patch) | |
| tree | a7b6dfb60492b0f10f4277418827f1959e854826 /libs/permission/AppOpsManager.cpp | |
| parent | ea256bece0b6261715be44fd0819f35d13a30b06 (diff) | |
| parent | 83d1c72376a9223d36ed685c3f88b40ddcb76b8f (diff) | |
Merge "Add AppOps overload to be able to watch foreground changes." into tm-dev
Diffstat (limited to 'libs/permission/AppOpsManager.cpp')
| -rw-r--r-- | libs/permission/AppOpsManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/permission/AppOpsManager.cpp b/libs/permission/AppOpsManager.cpp index baa9d75116..695927418d 100644 --- a/libs/permission/AppOpsManager.cpp +++ b/libs/permission/AppOpsManager.cpp @@ -146,6 +146,14 @@ void AppOpsManager::startWatchingMode(int32_t op, const String16& packageName, } } +void AppOpsManager::startWatchingMode(int32_t op, const String16& packageName, int32_t flags, + const sp<IAppOpsCallback>& callback) { + sp<IAppOpsService> service = getService(); + if (service != nullptr) { + service->startWatchingModeWithFlags(op, packageName, flags, callback); + } +} + void AppOpsManager::stopWatchingMode(const sp<IAppOpsCallback>& callback) { sp<IAppOpsService> service = getService(); if (service != nullptr) { |