There was a bug in setting the app ni path when RO installed app was updated.
To fix this bug, check root path whether read-only area or not.
Co-authored-by: Woongsuk Cho <ws77.cho@samsung.com>
// check readonly update directory eixst or not
std::string niRootPath = replaceAll(appRootPath, getBaseName(appRootPath), __READ_ONLY_APP_UPDATE_DIR);
- if (isDirectory(niRootPath)) {
+ if (isReadOnlyArea(appRootPath) && isDirectory(niRootPath)) {
appNIRootPath = getAbsolutePath(niRootPath);
} else {
appNIRootPath = appRootPath;