#define UNMOUNT_FORCE 1
#define MYFILES_APP_ID "org.tizen.myfile"
+#define SETTING_APP_ID "org.tizen.setting-storage"
#define SECURITY_APP_ID "org.tizen.ode"
#define ENCRYPT_EXTENSION "ENCRYPT_EXTENSION"
+#define APPSELECT "appselect"
+#define DEFAULT_STORAGE "defstorage"
typedef enum {
USE_AS_PORTABLE_STORAGE = 0,
{
FUNC_BEGIN();
+ app_control_h app_control = NULL;
+ int ret;
+
+ ret = app_control_create(&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
+ ret = app_control_set_app_id(app_control, SETTING_APP_ID);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ app_control_destroy(app_control);
+ return;
+ }
+
+ app_control_add_extra_data(app_control, VIEWTYPE_KEY, APPSELECT);
+ ret = app_control_send_launch_request(app_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ DMSG_ERR("app_control_send_launch_request() is failed err = %d", ret);
+
+ app_control_destroy(app_control);
+
FUNC_END();
}
{
FUNC_BEGIN();
+ app_control_h app_control = NULL;
+ int ret;
+
+ ret = app_control_create(&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
+ ret = app_control_set_app_id(app_control, SETTING_APP_ID);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ app_control_destroy(app_control);
+ return;
+ }
+
+ app_control_add_extra_data(app_control, VIEWTYPE_KEY, DEFAULT_STORAGE);
+ ret = app_control_send_launch_request(app_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ DMSG_ERR("app_control_send_launch_request() is failed err = %d", ret);
+
+ app_control_destroy(app_control);
+
FUNC_END();
}
{
FUNC_BEGIN();
+ app_control_h app_control = NULL;
+ int ret;
+
+ ret = app_control_create(&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
+ ret = app_control_set_app_id(app_control, SETTING_APP_ID);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ app_control_destroy(app_control);
+ return;
+ }
+
+ app_control_add_extra_data(app_control, VIEWTYPE_KEY, DEFAULT_STORAGE);
+ ret = app_control_send_launch_request(app_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ DMSG_ERR("app_control_send_launch_request() is failed err = %d", ret);
+
+ app_control_destroy(app_control);
+
FUNC_END();
}