CN108874586B - Data recovery method and related product - Google Patents

Data recovery method and related product Download PDF

Info

Publication number
CN108874586B
CN108874586B CN201810573781.1A CN201810573781A CN108874586B CN 108874586 B CN108874586 B CN 108874586B CN 201810573781 A CN201810573781 A CN 201810573781A CN 108874586 B CN108874586 B CN 108874586B
Authority
CN
China
Prior art keywords
file
data
files
group
mobile terminal
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
CN201810573781.1A
Other languages
Chinese (zh)
Other versions
CN108874586A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810573781.1A priority Critical patent/CN108874586B/en
Publication of CN108874586A publication Critical patent/CN108874586A/en
Application granted granted Critical
Publication of CN108874586B publication Critical patent/CN108874586B/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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a data recovery method and a related product. The method is applied to a mobile terminal, the mobile terminal runs a third-party application program, and the method comprises the following steps: the method comprises the steps that a mobile terminal firstly obtains target data in a preset storage space, secondly, at least one group of files with similarity larger than the preset similarity are screened from the target data, each group of files comprises at least two files, then at least one file needing to be preferentially recovered in each group of files is determined, finally, the at least one file in each group of data is recovered in a first time period, and files except the at least one group of files in the target data are recovered in a second time period. The method and the device for restoring the file are beneficial to improving the efficiency and the accuracy of restoring the file by the mobile terminal.

Description

Data recovery method and related product
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a data recovery method and a related product.
Background
With the rapid development of related technologies of smart phones, more and more applications are installed in user mobile phones, such as reading applications, payment applications, game applications, music applications, and the like, and people's clothes and eating habits are inseparable from mobile phones. When the application of the smart phone is updated and other operations, files which are not needed to be deleted by a user are deleted by mistake, so that file loss is caused, and poor user experience is caused.
Disclosure of Invention
The embodiment of the application provides a data recovery method and a related product, which can improve the efficiency and accuracy of the mobile terminal in recovering files.
In a first aspect, an embodiment of the present application provides a data recovery method, which is applied to a mobile terminal, where the mobile terminal runs a third-party application program, and the method includes:
acquiring target data in a preset storage space, wherein the target data is data illegally requested to be deleted in the process of executing a preset operation by a third-party application program, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of files;
screening at least one group of files with similarity greater than preset similarity from the target data, wherein each group of files comprises at least two files;
determining at least one file needing to be restored preferentially in each group of files;
and restoring the at least one file in each group of data in a first time period, and restoring files in the target data except the at least one group of files in a second time period.
In a second aspect, an embodiment of the present application provides a data recovery apparatus, which is applied to a mobile terminal running a third-party application program, where the data recovery apparatus includes an obtaining unit, a filtering unit, a determining unit, and a recovery unit,
the acquisition unit is used for detecting and acquiring target data in a preset storage space, wherein the target data is data illegally requested to be deleted by the third-party application program in the process of executing a preset operation, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of files;
the screening unit is used for screening at least one group of files with similarity greater than preset similarity from the target data, and each group of files comprises at least two files;
the determining unit is used for determining at least one file needing to be restored preferentially in each group of files;
the restoring unit is used for restoring the at least one file in each group of data in a first period of time and restoring files except the at least one group of files in the target data in a second period of time.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any method in the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods of the first aspect of the present application, and the computer includes a mobile terminal.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present application, the mobile terminal transfers the data that the third-party application illegally requests to delete to the preset storage space, selects multiple groups of files with high similarity by comparing the similarity of the files in the target data, and further determines the files that need to be preferentially restored in each group of files, so that the determined files are preferentially restored in the first time period, and the remaining files are restored in the second time period. Therefore, in the process of restoring the target data transferred to the preset storage space, the number of the files needing to be restored in the first period can be reduced, the probability that the user finds that the files are lost is reduced, the situations that time is consumed and the restoration of other files is delayed due to the fact that too many similar files are restored in a plurality of files are avoided, and the efficiency and the intelligence of the mobile terminal in data restoration are improved.
Drawings
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2 is a schematic flowchart of a data recovery method according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a data recovery method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart illustrating a data recovery method disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the invention is a software system which performs unified management on hardware resources and provides a service interface for a user.
As shown in fig. 1A, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed on the electronic device.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1B, for example that the electronic device runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flowchart of a data recovery method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal runs a third-party application, as shown in fig. 2, the data recovery method includes:
s201, a mobile terminal acquires target data in a preset storage space, wherein the target data is data illegally requested to be deleted in the process of executing preset operation by a third-party application program, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of files.
The third-party application program may be, for example, an instant messaging application, a game application, or the like, and the third-party application program may be installed by a user, or may be preinstalled by a developer before the mobile terminal leaves a factory, which is not limited herein.
The target data may be a document, a picture, audio, and the like, and is not limited herein.
The preset operation may include, but is not limited to, an update operation, an uninstall operation, a delete operation, and the like, and is not limited herein.
S202, the mobile terminal screens out at least one group of files with similarity greater than preset similarity from the target data, and each group of files comprises at least two files.
The similarity can be compared through an algorithm, and the preset similarity is set by a manufacturer when the factory leaves, and is not limited uniquely here.
S203, the mobile terminal determines at least one file which needs to be preferentially restored in each group of files.
S204, the mobile terminal recovers the at least one file in each group of data in a first time interval and recovers files except the at least one group of files in the target data in a second time interval.
The first time period and the second time period may include, but are not limited to, any time period such as five minutes, ten minutes, or fifteen minutes, and are not limited to these.
It can be seen that, in the embodiment of the present application, the mobile terminal transfers the data that the third-party application illegally requests to delete to the preset storage space, selects multiple groups of files with high similarity by comparing the similarity of the files in the target data, and further determines the files that need to be preferentially restored in each group of files, so that the determined files are preferentially restored in the first time period, and the remaining files are restored in the second time period. Therefore, in the process of restoring the target data transferred to the preset storage space, the number of the files needing to be restored in the first period can be reduced, the probability that the user finds that the files are lost is reduced, the situations that time is consumed and the restoration of other files is delayed due to the fact that too many similar files are restored in a plurality of files are avoided, and the efficiency and the intelligence of the mobile terminal in data restoration are improved.
In one possible example, the plurality of files are a plurality of pictures, and the screening at least one group of files with similarity greater than a preset similarity from the target data includes: the mobile terminal extracts a picture characteristic value of each picture in the plurality of pictures; and screening at least one group of pictures with similarity greater than preset similarity from the multiple pictures according to the picture characteristic value of each picture, wherein each group of pictures comprises at least two pictures.
The picture characteristic value can be obtained by the following two methods: firstly, automatically segmenting an image, dividing an object or color area contained in the image, then extracting image characteristics according to the areas, and establishing an index; another method is to simply divide the image into a plurality of regular sub-blocks uniformly, then extract features for each image sub-block, and build an index, which is not limited herein.
Therefore, in this example, the mobile terminal can quickly select similar pictures from the target data by comparing the picture characteristic values to obtain multiple groups of similar pictures, which is beneficial to the high efficiency and accuracy of data screening when the mobile terminal performs data recovery.
In one possible example, the plurality of files includes a plurality of audio files, and the screening of at least one group of files from the target data, the similarity of which is greater than a preset similarity, includes: the mobile terminal carries out filtering processing on each audio file in the plurality of audio files to obtain a filtering graph corresponding to each audio file; and screening at least one group of filter graphs with similarity greater than preset similarity from a plurality of filter graphs corresponding to the plurality of audio files.
Wherein the similarity can be obtained by comparing the amplitude and the frequency in the filtered image.
Therefore, in this example, the mobile terminal obtains the filter graph by filtering the audio, and similar audio can be quickly selected from the target data by comparing the filter graph to obtain multiple groups of similar audio, which is beneficial to the high efficiency and accuracy of data screening when the mobile terminal performs data recovery.
In one possible example, the determining at least one data in each group of data that needs to be preferentially recovered includes: the mobile terminal determines the file attribute of each file in each group of data, wherein the file attribute comprises file creation time; sorting each group of data according to the file attribute of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
The sorting may include, but is not limited to, sorting from front to back or sorting from back to front, and is not limited to this.
For example, when the mobile terminal acquires a preset storage space, the picture A, the picture B, the picture C, the picture D and the picture E are available, the picture characteristic value is identified, and two groups of picture files, namely a group A, are obtained: picture a, picture B, and picture E, group B: and C pictures and D pictures, wherein the creation time of the five pictures is respectively that the picture A is 18 click at 20 months and 20 days in 2018, the picture B is 18 click at 20 months and 20 days in 2018, the picture C is 20 click at 20 months and 20 days in 2018, the picture D is 20 click at 20 days and 20 points 01 at 2018, 5 months and 20 days in 2018, and the picture E is 02 click at 20 days and 18 days in 2018, the first file in the group A is obtained by sequencing from front to back, and the first file in the group B is the picture C, and the picture A and the picture B are preferentially replied.
Therefore, in the example, the mobile terminal accurately determines the priority recovery file by comparing the file attributes of the similar files in each group, so that the situation that other files cannot be normally recovered due to repeated recovery of the similar files is avoided, and the intelligence and the efficiency of recovery of a plurality of files are improved.
In one possible example, the determining at least one data in each group of data that needs to be preferentially recovered includes: the mobile terminal determines the reference parameter of each file in each group of data, wherein the reference parameter comprises the reference times or the reference time; sorting each group of data according to the reference parameter of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
Wherein, the reference times and the reference time can be obtained from the historical operation records of the mobile terminal operated by the user.
Therefore, in the example, the mobile terminal obtains the reference times or reference time according to the historical operation records, the files which are preferentially recovered can be determined in a targeted mode, and the intelligence and the efficiency of recovering a plurality of files are improved.
In one possible example, the recovering the at least one data of each set of data within the first time period includes: when detecting a consulting request aiming at data in the target data, the mobile terminal recovers icon data or preview view data of each file in the at least one associated file, wherein the data volume of the icon data or the preview view data is smaller than that of a single file; and in a first period, after a consulting request of icon data or preview view data of any file in the at least one associated file is detected, restoring the any file in real time.
The restoring is virtual restoring, wherein the virtual restoring refers to icon data or preview view data with low data volume in a virtual folder, and the virtual restoring folder is not a real folder and has no actual logical structure. Therefore, the contents displayed in the folder may be actually dispersed in a plurality of real folders, and the virtual folder only plays a role of induction and summarization. The minimum amount of memory reserved for page caching.
Therefore, in this example, the mobile terminal displays the plurality of files deleted by mistake as icons or preview views in the folder of the target application program, and further restores the files in real time through the click operation of the user, so that the situation that the user mistakenly regards the permanent deletion of the files due to the fact that the undeleted files are not displayed in the folder of the target application program is avoided, and the intelligence and the efficiency of file restoration of the mobile terminal are facilitated.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data recovery method provided in an embodiment of the present application, and the data recovery method is applied to a mobile terminal, where the mobile terminal runs a third-party application program, and as shown in the figure, the data recovery method includes:
s301, the mobile terminal obtains target data in a preset storage space.
S302, the mobile terminal extracts the picture characteristic value of each picture in the plurality of pictures.
And S303, the mobile terminal screens out at least one group of pictures with the similarity greater than a preset similarity from the multiple pictures according to the picture characteristic value of each picture.
S304, the mobile terminal determines the file attribute of each file in the at least one group of pictures.
S305, the mobile terminal sequences the at least one group of pictures according to the file attributes of each file to obtain a file sequence corresponding to the at least one group of pictures.
S306, the mobile terminal determines the first file in each file sequence as a priority recovery file.
S307, the mobile terminal restores the at least one file in the at least one group of pictures in a first period of time and restores files except the at least one group of files in the target data in a second period of time.
It can be seen that, in the embodiment of the present application, the mobile terminal transfers the data that the third-party application illegally requests to delete to the preset storage space, selects multiple groups of files with high similarity by comparing the similarity of the files in the target data, and further determines the files that need to be preferentially restored in each group of files, so that the determined files are preferentially restored in the first time period, and the remaining files are restored in the second time period. Therefore, in the process of restoring the target data transferred to the preset storage space, the number of the files needing to be restored in the first period can be reduced, the probability that the user finds that the files are lost is reduced, the situations that time is consumed and the restoration of other files is delayed due to the fact that too many similar files are restored in a plurality of files are avoided, and the efficiency and the intelligence of the mobile terminal in data restoration are improved.
In addition, the mobile terminal can rapidly select similar pictures from the target data by comparing the picture characteristic values to obtain a plurality of groups of similar pictures, thereby being beneficial to the high efficiency and the accuracy of data screening when the mobile terminal carries out data recovery.
In addition, the mobile terminal accurately determines the prior recovery file by comparing the file attributes of the similar files in each group, thereby avoiding the situation that other files cannot be normally recovered due to repeated recovery of the similar files, and improving the intelligence and the efficiency of recovery of a plurality of files.
Referring to fig. 4, fig. 4 is a schematic flowchart of a data recovery method according to an embodiment of the present application, and the method is applied to a mobile terminal, where the mobile terminal runs a third-party application. As shown in the figure, the data recovery method includes:
s401, the mobile terminal obtains target data in a preset storage space.
S402, the mobile terminal carries out filtering processing on each audio file in the plurality of audio files to obtain a filtering graph corresponding to each audio file.
S403, the mobile terminal screens out at least one group of filter graphs with similarity greater than preset similarity from the plurality of filter graphs corresponding to the plurality of audio files.
S404, the mobile terminal determines the reference parameter of each file in the at least one group of filter graphs.
S405, the mobile terminal sequences the at least one group of filter graphs according to the reference parameters of each file to obtain a file sequence corresponding to each group of files.
S406, the mobile terminal determines that the first file in each file sequence is a priority recovery file.
S407, when detecting a reference request for data in the target data, the mobile terminal restores icon data or preview view data of each file in the at least one associated file.
S408, the mobile terminal restores any file in the at least one associated file in real time after detecting a query request of icon data or preview view data of the any file in the at least one associated file in a first time period.
It can be seen that, in the embodiment of the present application, the mobile terminal transfers the data that the third-party application illegally requests to delete to the preset storage space, selects multiple groups of files with high similarity by comparing the similarity of the files in the target data, and further determines the files that need to be preferentially restored in each group of files, so that the determined files are preferentially restored in the first time period, and the remaining files are restored in the second time period. Therefore, in the process of restoring the target data transferred to the preset storage space, the number of the files needing to be restored in the first period can be reduced, the probability that the user finds that the files are lost is reduced, the situations that time is consumed and the restoration of other files is delayed due to the fact that too many similar files are restored in a plurality of files are avoided, and the efficiency and the intelligence of the mobile terminal in data restoration are improved.
In addition, the mobile terminal obtains a filter graph by filtering the audio, similar audio can be rapidly selected from the target data by comparing the filter graphs to obtain a plurality of groups of similar audio, and the high efficiency and the accuracy of data screening during data recovery of the mobile terminal are facilitated.
In addition, the mobile terminal obtains the reference times or reference time according to the historical operation records, the files which are recovered preferentially can be determined in a targeted mode, and the intelligence and the efficiency of recovering a plurality of files are improved.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal runs a third-party application program, and as shown in the figure, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps;
acquiring target data in a preset storage space, wherein the target data is data illegally requested to be deleted in the process of executing a preset operation by a third-party application program, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of files;
screening at least one group of files with similarity greater than preset similarity from the target data, wherein each group of files comprises at least two files;
determining at least one file needing to be restored preferentially in each group of files;
and restoring the at least one file in each group of data in a first time period, and restoring files in the target data except the at least one group of files in a second time period.
It can be seen that, in the embodiment of the present application, the mobile terminal transfers the data that the third-party application illegally requests to delete to the preset storage space, selects multiple groups of files with high similarity by comparing the similarity of the files in the target data, and further determines the files that need to be preferentially restored in each group of files, so that the determined files are preferentially restored in the first time period, and the remaining files are restored in the second time period. Therefore, in the process of restoring the target data transferred to the preset storage space, the number of the files needing to be restored in the first period can be reduced, the probability that the user finds that the files are lost is reduced, the situations that time is consumed and the restoration of other files is delayed due to the fact that too many similar files are restored in a plurality of files are avoided, and the efficiency and the intelligence of the mobile terminal in data restoration are improved.
In a possible example, the plurality of files are a plurality of pictures, and in the aspect of screening out at least one group of files with similarity greater than a preset similarity from the target data, the instructions in the program are specifically configured to perform the following operations: the mobile terminal extracts a picture characteristic value of each picture in the plurality of pictures; and screening at least one group of pictures with similarity greater than preset similarity from the multiple pictures according to the picture characteristic value of each picture, wherein each group of pictures comprises at least two pictures.
In a possible example, the plurality of files include a plurality of audio files, and the at least one group of files whose content similarity is greater than a preset similarity is screened from the target data, where the instructions in the program are specifically configured to perform the following operations: filtering each audio file in the plurality of audio files to obtain a filter graph corresponding to each audio file; and screening at least one group of filter graphs with similarity greater than preset similarity from a plurality of filter graphs corresponding to the plurality of audio files.
In one possible example, in the aspect of determining at least one data that needs to be preferentially recovered in each group of data, the instructions in the foregoing program are specifically configured to perform the following operations: the mobile terminal determines the file attribute of each file in each group of data, wherein the file attribute comprises file creation time; sorting each group of data according to the file attribute of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
In one possible example, in the aspect of determining at least one data that needs to be preferentially recovered in each group of data, the instructions in the foregoing program are specifically configured to perform the following operations: the mobile terminal determines the reference parameter of each file in each group of data, wherein the reference parameter comprises the reference times or the reference time; sorting each group of data according to the reference parameter of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
In one possible example, in terms of the recovering the at least one data of each set of data within the first period, the instructions of the program are specifically configured to: when detecting a consulting request aiming at data in the target data, the mobile terminal recovers icon data or preview view data of each file in the at least one associated file, wherein the data volume of the icon data or the preview view data is smaller than that of a single file; and in a first period, after a consulting request of icon data or preview view data of any file in the at least one associated file is detected, restoring the any file in real time.
Fig. 6 shows a block diagram of a possible functional unit of the data recovery apparatus according to the above embodiment. The data recovery apparatus 600 is applied to a mobile terminal running a third party application, and the data recovery apparatus 600 includes an acquisition unit 601, a filtering unit 602, a determination unit 603, and a recovery unit 604, wherein,
the obtaining unit 601 is configured to obtain target data in a preset storage space, where the target data is data that the third-party application illegally requests to delete in a process of executing a preset operation, the preset storage space is a dedicated storage space for storing the data, and the target data includes multiple files;
the screening unit 602 is configured to screen at least one group of files with similarity greater than a preset similarity from the target data, where each group of files includes at least two files;
the determining unit 603 is configured to determine at least one file that needs to be preferentially restored in each group of files;
the restoring unit 604 is configured to restore the at least one file in each set of data in a first period, and restore files in the target data except for the at least one set of files in a second period.
In a possible example, the plurality of files are a plurality of pictures, and in the aspect of screening at least one group of files with similarity greater than a preset similarity from the target data, the screening unit 602 is specifically configured to: extracting a picture characteristic value of each picture in the plurality of pictures; and screening at least one group of pictures with similarity greater than preset similarity from the multiple pictures according to the picture characteristic value of each picture, wherein each group of pictures comprises at least two pictures.
In a possible example, the multiple files include multiple audio files, the screening at least one group of files with content similarity greater than a preset similarity from the target data, and the screening unit 602 is specifically configured to: filtering each audio file in the plurality of audio files to obtain a filter graph corresponding to each audio file; and screening at least one group of filter graphs with similarity greater than preset similarity from a plurality of filter graphs corresponding to the plurality of audio files.
In one possible example, in the aspect of determining at least one data that needs to be preferentially recovered in each group of data, the determining unit 603 is specifically configured to: determining the file attribute of each file in each group of data, wherein the file attribute comprises file creation time; sorting each group of data according to the file attribute of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
In one possible example, in the aspect of determining at least one data that needs to be preferentially recovered in each group of data, the determining unit 603 is specifically configured to: determining a reference parameter of each file in each group of data, wherein the reference parameter comprises reference times or reference time; sorting each group of data according to the reference parameter of each file to obtain a file sequence corresponding to each group of files; and determining the first file in each file sequence as a priority recovery file.
In one possible example, in terms of the recovering the at least one data in each group of data in the first period, the recovering unit 604 is specifically configured to: when a reference request for data in the target data is detected, restoring icon data or preview view data of each file in the at least one associated file, wherein the data volume of the icon data or the preview view data is smaller than that of a single file; and in a first period, after a consulting request of icon data or preview view data of any file in the at least one associated file is detected, restoring the any file in real time.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a smart phone 700 according to an embodiment of the present application, where the smart phone 700 includes: the portable electronic device comprises a shell 710, a touch display screen 720, a main board 730, a battery 740 and a sub-board 750, wherein a front camera 731, a processor 732, a memory 733, a power management chip 734 and the like are arranged on the main board 730, and a vibrator 751, an integral sound cavity 752 and a VOOC flash charging interface 753 are arranged on the sub-board.
The method comprises the steps that a mobile terminal firstly obtains target data in a preset storage space, secondly, at least one group of files with similarity larger than the preset similarity are screened from the target data, each group of files comprises at least two files, then at least one file needing to be preferentially recovered in each group of files is determined, finally, the at least one file in each group of data is recovered in a first time period, and files except the at least one group of files in the target data are recovered in a second time period.
The processor 732 is a control center of the smart phone, connects various parts of the entire smart phone through various interfaces and lines, and executes various functions and processes data of the smart phone by operating or executing software programs and/or modules stored in the memory 733 and calling data stored in the memory 733, thereby integrally monitoring the smart phone. Alternatively, processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 732. The Processor 732 may be, for example, a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
The memory 733 may be used to store software programs and modules, and the processor 732 may execute various functional applications and data processing of the smart phone by operating the software programs and modules stored in the memory 733. The memory 733 may mainly include a program storage area that may store an operating system, an application program required for at least one function, and the like, and a data storage area; the storage data area may store data created according to the use of the smartphone, and the like. Further, the memory 733 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The Memory 733 may be, for example, a Random Access Memory (RAM), a flash Memory, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a register, a hard disk, a removable hard disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A data recovery method is applied to a mobile terminal, wherein a third-party application program runs on the mobile terminal, and the method comprises the following steps:
acquiring target data in a preset storage space, wherein the target data is data illegally requested to be deleted in the process of executing a preset operation by the third-party application program, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of audio files;
filtering each audio file in the plurality of audio files to obtain a filter graph corresponding to each audio file;
screening at least one group of filter graphs with similarity greater than preset similarity from a plurality of filter graphs corresponding to the plurality of audio files by comparing the amplitude and the frequency in the filter graphs, wherein each group of files comprises at least two files;
determining a reference parameter of each file in the at least one group of filter maps;
sequencing the at least one group of filter graphs according to the reference parameter of each file to obtain a file sequence corresponding to each group of files;
determining a first file in each file sequence as a priority recovery file;
when a reference request for data in the target data is detected, restoring icon data or preview view data of each file in at least one associated file, wherein the data volume of the icon data or the preview view data is smaller than that of a single file;
and restoring the priority restored file in each group of files in a first time period, restoring any one file in real time after detecting a query request of icon data or preview view data of any one file in the at least one associated file, and restoring files except for the restored file in the target data in a second time period.
2. The method of claim 1, wherein the reference parameter comprises a number of times of reference or a time of reference.
3. A data recovery device is applied to a mobile terminal, and the mobile terminal runs a third-party application program, and is characterized by comprising an acquisition unit, a screening unit, a determination unit and a recovery unit,
the acquisition unit is used for detecting and acquiring target data in a preset storage space, wherein the target data is data illegally requested to be deleted by the third-party application program in the process of executing a preset operation, the preset storage space is a special storage space for storing the data, and the target data comprises a plurality of audio files;
the screening unit is used for filtering each audio file in the plurality of audio files to obtain a filter graph corresponding to each audio file; the method comprises the steps of obtaining a plurality of audio files, and screening at least one group of filter graphs with similarity greater than preset similarity from a plurality of filter graphs corresponding to the plurality of audio files by comparing amplitude and frequency in the filter graphs, wherein each group of files comprises at least two files;
the determining unit is used for determining the reference parameter of each file in the at least one group of filter maps; the file processing device is used for sorting the at least one group of filter graphs according to the reference parameters of each file to obtain a file sequence corresponding to each group of files; and for determining a first file in each file sequence as a priority restore file; and restoring icon data or preview view data of each file in the at least one associated file when a reference request for data in the target data is detected, wherein the data volume of the icon data or the preview view data is smaller than that of a single file;
the restoring unit is configured to restore the priority restored file in each group of files in a first period, restore any one of the files in real time after detecting a query request for icon data or preview view data of any one of the at least one associated file, and restore files other than the restored file in the target data in a second period.
4. The apparatus of claim 3, wherein the reference parameter comprises a number of references or a reference time.
5. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of claim 1 or 2.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to claim 1 or 2, the computer comprising a mobile terminal.
CN201810573781.1A 2018-06-06 2018-06-06 Data recovery method and related product Active CN108874586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810573781.1A CN108874586B (en) 2018-06-06 2018-06-06 Data recovery method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810573781.1A CN108874586B (en) 2018-06-06 2018-06-06 Data recovery method and related product

Publications (2)

Publication Number Publication Date
CN108874586A CN108874586A (en) 2018-11-23
CN108874586B true CN108874586B (en) 2022-02-08

Family

ID=64337075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810573781.1A Active CN108874586B (en) 2018-06-06 2018-06-06 Data recovery method and related product

Country Status (1)

Country Link
CN (1) CN108874586B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018930A (en) * 2019-04-18 2019-07-16 苏州开心盒子软件有限公司 Image recovery method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253871A (en) * 2011-07-13 2011-11-23 重庆大学 Data backup and reduction method, device and system
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment
US9852149B1 (en) * 2010-05-03 2017-12-26 Panzura, Inc. Transferring and caching a cloud file in a distributed filesystem

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853195B (en) * 2010-02-24 2013-01-09 宇龙计算机通信科技(深圳)有限公司 Method and system for recovering data at mobile terminal and mobile terminal
US20140281545A1 (en) * 2013-03-12 2014-09-18 Commvault Systems, Inc. Multi-layer embedded encryption
CN104866389A (en) * 2014-02-25 2015-08-26 北京奇虎科技有限公司 Data recovery method as well as data backup method, device and system based on mobile operating system
CN104216976B (en) * 2014-09-01 2018-09-04 广东欧珀移动通信有限公司 A kind of mobile terminal picture grouping inspection method and system
CN104199967A (en) * 2014-09-22 2014-12-10 广东欧珀移动通信有限公司 Cellphone file recovery method and device
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
CN106231152B (en) * 2016-09-20 2019-05-07 北京小米移动软件有限公司 Transmit the method and device of picture
CN107871011B (en) * 2017-11-21 2020-04-24 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9852149B1 (en) * 2010-05-03 2017-12-26 Panzura, Inc. Transferring and caching a cloud file in a distributed filesystem
CN102253871A (en) * 2011-07-13 2011-11-23 重庆大学 Data backup and reduction method, device and system
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment

Also Published As

Publication number Publication date
CN108874586A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN107547746B (en) Resource allocation method and related product
CN107861816B (en) Resource allocation method and device
CN108984339B (en) Data recovery method and related product
CN107807852B (en) Application program performance control method, device and computer readable storage medium
CN107635078B (en) Game control method and device
CN107797868B (en) Resource adjusting method and device
CN108733797B (en) File processing method and related device
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN107832142B (en) Resource allocation method and equipment for application program
WO2020063780A1 (en) Application layout restoration method and apparatus, device and storage medium
CN103716346A (en) Management method and device of application on android handset client
CN111367562A (en) Data acquisition method and device, storage medium and processor
CN108597546B (en) Method for determining background music of recalling video and related equipment
CN111373728B (en) Control method and device for camera application
CN108762983B (en) Multimedia data recovery method and device
CN108804258B (en) Data recovery method and device, mobile terminal and storage medium
CN108874586B (en) Data recovery method and related product
US10503430B2 (en) Method and device for clearing data and electronic device
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN108241515A (en) Application shortcut method for building up and terminal
CN108762985B (en) Data recovery method and related product
CN109151557B (en) Video creation method and related device
CN107967178B (en) Resource allocation method, resource allocation device, mobile terminal and medium
CN108989703B (en) Memory video creating method and related device
CN111262871B (en) Data processing method and 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