From 9bb8350c24007e44e477ebd3d40211b3e0770564 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=98=95=EC=A3=BC/Common=20Platform=20Lab=28SR=29?= =?utf8?q?/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 23 Feb 2022 09:21:35 +0900 Subject: [PATCH] Fix app ni path for readonly app (#389) 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 --- NativeLauncher/util/path_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NativeLauncher/util/path_manager.cc b/NativeLauncher/util/path_manager.cc index 664da52..a91cad6 100644 --- a/NativeLauncher/util/path_manager.cc +++ b/NativeLauncher/util/path_manager.cc @@ -160,7 +160,7 @@ void PathManager::setAppRootPath(const std::string& rootPath) // 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; -- 2.7.4