return result;
}
+bool check_rw_mount()
+{
+ char *data_path = NULL;
+ bool rw_mount = false;
+ data_path = app_get_shared_data_path();
+ if (!data_path) return false;
+
+ if (access(data_path, R_OK) == 0)
+ rw_mount = true;
+
+ free(data_path);
+
+ if (!rw_mount) {
+ SECURE_LOGE("Can't access rw storage\n");
+ }
+
+ return rw_mount;
+}
+
static void app_control(app_control_h app_control, void *data)
{
/* Handle the launch request. */
const char *event_uri = "event://tizen.system.event.battery_charger_status";
int res;
+ if (!check_rw_mount())
+ service_app_exit();
+
// operation
int ret = app_control_get_operation(app_control, &operation);
if (ret == APP_CONTROL_ERROR_NONE) {