summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Chen <liangyuchen@google.com>2023-03-17 22:06:04 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-03-17 22:06:04 +0000
commit39e9685998f6705b4c4e7edfedfaa45552042edd (patch)
tree2d96fed453df66cf2cccba2b7fa45e86d02bbc64
parent0447b7594e1f9c5bc644c20cc6f8d2694cc69192 (diff)
parent58ce469051bce39c89189e016c7d677f161cc5fb (diff)
downloadgchips-39e9685998f6705b4c4e7edfedfaa45552042edd.tar.gz
Merge "API Feedback: rename AddServiceWithFlag with plurals (gralloc)"android-u-beta-1-gpl
-rw-r--r--gralloc4/service/aidl/service.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gralloc4/service/aidl/service.cpp b/gralloc4/service/aidl/service.cpp
index 26cf77e..c88f686 100644
--- a/gralloc4/service/aidl/service.cpp
+++ b/gralloc4/service/aidl/service.cpp
@@ -19,7 +19,9 @@ int main() {
AIBinder_setMinSchedulerPolicy(binder.get(), SCHED_NORMAL, -20);
const auto instance = std::string() + GrallocAllocator::descriptor + "/default";
- auto status = AServiceManager_addService(binder.get(), instance.c_str());
+
+ auto status = AServiceManager_addServiceWithFlags(binder.get(), instance.c_str(),
+ AServiceManager_AddServiceFlag::ADD_SERVICE_ALLOW_ISOLATED);
if (status != STATUS_OK) {
ALOGE("Failed to start AIDL gralloc allocator service");
return -EINVAL;