diff options
author | Charles Chen <liangyuchen@google.com> | 2023-02-23 23:42:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-02-23 23:42:54 +0000 |
commit | 72470ebd0e311dc6361250985303db1cd638dcbd (patch) | |
tree | f79558970b2f6ad247836f8e4098648caa6e4871 | |
parent | 61f2aeeff364cc645cdbf4a0c52748964d63db02 (diff) | |
parent | ff9ae5e7f319fa417a6f7ea50daadf26dfc8e4ca (diff) |
Merge "Publish gralloc4 to allow isolated process" into udc-dev
-rw-r--r-- | gralloc4/service/aidl/service.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gralloc4/service/aidl/service.cpp b/gralloc4/service/aidl/service.cpp index 26cf77e..b6ccd44 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_addServiceWithFlag(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; |