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

Commit c1c9b132 authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Merge "fix: NCs in mediaextractor" into oc-dev

am: babd396d

Change-Id: I9f9acb3536caed21800bb6318c87fb455c23231e
parents 004501aa babd396d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <string>

#include <android-base/logging.h>
#include <utils/misc.h>

// from LOCAL_C_INCLUDES
#include "IcuUtils.h"
@@ -47,6 +48,13 @@ int main(int argc __unused, char** argv)
        20 /* upper limit as percentage of physical RAM */);

    signal(SIGPIPE, SIG_IGN);

    //b/62255959: this forces libutis.so to dlopen vendor version of libutils.so
    //before minijail is on. This is dirty but required since some syscalls such
    //as pread64 are used by linker but aren't allowed in the minijail. By
    //calling the function before entering minijail, we can force dlopen.
    android::report_sysprop_change();

    SetUpMinijail(kSystemSeccompPolicyPath, kVendorSeccompPolicyPath);

    InitializeIcuOrDie();