return -1;
}
- if (app_info->GetOnboot() == "false")
+ if (app_info->GetOnboot() == "false" ||
+ strverscmp(app_info->GetApiVersion().c_str(), "7") >= 0)
_restart_manager_restart_app(chunk->GetUid(), appid);
return 0;
constexpr const char TAG_INFO_TIMEOUT[] = "INFO:TIMEOUT";
constexpr const char REQUIRED_API_VERSION[] = "7";
-constexpr const char REQUIRED_DOTNET_API_VERSION[] = "10";
} // namespace
return;
_D("%s : %u", appid, uid);
- const char* required_api_version;
- if (app_info->GetApptype().find("dotnet") != std::string::npos)
- required_api_version = REQUIRED_DOTNET_API_VERSION;
- else
- required_api_version = REQUIRED_API_VERSION;
-
- if (strverscmp(required_api_version, app_info->GetApiVersion().c_str()) > 0) {
+ if (strverscmp(REQUIRED_API_VERSION, app_info->GetApiVersion().c_str()) > 0) {
int ret = _launch_start_onboot_app_local(uid, appid, app_info.get());
_W("%s : %u : %d", appid, uid, ret);
}