summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;