info = ReadPkgidFromRecovery(arg);
else
info = arg;
- ci::PkgQueryInterface pkg_query(info, uid);
- if (pkg_query.IsPackageInstalled(ci::GetRequestMode(uid))) {
- bf::path package_directory(ci::GetRootAppPath(false, uid));
- if (bf::exists(package_directory / info / kTizenManifestLocation) &&
- bf::exists(package_directory / info / kHybridConfigLocation))
+ bf::path rw_package_directory(ci::GetRootAppPath(false, uid));
+ bf::path ro_package_directory;
+ if (uid == tzplatform_getuid(TZ_SYS_GLOBALAPP_USER) || uid == 0)
+ ro_package_directory = ci::GetRootAppPath(true, uid);
+ if ((bf::exists(rw_package_directory / info / kTizenManifestLocation) &&
+ bf::exists(rw_package_directory / info / kHybridConfigLocation)) ||
+ (bf::exists(ro_package_directory / info / kTizenManifestLocation) &&
+ bf::exists(ro_package_directory / info / kHybridConfigLocation))) {
return true;
} else if (!is_recovery) {
bool tizen_manifest_found = false;