Back to top

Custom booting and shut down animations

Last updated July 26th, 2023

Knox Configure for wearables require animation files to be in EDJ file format as opposed to the QMG file format for smart phone animation files.

Create animation file

To create an .edg animation file for Knox Configure for wearables, follow the steps below:

  1. Open Tizen Studio.

  2. Select the Basic UI with EDC template.

  3. Open the project and the res/edje/(project_name).edc file.

  4. Under the EDC editor’s settings, set your animation to the image path. The default path is set to project_name/edje/images.

  5. Create the EDC file as shown in the following example:

    //project_name.edc file
    images {
        image:"/images/Tizen_power_on_01.png" COMP;
        image:"/images/Tizen_power_on_02.png" COMP;
        image:"/images/Tizen_power_on_03.png" COMP;
        image:"/images/Tizen_power_on_04.png" COMP;
        image:"/images/Tizen_power_on_05.png" COMP;
        image:"/images/Tizen_power_on_06.png" COMP;
        image:"/images/Tizen_power_on_07.png" COMP;
        image:"/images/Tizen_power_on_08.png" COMP;
        image:"/images/Tizen_power_on_09.png" COMP;
        image:"/images/Tizen_power_on_10.png" COMP;
        image:"/images/Tizen_power_on_11.png" COMP;
        Copyright © 2017 Samsung Electronics Co. Ltd. 3
    }
    collections {
        group { name: "poweron";
            parts {
                part { name: "poweron";
                    mouse_events: 0;
                    description { state: "default" 0.0;
                        image {
                            normal:"/images/Tizen_power_on_01.png";//first and default image
                            tween:"/images/Tizen_power_on_02.png";
                            tween:"/images/Tizen_power_on_03.png";
                            tween:"/images/Tizen_power_on_04.png";
                            tween:"/images/Tizen_power_on_05.png";
                            tween:"/images/Tizen_power_on_06.png";
                            tween:"/images/Tizen_power_on_07.png";
                            tween:"/images/Tizen_power_on_08.png";
                            tween:"/images/Tizen_power_on_09.png";
                            tween:"/images/Tizen_power_on_10.png";
                            tween:"/images/Tizen_power_on_11.png";
                        }
                    visible: 1;
                    }
                }
            }
            programs {
                program {
                    name: "poweron";
                    signal: "show";//start animation
                    action: STATE_SET "default" 0.0;//state for the image part
                    target: "poweron";//part name
                    transition: LINEAR 4;//animation type and duration in seconds
                    after: "poweron_end";
                }
                program {
                    name: "poweron_end";
                    action: SIGNAL_EMIT "end" "animation";
                }
            }
        }
    }
    

    A header file can be used to include image files.

  6. Navigate to a local folder and make an EDJ file by entering the following in the command line:

    edje_cc -id ../images {project_name}.edc. temporary_name.edj`
    

Set custom animation

Once you’ve created your EDJ animation file, to set a custom booting animation or shutdown animation for an existing profile, follow the steps below:

Set custom booting animation

  1. Under Profiles, select an existing profile for wearable devices.

    Wearable profile

  2. On the Profile configuration dashboard, select DISPLAYS.

  3. Click Edit.

    Edit displays

  4. Under Custom booting and shutdown animations, select Set a custom booting animation.

    Set custom boot

  5. Click SELECT to upload an EDJ or WGT format animation file.

    • Note that the file must be less than 1 MB.
  6. Click SAVE.

Devices purchased in Korea do not support custom booting and shutdown animations.

Set custom shutdown animation

  1. Under Profiles, select an existing profile for wearable devices.

    Wearable profile

  2. On the Profile configuration dashboard, select DISPLAYS.

  3. Click Edit.

    Edit displays

  4. Under Custom booting and shutdown animations, select Set a custom shutdown animation.

    Set shutdown

  5. Click SELECT to upload an EDJ format animation file.

    • Note that the file must be less than 1 MB.
  6. Click SAVE.

Clear custom animations

When replacing an existing custom animation, ensure you first clear the existing custom animation before uploading a new animation:

  1. Under Profiles, select an existing profile for wearable devices.

    Wearable profile

  2. On the Profile configuration dashboard, select DISPLAYS.

  3. Click Edit.

    Edit

  4. Under Custom booting and shutdown animations, select Clear a custom booting and shutdown animation.

  5. Click SAVE.

Is this page helpful?