From e8994d996850918cd8c3f12ac84546e4eb43ba49 Mon Sep 17 00:00:00 2001 From: houjiahui1 Date: Thu, 19 Jun 2025 22:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=A7=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E4=B8=8B=E9=83=A8=E5=88=86=E8=BF=9B=E7=A8=8B=E6=9C=AA=E6=8B=89?= =?UTF-8?q?=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: houjiahui1 --- .../src/resident_process/resident_process_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/abilitymgr/src/resident_process/resident_process_manager.cpp b/services/abilitymgr/src/resident_process/resident_process_manager.cpp index a6f77c07a11..33dee8fafae 100644 --- a/services/abilitymgr/src/resident_process/resident_process_manager.cpp +++ b/services/abilitymgr/src/resident_process/resident_process_manager.cpp @@ -84,8 +84,10 @@ void ResidentProcessManager::StartResidentProcessWithMainElement(std::vector &needEraseIndexSet, int32_t userId) { - if (userId != 0 && !AppUtils::GetInstance().InResidentWhiteList(bundleInfo.name)) { - TAG_LOGW(AAFwkTag::ABILITYMGR, "not in resident allow list"); + if (userId != 0 && !AppUtils::GetInstance().InResidentWhiteList(bundleInfo.name) && + !AppUtils::GetInstance().IsBigMemoryUnrelatedKeepAliveProc(bundleInfo.name)) { + TAG_LOGW(AAFwkTag::ABILITYMGR, "%{public}s not in resident allow list or \ + resident process of Big memory unrelated.", bundleInfo.name.c_str()); needEraseIndexSet.insert(index); return; } -- Gitee