mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-23 06:50:03 +00:00
update frameworks/location_common/common/source/common_utils.cpp.
Signed-off-by: smilebear <245252081@qq.com>
This commit is contained in:
parent
f55590cea0
commit
30d50d374e
@ -412,6 +412,15 @@ std::string CommonUtils::GenerateUuid()
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
bool CommonUtils::CheckAppForUser(int32_t uid, std::string& bundleName)
|
||||
{
|
||||
int currentUserId = 0;
|
||||
if (!GetCurrentUserId(currentUserId)) {
|
||||
currentUserId = DEFAULT_USERID;
|
||||
}
|
||||
return CheckAppForUser(uid, currentUserId, bundleName);
|
||||
}
|
||||
|
||||
bool CommonUtils::CheckAppForUser(int32_t uid, int32_t currentUserId, std::string& bundleName)
|
||||
{
|
||||
int userId = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user