mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -987,6 +987,10 @@ int AbilityManagerService::ConnectAbility(
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t validUserId = GetValidUserId(userId);
|
int32_t validUserId = GetValidUserId(userId);
|
||||||
|
if (callerToken != nullptr && callerToken->GetObjectDescriptor() != u"ohos.aafwk.AbilityToken") {
|
||||||
|
HILOG_INFO("%{public}s invalid Token.", __func__);
|
||||||
|
return ConnectLocalAbility(want, validUserId, connect, nullptr);
|
||||||
|
}
|
||||||
return ConnectLocalAbility(want, validUserId, connect, callerToken);
|
return ConnectLocalAbility(want, validUserId, connect, callerToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user