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

Commit 5a1dfb44 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Enable MediaUpdateService on userdebug and eng builds.

Test: play a mp4 file. boots without untracked SELinux denials.
Bug: 67908547
Change-Id: I1bb13ef0f7ed60abf05822f054ef19fbd22e5690
parent 87b46795
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <string>

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

// from LOCAL_C_INCLUDES
@@ -65,14 +66,10 @@ int main(int argc __unused, char** argv)
    sp<IServiceManager> sm = defaultServiceManager();
    MediaExtractorService::instantiate();

    // TODO: Uncomment below once sepolicy change is landed.
    /*
    char value[PROPERTY_VALUE_MAX];
    property_get("ro.build.type", value, "unknown");
    if (strcmp(value, "userdebug") == 0 || strcmp(value, "eng") == 0) {
    std::string value = base::GetProperty("ro.build.type", "unknown");
    if (value == "userdebug" || value == "eng") {
        media::MediaExtractorUpdateService::instantiate();
    }
    */

    ProcessState::self()->startThreadPool();
    IPCThreadState::self()->joinThreadPool();