CN108804258A - Data reconstruction method, device, mobile terminal and storage medium - Google Patents
Data reconstruction method, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108804258A CN108804258A CN201810580425.2A CN201810580425A CN108804258A CN 108804258 A CN108804258 A CN 108804258A CN 201810580425 A CN201810580425 A CN 201810580425A CN 108804258 A CN108804258 A CN 108804258A
- Authority
- CN
- China
- Prior art keywords
- file
- application program
- data
- mobile terminal
- destination
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
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)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application discloses a kind of data reconstruction method, device, mobile terminal and storage medium.This method is applied to mobile terminal, and the running of mobile terminal has the first application program, the method includes:When mobile terminal detects that the predetermined registration operation of first application program executes completion, obtain the target data preset in memory space, if the target data includes file destination, the file destination is the file associated by the second application program of the mobile terminal front stage operation, then restores the file destination.The embodiment of the present application is conducive to improve high efficiency and accuracy that mobile terminal restores file.
Description
Technical field
This application involves technical field of mobile terminals, and in particular to data reconstruction method, device, mobile terminal and storage are situated between
Matter.
Background technology
With the fast development of smart mobile phone technology, more and more applications are installed in user mobile phone, such as read class
Using, payment class application, game class application, music class application etc., the clothing, food, lodging and transportion -- basic necessities of life of people are inseparable with mobile phone.When answering
When with being updated, the file that accidentally need not delete user is deleted, and is caused missing documents, is caused bad user experience.
Invention content
The embodiment of the present application provides data reconstruction method, device, mobile terminal and storage medium, can improve mobile whole
Restore the high efficiency and accuracy of file in end.
In a first aspect, the embodiment of the present application provides a kind of data reconstruction method, it is applied to mobile terminal, the mobile terminal
Operation has the first application program, the method includes:
When detecting that the predetermined registration operation of first application program executes completion, the number of targets preset in memory space is obtained
According to the target data is first application program in the number for executing the illegal request deletion of predetermined registration operation during institute
According to;
If the target data includes file destination, the file destination is answered for the second of the mobile terminal front stage operation
With the file associated by program, then restore the file destination.
Second aspect, the embodiment of the present application provide a kind of Data Recapture Unit, are applied to mobile terminal, the mobile terminal
Operation has the first application program, which is characterized in that and the Data Recapture Unit includes detection unit and recovery unit,
The detection unit when for detecting that the predetermined registration operation of first application program executes completion, obtains default
Target data in memory space, the target data are first application program during executing the predetermined registration operation
The data that institute's illegal request is deleted;
The recovery unit, if including file destination for the target data, the file destination is described mobile whole
The file associated by the second application program of front stage operation is held, then restores the file destination.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes the instruction for executing the step in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above computer is readable
Computer program of the storage medium storage for electronic data interchange, wherein above computer program makes computer execute such as
Step some or all of described in the embodiment of the present application first aspect either method, above computer include mobile terminal.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above computer program product
Non-transient computer readable storage medium including storing computer program, above computer program are operable to make calculating
Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product
Can be a software installation packet, above computer includes mobile terminal.
As can be seen that in the embodiment of the present application, mobile terminal detects that the predetermined registration operation of first application program executes
When completion, the target data preset in memory space is obtained, if the target data includes file destination, the file destination is
File associated by second application program of the mobile terminal front stage operation, then restore the file destination.As it can be seen that mobile whole
End can preferentially restore when restoring to be transferred to the data of default memory space deleted by the first application program illegal request
The file associated by the second application program that foreground is currently running, because of data during avoiding user from using the second application program
Do not restore in time and occur that related data can not be consulted or can not occur the case where function associated using related data, has
The stability that application program is run in data recovery procedure is carried out conducive to mobile terminal is improved.
Description of the drawings
The attached drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of schematic diagram of the program running space of smart mobile phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram of data reconstruction method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of data reconstruction method disclosed in the embodiment of the present application;
Fig. 4 is a kind of flow diagram of data reconstruction method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of smart mobile phone disclosed in the embodiment of the present application.
Specific implementation mode
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing
Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap
It includes for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application may include various handheld devices with wireless communication function,
Mobile unit, wearable device, computing device or other processing equipments and various forms for being connected to radio modem
User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present invention
It is the software systems for being managed collectively to hardware resource, and providing a user business interface as system.
As shown in Figure 1A, the electronic equipments such as smart mobile phone are typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein user's space operation there are one or multiple application programs, this or more
A application program is the third party application of electronic equipment installation.
The Mobile operating system iOS that the electronic equipment can specifically run Android android system, Apple Inc. develops
Deng not doing unique restriction herein.As shown in Figure 1B, by taking electronic equipment operation has android system as an example, corresponding user
Space includes the application layer (Applications) in the android system, and operating system space may include the Android systems
Application framework layer (Application Framework) in system, system operation library layer (including system operation library layer
Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies
It include all kinds of application programs with user's direct interaction on layer, or the service routine for running on backstage write by Java language.
For example, the program for the common basic function realized on smart mobile phone, such as short message service (Short Messaging
Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web,
Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android
A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System
Runtime Library layer is the support of application framework, and service is provided for the various components in android system.System operation library layer by
System class libraries and Android are constituted when running.Include core library and Dalvik virtual machine two parts when Android is run.Linux
Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication
Function.
Electronic equipment may include various handheld device, mobile unit, wearable device (example with wireless communication function
Such as smartwatch, Intelligent bracelet, pedometer), computing device or other processing equipments for being connected to radio modem, with
And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device
(terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.Below to the application reality
Example is applied to describe in detail.
A kind of flow diagram of data reconstruction method is provided referring to Fig. 2, Fig. 2 is the embodiment of the present application, is applied to
Mobile terminal, the running of mobile terminal have the first application program, as shown in Fig. 2, notebook data restoration methods include:
S201 is obtained and is preset in memory space when detecting that the predetermined registration operation of first application program executes completion
Target data, the target data are deleted for first application program in execution predetermined registration operation during institute illegal request
The data removed.
Wherein, the first application program refers to third party application, and third party application for example can be instant messaging
Class application, game class application etc., which can be by user installation, can also be by developer in mobile terminal
Prepackage, does not do unique restriction herein before manufacture.
Wherein, target data can be document, picture and audio etc., not do unique restriction herein.
Wherein, predetermined registration operation can be including but not limited to update operation, unloading operation and delete operation etc., not do herein
It is unique to limit.
S202, if the target data includes file destination, the file destination is the mobile terminal front stage operation
File associated by second application program then restores the file destination.
Wherein, the second application program refers to the third party application of the user's space mounted on mobile terminal.
Wherein, the associated file of the second application program refers to the specified behaviour entered by the application interface of the second application program
The data file of work.
Optionally, the associated file of the destination application includes single file;It is described to restore the file destination, packet
It includes:Directly the single file is restored to the original storage space of the single file.
As can be seen that in the embodiment of the present application, mobile terminal detects that the predetermined registration operation of first application program executes
When completion, the target data preset in memory space is obtained, if the target data includes file destination, the file destination is
File associated by second application program of the mobile terminal front stage operation, then restore the file destination.As it can be seen that mobile whole
End can preferentially restore when restoring to be transferred to the data of default memory space deleted by the first application program illegal request
The file associated by the second application program that foreground is currently running, because of data during avoiding user from using the second application program
Do not restore in time and occur that related data can not be consulted or can not occur the case where function associated using related data, has
The stability that application program is run in data recovery procedure is carried out conducive to mobile terminal is improved.
In a possible example, the file destination includes that the application interface of second application program directly closes
The file of the file of connection or first application program.
As it can be seen that in this example, mobile terminal targetedly carries out file by identifying the different positions residing for file
Recovery is handled, and is conducive to high efficiency and accuracy that mobile terminal carries out data recovery.
In a possible example, the associated file of the second application program includes single file;The recovery institute
File destination is stated, including:Mobile terminal virtually restores the icon data or preview view data of the single file;It detects
After the access request of the single file, single file described in real-time recovery.
Wherein, virtual to restore to refer to the icon data of low data bulk or preview view data in virtual folder, it is empty
Quasi- to restore the file that file is not necessary being, there is no actual logical constructions.Therefore it is shown in its file
Content may be actually to be scattered in several true files, and virtual folder only plays one and concludes and summarize
Effect.Keep for the minimum memory number of page cache.
Optionally, the data volume of icon data or preview view data is less than the data volume of the single file, wherein
Data volume can be document memory size or file access pattern datarams size.
For example, when the A of mobile terminal applications are updated, when detecting that update operation is completed, default deposit is obtained
The data information in space is stored up, the picture 1 for obtaining the A applications just in front stage operation is located in default memory space, then by picture
1, it is set as the highest priority of file access pattern, restores picture 1 in the file applied to original A in first two minutes.
As it can be seen that in this example, mobile terminal is by determining that current target data is the associated single text of the second application program
Part, and then the icon or preview view of this document are presented by prestissimo in current interface, it avoids because data are extensive in time
Can not show again should be when the fileinfo of display.
In a possible example, the associated file of the second application program includes multiple files;The recovery institute
File destination is stated, including:Mobile terminal determines that the file attribute of each file in the multiple file, the file attribute include
File creation time and/or file size;The multiple file is ranked up according to the file attribute of each file, is obtained
To file sequence;Restore each file one by one according to the sequence of file in the file sequence.
Wherein, sequence can include but is not limited to be ranked up or be ranked up back to front from front to back, herein not
Do unique restriction.
For example, when the B of mobile terminal applications are updated, when detecting that update operation is completed, default deposit is obtained
The data information in space is stored up, picture 1 (5,000,000), picture 2 (7,000,000) and the document 1 of the B applications just in front stage operation are obtained
(120KB) is located in default memory space, because being ranked up from the front to the back according to the file size of three files, obtains file
Sequence is that three files are restored the text applied to B by document 1, picture 1 and picture 2 one by one in three minutes according to file sequence
In part folder, when obtaining the data information in default memory space, the current not document in the C of front stage operation applications is also got
1 (200KB) and document 2 (600KB) arrive the sequence of document 2 according to document 1 after the completion of document 1, picture 1 and picture 2 restore
Restored.
As it can be seen that in this example, mobile terminal is by determining that current target data is the associated multiple texts of the second application program
Part determines the recovery sequence of file further according to file attribute, avoid multiple recovery files it is excessive caused by restore to prolong
The case where causing alternative document not restore normally late, generates, and improves the intelligent and high efficiency of multiple file access patterns.
In a possible example, the associated file of the second application program includes multiple files;The recovery institute
File destination is stated, including:Mobile terminal virtually restores the icon data or preview view of each file in the multiple file
Data;Detect the access request of the icon data or preview view data for any one file in the multiple file
Afterwards, any one file described in real-time recovery;When detecting that second application program is exited on foreground, described in the recovery of backstage
File in multiple files in addition to any one described file.
For example, when the D of mobile terminal applications are updated, when detecting that update operation is completed, default deposit is obtained
The data information in space is stored up, when user is at Album for glancing over pictures interface, picture 1, picture 2 and picture 3 that the mistake in D applications is deleted
Presented with icon in photograph album, click the icon of picture 1, then in real time restore picture 1, then with i.e. by picture 2 and picture 3 into
Row restores.
As it can be seen that in this example, mobile terminal is by the files to multiple accidentally deletions, in the file of the second application program
In, it is displayed as icon or preview view, further by the clicking operation of user, real-time recovery file avoids
Not deleted file is not shown in the file of second application program, and user is caused to take for the case where file is permanently deleted
Occur, is conducive to the intelligent and high efficiency that mobile terminal carries out file access pattern.
In a possible example, the recovery file destination, including:Restore the target text in the first period
Part;It is described after the first period restored the file destination, the method further includes:The target is recovered in the second period
File except file.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of data provided by the embodiments of the present application
The flow diagram of restoration methods is applied to mobile terminal, and the running of mobile terminal has the first application program, as shown,
Notebook data restoration methods include:
S301 is obtained and is preset in memory space when detecting that the predetermined registration operation of first application program executes completion
Target data.
S302 determines that the target data includes the single file, virtually restores the icon number of the single file
According to or preview view data.
S303, after detecting the access request for the single file, single file described in real-time recovery.
As can be seen that in the embodiment of the present application, mobile terminal detects that the predetermined registration operation of first application program executes
When completion, the target data preset in memory space is obtained, if the target data includes file destination, the file destination is
File associated by second application program of the mobile terminal front stage operation, then restore the file destination.As it can be seen that mobile whole
End can preferentially restore when restoring to be transferred to the data of default memory space deleted by the first application program illegal request
The file associated by the second application program that foreground is currently running, because of data during avoiding user from using the second application program
Do not restore in time and occur that related data can not be consulted or can not occur the case where function associated using related data, has
The stability that application program is run in data recovery procedure is carried out conducive to mobile terminal is improved.
In addition, mobile terminal is by determining that current target data is the associated single file of the second application program, Jin Ertong
This document is presented in current interface for prestissimo icon or preview view are crossed, is avoided due to data do not restore in time without Faxian
Showing should be when the fileinfo of display.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of data provided by the embodiments of the present application
The flow diagram of restoration methods, is applied to mobile terminal, and the running of mobile terminal has the first application program.As shown,
Notebook data restoration methods include:
S401 is obtained and is preset in memory space when detecting that the predetermined registration operation of first application program executes completion
Target data.
S402 determines that the target data includes the multiple file, determines each file in the multiple file
File attribute.
S403 is ranked up the multiple file according to the file attribute of each file, obtains file sequence.
S404 restores each file one by one according to the sequence of file in the file sequence.
As can be seen that in the embodiment of the present application, mobile terminal detects that the predetermined registration operation of first application program executes
When completion, the target data preset in memory space is obtained, if the target data includes file destination, the file destination is
File associated by second application program of the mobile terminal front stage operation, then restore the file destination.As it can be seen that mobile whole
End can preferentially restore when restoring to be transferred to the data of default memory space deleted by the first application program illegal request
The file associated by the second application program that foreground is currently running, because of data during avoiding user from using the second application program
Do not restore in time and occur that related data can not be consulted or can not occur the case where function associated using related data, has
The stability that application program is run in data recovery procedure is carried out conducive to mobile terminal is improved.
In addition, mobile terminal is by determining current target data for the associated multiple files of the second application program, further
According to file attribute, determine the recovery sequence of file, avoid multiple recoverys files it is excessive caused by restore to postpone and cause
The case where alternative document can not normally restore generates, and improves the intelligent and high efficiency of multiple file access patterns.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is appreciated that
, for mobile terminal in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or software mould
Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, and depend on the specific application and design constraint item of technical solution
Part.Professional technician specifically can realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out mobile terminal according to the above method example division of functional unit, for example, can
Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit
In.The form that hardware had both may be used in above-mentioned integrated unit is realized, can also be realized in the form of SFU software functional unit.It needs
It is noted that be schematical, only a kind of division of logic function to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application
A kind of structural schematic diagram of mobile terminal, the running of mobile terminal have the first application program, as shown in figure 5, the mobile terminal
500 include processor 501, memory 502, communication interface 503 and one or more programs 504, wherein said one is more
A program 504 be different from said one or multiple application programs 504, and said one or multiple programs 504 be stored in it is above-mentioned
In memory 502, and it is configured to be executed by above-mentioned processor 501, above procedure includes the instruction for executing following steps;
When detecting that the predetermined registration operation of first application program executes completion, the number of targets preset in memory space is obtained
According to the target data is first application program in the number for executing the illegal request deletion of predetermined registration operation during institute
According to;
If the target data includes file destination, the file destination is answered for the second of the mobile terminal front stage operation
With the file associated by program, then restore the file destination.
As can be seen that in the embodiment of the present application, mobile terminal detects that the predetermined registration operation of first application program executes
When completion, the target data preset in memory space is obtained, if the target data includes file destination, the file destination is
File associated by second application program of the mobile terminal front stage operation, then restore the file destination.As it can be seen that mobile whole
End can preferentially restore when restoring to be transferred to the data of default memory space deleted by the first application program illegal request
The file associated by the second application program that foreground is currently running, because of data during avoiding user from using the second application program
Do not restore in time and occur that related data can not be consulted or can not occur the case where function associated using related data, has
The stability that application program is run in data recovery procedure is carried out conducive to mobile terminal is improved.
In a possible example, the associated file of destination application includes answering for second application program
The file of the file or first application program that are directly linked with interface.
In a possible example, the associated file of the second application program includes single file, the recovery institute
In terms of stating file destination, the instruction in above procedure is specifically used for executing following operation:Virtually restore the figure of the single file
Mark data or preview view data;After detecting the access request for the single file, single text described in real-time recovery
Part.
In a possible example, the associated file of the second application program includes multiple files, the recovery institute
In terms of stating file destination, the instruction in above procedure is specifically used for executing following operation:Determine each text in the multiple file
The file attribute of part, the file attribute include file creation time and/or file size;According to the file of each file
Attribute is ranked up the multiple file, obtains file sequence;Restore one by one according to the sequence of file in the file sequence
Each file.
In a possible example, the associated file of the second application program includes multiple files, the recovery institute
In terms of stating file destination, the instruction in above procedure is specifically used for executing following operation:Virtually restore every in the multiple file
The icon data or preview view data of a file;Detect the icon number for any one file in the multiple file
According to or preview view data access request after, any one file described in real-time recovery;Detecting that it is described that foreground is exited
When the second application program, the file in restoring the multiple file from the background in addition to any one described file.
In a possible example, the recovery file destination, including:Restore the target text in the first period
Part;It is described after the first period restored the file destination, the method further includes:The target is recovered in the second period
File except file.
Fig. 6 shows a kind of possible functional unit composition frame of Data Recapture Unit involved in above-described embodiment
Figure.Data Recapture Unit 600 is applied to mobile terminal, and the running of mobile terminal has the first application program, Data Recapture Unit
600 include detection unit 601 and recovery unit 602, wherein
The detection unit 601 when for detecting that the predetermined registration operation of first application program executes completion, obtains pre-
If the target data in memory space, the target data is first application program in the process for executing the predetermined registration operation
The data that middle institute's illegal request is deleted;
The recovery unit 602, if including file destination for the target data, the file destination is the movement
File associated by second application program of terminal front stage operation, then restore the file destination.
In a possible example, the associated file of destination application includes answering for second application program
The file of the file or first application program that are directly linked with interface.
In a possible example, the associated file of the second application program includes single file, in the recovery
In terms of the file destination, the recovery unit 602 is specifically used for:Virtually restore the icon data or pre- of the single file
Look at viewdata;After detecting the access request for the single file, single file described in real-time recovery.
In a possible example, the associated file of the second application program includes multiple files;In the recovery
In terms of the file destination, the recovery unit 602 is specifically used for:Determine the file category of each file in the multiple file
Property, the file attribute includes file creation time and/or file size;According to the file attribute of each file to described
Multiple files are ranked up, and obtain file sequence;Restore each text one by one according to the sequence of file in the file sequence
Part.
In a possible example, the file destination includes multiple files, restores the file destination side described
Face, the recovery unit 602 are specifically used for:Virtually restore the icon data of each file or preview in the multiple file to regard
Diagram data;It detects and is asked for the icon data of any one file in the multiple file or the access of preview view data
After asking, any one file described in real-time recovery;When detecting that second application program is exited on foreground, restore institute on backstage
State the file in addition to any one described file in multiple files.
Described to restore the file destination in a possible example, the recovery unit 602 is specifically used for:?
One period restored the file destination;It is described after the first period restored the file destination, the recovery unit 602 is also used
In:The file except the file destination is recovered in the second period.
The structural schematic diagram of smart mobile phone 700 a kind of, above-mentioned intelligence are provided referring to Fig. 7, Fig. 7 is the embodiment of the present application
Mobile phone 700 includes:Shell 710, touching display screen 720, mainboard 730, battery 740 and subplate 750, before being provided on mainboard 730
Camera 731, processor 732, memory 733, power management chip 734 etc. are set, oscillator 751, integrated sound are provided on subplate
Interface 753 is filled in chamber 752, VOOC sudden strains of a muscle.
Wherein, for mobile terminal first it is detected that the predetermined registration operation of first application program executes when completing, acquisition is default
Target data in memory space, finally, if the target data includes file destination, the file destination is described mobile whole
The file associated by the second application program of front stage operation is held, then restores the file destination.
Above-mentioned processor 732 is the control centre of smart mobile phone, utilizes various interfaces and the entire smart mobile phone of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 733, and call and be stored in
Data in memory 733 execute the various functions and processing data of smart mobile phone, to carry out whole prison to smart mobile phone
Control.Optionally, processor 732 may include one or more processing units;Preferably, processor 732 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 732.The processor 732 for example can be central processing unit (Central Processing Unit, CPU), general procedure
Device, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application-
Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate
Array, FPGA) either other programmable logic device, transistor logic, hardware component or its arbitrary combination.It can
To realize or execute various illustrative logic blocks, module and circuit in conjunction with described in present disclosure.Above-mentioned place
Reason device can also be to realize the combination of computing function, such as combine comprising one or more microprocessors, DSP and microprocessor
Combination etc..
Above-mentioned memory 733 can be used for storing software program and module, and processor 732 is stored in memory by operation
733 software program and module, to execute various function application and the data processing of smart mobile phone.Memory 733 can
Include mainly storing program area and storage data field, wherein storing program area can storage program area, needed at least one function
Application program etc.;Storage data field can be stored uses created data etc. according to smart mobile phone.In addition, memory 733
May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.The memory 733 for example can be random access memory (Random
Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), the read-only storage of erasable programmable
Device (Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically
EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other shape well known in the art
The storage medium of formula.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity
The computer program that subdata exchanges, the computer program make computer execute any as described in above method embodiment
Some or all of method step, above computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and above computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either method described in method embodiment step.The computer program product can be a software installation
Packet, above computer includes mobile terminal.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, said units division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory
May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (14)
1. a kind of data reconstruction method, which is characterized in that be applied to mobile terminal, the running of mobile terminal has first to apply journey
Sequence, the method includes:
When detecting that the predetermined registration operation of first application program executes completion, the target data preset in memory space is obtained,
The target data is first application program in the data for executing the illegal request deletion of predetermined registration operation during institute;
If the target data includes file destination, the file destination applies journey for the second of the mobile terminal front stage operation
File associated by sequence then restores the file destination.
2. according to the method described in claim 1, it is characterized in that, the file destination includes answering for second application program
The file of the file or first application program that are directly linked with interface.
3. method according to claim 1 or 2, which is characterized in that the associated file of the second application program includes single
A file;The recovery file destination, including:
Virtually restore the icon data or preview view data of the single file;
After detecting the access request for the single file, single file described in real-time recovery.
4. method according to claim 1 or 2, which is characterized in that the associated file of the second application program includes more
A file;The recovery file destination, including:
Determine that the file attribute of each file in the multiple file, the file attribute include file creation time and/or text
Part size;
The multiple file is ranked up according to the file attribute of each file, obtains file sequence;
Restore each file one by one according to the sequence of file in the file sequence.
5. method according to claim 1 or 2, which is characterized in that the associated file of the second application program includes more
A file;The recovery file destination, including:
Virtually restore the icon data or preview view data of each file in the multiple file;
Detect the access request of the icon data or preview view data for any one file in the multiple file
Afterwards, any one file described in real-time recovery;
When detecting that second application program is exited on foreground, in restoring the multiple file from the background except it is described any one
File except file.
6. according to the method described in claim 1, it is characterized in that, described restore the file destination, including:
Restore the file destination in the first period;
It is described after the first period restored the file destination, the method further includes:
The file except the file destination is recovered in the second period.
7. a kind of Data Recapture Unit, is applied to mobile terminal, the running of mobile terminal has the first application program, feature to exist
In, the Data Recapture Unit include detection unit and recovery unit,
The detection unit when for detecting that the predetermined registration operation of first application program executes completion, obtains default storage
Target data in space, the target data are non-during executing the predetermined registration operation for first application program
The data that method request is deleted;
The recovery unit, if including file destination for the target data, the file destination is before the mobile terminal
File associated by second application program of platform operation, then restore the file destination.
8. device according to claim 7, which is characterized in that the file destination includes answering for second application program
The file of the file or first application program that are directly linked with interface.
9. device according to claim 7 or 8, which is characterized in that the associated file of the second application program includes single
A file;In terms of the recovery file destination, the recovery unit is specifically used for:
Virtually restore the icon data or preview view data of the single file;
After detecting the access request for the single file, single file described in real-time recovery.
10. device according to claim 7 or 8, which is characterized in that the associated file of the second application program includes more
A file;In terms of the recovery file destination, the recovery unit is specifically used for:
Determine that the file attribute of each file in the multiple file, the file attribute include file creation time and/or text
Part size;
The multiple file is ranked up according to the file attribute of each file, obtains file sequence;
Restore each file one by one according to the sequence of file in the file sequence.
11. device according to claim 7 or 8, which is characterized in that the associated file of the second application program includes more
A file;In terms of the recovery file destination, the recovery unit is specifically used for:
Virtually restore the icon data or preview view data of each file in the multiple file;
Detect the access request of the icon data or preview view data for any one file in the multiple file
Afterwards, any one file described in real-time recovery;
When detecting that second application program is exited on foreground, in restoring the multiple file from the background except it is described any one
File except file.
12. device according to claim 7, which is characterized in that in terms of the recovery file destination, the recovery
Unit is specifically used for:
Restore the file destination in the first period;
At the aspect after the first period restored the file destination, the recovery unit is additionally operable to:
The file except the file destination is recovered in the second period.
13. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface and one or more program,
Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey
Sequence includes that the instruction of the step in any one of 1-6 methods is required for perform claim.
14. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage is used for electron number
According to the computer program of exchange, wherein it is as claimed in any one of claims 1 to 6 that the computer program so that computer executes
Method, the computer include mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810580425.2A CN108804258B (en) | 2018-06-07 | 2018-06-07 | Data recovery method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810580425.2A CN108804258B (en) | 2018-06-07 | 2018-06-07 | Data recovery method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108804258A true CN108804258A (en) | 2018-11-13 |
CN108804258B CN108804258B (en) | 2021-02-02 |
Family
ID=64087619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810580425.2A Active CN108804258B (en) | 2018-06-07 | 2018-06-07 | Data recovery method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804258B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113138653A (en) * | 2021-04-14 | 2021-07-20 | 福州富昌维控电子科技有限公司 | Power failure data protection method and terminal |
CN114416183A (en) * | 2020-10-28 | 2022-04-29 | 武汉软艺信息技术有限公司 | Method and device for rapidly restoring App state based on iOS system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
US20130290660A1 (en) * | 2010-06-30 | 2013-10-31 | Emc Corporation | Post access data preservation |
CN104035842A (en) * | 2014-06-30 | 2014-09-10 | 上海斐讯数据通信技术有限公司 | Method for deleting and recovering built-in application program |
CN104331311A (en) * | 2014-11-19 | 2015-02-04 | 广东欧珀移动通信有限公司 | Upgrade package generating method and device |
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 |
CN106506820A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of backup method of mobile terminal data and device |
-
2018
- 2018-06-07 CN CN201810580425.2A patent/CN108804258B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130290660A1 (en) * | 2010-06-30 | 2013-10-31 | Emc Corporation | Post access data preservation |
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
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 |
CN104035842A (en) * | 2014-06-30 | 2014-09-10 | 上海斐讯数据通信技术有限公司 | Method for deleting and recovering built-in application program |
CN104331311A (en) * | 2014-11-19 | 2015-02-04 | 广东欧珀移动通信有限公司 | Upgrade package generating method and device |
CN106506820A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of backup method of mobile terminal data and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114416183A (en) * | 2020-10-28 | 2022-04-29 | 武汉软艺信息技术有限公司 | Method and device for rapidly restoring App state based on iOS system |
CN113138653A (en) * | 2021-04-14 | 2021-07-20 | 福州富昌维控电子科技有限公司 | Power failure data protection method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108804258B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107832099B (en) | Method and device for client version compatibility and storage medium | |
CN108509209A (en) | A kind of generation method, device, computer equipment and the storage medium of resource packet | |
CN107635078A (en) | Game control method and equipment | |
CN108984339A (en) | Data reconstruction method and Related product | |
CN108733797A (en) | Document handling method and relevant apparatus | |
CN107908340A (en) | Method, mobile terminal and the device with store function of factory reset | |
CN107832111A (en) | Game application control method and equipment | |
CN107832148A (en) | Performance optimization method and equipment | |
CN114706633B (en) | Preloading method, electronic device and storage medium | |
CN109597707A (en) | Clone volume data copying method, device and computer readable storage medium | |
CN111684437A (en) | Chronologically ordered staggered updated key-value storage system | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN108345496B (en) | Method and device for running application program | |
CN108804258A (en) | Data reconstruction method, device, mobile terminal and storage medium | |
CN106200976A (en) | A kind of motion-activated method and terminal | |
CN108388458A (en) | Message treatment method and Related product | |
CN108762983B (en) | Multimedia data recovery method and device | |
WO2021254200A1 (en) | Page thrashing protection method and apparatus for memory reclaim of operating system | |
CN107670276B (en) | Game application control method and equipment | |
US10599444B2 (en) | Extensible input stack for processing input device data | |
CN110908644A (en) | Configuration method and device of state node, computer equipment and storage medium | |
CN107890667B (en) | Game application control method and equipment | |
CN108874586A (en) | Data reconstruction method and Related product | |
WO2019139738A1 (en) | Extensible input stack for processing input device data | |
CN111880996B (en) | Bare metal data acquisition method, device, equipment and readable 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 |