void AppInfoManager::DisableAppInfo(uid_t target_uid,
const std::string& appid, const std::string& global) {
- _D("taget_uid(%u), appid(%s), global(%s)", target_uid, appid.c_str(),
- global.c_str());
if (target_uid < REGULAR_UID_MIN) {
for (auto const& iter : app_info_chunk_) {
uid_t uid = iter.first;
if (info == nullptr)
return;
+ if (info->GetGlobal() != global)
+ return;
+
info->SetEnablement("0");
_E("[PKGMGR] Terminate app(%s). uid(%u)", appid.c_str(), target_uid);
AppStatusManager::GetInst().TerminateApps(appid, target_uid);
void AppInfoManager::EnableAppInfo(uid_t target_uid,
const std::string& appid, const std::string& global) {
- _D("taget_uid(%u), appid(%s), global(%s)", target_uid, appid.c_str(),
- global.c_str());
if (target_uid < REGULAR_UID_MIN) {
for (auto const& iter : app_info_chunk_) {
uid_t uid = iter.first;
return;
}
+ if (info->GetGlobal() != global)
+ return;
+
info->SetEnablement("1");
helper::NotiSend(AMD_NOTI_MSG_APPINFO_APP_ENABLED_END, target_uid, appid);
}
void AppInfoManager::DisableAppInfoSplashScreenDisplay(uid_t target_uid,
const std::string& appid, const std::string& global) {
- _D("taget_uid(%u), appid(%s), global(%s)", target_uid, appid.c_str(),
- global.c_str());
if (target_uid < REGULAR_UID_MIN) {
for (auto const& iter : app_info_chunk_) {
uid_t uid = iter.first;
if (info == nullptr)
return;
+ if (info->GetGlobal() != global)
+ return;
+
info->SetSplashScreenDisplay("0");
}
void AppInfoManager::EnableAppInfoSplashScreenDisplay(uid_t target_uid,
const std::string& appid, const std::string& global) {
- _D("taget_uid(%u), appid(%s), global(%s)", target_uid, appid.c_str(),
- global.c_str());
if (target_uid < REGULAR_UID_MIN) {
for (auto const& iter : app_info_chunk_) {
uid_t uid = iter.first;
if (info == nullptr)
return;
+ if (info->GetGlobal() != global)
+ return;
+
info->SetSplashScreenDisplay("1");
}