Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 316c3176 authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "Revert "Remove conditional vndbinder usage in OMX.""

parents 22f920a8 5486f8ad
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -26,6 +26,10 @@ LOCAL_VENDOR_MODULE := true
LOCAL_32_BIT_ONLY := true
LOCAL_INIT_RC := android.hardware.media.omx@1.0-service.rc

ifeq ($(PRODUCT_FULL_TREBLE),true)
LOCAL_CFLAGS += -DUSE_VNDBINDER
endif

include $(BUILD_EXECUTABLE)

# service seccomp policy
+2 −0
Original line number Diff line number Diff line
@@ -40,8 +40,10 @@ int main(int argc __unused, char** argv)
    signal(SIGPIPE, SIG_IGN);
    SetUpMinijail(kSystemSeccompPolicyPath, kVendorSeccompPolicyPath);

#ifdef USE_VNDBINDER
    android::ProcessState::initWithDriver("/dev/vndbinder");
    android::ProcessState::self()->startThreadPool();
#endif // USE_VNDBINDER

    ::android::hardware::configureRpcThreadpool(64, false);