CN112363866B - Terminal application data recovery method and device, computer equipment and storage medium - Google Patents

Terminal application data recovery method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112363866B
CN112363866B CN202011196215.7A CN202011196215A CN112363866B CN 112363866 B CN112363866 B CN 112363866B CN 202011196215 A CN202011196215 A CN 202011196215A CN 112363866 B CN112363866 B CN 112363866B
Authority
CN
China
Prior art keywords
terminal
multimedia application
media file
file
temporary file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011196215.7A
Other languages
Chinese (zh)
Other versions
CN112363866A (en
Inventor
陈行
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shikun Electronic Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202011196215.7A priority Critical patent/CN112363866B/en
Publication of CN112363866A publication Critical patent/CN112363866A/en
Application granted granted Critical
Publication of CN112363866B publication Critical patent/CN112363866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an application data recovery method of a terminal, which stores a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application, wherein the temporary file records the storage path and the playing progress of the currently played media file. And after the terminal is abnormally restarted, starting the multimedia application, judging whether the abnormal restarting of the terminal is ESD restarting, if so, reading the temporary file through the multimedia application, calling the media file based on a storage path, and continuing playing the media file based on the playing progress. The application data recovery method of the terminal can enable the multimedia application to automatically recover to the last play state after the terminal is restarted by ESD, improves the experience of a user, and simultaneously greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.

Description

Terminal application data recovery method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for recovering application data of a terminal, a computer device, and a storage medium.
Background
Static electricity is a natural phenomenon which objectively exists, when a user uses a terminal to play a multimedia file, if the user carelessly touches the static electricity, the terminal is possibly restarted, and the restarted terminal cannot automatically recover the state of the last play of the multimedia file, so that the purpose of protecting static electricity is achieved by adding a static protector on a board card of the terminal. But this has a problem: because of the huge amount of board card output, adding an electrostatic protector on each board card leads to a dramatic rise in hardware cost.
Disclosure of Invention
The invention mainly aims to provide a method, a device, computer equipment and a storage medium for recovering application data of a terminal, so as to solve the problem that hardware cost is increased sharply due to the fact that an electrostatic protector is added on each board card.
The technical scheme of the invention is as follows:
an application data recovery method of a terminal, wherein the application is a multimedia application, and the method comprises the following steps:
storing a temporary file generated when the multimedia application plays the media file, wherein the temporary file records the storage path and the playing progress of the currently played media file;
starting the multimedia application after the terminal is restarted;
judging whether the abnormal restart is an ESD restart or not;
if yes, the temporary file is read through the multimedia application, the media file is called based on a storage path, and the media file is continuously played based on the playing progress.
Further, the step of storing a temporary file generated when the multimedia application plays the media file, the temporary file recording a storage path and a playing progress of the currently played media file, includes:
acquiring a storage path of a media file at the first time of playing the media file by a multimedia application to form a temporary file;
copying the temporary file into a first appointed directory;
acquiring the playing progress of the media file for a plurality of times according to the designated frequency from the first time of playing the media file by the multimedia application;
and recording the obtained playing progress into a temporary file.
Further, the step of recording the obtained playing progress in the temporary file includes:
recording the currently acquired playing progress into a temporary file;
and deleting the last acquired playing progress in the temporary file.
Further, after the terminal is restarted, before the step of starting the multimedia application, the method further comprises:
monitoring an operating program of the multimedia application;
if the running program exits due to the ESD abnormality, the reset bit of the register is marked as 1;
after the terminal is restarted, acquiring information of reset bit of the register;
judging whether the reset bit of the register is marked as 1 or not;
if yes, recording the appointed character string into a second appointed directory;
the step of judging whether the abnormal restart is an ESD restart or not includes:
judging whether the second appointed catalogue records appointed character strings or not;
if yes, the terminal is judged to be restarted as ESD.
Further, after the terminal is restarted, the step of starting the multimedia application includes:
and after the terminal is restarted, sending a starting broadcast instruction to the multimedia application.
Further, the application data recovery method of the terminal of the present invention further comprises:
after the multimedia application exits, judging whether the multimedia application exits normally;
if yes, deleting the temporary file under the first appointed directory;
if not, the temporary file under the first appointed directory is reserved.
Further, the step of copying the temporary file into the first designated directory includes:
the temporary file is set as a hidden file.
The invention also provides an application data recovery device of the terminal, the application is a multimedia application, and the device comprises:
the storage module is used for storing a temporary file generated when the multimedia application plays the media file, and the temporary file records the storage path and the playing progress of the currently played media file;
the starting module is used for starting the multimedia application after the terminal is restarted;
the judging module is used for judging whether the abnormal restart is an ESD restart or not;
and the recovery module is used for reading the temporary file through the multimedia application after judging that the abnormal restart is the ESD restart, calling the media file based on the storage path and continuing to play the media file based on the playing progress.
The invention also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the application data recovery method of the terminal when executing the computer program.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the application data recovery method of a terminal described above.
The invention provides an application data recovery method of a terminal, which stores a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application, wherein the temporary file records the storage path and the playing progress of the currently played media file. And after the terminal is abnormally restarted, starting the multimedia application, judging whether the abnormal restarting of the terminal is ESD restarting, if so, reading the temporary file through the multimedia application, calling the media file based on a storage path, and continuing playing the media file based on the playing progress. The application data recovery method of the terminal can enable the multimedia application to automatically recover to the last play state after the terminal is restarted by ESD, improves the experience of a user, and simultaneously greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.
Drawings
Fig. 1 is a flowchart of an application data recovery method of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an application data recovery device of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; the connection may be mechanical connection, direct connection or indirect connection through an intermediate medium, and may be internal connection of two elements or interaction relationship of two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "above" or "below" a second feature may include both the first and second features being in direct contact, as well as the first and second features not being in direct contact but being in contact with each other through additional features therebetween. Moreover, a first feature being "above," "over" and "on" a second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "under", "below" and "beneath" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is less level than the second feature.
Referring to fig. 1, a flowchart of a method for recovering application data of a terminal according to an embodiment of the present invention is shown, where the method includes:
s1: storing a temporary file generated when the multimedia application plays the media file, wherein the temporary file records the storage path and the playing progress of the currently played media file;
s2: starting the multimedia application after the terminal is restarted;
s3: judging whether the abnormal restart is an ESD restart or not;
s4: if yes, the temporary file is read through the multimedia application, the media file is called based on the storage path, and the media file is continuously played based on the playing progress.
In step S1, a temporary file generated when the multimedia application plays the media file is stored in the process of playing the media file by the multimedia application. The temporary file records the storage path and playing progress of the currently played media file. The media file is a video file or an audio file, and can be a local media file of the terminal or a media file of an external device, wherein the external device can be a USB flash disk, a hard disk, a mobile phone, a memory card and the like.
In step S2, when the multimedia application is in the process of playing the media file, the terminal is restarted abnormally, and immediately after the terminal is restarted, the multimedia application which is stopped abnormally due to the restarting of the terminal is started.
In step S3, since there are many reasons for causing the terminal to be abnormally restarted, it is determined in step S3 whether the restart of the terminal occurs due to contact with static electricity, that is, whether the abnormal restart of the terminal is an ESD restart.
In step S4, after confirming that the abnormal restart of the terminal is ESD restart, the temporary file stored in step S1 is read by the started multimedia application, the media file played at the time is found based on the storage path recorded in the temporary file, and the media file is continuously played from the play progress recorded in the temporary file, so that the multimedia application is restored to the last play state.
The invention provides an application data recovery method of a terminal, which stores a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application, wherein the temporary file records the storage path and the playing progress of the currently played media file. And after the terminal is abnormally restarted, starting the multimedia application, judging whether the abnormal restarting of the terminal is ESD restarting, if so, reading the temporary file through the multimedia application, calling the media file based on a storage path, and continuing playing the media file based on the playing progress. The application data recovery method of the terminal can enable the multimedia application to automatically recover to the last play state after the terminal is restarted by ESD, improves the experience of a user, and simultaneously greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.
In the method for recovering application data of a terminal according to an embodiment of the present invention, the step S1 of storing a temporary file generated when a multimedia application plays a media file, where the temporary file records a storage path and a playing progress of the currently played media file includes:
s1.1: acquiring a storage path of a media file at the first time of playing the media file by a multimedia application to form a temporary file;
s1.2: copying the temporary file into a first appointed directory;
s1.3: acquiring the playing progress of the media file for a plurality of times according to the designated frequency from the first time of playing the media file by the multimedia application;
s1.4: and recording the obtained playing progress into a temporary file.
In step S1.1, when the multimedia application starts playing the media file, a storage path of the currently played media file is obtained to form a temporary file. In this embodiment, the temporary file may be formed by acquiring other information such as a file type of the media file while acquiring a storage path of the media file.
In step S1.2, the temporary file is copied to the first designated directory. The first specified directory may be a root directory of the media file. For example, when the multimedia application plays a media file in a usb disk connected to the terminal, the first specified directory is a root directory of the currently played media file in the usb disk. The file name of the temporary file is save_media_info.
In steps S1.3 and S1.4, the playing progress of the media file is acquired a plurality of times according to the designated frequency from the first time when the media file is played by the multimedia application, and recorded into the temporary file. For example, the playing progress of the media file is recorded every 10s, and the frequency of recording the playing progress is not limited by the present invention. In order to enhance the user's experience, the frequency of the progress of playing the recording medium file is not easily too low, and preferably not less than once every 30 seconds.
The embodiment records the storage path of the media file played by the multimedia application and the current playing progress and forms a temporary file for storage, so that the subsequent multimedia application can find the media file played last time by reading the temporary file and continue playing from the last playing progress.
In the method for recovering application data of a terminal according to an embodiment of the present invention, the step S1.4 of recording the obtained playing progress in the temporary file includes:
s1.4.1: recording the currently acquired playing progress into a temporary file;
s1.4.2: and deleting the last acquired playing progress in the temporary file.
In steps S1.4.1 and S1.4.2, the playing progress of the media file obtained each time is recorded into the temporary file, and the playing progress recorded last time is deleted, so that the size of the temporary file can be reduced, errors occurring when the temporary file is read by the subsequent multimedia application and the playing is continued from the playing progress recorded last time, and the influence on the user experience can be avoided.
In the method for recovering application data of a terminal according to an embodiment of the present invention, before step S2 of starting a multimedia application after the terminal is restarted, the method further includes:
s1a: monitoring an operating program of the multimedia application;
s1b: if the running program exits due to the ESD abnormality, the reset bit of the register is marked as 1;
s1c: after the terminal is restarted, acquiring information of reset bit of the register;
s1d: judging whether the reset bit of the register is marked as 1 or not;
s1e: if yes, recording the appointed character string into a second appointed directory.
The step S3 of determining whether the abnormal restart is an ESD restart includes:
s3.1: judging whether the second appointed catalogue records appointed character strings or not;
s3.2: if yes, the terminal is judged to be restarted as ESD.
In steps S1a and S1b, the system bottom layer has a watch dog (Watchdog) to continuously monitor the running program of the multimedia application. If the Watchdog monitors that the program is exiting because of an ESD exception, the reset bit of the register is marked as 1. The principle of a watchdog Timer is applied, the watchdog Timer (WDT, watch Dog Timer) is an integral part of the single chip microcomputer, and is actually a counter, generally a number is given to the watchdog Timer, and the watchdog Timer starts counting after the program starts running. If the program runs normally, the CPU should give out an instruction to make the watchdog timer set to zero after a period of time, and the counting is restarted. If the watchdog timer count increases to the set point, the program is deemed not to be working properly, forcing the entire system to reset. In this embodiment, steps S1a and S1b are completed before the terminal is restarted.
In steps S1c, S1d and S1e, after the terminal is restarted, that is, when the terminal is started, the reset bit of the acquired register is marked as 1, and the terminal records the specified character string into the second specified directory. Specifically, in the present embodiment, the second specified directory is per proc/cmdline, and the specified character string here is "wtretestbyesd=1". When the reset bit of the acquired register is marked as 1, the terminal temporarily writes the character string of "wtretbyesd=1" into bootargs, and after writing, the corresponding character string is seen under the/proc/cmdline directory.
In S3.1 and S3.2, after the terminal is restarted, the multimedia application is started, and according to whether a character string of "wdtresetbyesd=1" appears under the directory/proc/cmdline, the multimedia application judges whether the terminal is restarted by ESD. If the character string of "WdtresetByEsd=1" appears under the directory/proc/cmdline, the abnormal restart of the terminal is judged to be the ESD restart.
In this embodiment, the running program of the multimedia application is monitored through the Watchdog, when the running program is found to exit abnormally due to ESD, the Watchdog marks the reset bit of the register as 1, then the terminal restarts, and after restarting, the string of "wtretbyesd=1" is recorded in the directory of proc/cmdline by acquiring that the reset bit of the register is marked as 1. After the terminal is restarted, the multimedia application which is abnormally exited before is started, and whether the terminal is restarted by ESD is judged according to whether a character string of 'WdtresetByEsd=1' appears under the directory/proc/cmdline.
In the method for recovering application data of a terminal according to an embodiment of the present invention, after the terminal is restarted, step S2 of starting the multimedia application includes:
s2.1: and after the terminal is restarted, sending a starting broadcast instruction to the multimedia application.
In step S2.1, after the terminal is restarted, a start-up broadcast command is sent, the multimedia application registers the broadcast in android management.
In this embodiment, after the terminal is restarted, the multimedia application that was last forced to be closed due to the terminal is started by sending a start-up broadcast command to the multimedia application.
Further, the application data recovery method of the terminal according to an embodiment of the present invention further includes:
s01: after the multimedia application exits, judging whether the multimedia application exits normally;
s02: if yes, deleting the temporary file under the first appointed directory;
s03: if not, the temporary file under the first appointed directory is reserved.
After the temporary file generated when the multimedia application plays the multimedia file is stored in the first appointed directory, if the multimedia application normally exits, the temporary file stored in the first appointed directory is deleted immediately, so that the occupation of the storage space is avoided. If the multimedia application is abnormal exit, a temporary file stored in the first appointed directory is reserved for the subsequent multimedia application to resume the last play state.
In the method for recovering application data of a terminal according to an embodiment of the present invention, in step S1.2 of copying a temporary file to a first designated directory, the method includes:
s1.2.1: the temporary file is set as a hidden file.
In the embodiment, the temporary file is set as the hidden file, and the user cannot see the temporary file under the file directory, so that the temporary file can be prevented from being deleted by the user by mistake.
Referring to fig. 2, the present invention further provides an application data recovery apparatus of a terminal, where the application is a multimedia application, and the apparatus includes:
the storage module 11 is used for storing a temporary file generated when the multimedia application plays the media file, wherein the temporary file records the storage path and the playing progress of the currently played media file;
a starting module 12, configured to start the multimedia application after the terminal is restarted;
a judging module 13, configured to judge whether the abnormal restart is an ESD restart;
the recovery module 14 is configured to read the temporary file through the multimedia application, call the media file based on the storage path, and continue playing the media file based on the playing progress after determining that the abnormal restart is the ESD restart.
Specifically, the storage module 11 stores temporary files generated when the multimedia application plays the media file in the process of playing the media file by the multimedia application. The temporary file records the storage path and playing progress of the currently played media file. The media file is a video file or an audio file, and can be a local media file of the terminal or a media file of an external device, wherein the external device can be a USB flash disk, a hard disk, a mobile phone, a memory card and the like.
When the multimedia application is in the process of playing the media file, the terminal is restarted, and after the terminal is restarted, the starting module 12 immediately starts the multimedia application which is stopped abnormally due to the restarting of the terminal.
Since there are many reasons for causing the terminal to restart abnormally, the judging module 13 judges whether the terminal is restarted due to contact with static electricity after the terminal is restarted, that is, judges whether the terminal restart abnormally is an ESD restart.
When it is confirmed that the abnormal restart of the terminal is the ESD restart, the recovery module 14 controls the started multimedia application to read the temporary file stored by the storage module 11, find the media file played at the time based on the storage path recorded in the temporary file, and continue playing the media file from the playing progress recorded in the temporary file, so that the multimedia application is recovered to the last playing state.
The invention provides an application data recovery device of a terminal, which stores a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application through a storage module 11, wherein the temporary file records the storage path and the playing progress of the currently played media file. After the terminal is restarted abnormally, the starting module 12 starts the multimedia application, the judging module 13 judges whether the terminal is restarted by ESD, if yes, the multimedia application reads the temporary file through the recovering module 14, calls the media file based on the storage path, and continues to play the media file based on the playing progress. The application data recovery device of the terminal can enable the multimedia application to automatically recover to the last play state after the terminal is restarted by ESD, improves the experience of a user, and simultaneously greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.
The present invention also provides a computer device, which may be a server, and the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing programs of the application data recovery method of the terminal, and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the application data recovery method of the terminal in the above embodiments.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the application data recovery method of the terminal in the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the invention.

Claims (9)

1. An application data recovery method of a terminal, wherein the application is a multimedia application, the method comprising:
storing a temporary file generated when the multimedia application plays the media file, wherein the temporary file records the storage path and the playing progress of the currently played media file;
monitoring an operating program of the multimedia application;
if the running program exits due to the ESD abnormality, the reset bit of the register is marked as 1;
after the terminal is restarted, acquiring information of reset bit of the register;
judging whether a reset bit of the register is marked as 1 or not;
if yes, recording the appointed character string into a second appointed directory;
the step of judging whether the abnormal restart is an ESD restart includes:
judging whether the second appointed directory records the appointed character string or not;
if yes, judging that the terminal is abnormally restarted as ESD restart;
starting the multimedia application after the terminal is restarted;
judging whether the abnormal restart is an ESD restart or not;
if yes, the temporary file is read through the multimedia application, the media file is called based on the storage path, and the media file is continuously played based on the playing progress.
2. The method for restoring application data of a terminal according to claim 1, wherein the step of storing a temporary file generated when the multimedia application plays a media file, the temporary file recording a storage path and a play progress of the currently played media file, comprises:
acquiring a memory of the media file at a first time when the multimedia application plays the media file
A storage path forming the temporary file;
copying the temporary file into a first designated directory;
acquiring the playing progress of the media file for a plurality of times according to the designated frequency from the first time when the multimedia application plays the media file;
and recording the obtained playing progress into the temporary file.
3. The application data recovery method of a terminal according to claim 2, wherein the step of recording the acquired play progress in the temporary file includes:
recording the currently acquired playing progress into the temporary file;
and deleting the playing progress acquired last time in the temporary file.
4. The method for recovering application data of a terminal according to claim 1, wherein the step of starting the multimedia application after the terminal is abnormally restarted comprises:
and after the terminal is restarted, sending a starting broadcast instruction to the multimedia application.
5. The application data recovery method of a terminal according to claim 2, further comprising:
after the multimedia application exits, judging whether the multimedia application exits normally;
if yes, deleting the temporary file under the first appointed directory;
if not, the temporary file under the first appointed directory is reserved.
6. The application data recovery method of a terminal according to claim 2, wherein the step of copying the temporary file into the first specified directory comprises:
setting the temporary file as a hidden file.
7. An application data recovery apparatus of a terminal for performing the method of any one of claims 1-6, wherein the application is a multimedia application, the apparatus comprising:
the storage module is used for storing a temporary file generated when the multimedia application plays the media file, and the temporary file records the storage path and the playing progress of the currently played media file;
the starting module is used for starting the multimedia application after the terminal is restarted;
the judging module is used for judging whether the abnormal restart is an ESD restart or not;
and the recovery module is used for reading the temporary file through the multimedia application after judging that the abnormal restart is the ESD restart, calling the media file based on the storage path and continuing to play the media file based on the play progress.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 1 to 6.
CN202011196215.7A 2020-10-30 2020-10-30 Terminal application data recovery method and device, computer equipment and storage medium Active CN112363866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011196215.7A CN112363866B (en) 2020-10-30 2020-10-30 Terminal application data recovery method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011196215.7A CN112363866B (en) 2020-10-30 2020-10-30 Terminal application data recovery method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112363866A CN112363866A (en) 2021-02-12
CN112363866B true CN112363866B (en) 2024-01-09

Family

ID=74513936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011196215.7A Active CN112363866B (en) 2020-10-30 2020-10-30 Terminal application data recovery method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112363866B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950579A (en) * 2010-09-10 2011-01-19 康佳集团股份有限公司 Method for breakpoint playing of MP3 via set top box
CN102073553A (en) * 2009-11-24 2011-05-25 新奥特(北京)视频技术有限公司 File recovery method and device
CN102331956A (en) * 2011-09-29 2012-01-25 奇智软件(北京)有限公司 User data backup method and device
CN110609767A (en) * 2019-09-17 2019-12-24 青岛海信移动通信技术股份有限公司 Data recovery method and device for terminal
CN111330284A (en) * 2020-02-20 2020-06-26 广州虎牙科技有限公司 Game archiving method and device, electronic equipment and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970803B2 (en) * 2005-07-01 2011-06-28 Qnx Software Systems Gmbh & Co. Kg Optimized startup verification of file system integrity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073553A (en) * 2009-11-24 2011-05-25 新奥特(北京)视频技术有限公司 File recovery method and device
CN101950579A (en) * 2010-09-10 2011-01-19 康佳集团股份有限公司 Method for breakpoint playing of MP3 via set top box
CN102331956A (en) * 2011-09-29 2012-01-25 奇智软件(北京)有限公司 User data backup method and device
CN110609767A (en) * 2019-09-17 2019-12-24 青岛海信移动通信技术股份有限公司 Data recovery method and device for terminal
CN111330284A (en) * 2020-02-20 2020-06-26 广州虎牙科技有限公司 Game archiving method and device, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN112363866A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN108170495B (en) BIOS upgrading method, system, equipment and computer readable storage medium
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
CN110825495A (en) Container cloud platform recovery method, device, equipment and readable storage medium
CN110647333A (en) Firmware upgrading method and equipment configured to upgrade firmware therein
EP1679599B1 (en) File update system and boot management system of mobile communication terminal, and corresponding methods
US20010046157A1 (en) Electronic apparatus
CN111651304A (en) Software recovery method and device based on double-core intelligent electric meter and computer equipment
CN112363866B (en) Terminal application data recovery method and device, computer equipment and storage medium
CN102262573B (en) Operating system (OS) start-up protecting method and device
CN113867807A (en) Method, device, equipment and storage medium for shortening power-on time of server
CN112433739B (en) Firmware upgrading method
CN111475335A (en) Method, system, terminal and storage medium for fast recovery of database
CN116627519A (en) Multisystem starting method of embedded equipment
CN115827069A (en) Starting control method, system and device for server mainboard
CN113849494A (en) Data updating method and device
CN114995852A (en) Equipment upgrading method, equipment and computer readable storage medium
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN113190244A (en) Method and device for upgrading wireless module, computer equipment and storage medium
CN113467698A (en) Writing method and device based on file system, computer equipment and storage medium
CN111190627A (en) System upgrading method and device
CN111949280B (en) Method and device for ensuring correct installation of preassembled plug-in components in factory
CN112905218B (en) Firmware upgrading method, device and equipment
CN117270914B (en) System upgrading method, device, equipment and medium of terminal equipment
CN111367717B (en) Electronic equipment recovery method, device and system
CN115878204B (en) Processing method and device of operating system, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant