#define _SECURE_LOGE(...)
#endif
-static const char* _OSP_HOME_PATH = "/opt/osp/\0"; // /opt/apps/com.samsung.osp
static const char* _OSP_COMPAT_SHARED_PATH = "/opt/usr/share/.osp-compat/\0";
static const char* _EXT_OSP_HOME_PATH = "/opt/storage/sdcard/osp/\0";
_SECURE_LOGI("package id: %s", package_id);
}
+#if 0
static void
get_package_id_from_package_name(const char* package_name, char* package_id)
{
package_id[_MAX_PACKAGEID_LENGTH] = '\0';
_SECURE_LOGI("package_id: %s", package_id);
}
+#endif
static int
internal_is_mounted(const char* pkgid)
do_pre_exe(const char* package_name, const char* bin_path, const char* package_id)
{
char* app_rootpath = NULL;
- char osp_app_data_path[PATH_MAX] = {0, };
int mmc_mounted = 0;
- struct statfs fs;
/* e.g., app_rootdir is "/opt/usr/apps/[pkgId] */
app_rootpath = get_app_rootpath_from_path(bin_path);
}
LOGI("chroot() succeeded.");
- // set current working dir to "/opt/apps/{packageId}/data"
-#if 0
- strncpy(osp_app_data_path, app_rootpath, strlen(app_rootpath));
- strncat(osp_app_data_path, "/data", strlen("/data"));
-#endif
-
if (chdir("/data") != 0)
{
LOGE("chdir() failed, path: /data, errno: %d (%s)", errno, strerror(errno));
char* app_rootpath = NULL;
char app_compat_path[PATH_MAX] = { 0, };
const char app_compat_file[] = "/info/compat.info\0";
- int pathlen = 0;
char package_id[_MAX_PACKAGEID_LENGTH + 1] = { 0, };
char osp_app_data_path[PATH_MAX] = { 0, };
int osp_compat = 0;