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

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

Merge "Enable MediaUpdateService on userdebug and eng builds."

parents 4a0c0153 5a1dfb44
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();