summaryrefslogtreecommitdiff
path: root/gralloc4/service/aidl/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc4/service/aidl/service.cpp')
-rw-r--r--gralloc4/service/aidl/service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gralloc4/service/aidl/service.cpp b/gralloc4/service/aidl/service.cpp
index 26cf77e..515a31d 100644
--- a/gralloc4/service/aidl/service.cpp
+++ b/gralloc4/service/aidl/service.cpp
@@ -19,7 +19,8 @@ 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;