constexpr const char kAulLoaderPath[] = "__AUL_LOADER_PATH__";
constexpr const char kAulMountAllowedResDir[] = "__AUL_MOUNT_ALLOWED_RES_DIR__";
constexpr const char kAulMountGlobalResDir[] = "__AUL_MOUNT_GLOBAL_RES_DIR__";
+constexpr const char kAulMountResPkgIds[] = "__AUL_MOUNT_RES_PKGIDS__";
constexpr const char kAulMultipleInstanceAppId[] =
"__AUL_MULTIPLE_INSTANCE_APPID__";
constexpr const char kAulOrgCallerPid[] = "__AUL_ORG_CALLER_PID__";
if (!allowed_res_dir.empty())
MountDirectories(allowed_res_dir, root_path + "/res/mount/allowed");
+ auto res_pkgids = b.GetStringArray(kAulMountResPkgIds);
+ if (!res_pkgids.empty()) {
+ std::string pkgids;
+ for (auto& pkgid : res_pkgids) {
+ if (!pkgids.empty())
+ pkgids += ":";
+
+ pkgids += pkgid;
+ }
+
+ setenv("RES_PKGIDS", pkgids.c_str(), 1);
+ }
+
return 0;
}