Change-Id: I1fb562650f2f887719bf32d6cea0ed7e68902724
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
const char* GetExtendedRootAppPath(uid_t uid) {
if (GetRequestMode(uid) == RequestMode::GLOBAL) {
- return tzplatform_mkpath(TZ_SYS_EXTENDEDSD, "globalapps");
+ return tzplatform_getenv(TZ_SYS_EXTENDEDSD_APP);
} else {
- std::string rootpath = "apps/" + GetUsernameByUid(uid) + "/apps_rw";
- return tzplatform_mkpath(TZ_SYS_EXTENDEDSD, rootpath.c_str());
+ tzplatform_set_user(uid);
+ const char* rootpath = tzplatform_getenv(TZ_USER_EXTENDEDSD_APP);
+ tzplatform_reset_user();
+ return rootpath;
}
}