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

Commit bf6b34cf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "mediacodec: route all libbinder traffic to /dev/vndbinder" into oc-dev

parents 0a09b4c4 6772cfb5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -46,6 +46,11 @@ static const char kVendorSeccompPolicyPath[] =
int main(int argc __unused, char** argv)
{
    LOG(INFO) << "mediacodecservice starting";
    bool treble = property_get_bool("persist.media.treble_omx", true);
    if (treble) {
      android::ProcessState::initWithDriver("/dev/vndbinder");
    }

    signal(SIGPIPE, SIG_IGN);
    SetUpMinijail(kSystemSeccompPolicyPath, kVendorSeccompPolicyPath);

@@ -54,7 +59,7 @@ int main(int argc __unused, char** argv)
    ::android::hardware::configureRpcThreadpool(64, false);
    sp<ProcessState> proc(ProcessState::self());

    if (property_get_bool("persist.media.treble_omx", true)) {
    if (treble) {
        using namespace ::android::hardware::media::omx::V1_0;
        sp<IOmx> omx = new implementation::Omx();
        if (omx == nullptr) {