[Problem] During app uninstallation the package rules are updated basing on the
list of apps being a part of the package. However the app being uninstalled is
not removed from this list which may generate unwanted smack rules.
[Solution] Remove uninstalled app from package contents list.
[Verification] Test is not yet implemented.
Change-Id: I867e65a996d0c797dfab9bcaaf15bbaf1a4261c4
SmackRules::uninstallPackageRules(req.pkgName);
if (!removePkg) {
LogDebug("Recreating Smack rules for pkgName " << req.pkgName);
+ pkgContents.erase(std::remove(pkgContents.begin(), pkgContents.end(),req.appName), pkgContents.end());
SmackRules::updatePackageRules(req.pkgName, pkgContents, allTizen2XApps);
}
}