diff --git a/init/service.cpp b/init/service.cpp index cfb82842d..f6ce094ef 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -127,7 +127,8 @@ static bool ExpandArgsAndExecv(const std::vector& args, bool sigsto static bool AreRuntimeApexesReady() { struct stat buf; - return stat("/apex/com.android.runtime/", &buf) == 0; + return stat("/apex/com.android.art/", &buf) == 0 && + stat("/apex/com.android.runtime/", &buf) == 0; } unsigned long Service::next_start_order_ = 1;