From c34a37bb3dab4045ac06a014b564955337615bbd Mon Sep 17 00:00:00 2001 From: WenJunYuan <1903700887@qq.com> Date: Sat, 26 Jul 2025 14:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=AE=9E=E4=BE=8B=E5=BC=80=E5=85=B3?= =?UTF-8?q?=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WenJunYuan <1903700887@qq.com> --- utils/src/rs_adapter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/src/rs_adapter.cpp b/utils/src/rs_adapter.cpp index d29b1ea898..70f112b949 100644 --- a/utils/src/rs_adapter.cpp +++ b/utils/src/rs_adapter.cpp @@ -464,9 +464,12 @@ AllowInMultiThreadGuard::~AllowInMultiThreadGuard() bool RSAdapterUtil::IsClientMultiInstanceEnabled() { static bool enabled = [] { - bool value = system::GetParameter("persist.rosen.rsclientmultiinstance.enabled", "0") != "0"; - TLOGNI(WmsLogTag::WMS_SCB, "RS multi-instance enabled: %{public}d", value); - return value; + bool value = system::GetParameter("persist.rosen.rsclientmultiinstance.enabled", "1") != "0"; + std::string deviceType = system::GetParameter("const.product.devicetype", ""); + TLOGNI(WmsLogTag::WMS_SCB, + "RS multi-instance enabled: %{public}d, deviceType %{public}s", value, deviceType.c_str()); + bool phone = deviceType == "phone"; + return value && phone; }(); return enabled; } -- Gitee