CN112363866A - Application data recovery method and device of terminal, computer equipment and storage medium - Google Patents

Application data recovery method and device of terminal, computer equipment and storage medium Download PDF

Info

Publication number
CN112363866A
CN112363866A CN202011196215.7A CN202011196215A CN112363866A CN 112363866 A CN112363866 A CN 112363866A CN 202011196215 A CN202011196215 A CN 202011196215A CN 112363866 A CN112363866 A CN 112363866A
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.)
Granted
Application number
CN202011196215.7A
Other languages
Chinese (zh)
Other versions
CN112363866B (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

Images

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 is characterized in that a temporary file generated when a multimedia application plays a media file is stored in the process that 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. And starting the multimedia application after the terminal is abnormally restarted, then judging whether the abnormal restart of the terminal is ESD restart, if so, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuously playing the media file based on the playing progress. The method for recovering the application data of the terminal can enable the multimedia application to automatically recover to the last playing state after the ESD restart of the terminal, improves the experience of a user, greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.

Description

Application data recovery method and device of terminal, computer equipment and storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and an apparatus for recovering application data of a terminal, a computer device, and a storage medium.
Background
Static electricity is an objective natural phenomenon, when a user plays a multimedia file by using a terminal, if the user accidentally touches the static electricity, the terminal is abnormally restarted, and the restarted terminal cannot automatically recover the state of the last playing of the multimedia file, so that the aim of protecting the static electricity is fulfilled by adding a static protector on a board card of the terminal. However, this has a problem: due to the fact that the shipment volume of the board cards is huge, the hardware cost is increased sharply as the electrostatic protector is added on each board card.
Disclosure of Invention
The invention mainly aims to provide a method and a device for recovering application data of a terminal, computer equipment and a storage medium, so as to solve the problem that the hardware cost is increased sharply due to the addition of an electrostatic protector on each board card.
The technical scheme of the invention is as follows:
a method for recovering application data 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 abnormally restarted;
judging whether the abnormal restart is ESD restart or not;
if yes, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuing to play the media file based on the playing progress.
Further, the step of 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 comprises the following steps:
the method comprises the steps of obtaining a storage path of a media file at the first time when the media file is played by a multimedia application to form a temporary file;
copying the temporary file to a first designated directory;
the method comprises the steps that the playing progress of the media file is obtained for multiple times according to a specified frequency from the first time when the media file is played by the multimedia application;
and recording the acquired playing progress into a temporary file.
Further, the step of recording the acquired play progress into a temporary file includes:
recording the currently acquired playing progress into a temporary file;
and deleting the playing progress acquired last time in the temporary file.
Further, after the terminal is abnormally restarted and before the step of starting the multimedia application, the method further includes:
monitoring an operating program of the multimedia application;
if the running program exits due to ESD abnormality, the reset bit of the register is marked as 1;
after the terminal is abnormally restarted, acquiring the reset bit information of the register;
judging whether the reset bit of the register is marked as 1;
if yes, recording the specified character string into a second specified directory;
the step of judging whether the abnormal restart is the ESD restart comprises the following steps:
judging whether the second specified directory records the specified character string;
and if so, judging that the abnormal restart of the terminal is the ESD restart.
Further, after the terminal is abnormally restarted, the step of starting the multimedia application includes:
and after the terminal is abnormally restarted, sending a starting broadcast instruction to the multimedia application.
Further, the method for recovering application data of a terminal of the present invention further includes:
after the multimedia application exits, judging whether the multimedia application exits normally;
if so, deleting the temporary file in the first appointed directory;
if not, the temporary file under the first appointed directory is reserved.
Further, the step of copying the temporary file to the first designated directory includes:
and setting the temporary file as a hidden file.
The invention also provides an application data recovery device of a terminal, wherein 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 abnormally restarted;
the judging module is used for judging whether the abnormal restart is the ESD restart or not;
and the recovery module is used for reading the temporary file through the multimedia application, calling the media file based on the storage path and continuously playing the media file based on the playing progress after judging that the abnormal restart is the ESD restart.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores computer programs, and the processor realizes the steps of the application data recovery method of the terminal when executing the computer programs.
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 the above-described terminal.
The invention provides an application data recovery method of a terminal, which is used for storing a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application, and recording the storage path and the playing progress of the currently played media file by the temporary file. And starting the multimedia application after the terminal is abnormally restarted, then judging whether the abnormal restart of the terminal is ESD restart, if so, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuously playing the media file based on the playing progress. The method for recovering the application data of the terminal can enable the multimedia application to automatically recover to the last playing state after the ESD restart of the terminal, improves the experience of a user, 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 illustrating 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 apparatus 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 present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it is to 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", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; they may be mechanically coupled, directly coupled, or indirectly coupled through intervening agents, both internally and/or in any other manner known to those skilled in the art. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly above and obliquely above the second feature, or simply meaning that the first feature is at a lesser level than the second feature.
Referring to fig. 1, a flowchart of an application data recovery method 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 abnormally restarted;
s3: judging whether the abnormal restart is ESD restart or not;
s4: if so, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuing to play the media file 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 may be a local media file of the terminal or a media file of an external device, where the external device may be a usb disk, a hard disk, a mobile phone, a memory card, or the like.
In step S2, when the multimedia application is playing the media file, the terminal is abnormally restarted, and after the terminal is restarted, the multimedia application that abnormally exits due to the terminal restart is immediately started.
In step S3, since there are many causes for the abnormal restart of the terminal, it is determined whether the terminal is restarted due to the contact with static electricity, that is, whether the abnormal restart of the terminal is an ESD restart in step S3.
In step S4, after it is confirmed that the abnormal restart of the terminal is the ESD restart, the temporary file stored in step S1 is read by the started multimedia application, the media file played at that time is found based on the storage path described in the temporary file, and the media file is continuously played from the playing progress described in the temporary file, so that the multimedia application is restored to the last playing state.
The invention provides an application data recovery method of a terminal, which is used for storing a temporary file generated when a multimedia application plays a media file in the process of playing the media file by the multimedia application, and recording the storage path and the playing progress of the currently played media file by the temporary file. And starting the multimedia application after the terminal is abnormally restarted, then judging whether the abnormal restart of the terminal is ESD restart, if so, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuously playing the media file based on the playing progress. The method for recovering the application data of the terminal can enable the multimedia application to automatically recover to the last playing state after the ESD restart of the terminal, improves the experience of a user, greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.
In the method for restoring 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 a currently played media file includes:
s1.1: the method comprises the steps of obtaining a storage path of a media file at the first time when the media file is played by a multimedia application to form a temporary file;
s1.2: copying the temporary file to a first designated directory;
s1.3: the method comprises the steps that the playing progress of the media file is obtained for multiple times according to a specified frequency from the first time when the media file is played by the multimedia application;
s1.4: and recording the acquired 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 acquired, and a temporary file is formed. In this embodiment, the storage path of the media file may be acquired, and other information such as the file type of the media file may be acquired to form the temporary 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 obtained multiple times from the first time when the media file is played by the multimedia application according to the specified frequency, and is recorded in the temporary file. For example, the playing schedule of the media file is recorded every 10s, and the frequency of recording the playing schedule is not limited by the present invention. In order to improve the user experience, the frequency of the playing progress of the recording media file is not too low, and preferably not less than once every 30 s.
In this embodiment, a storage path and a current playing progress of a media file played by a multimedia application are recorded and a temporary file is formed for storage, so that a subsequent multimedia application finds the media file played last time by reading the temporary file and continues playing from the last playing progress.
In the method for restoring application data of a terminal according to an embodiment of the present invention, step S1.4 of recording the acquired play progress in a temporary file includes:
s1.4.1: recording the currently acquired playing progress into a temporary file;
s1.4.2: and deleting the playing progress acquired last time in the temporary file.
In steps S1.4.1 and S1.4.2, the playing schedule of the media file obtained each time is recorded into the temporary file, and the playing schedule recorded last time is deleted, so that not only the size of the temporary file can be reduced, but also errors can be avoided when the later multimedia application reads the temporary file, and the playing can be continued from the playing schedule which is not recorded last time, which affects the user experience.
In the method for recovering application data of a terminal according to an embodiment of the present invention, after the abnormal restart of the terminal and before the step S2 of starting the multimedia application, the method further includes:
s1 a: monitoring an operating program of the multimedia application;
s1 b: if the running program exits due to ESD abnormality, the reset bit of the register is marked as 1;
s1 c: after the terminal is abnormally restarted, acquiring the reset bit information of the register;
s1 d: judging whether the reset bit of the register is marked as 1;
s1 e: if yes, recording the specified character string into a second specified directory.
The step S3 of determining whether the abnormal restart is an ESD restart includes:
s3.1: judging whether the second specified directory records the specified character string;
s3.2: and if so, judging that the abnormal restart of the terminal is the ESD restart.
In steps S1a and S1b, the system is equipped with a Watchdog to continuously monitor the running program of the multimedia application. If the Watchdog monitors that the program exits due to an ESD exception, the reset bit of the register is marked as 1. The principle of the watchdog Timer is applied, the watchdog Timer (WDT, Watch Dog Timer) is a component of a single chip microcomputer, the watchdog Timer is actually a counter and generally given a number, and the watchdog Timer starts counting after a program starts running. If the program runs normally, the CPU sends out an instruction to set the watchdog timer to zero after a period of time, and the counting is restarted. If the count of the watchdog timer is increased to the set value, the program is considered to be not working normally, and the whole system is forced to reset. In the present embodiment, steps S1a and S1b are completed before the terminal is restarted.
In steps S1c, S1d and S1e, when the terminal is restarted, i.e. turned on, the reset bit of the register is marked as 1, and the terminal records the specified string in the second specified directory. Specifically, in this embodiment, the second specified directory is/proc/cmdline, and the specified string is "WdtResetByEsd is 1". When the reset bit acquired from the register is marked as 1, the terminal temporarily writes a character string "WdtResetByEsd is 1" into bootargs, and after writing, a corresponding character string can be seen in the/proc/cmdline directory.
In S3.1 and S3.2, the terminal starts the multimedia application after restarting, and the multimedia application determines whether the terminal restart is an ESD restart according to whether a "wdtresetbyes" string appears under the directory/proc/cmdline. And if a character string 'WdtResetByEsd is 1' under the directory/proc/cmdlene, judging that the abnormal restart of the terminal is the ESD restart.
In this embodiment, a running program of a multimedia application is monitored through a Watchdog, when the running program exits abnormally due to ESD, the Watchdog marks a reset bit of a register to be 1, then the terminal restarts, and after the restart, a character string of "WdtResetByEsd is 1" is recorded in a directory of proc/cmdline by acquiring that the reset bit of the register is marked to be 1. After the terminal is restarted, the multimedia application which is abnormally exited is started, and whether the terminal is restarted by ESD is judged according to whether a character string 'WdtResetByEsd is 1' 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 abnormally restarted, the step S2 of starting the multimedia application includes:
s2.1: and after the terminal is abnormally restarted, sending a starting broadcast instruction to the multimedia application.
In step S2.1, after the terminal is abnormally restarted, a start-up broadcast instruction is sent, the multimedia application registers the broadcast in android manifest.xml in a static manner and receives the start-up broadcast instruction, and the multimedia application is started after receiving the start-up broadcast instruction.
In this embodiment, after the terminal is abnormally restarted, the multimedia application that was forcibly closed due to the abnormal restart of the terminal last time is started by sending a startup broadcast instruction to the multimedia application.
Further, the method for recovering application data of a 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 so, deleting the temporary file in 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 exits normally, the temporary file stored in the first appointed directory is deleted immediately, so that the temporary file is prevented from occupying the storage space. If the multimedia application is abnormally exited, the temporary file stored in the first appointed directory is reserved for the subsequent multimedia application to recover the last playing state.
In the method for restoring 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 specified directory, the method includes:
s1.2.1: and setting the temporary file as a hidden file.
In this embodiment, the temporary file is set as a hidden file, and the user cannot see the temporary file in 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 for a terminal, where the application is a multimedia application, and the apparatus includes:
the storage module 11 is configured to store a temporary file generated when the multimedia application plays a media file, where the temporary file records a storage path and a playing progress of a currently played media file;
the starting module 12 is used for starting the multimedia application after the terminal is abnormally restarted;
the judging module 13 is used for judging whether the abnormal restart is an ESD restart;
and the recovery module 14 is configured to, after the abnormal restart is determined to be the ESD restart, 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.
Specifically, the storage module 11 stores a temporary file generated when the multimedia application plays the media file in the process that the multimedia application plays the media file. 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 may be a local media file of the terminal or a media file of an external device, where the external device may be a usb disk, a hard disk, a mobile phone, a memory card, or the like.
When the multimedia application is in the process of playing the media file, the terminal is abnormally restarted, and after the terminal is restarted, the starting module 12 immediately starts the multimedia application which is abnormally exited due to the restart of the terminal.
Since there are many reasons for causing the abnormal restart of the terminal, after the terminal is restarted, the determining module 13 determines whether the terminal is restarted due to the contact with static electricity, that is, whether the abnormal restart of the terminal is an ESD restart.
When it is determined 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, finds the currently played media file based on the storage path recorded in the temporary file, and continues to play the media file from the play progress recorded in the temporary file, so that the multimedia application is recovered to the last play 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. The method comprises the steps of starting a multimedia application through a starting module 12 after the terminal is abnormally restarted, then judging whether the abnormal restart of the terminal is an ESD restart through a judging module 13, if so, enabling the multimedia application to read the temporary file through a recovery module 14, calling a media file based on a storage path, and continuously playing the media file based on a playing progress. The application data recovery device of the terminal can enable the multimedia application to automatically recover to the last playing state after the ESD restart of the terminal, improves the experience of a user, greatly reduces the hardware cost compared with the prior scheme of setting the electrostatic protector, and has wide application prospect.
The invention also provides a computer device, which can be a server, and the internal structure of the computer device can 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 designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a program or the like of an application data recovery method of the terminal. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program realizes the application data recovery method of the terminal in the above embodiments when executed by the processor.
The present invention also provides a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the application data recovery method of the terminal in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile 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), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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 an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for recovering application data of a terminal, wherein the application is a multimedia application, the method comprising:
storing a temporary file generated when the multimedia application plays a 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 abnormally restarted;
judging whether the abnormal restart is ESD restart or not;
if yes, reading the temporary file through the multimedia application, calling the media file based on the storage path, and continuing to play the media file based on the playing progress.
2. The method for recovering 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 playing progress of the currently played media file comprises:
acquiring a storage path of the media file at the first time when the media file is played by the multimedia application to form a temporary file;
copying the temporary file to a first designated directory;
acquiring the playing progress of the media file for multiple times according to the specified frequency from the first time when the media file is played by the multimedia application;
and recording the acquired playing progress into the temporary file.
3. The method for restoring application data of a terminal according to claim 2, wherein the step of recording the acquired play progress into 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 application data recovery method of a terminal according to claim 1,
before the step of starting the multimedia application after the terminal is abnormally restarted, the method further includes:
monitoring the running program of the multimedia application;
if the running program exits due to ESD abnormality, the reset bit of the register is marked as 1;
after the terminal is abnormally restarted, acquiring the reset bit information of the register;
judging whether the reset bit of the register is marked as 1;
if yes, recording the specified character string into a second specified directory;
the step of judging whether the abnormal restart is an ESD restart includes:
judging whether the second specified directory records the specified character string or not;
and if so, judging that the abnormal restart of the terminal is ESD restart.
5. The method for recovering application data of a terminal according to claim 1, wherein the step of starting the multimedia application after the abnormal restart of the terminal comprises:
and after the terminal is abnormally restarted, sending a starting broadcast instruction to the multimedia application.
6. The method for recovering application data of a terminal according to claim 1, further comprising:
after the multimedia application exits, judging whether the multimedia application exits normally;
if so, deleting the temporary file in the first appointed directory;
if not, the temporary file under the first appointed directory is reserved.
7. The method for recovering application data of a terminal according to claim 2, wherein the step of copying the temporary file into the first designated directory comprises:
and setting the temporary file as a hidden file.
8. An apparatus for recovering application data of a terminal, 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 a 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 abnormally restarted;
the judging module is used for judging whether the abnormal restart is the ESD restart or not;
and the recovery module is used for reading the temporary file through the multimedia application, calling the media file based on the storage path and continuously playing the media file based on the playing progress after judging that the abnormal restart is the ESD restart.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method according to any one of claims 1 to 7.
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 true CN112363866A (en) 2021-02-12
CN112363866B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070005560A1 (en) * 2005-07-01 2007-01-04 Dan Dodge Optimized startup verification of file system integrity
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070005560A1 (en) * 2005-07-01 2007-01-04 Dan Dodge Optimized startup verification of file system integrity
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
CN112363866B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN108170495B (en) BIOS upgrading method, system, equipment and computer readable storage medium
US8812910B2 (en) Pilot process method for system boot and associated apparatus
US20110004871A1 (en) Embedded electronic device and firmware updating method thereof
CN111142911B (en) Embedded system with abnormal recovery function and upgrading method thereof
EP1679599B1 (en) File update system and boot management system of mobile communication terminal, and corresponding methods
US6483746B2 (en) Electronic apparatus
CN111506326A (en) Method, device and equipment for upgrading terminal equipment and storage medium
CN111651304A (en) Software recovery method and device based on double-core intelligent electric meter and computer equipment
CN113641390B (en) System upgrading method, device, equipment and storage medium
CN113204383B (en) Method, device and system for storing BMC configuration parameters and storage medium
CN113867807A (en) Method, device, equipment and storage medium for shortening power-on time of server
CN112363866A (en) Application data recovery method and device of terminal, computer equipment and storage medium
CN113190256A (en) Upgrading method, device and equipment
CN116501409B (en) Dual-Flash-based server starting method, computer equipment and storage medium
CN116627519A (en) Multisystem starting method of embedded equipment
CN113114730B (en) Upgrading method and device, terminal equipment and storage medium
CN111813748B (en) File system mounting method and device, electronic equipment and storage medium
CN114356653A (en) Power-down protection method and device for industrial control firewall
CN114547033A (en) Method, system, equipment and storage medium for managing key product data
CN109960611B (en) Data recovery method and device, electronic equipment and machine-readable storage medium
JP4388100B2 (en) Mobile phone
CN112905218B (en) Firmware upgrading method, device and equipment
CN111367717B (en) Electronic equipment recovery method, device and system
CN115878204B (en) Processing method and device of operating system, computer equipment and medium
CN113625964B (en) NandFlash-based sequential storage method, electronic device and storage 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