diff --git a/services/service/src/softbus/softbus_listener.cpp b/services/service/src/softbus/softbus_listener.cpp index e57d4338dd199ac80ea1dbe8fa8bfe94b3fd8ac9..036b1e43b4720a9337a35677ce98d7075bf8f8c0 100644 --- a/services/service/src/softbus/softbus_listener.cpp +++ b/services/service/src/softbus/softbus_listener.cpp @@ -1450,7 +1450,7 @@ int32_t SoftbusListener::GetAllTrustedDeviceList(const std::string &pkgName, con std::vector allProfile = DeviceProfileConnector::GetInstance().GetAllAccessControlProfile(); for (DistributedDeviceProfile::AccessControlProfile profile : allProfile) { - if (profile.GetBindType() == GROUP_TYPE_IDENTICAL_ACCOUNT_GROUP) { + if (profile.GetBindType() == GROUP_TYPE_IDENTICAL_ACCOUNT_GROUP || ACTIVE != profile.GetStatus()) { continue; } DistributedDeviceProfile::Accesser acer = profile.GetAccesser();