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

Commit 5c647133 authored by Iliyan Malchev's avatar Iliyan Malchev Committed by android-build-merger
Browse files

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

am: bf6b34cf

Change-Id: Iefa7d48d9742bfc9e2c811c13bdab5f3ce4f6129
parents 71f86c7a bf6b34cf
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) {