diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index 7a9a3f8643c01..b9ac8d4fe780f 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -72,9 +72,9 @@ #include #include +#include #include #include -#include #include #include #include @@ -84,13 +84,13 @@ #include #include #include -#include -#include -#include -#include -#include #include #include +#include +#include +#include +#include +#include #include "core_jni_helpers.h" #include @@ -1078,7 +1078,7 @@ static pid_t ForkCommon(JNIEnv* env, bool is_system_server, // Close any logging related FDs before we start evaluating the list of // file descriptors. __android_log_close(); - stats_log_close(); + AStatsSocket_close(); // If this is the first fork for this zygote, create the open FD table. If // it isn't, we just need to check whether the list of open files has changed @@ -1639,7 +1639,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, SetCapabilities(permitted_capabilities, effective_capabilities, permitted_capabilities, fail_fn); __android_log_close(); - stats_log_close(); + AStatsSocket_close(); const char* se_info_ptr = se_info.has_value() ? se_info.value().c_str() : nullptr; const char* nice_name_ptr = nice_name.has_value() ? nice_name.value().c_str() : nullptr;