Animation playing abnormity repairing method and device and electronic equipment

By detecting the attribute status of the animation playback task and replacing the backup animation file, the problem of abnormal startup animation playback is solved, and stable playback of the startup animation and normal startup of the device are achieved.

CN119356773APending Publication Date: 2025-01-24PATEO CONNECT (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411223899.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

An abnormality occurs during the playback of the boot animation, resulting in interruption of the boot process or the electronic device being unable to boot, seriously affecting the stability and user experience of the device.

Method used

By detecting the attribute status of the animation player task, determine that when the electronic equipment is in the case of the anime file execution is abnormal, obtain the spare animation file, replace the unusual boot animation files, and restart the opening of the motion animation execution program to restart the animation play task through spare animation files to play the animation play task. Essence

Benefits of technology

It realizes timely repair when the startup animation plays abnormally, ensures the stability of the startup animation, and avoids the interruption of the startup process or the failure of the device to turn on.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356773A_ABST
    Figure CN119356773A_ABST
Patent Text Reader

Abstract

The invention discloses an animation playing abnormity repairing method and device and electronic equipment, and belongs to the field of data processing. The method for repairing the abnormal animation playing comprises the following steps: starting a startup animation execution program; running a boot animation file through the boot animation execution program to execute an animation playing task; detecting an attribute state of the animation playing task; acquiring a standby animation file under the condition that the electronic equipment is determined to be abnormal in execution of the boot animation file according to the attribute state, and replacing the boot animation file with the standby animation file; the boot animation execution program is restarted; and running the standby animation file through the boot animation execution program, and restarting a picture playing task. According to the method and the device, the startup animation playing task can be repaired in time when the startup animation playing is abnormal, and the startup animation playing stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and specifically relates to a method, device and electronic equipment for repairing abnormal animation playback. Background Art

[0002] With the development of commercial products, manufacturers have increasingly customized and expanded the boot animation of electronic devices, which has reduced the stability of the boot animation. The boot animation is an important part of the boot process of electronic devices. Abnormal playback of the boot animation will cause the boot process to be interrupted, or even make the electronic device unable to boot. Therefore, a method for repairing abnormal boot animation playback is urgently needed to ensure the playback stability of the boot animation. Summary of the invention

[0003] The embodiments of the present application provide a method, device and electronic device for repairing animation playback abnormality, which can, to a certain extent, repair the boot animation playback when there is a playback abnormality in the boot animation, so as to ensure the playback stability of the boot animation.

[0004] In a first aspect, a method for repairing abnormal animation playback is provided, the method comprising:

[0005] Start the boot animation execution program;

[0006] Running the boot animation file through the boot animation execution program to execute the animation playing task;

[0007] Detecting the attribute status of the animation playing task;

[0008] When it is determined through the attribute state that the electronic device is in the state where the startup animation file is executed abnormally, obtaining a backup animation file, and replacing the startup animation file with the backup animation file;

[0009] Restarting the boot animation execution program;

[0010] The backup animation file is run through the boot animation execution program to restart the animation playing task.

[0011] In a second aspect, a device for repairing abnormal animation playback is provided, the device comprising:

[0012] The startup module is used to start the boot animation execution program;

[0013] A running module, used to run the startup animation file through the startup animation execution program to perform the animation playing task;

[0014] A detection module, used to detect the attribute status of the animation playing task;

[0015] A replacement module, configured to obtain a backup animation file and replace the startup animation file with the backup animation file when it is determined through the attribute state that the electronic device is in a state of abnormal execution of the startup animation file;

[0016] A restart module, used to restart the boot animation execution program;

[0017] The running module is further used to run the backup animation file through the boot animation execution program and restart the animation playing task.

[0018] In a third aspect, an electronic device is provided, comprising: a processor and a memory; the memory is used to store computer programs; the processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0019] In a fourth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method steps described in any one of the first aspects are implemented.

[0020] The embodiment of the present application provides a method, device and electronic device for repairing abnormal animation playback. When starting a boot animation execution program and running a boot animation file through the boot animation execution program to execute an animation playback task, the attribute status of the animation playback task is detected. When it is determined through the attribute status that the electronic device is in an abnormal state of boot animation file execution, a backup animation file is used to replace the boot animation file, and then the boot animation execution program is restarted to run the backup animation file through the boot animation execution program, restart the animation playback task, and ensure the playback of the boot animation. In this technical solution, by detecting the attribute status of the animation playback task, when it is determined through the attribute status that the electronic device is in an abnormal state of boot animation file execution, the backup animation file is promptly used to replace the abnormally played animation file, and the playback of the backup animation file is ensured by restarting the animation playback task, thereby achieving timely repair of the boot animation playback task when the boot animation playback is abnormal, and improving the playback stability of the boot animation. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of an implementation environment of a method for repairing abnormal animation playback provided by an embodiment of the present application;

[0022] Figure 2 It is a flow chart of a method for repairing abnormal animation playback provided by an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of a boot animation file provided in an embodiment of the present application;

[0024] Figure 4is a schematic diagram of another boot animation file provided in an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of another boot animation file provided in an embodiment of the present application;

[0026] Figure 6 is a schematic diagram of another boot animation file provided in an embodiment of the present application;

[0027] Figure 7 This is a schematic diagram of an abnormal boot animation file provided by an embodiment of the present application;

[0028] Figure 8 It is another abnormal principle diagram of the boot animation file provided in the embodiment of the present application;

[0029] Fig. 9 This is another abnormal principle diagram of a startup animation file provided in an embodiment of the present application;

[0030] Fig.10 is a flowchart of another method for repairing abnormal animation playback provided by an embodiment of the present application;

[0031] Fig.11 is a flow chart of another method for repairing abnormal animation playback provided by an embodiment of the present application;

[0032] Fig.12 It is a block diagram of a device for repairing abnormal animation playback provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] The following, in conjunction with the accompanying drawings, describes in detail the method, device and electronic device for repairing animation playback abnormality provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0035] The embodiment of the present application provides an implementation environment of a method for repairing abnormal animation playback. The implementation environment includes an electronic device. Optionally, the electronic device can be a vehicle-mounted device, a mobile terminal, etc.

[0036] In an alternative case, please refer to Figure 1 , which shows a schematic diagram of the implementation environment of a method for repairing abnormal animation playback provided by an embodiment of the present application. Figure 1As shown, the implementation environment 10 may further include a service device 102 in addition to the electronic device 101. The electronic device 101 is connected to the service device 102 via a wireless network. The service device 102 is used to provide the electronic device 101 with the data it needs. Optionally, the service device 102 may be one or more servers, cloud service clusters, etc. It should be noted that the implementation environment may include one or more electronic devices. Figure 1 The implementation environment includes an electronic device, and the electronic device is an in-vehicle device.

[0037] In one application scenario, the electronic device is a vehicle-mounted device. The service device 102 may store a startup animation file of the electronic device and may provide the startup animation file to multiple vehicle-mounted devices connected thereto. The vehicle-mounted device may run the startup animation file on a black screen to play the startup animation when the vehicle is turned off and in sleep mode before starting the vehicle.

[0038] Please refer to Figure 2 , which shows a flow chart of a method for repairing abnormal animation playback provided by an embodiment of the present application. The method for repairing abnormal animation playback can be applied to the aforementioned implementation environment and executed by an electronic device in the implementation environment. Figure 2 As shown, the methods for repairing abnormal animation playback include:

[0039] Step 201, start the boot animation execution program.

[0040] In the embodiment of the present application, the electronic device starts the boot animation execution program in response to meeting the boot animation playback opportunity to prepare for playing the boot animation. For example, when the electronic device is a vehicle-mounted device, the vehicle-mounted device can start the boot animation execution program after the vehicle is powered on and in a state of ignition off and sleep before the vehicle is started.

[0041] Step 202: Run the boot animation file through the boot animation execution program to execute the animation playing task.

[0042] In the embodiment of the present application, the boot animation execution program is used to run the boot animation file to execute the boot animation playing task and play the boot animation. After starting the boot animation execution program, the electronic device can obtain the boot animation file through the boot animation execution program, thereby running the obtained boot animation file and playing the boot animation.

[0043] Optionally, the boot animation file may be stored in the electronic device when it leaves the factory. The electronic device may obtain the boot animation file from its own storage space. Alternatively, the boot animation file may also be stored in a third-party device. The electronic device may read the boot animation file from a third-party device. Among them, the boot animation file usually has specific file requirements. For example, the naming requirements of the boot animation file, the number and name of the folders where it is located, the content requirements of the specific boot animation files stored in each folder, etc.

[0044] For example, please refer to Figures 3 to 6 , which shows a schematic diagram of the file requirements of the boot animation file at four angles provided by the embodiment of the present application. Figure 3 As shown, the boot animation file is stored in the boot animation main folder. And the boot animation file needs to be classified and stored in the first folder and the second folder, and the boot animation file also includes a description file desc.txt stored in the same address as the first folder and the second folder. The name of the first folder is part0; the name of the second folder is part1.

[0045] The boot animation files stored in the first folder and the second folder are image resource files of the boot animation. The image resources in the first folder and the second folder are played in the order indicated by the file names. Figure 4 As shown, the first folder includes more than 130 picture resource files. The picture file resources are played in the order of their file names. The file names of the 130 picture resource files can be 001.jpg, 002.jpg, 003.jpg, 004.jpg, ..., 130.jpg. Figure 5 As shown, the second folder includes 50 picture resource files. The picture resource files are played in the order of their file names. The names of the 50 picture resource files can be 001.jpg, 002.jpg, 003.jpg, ..., 50.jpg in sequence.

[0046] The description file desc.txt is used to record the playback specifications of the boot animation. Figure 6 As shown, the description file desc.txt records the first instruction: 1920 720 25; the second instruction c 1 0part0; the third instruction p 0 0part1. Among them, the first instruction indicates that the screen resolution of the boot animation is 1920*720, and the frame rate is 25 frames per second. The second instruction indicates that the picture resource files in the first folder are played once every 0 frames. That is, the playback interval frame number of the picture resource files in the first folder is 0. The third instruction indicates that the picture resource files in the second folder are played once every 0 frames, and are played in a loop.

[0047] Step 203: Detect the attribute status of the animation playing task.

[0048] In the embodiment of the present application, the electronic device can record the current attribute state of the animation playing task. The attribute state indicates the execution progress of the animation playing task.

[0049] In an optional implementation, the attribute state includes the actual playback duration of the boot animation file. That is, the electronic device can start by running the boot animation file through the boot animation execution program to play the boot animation file, start timing, determine the timing duration as the actual playback duration of the boot animation file, and obtain the attribute state of the animation playback task. It is not difficult to understand that if the boot animation execution program cannot play the boot animation file, the timing duration (actual playback duration) is 0. If the boot animation execution program successfully plays the boot animation file, the timing duration (actual playback duration) is the target playback duration of the boot animation file.

[0050] In another optional implementation, the process of running the boot animation file through the boot animation execution program can be divided into four processes, including: starting to execute the animation playback task and not starting to read the boot animation file, reading the boot animation file, playing the boot animation file, and ending the playback of the boot animation file. Based on this, the attribute status of the animation playback task may include: ready to play status, file reading status, playing status or playback end status. Among them, the ready to play status indicates that the electronic device is in the process of starting to execute the animation playback task and has not started to read the boot animation file. The file reading status indicates that the electronic device is in the process of reading the boot animation file. The playing status indicates that the electronic device is in the process of playing the boot animation file. The playback end status indicates that the electronic device is in the process of finishing playing the boot animation file.

[0051] In some embodiments of the present application, the electronic device can detect the attribute status of the animation playback task when the boot animation execution program indicates that the execution is completed or the execution is abnormal. Alternatively, in some embodiments, the electronic device can read the attribute status of the animation playback task when the running time of the boot animation execution program meets the target duration. The target duration is greater than the playback duration of the boot animation file. Optionally, the playback duration of the boot animation file is usually 30 to 50 seconds. The target duration can be 1 minute.

[0052] Further optionally, the electronic device may start timing after running the boot animation file through the boot animation execution program, and read the attribute status of the animation playback task when the timing duration meets the target duration to detect the attribute status of the animation playback task. For example, the electronic device may start a 1-minute timer after running the boot animation file through the boot animation execution program. The 1-minute timer is used to record the 1-minute duration. When the timing duration of the 1-minute timer meets the target duration, indicating that the running duration of the boot animation execution program meets the target duration, the electronic device reads the attribute status of the animation playback task.

[0053] Step 204: when it is determined through the attribute status that the electronic device is in a state where the startup animation file is executed abnormally, a backup animation file is obtained, and the startup animation file is replaced with the backup animation file.

[0054] In the embodiment of the present application, the abnormal execution of the boot animation file refers to the abnormality that the boot animation cannot be played completely due to problems with the boot animation file. There may be many reasons for the abnormal execution of the boot animation file. Figures 7 to 9 Taking the three problems shown in the figure as examples, the causes of abnormal execution of the boot animation file are schematically explained. Figure 7 As shown, the boot animation file is stored in the boot animation main folder. In addition to the first folder part0, the second folder part1 and the description file desc.txt, the boot animation main folder has one more folder - DuoYu. Figure 8 As shown, the boot animation file only has the first folder part0 and the second folder part1, but lacks the description file desc.txt (i.e., the configuration file). Fig. 9 As shown, the file names of the image resource files in the first folder part0 are chaotic and not arranged in the playback order. When the startup animation file of the electronic device executes abnormally, the backup animation file can be used to replace the abnormal startup animation file, so as to restart the animation playback task by running the backup animation file later.

[0055] In an optional implementation, when the attribute state of the animation playback task includes the actual playback duration of the startup animation file, the electronic device may store a target playback duration of the startup animation file. The electronic device reads the actual playback duration in the attribute state. Determine whether the actual playback duration of the startup animation file is equal to the target playback duration. When the actual playback duration is equal to the target playback duration, it indicates that the startup animation file is executing normally. When the actual playback duration is not equal to the target playback duration, it indicates that the startup animation file is executing abnormally. The electronic device obtains a backup animation file and uses the backup animation file to replace the startup animation file.

[0056] In another optional implementation, when the attribute status of the animation playback task includes: ready to play status, file reading status, playing status or playback end status, the electronic device can determine that the electronic device is in an abnormal execution of the startup animation file when the attribute status is ready to play status or file reading status, obtain a backup animation file, and use the backup animation file to replace the startup animation file.

[0057] In some embodiments of the present application, the electronic device may store a backup animation file. The electronic device directly reads the backup animation file stored in itself to obtain the backup animation file. Alternatively, the backup animation file may be stored in a third-party device (such as a service device). The electronic device may request the backup animation file from the third-party device so that the third-party device sends the backup animation file to the electronic device. After obtaining the backup animation file, the electronic device may delete the boot animation file and store the backup animation file in the storage location where the boot animation file is located. For example, the electronic device may store a storage location where the boot animation file is located. After obtaining the backup animation file, the electronic device may delete the boot animation file on the storage location and store the backup animation file in the storage location.

[0058] Step 205: Restart the boot animation execution program.

[0059] In the embodiment of the present application, the electronic device can call the boot animation execution program to restart the boot animation execution program. For example, when the electronic device is a vehicle-mounted device, the vehicle-mounted device can restart the boot animation execution program again when the vehicle is powered on and the engine is turned off and dormant before the vehicle is started.

[0060] Step 206: Run the backup animation file through the boot animation execution program and restart the animation play task.

[0061] Optionally, before the electronic device runs the backup animation file through the boot animation execution program, it can also calculate the MD5 value of the backup animation file, so that if the MD5 value of the backup animation file does not change, indicating that the backup animation file is correct, the backup animation file can be run through the boot animation execution program to restart the animation playback task. Further optionally, if the MD5 value of the backup animation file changes, indicating that the backup animation file is abnormal, a new backup animation file can be requested from a third-party device, or the animation playback task can be skipped.

[0062] For example, the electronic device may store a target MD5 value of a backup animation file. The target MD5 value of the backup animation file may be the correct MD5 value of the file that is synchronously stored by the electronic device when receiving the backup animation file. The electronic device may calculate the MD5 value of the backup animation file by using the MD5 algorithm. Determine whether the calculated MD5 value of the backup animation file is the same as the target MD5 value. When the calculated MD5 value of the backup animation file is the same as the target MD5 value, it indicates that the MD5 value of the backup animation file has not changed. The electronic device may run the backup animation file through the startup animation execution program and restart the animation playback task. When the calculated MD5 value of the backup animation file is different from the target MD5 value, it indicates that the MD5 value of the backup animation file has changed. The electronic device may request a new backup animation file from a third-party device.

[0063] Further optionally, before the electronic device runs the backup animation file through the boot animation execution program, it can also calculate the MD5 value of the backup animation file and the length of the backup animation file. Therefore, if the MD5 value of the backup animation file has not changed and the length of the backup animation file has not changed, indicating that the backup animation file is correct, the backup animation file is run through the boot animation execution program to restart the animation playback task. Further optionally, if the MD5 value of the backup animation file changes, or the length of the backup animation file indicates that the backup animation file is abnormal, a new backup animation file can be requested from a third-party device, or the animation playback task can be skipped.

[0064] For example, the electronic device may store the target MD5 value and target length of the backup animation file so that the electronic device can determine whether the MD5 value and length of the backup animation file have changed. The target length may be the correct length of the backup animation file that the electronic device synchronously stores when receiving the backup animation file.

[0065] In some embodiments of the present application, the electronic device can also monitor the execution process number of the boot animation execution program, and when the execution process number of the boot animation execution program changes, indicating that the boot animation execution program has flashed back or completed, by judging whether the electronic device is in an abnormal state of boot animation file execution, in the case where the electronic device is in an abnormal state of boot animation file execution, use a backup animation file to restart the animation playback task, so as to achieve timely repair of the abnormal boot animation playback and further improve the playback stability of the boot animation. Optionally, as Fig.10 As shown, the method for repairing abnormal animation playback also includes the following steps 1001 to 1005.

[0066] Step 1001: monitor the execution process number of the boot animation execution program.

[0067] Optionally, the electronic device may call the first instruction in real time or periodically to obtain the execution process number of the boot animation execution program according to the program name of the boot animation execution program. The first instruction is used to obtain the current execution process number of the application according to the program name of the application.

[0068] For example, the animation detection script includes a first instruction. The electronic device can obtain the execution process number of the boot animation execution program according to the program name of the boot animation execution program by calling the animation detection script. For example, the animation detection script is a shell language script. The first instruction is: adb shell dumpsys activity services [<program name>].

[0069] Step 1002: When the execution process number is changed, the error log is called, and the error log records the reason why the execution process number is changed.

[0070] In an embodiment of the present application, the electronic device can determine whether the execution process numbers of the boot animation execution program obtained twice are the same. If the execution process numbers obtained twice are different, indicating that the execution process number has changed, the electronic device can call the error log. Correspondingly, optionally, if the execution process numbers obtained twice are the same, indicating that the execution process number has not changed, the electronic device can return to the step of monitoring the execution process number of the boot animation execution program.

[0071] Step 1003: When it is determined through the error log that the electronic device is in a state where the startup animation file is executed abnormally, a backup animation file is obtained, and the startup animation file is replaced with the backup animation file.

[0072] In the embodiment of the present application, the electronic device parses the error log, determines whether the electronic device is in the process of abnormal execution of the boot animation file through the error log, and obtains the backup animation file and replaces the boot animation file with the backup animation file when it is determined that the electronic device is in the process of abnormal execution of the boot animation file. The explanation and implementation of the electronic device obtaining the backup animation file and replacing the boot animation file with the backup animation file can refer to the relevant description of the aforementioned step 204, and the embodiment of the present application will not be repeated here.

[0073] Step 1004, restart the boot animation execution program.

[0074] The explanation and implementation of this step can refer to the explanation and implementation of the aforementioned step 205, and will not be elaborated in detail in the embodiment of the present application.

[0075] Step 1005: Run the backup animation file through the boot animation execution program and restart the animation playback task.

[0076] The explanation and implementation of this step can refer to the explanation and implementation of the aforementioned step 206, and will not be elaborated in detail in this embodiment of the present application.

[0077] In some embodiments of the present application, before the electronic device runs the boot animation file through the boot animation execution program, it can also first determine whether the boot animation file is abnormal. Therefore, in the case of an abnormal boot animation file, the boot animation execution program is not executed to run the boot animation file, and the backup animation file is directly used to restart the animation playback task, further realizing timely repair of the abnormal boot animation playback and improving the playback stability of the boot animation.

[0078] Optionally, the process of the electronic device running the boot animation file through the boot animation execution program may include: running the boot animation file through the boot animation execution program when the MD5 value is not changed.

[0079] Correspondingly, optionally, before the electronic device runs the boot animation file through the boot animation execution program, it can also calculate the MD5 value of the boot animation file. Determine whether the MD5 value of the boot animation file has changed. If the MD5 value has not changed, indicating that the boot animation file is correct, run the boot animation file through the boot animation execution program. If the MD5 value changes, indicating that the boot animation file is abnormal, obtain the backup animation file, use the backup animation file to replace the boot animation file, restart the boot animation execution program, run the backup animation file through the boot animation execution program, and restart the animation playback task. It should be noted that the electronic device obtains the backup animation file, replaces the boot animation file with the backup animation file, restarts the boot animation execution program, runs the backup animation file through the boot animation execution program, and restarts the animation playback task. The implementation method can refer to the aforementioned explanation and implementation of steps 204 to 206, and the embodiments of the present application will not be repeated here.

[0080] For example, the electronic device may store a target MD5 value of a boot animation file. The target MD5 value of the boot animation file may be the correct MD5 value of the file that is synchronously stored by the electronic device when receiving the boot animation file. The electronic device may calculate the MD5 value of the boot animation file by using the MD5 algorithm. Determine whether the calculated MD5 value of the boot animation file is the same as the target MD5 value. When the calculated MD5 value of the boot animation file is the same as the target MD5 value, it indicates that the MD5 value of the boot animation file has not changed, and step 202 is executed to run the boot animation file through the boot animation execution program to start the animation playback task. When the calculated MD5 value of the boot animation file is different from the target MD5 value, it indicates that the MD5 value of the boot animation file has changed. The electronic device may use a backup animation file to replace the boot animation file, restart the boot animation execution program, and run the backup animation file through the boot animation execution program.

[0081] Further optionally, the process of the electronic device running the boot animation file through the boot animation execution program may include: running the boot animation file through the boot animation execution program when the MD5 value is not changed and the length of the boot animation file is not changed.

[0082] Correspondingly, optionally, before the electronic device runs the boot animation file through the boot animation execution program, it can also calculate the MD5 value of the boot animation file and the length of the boot animation file. Determine whether the MD5 value of the boot animation file has changed, and determine whether the length of the boot animation file has changed. If the MD5 value has not changed and the length of the boot animation file has not changed, indicating that the boot animation file is correct, run the boot animation file through the boot animation execution program. If the MD5 value changes, or the length of the boot animation file changes, indicating that the boot animation file is abnormal, use a backup animation file to replace the boot animation file, restart the boot animation execution program, and run the backup animation file through the boot animation execution program.

[0083] In some embodiments of the present application, the electronic device can also report to the service device when there is an abnormality in the boot animation file so that the service device can broadcast to all electronic devices connected to it. Then, the electronic devices receiving the broadcast of the service device can directly use the backup animation file to start the animation playback task, which saves the process of repairing the abnormality of the boot animation while ensuring the playback stability of the boot animation.

[0084] Optionally, the method for repairing animation playback abnormality further includes: after obtaining the backup animation file, sending file abnormality information to the service device, so that the service device broadcasts a file deletion instruction to all target electronic devices that have downloaded the startup animation file. The file deletion instruction is used for the target electronic device to use the backup animation file to replace the downloaded startup animation file. The file abnormality information is used to indicate that the startup animation file is abnormal.

[0085] In the embodiment of the present application, when the electronic device obtains the backup animation file and is ready to use the backup animation file to replace the boot animation file to start the animation playback task, the electronic device sends file abnormality information to the service device through the connection network between the electronic device and the service device. When the service device receives the file abnormality information, it can broadcast a file deletion instruction to the target electronic device, so that the target electronic device obtains the backup animation file, replaces the boot animation file with the backup animation file, and then after starting the boot animation execution program, runs the backup animation file through the boot animation execution program to perform the animation playback task.

[0086] Further optionally, when receiving the file abnormality information, the service device can also send a new boot animation file to the target electronic device, so that the target electronic device replaces the original boot animation file with the new boot animation file, and then after starting the boot animation execution program, the new boot animation file is run through the boot animation execution program to perform the animation playback task.

[0087] Optionally, the electronic device can also call the animation detection script to execute the method for repairing the abnormal animation playback provided in the embodiment of the present application. For example, the animation detection script includes instructions for executing each step of the method for repairing the abnormal animation playback provided in the embodiment of the present application. The electronic device sequentially calls the animation detection script including various instructions to execute the method for repairing the abnormal animation playback provided in the embodiment of the present application. In this way, since the script file can be compiled and run on the electronic device by a third party. Therefore, by using the animation detection script to execute the method provided in the embodiment of the present application, it is possible to solve the abnormal problem of the internal startup animation execution program of the electronic device through an external application. Compared with the method of changing the internal application, the efficiency of solving internal program problems is improved.

[0088] For example, Fig.11 As shown, the vehicle manufacturer device (i.e., the service device) can push the boot animation file to the vehicle-mounted device of each vehicle connected to it. The vehicle-mounted device downloads the boot animation file. The animation detection script is started when the vehicle is turned off. The boot animation execution program is started through the animation detection script. When the animation detection script determines that the vehicle-mounted device has an abnormal boot animation file, the backup animation file is used to replace the boot animation file. The boot animation execution program is killed through the animation detection script. Then, the boot animation execution program is restarted through the animation detection script. The backup animation file is run through the boot animation execution program and the animation playback task is restarted. If the animation detection script is used again to determine that the vehicle-mounted device is in a state of abnormal boot animation file, the backup animation file is used to replace the boot animation file again, and then the boot animation execution program is killed, the boot animation execution program is restarted, and the backup animation file is run through the boot animation execution program. If the animation detection script is also used to determine that the vehicle-mounted device is in a state of abnormal boot animation file, the backup animation file can be used to replace the boot animation file again, and then the boot animation execution program is killed, the boot animation execution program is restarted, and the backup animation file is run through the boot animation execution program. If the vehicle-mounted device has three abnormal startup animation file errors, the abnormal emergency program is started and the factory settings of the vehicle-mounted device are restored through the abnormal emergency program.

[0089] In summary, the method for repairing abnormal animation playback provided by the embodiment of the present application, when starting the boot animation execution program, running the boot animation file through the boot animation execution program to execute the animation playback task, by detecting the attribute status of the animation playback task, when it is determined through the attribute status that the electronic device is in the state of abnormal boot animation file execution, the backup animation file is used to replace the boot animation file, and then the boot animation execution program is restarted to run the backup animation file through the boot animation execution program, restart the animation playback task, and ensure the playback of the boot animation. In this technical solution, by detecting the attribute status of the animation playback task, when it is determined through the attribute status that the electronic device is in the state of abnormal boot animation file execution, the backup animation file is promptly used to replace the abnormally played animation file, and the playback of the backup animation file is guaranteed by restarting the animation playback task, thereby realizing the timely repair of the boot animation playback task when the boot animation playback is abnormal, and improving the playback stability of the boot animation.

[0090] Please refer to Fig.12 , which shows a block diagram of a device for repairing abnormal animation playback provided by an embodiment of the present application. Fig.12 As shown, the device 1200 for repairing abnormal animation playback includes: a starting module 1201, an operation module 1202, a detection module 1203, a replacement module 1204 and a restart module 1205.

[0091] The startup module 1201 is used to start the startup animation execution program;

[0092] The running module 1202 is used to run the boot animation file through the boot animation execution program to perform the animation playing task;

[0093] The detection module 1203 is used to detect the attribute status of the animation playing task;

[0094] A replacement module 1204 is used to obtain a backup animation file and replace the startup animation file with the backup animation file when it is determined through the attribute status that the electronic device is in a state where the startup animation file is executed abnormally;

[0095] Restart module 1205, used to restart the boot animation execution program;

[0096] The running module 1202 is also used to run the backup animation file through the boot animation execution program and restart the animation playing task.

[0097] In an embodiment of the present application, by detecting the attribute status of the animation playback task, when it is determined through the attribute status that the electronic device is in an abnormal state of execution of the startup animation file, the backup animation file can be used in time to replace the abnormally played animation file, and by restarting the animation playback task, the playback of the backup animation file can be guaranteed, thereby achieving timely repair of the startup animation playback task when the startup animation playback is abnormal, thereby improving the playback stability of the startup animation.

[0098] Optionally, the apparatus 1200 for repairing abnormal animation playback further includes: a monitoring module and a calling module.

[0099] The monitoring module is used to monitor the execution process number of the boot animation execution program;

[0100] The calling module is used to call the error log when the execution process number is changed, and the error log records the reason why the execution process number is changed;

[0101] The replacement module 1204 is further configured to obtain a backup animation file and replace the startup animation file with the backup animation file when it is determined through the error log that the electronic device is in a state of abnormal execution of the startup animation file;

[0102] The restart module 1205 is also used to restart the boot animation execution program;

[0103] The running module 1202 is also used to run the backup animation file through the boot animation execution program and restart the animation playing task.

[0104] Optionally, the detection module 1203 is further configured to read the attribute status of the animation playing task when the running time of the boot animation execution program meets the target time, the attribute status including the ready to play state, the file reading state, the playing state or the play end state;

[0105] The replacement module 1204 is further configured to determine that the electronic device is in a startup animation file execution abnormality when the attribute state is in a ready-to-play state or a file-reading state;

[0106] Among them, the ready-to-play state indicates that the electronic device is in the process of starting to execute the animation playback task and has not started to read the startup animation file; the reading file state indicates that the electronic device is in the process of reading the startup animation file; the playing state indicates that the electronic device is in the process of playing the startup animation file; the playback end state indicates that the electronic device is in the process of finishing playing the startup animation file.

[0107] Optionally, the apparatus 1200 for repairing abnormal animation playback further includes: a timing module for starting timing;

[0108] The detection module 1203 is further used to read the attribute status of the animation playing task when the timing duration meets the target duration.

[0109] Optionally, the apparatus 1200 for repairing abnormal animation playback further includes: a calculation module, configured to calculate the MD5 value of the boot animation file;

[0110] The running module 1202 is further used to run the boot animation file through the boot animation execution program when the MD5 value is not changed;

[0111] The replacement module 1204 is further used to obtain a backup animation file when the MD5 value is changed, and use the backup animation file to replace the boot animation file;

[0112] The restart module 1205 is also used to restart the boot animation execution program;

[0113] The running module 1202 is also used to run the backup animation file through the boot animation execution program and restart the animation playing task.

[0114] Optionally, the running module 1202 is further configured to run the boot animation file through the boot animation execution program when the MD5 value is not changed and the length of the boot animation file is not changed;

[0115] The replacement module 1204 is also used to obtain a backup animation file when the MD5 value is changed or the length of the boot animation file is changed.

[0116] Optionally, the animation playback abnormality repair device 1200 also includes: a sending module, used to send file abnormality information to the service device, so that the service device broadcasts a file deletion instruction to all target electronic devices that have downloaded the startup animation file, wherein the file deletion instruction is used for the target electronic device to use a backup animation file to replace the downloaded startup animation file, and the file abnormality information is used to indicate that the startup animation file is abnormal.

[0117] In summary, the device for repairing abnormal animation playback provided by the embodiment of the present application, when starting the boot animation execution program and running the boot animation file through the boot animation execution program to execute the animation playback task, detects the attribute status of the animation playback task, and when it is determined through the attribute status that the electronic device is in the state of abnormal boot animation file execution, replaces the boot animation file with a backup animation file, and then restarts the boot animation execution program, runs the backup animation file through the boot animation execution program, restarts the animation playback task, and ensures the playback of the boot animation. In this technical solution, by detecting the attribute status of the animation playback task, when it is determined through the attribute status that the electronic device is in the state of abnormal boot animation file execution, the backup animation file is promptly used to replace the abnormally played animation file, and the playback of the backup animation file is ensured by restarting the animation playback task, thereby realizing timely repair of the boot animation playback task when the boot animation playback is abnormal, and improving the playback stability of the boot animation.

[0118] The embodiment of the present application also provides an electronic device, which may include a processor and a memory. The memory is used to store computer programs. The processor is used to implement the method for repairing animation playback abnormality provided in the method embodiment of the present application when executing the program stored in the memory.

[0119] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method for repairing abnormal animation playback is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0120] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0121] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for repairing abnormal animation playback, characterized in that: The method comprises: Start the boot animation execution program; Running the boot animation file through the boot animation execution program to execute the animation playing task; Detecting the attribute status of the animation playing task; When it is determined through the attribute state that the electronic device is in the state where the startup animation file is executed abnormally, obtaining a backup animation file, and replacing the startup animation file with the backup animation file; Restarting the boot animation execution program; The backup animation file is run through the boot animation execution program to restart the animation playing task.

2. The method according to claim 1, characterized in that The method further comprises: Monitor the execution process number of the boot animation execution program; In the case where the execution process number is changed, calling an error log, the error log records the reason why the execution process number is changed; When it is determined through the error log that the electronic device is in a state where the startup animation file is executed abnormally, obtaining a backup animation file, and replacing the startup animation file with the backup animation file; Restarting the boot animation execution program; The backup animation file is run through the boot animation execution program to restart the animation playing task.

3. The method according to claim 1 or 2, characterized in that: The detecting the attribute state of the animation playing task comprises: when the running time of the boot animation execution program meets the target time, reading the attribute state of the animation playing task, the attribute state comprises a ready to play state, a file reading state, a playing state or a play end state; The determining that the electronic device is in the state of abnormal execution of the startup animation file according to the attribute state includes: when the attribute state is the ready-to-play state or the file-reading state, determining that the electronic device is in the state of abnormal execution of the startup animation file; Among them, the ready-to-play state indicates that the electronic device is in the process of starting to execute the animation playback task and has not started to read the startup animation file; the file reading state indicates that the electronic device is in the process of reading the startup animation file; the playing state indicates that the electronic device is in the process of playing the startup animation file; the playback end state indicates that the electronic device is in the process of finishing playing the startup animation file.

4. The method according to claim 3, characterized in that After the boot animation execution program is started, the method further includes: starting timing; When the running time of the boot animation execution program meets the target time, reading the attribute state of the animation playing task includes: When the timing duration meets the target duration, the attribute status of the animation playing task is read.

5. The method according to claim 1, characterized in that The method further comprises: calculating the MD5 value of the boot animation file; The running the boot animation file through the boot animation execution program includes: running the boot animation file through the boot animation execution program when the MD5 value is not changed; The method further comprises: obtaining a backup animation file when the MD5 value is changed, and replacing the startup animation file with the backup animation file; Restarting the boot animation execution program; The backup animation file is run through the boot animation execution program to restart the animation playing task.

6. The method according to claim 5, characterized in that When the MD5 value is not changed, running the boot animation file through the boot animation execution program includes: When the MD5 value is unchanged and the length of the boot animation file is unchanged, running the boot animation file through the boot animation execution program; When the MD5 value is changed, obtaining the backup animation file includes: When the MD5 value changes, or the length of the boot animation file changes, obtain a backup animation file.

7. The method according to claim 1, characterized in that After acquiring the backup animation file, the method further includes: sending file abnormality information to the service device, so that the service device broadcasts a file deletion instruction to all target electronic devices that have downloaded the startup animation file. The file deletion instruction is used for the target electronic device to replace the downloaded startup animation file with a backup animation file, and the file abnormality information is used to indicate that the startup animation file is abnormal.

8. A device for repairing abnormal animation playback, characterized in that: The device comprises: The startup module is used to start the boot animation execution program; A running module, used to run the startup animation file through the startup animation execution program to perform the animation playing task; A detection module, used to detect the attribute status of the animation playing task; A replacement module, configured to obtain a backup animation file and replace the startup animation file with the backup animation file when it is determined through the attribute state that the electronic device is in a state of abnormal execution of the startup animation file; A restart module, used to restart the boot animation execution program; The running module is further used to run the backup animation file through the boot animation execution program and restart the animation playing task.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to implement the method described in any one of claims 1 to 7 when executing the program stored in the memory.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the method described in any one of claims 1 to 7 is implemented.