Fix a bug related to NUIGadget resource mount 62/318462/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 30 Sep 2024 06:31:35 +0000 (15:31 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 30 Sep 2024 06:37:26 +0000 (15:37 +0900)
Before calling ValidateAndModifyGadgetPaths(), the library checks
whether the path exists or not. If the gadget developer uses the previous SDK,
the resources of the gadget is packed using the res/allowed path.
The previous patch of the launchpad does not consider it.

Change-Id: I91cc89dd64e74bac70f3e294bb9ddfbb2fc3ae02
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/launchpad-core/util.cc

index 71fd33e6bfa0fe95db1056e89a51186cfeb68f73..44754821bdce06d68a2c86f7fb8d9b1877dcf73c 100644 (file)
@@ -519,7 +519,7 @@ int Util::MountLibraryDirectories(const tizen_base::Bundle& b) {
 }
 
 int Util::MountGadgetDirectories(const tizen_base::Bundle& b) {
-  auto gadget_paths = ModifyDirectories(b.GetStringArray(kAulMountGadgetPaths));
+  auto gadget_paths = b.GetStringArray(kAulMountGadgetPaths);
   if (!gadget_paths.empty()) {
     gadget_paths = ValidateAndModifyGadgetPaths(gadget_paths);
     auto root_path = b.GetString(kAulRootPath);