The gadget path must contain a resource type to facilitate mounting.
After this patch is applied, the gadget path will be
"/<package root path>/res/allowed/<res-type>/".
Change-Id: Iaf4681a67a85d963f2776b8b2a63326882925fae
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (pkg->GetResType().length() > strlen(kGadgetPrefix) &&
!pkg->GetResType().compare(0, strlen(kGadgetPrefix), kGadgetPrefix)) {
gadget_pkgids_.insert(pkg->GetPkgId());
- gadget_paths_.emplace_back(pkg->GetRootPath() + ALLOWED_SUFFIX);
+ gadget_paths_.emplace_back(pkg->GetRootPath() + ALLOWED_SUFFIX + "/" +
+ pkg->GetResType());
}
if (pkg->IsLib())