- Launching manner of the shutdown animation is changed
to use systemd service. Thus the codes are fixed.
- For the sound-server, the function to tuen off sound related
operations is removed from Tizen 3.0. Thus it is removed.
Change-Id: I1950a3e4a796bf5606170b001d01d2876b528fed
Signed-off-by: taeyoung <ty317.kim@samsung.com>
static void poweroff_start_animation(void)
{
- char params[128];
- snprintf(params, sizeof(params), "/usr/bin/boot-animation --stop --clear");
- launch_app_cmd_with_nice(params, -20);
+ int ret;
+
+ ret = deviced_systemd_start_unit("shutdown-animation.service");
+ if (ret < 0)
+ _E("Failed to start shutdown animation");
+
gettimeofday(&tv_start_poweroff, NULL);
- launch_evenif_exist("/usr/bin/sound_server", "--poweroff");
+
device_notify(DEVICE_NOTIFIER_POWEROFF_HAPTIC, NULL);
}